Skip to content

Instantly share code, notes, and snippets.

View NotSoIntelligent's full-sized avatar
😏
Not Coding

Sunny NotSoIntelligent

😏
Not Coding
View GitHub Profile
@NotSoIntelligent
NotSoIntelligent / README.md
Created April 16, 2025 07:35
Python script to Convert Bayer Mipi packed Raw image to Unpacked 16 bit RAW

MIPI RAW Image Unpacker

This Python script unpacks RAW Bayer MIPI-packed images (RAW10 or RAW12) into 16-bit RAW format.


🔧 Features

  • Supports RAW10 (4 pixels in 5 bytes) and RAW12 (2 pixels in 3 bytes) formats.
  • Converts packed MIPI RAW to 16-bit little-endian format for easier processing and analysis.
@NotSoIntelligent
NotSoIntelligent / Yocto_Build_Instructions.md
Created October 22, 2024 13:30
This gist provides step-by-step instructions on how to set up and build a Yocto project that includes a custom library (libcustom) and a program (myprogram) that depends on a standard math library (libm) and the custom library.

Yocto Instructions for a Code with a dependant Standard and Custom Library

This gist provides step-by-step instructions on how to set up and build a Yocto project that includes a custom library (libcustom) and a program (myprogram) that depends on both the standard math library (libm) and the custom library.

1. Custom Library Recipe (libcustom)

The following is the Yocto recipe for building and installing the custom library (libcustom).

libcustom_1.0.bb:

@NotSoIntelligent
NotSoIntelligent / _C_shared_library.md
Last active July 18, 2024 07:33
Creating a C Program with a Separate Add Function as a Shared Library

Creating a C Program with a Separate Add Function as a Shared Library

In this article, we will guide you through the process of creating a C program that adds two numbers, with the addition functionality implemented in a separate file. We will compile the addition function as a shared library and link it to the main program.

Step 1: Create the Main Program

First, we need to create the main program that will use the Add function to add two numbers. Save the following code in a file named main.c:

@NotSoIntelligent
NotSoIntelligent / reallocator.c
Created November 29, 2023 09:09
A Simple repetitive Memory reallocator Function in C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define INIT_SIZE 50
#define BLK_SIZE 20
#define DBG 0
int get_string (char** str);