Implementing new debayer operations.
More...
|
void | mpix_convert_rggb8_to_rgb24_3x3 (const uint8_t *i0, const uint8_t *i1, const uint8_t *i2, uint8_t *rgb24, uint16_t width) |
| Convert a line from RGGB8 to RGB24 with 3x3 method.
|
|
void | mpix_convert_grbg8_to_rgb24_3x3 (const uint8_t *i0, const uint8_t *i1, const uint8_t *i2, uint8_t *rgb24, uint16_t width) |
| Convert a line from GRBG8 to RGB24 with 3x3 method.
|
|
void | mpix_convert_bggr8_to_rgb24_3x3 (const uint8_t *i0, const uint8_t *i1, const uint8_t *i2, uint8_t *rgb24, uint16_t width) |
| Convert a line from BGGR8 to RGB24 with 3x3 method.
|
|
void | mpix_convert_gbrg8_to_rgb24_3x3 (const uint8_t *i0, const uint8_t *i1, const uint8_t *i2, uint8_t *rgb24, uint16_t width) |
| Convert a line from GBRG8 to RGB24 with 3x3 method.
|
|
void | mpix_convert_rggb8_to_rgb24_2x2 (const uint8_t *i0, const uint8_t *i1, uint8_t *rgb24, uint16_t width) |
| Convert a line from RGGB8 to RGB24 with 2x2 method.
|
|
void | mpix_convert_gbrg8_to_rgb24_2x2 (const uint8_t *i0, const uint8_t *i1, uint8_t *rgb24, uint16_t width) |
| Convert a line from GBRG8 to RGB24 with 2x2 method.
|
|
void | mpix_convert_bggr8_to_rgb24_2x2 (const uint8_t *i0, const uint8_t *i1, uint8_t *rgb24, uint16_t width) |
| Convert a line from BGGR8 to RGB24 with 2x2 method.
|
|
void | mpix_convert_grbg8_to_rgb24_2x2 (const uint8_t *i0, const uint8_t *i1, uint8_t *rgb24, uint16_t width) |
| Convert a line from GRBG8 to RGB24 with 2x2 method.
|
|
Implementing new debayer operations.
SPDX-License-Identifier: Apache-2.0
◆ MPIX_REGISTER_BAYER_OP
#define MPIX_REGISTER_BAYER_OP |
( |
|
id, |
|
|
|
fn, |
|
|
|
format_in, |
|
|
|
win_sz |
|
) |
| |
Value:
.base.window_size = (win_sz), \
}
uint32_t format_src
Definition op.h:33
const uint8_t * name
Definition op.h:31
void(* run)(struct mpix_base_op *op)
Definition op.h:51
struct mpix_base_op base
Definition op_bayer.h:18
Define a new bayer format conversion operation.
- Parameters
-
id | Short identifier to differentiate operations of the same type. |
fn | Function performing the operation. |
format_in | The input format for that operation. |
win_sz | The number of line of context needed for that debayer operation. |
◆ mpix_convert_bggr8_to_rgb24_2x2()
void mpix_convert_bggr8_to_rgb24_2x2 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from BGGR8 to RGB24 with 2x2 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |
◆ mpix_convert_bggr8_to_rgb24_3x3()
void mpix_convert_bggr8_to_rgb24_3x3 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
const uint8_t * |
i2, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from BGGR8 to RGB24 with 3x3 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
i2 | Buffer of the input row number 2 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |
◆ mpix_convert_gbrg8_to_rgb24_2x2()
void mpix_convert_gbrg8_to_rgb24_2x2 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from GBRG8 to RGB24 with 2x2 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |
◆ mpix_convert_gbrg8_to_rgb24_3x3()
void mpix_convert_gbrg8_to_rgb24_3x3 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
const uint8_t * |
i2, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from GBRG8 to RGB24 with 3x3 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
i2 | Buffer of the input row number 2 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |
◆ mpix_convert_grbg8_to_rgb24_2x2()
void mpix_convert_grbg8_to_rgb24_2x2 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from GRBG8 to RGB24 with 2x2 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |
◆ mpix_convert_grbg8_to_rgb24_3x3()
void mpix_convert_grbg8_to_rgb24_3x3 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
const uint8_t * |
i2, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from GRBG8 to RGB24 with 3x3 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
i2 | Buffer of the input row number 2 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |
◆ mpix_convert_rggb8_to_rgb24_2x2()
void mpix_convert_rggb8_to_rgb24_2x2 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from RGGB8 to RGB24 with 2x2 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |
◆ mpix_convert_rggb8_to_rgb24_3x3()
void mpix_convert_rggb8_to_rgb24_3x3 |
( |
const uint8_t * |
i0, |
|
|
const uint8_t * |
i1, |
|
|
const uint8_t * |
i2, |
|
|
uint8_t * |
rgb24, |
|
|
uint16_t |
width |
|
) |
| |
Convert a line from RGGB8 to RGB24 with 3x3 method.
- Parameters
-
i0 | Buffer of the input row number 0 in bayer format (1 byte per pixel). |
i1 | Buffer of the input row number 1 in bayer format (1 byte per pixel). |
i2 | Buffer of the input row number 2 in bayer format (1 byte per pixel). |
rgb24 | Buffer of the output row in RGB24 format (3 bytes per pixel). |
width | Width of the lines in number of pixels. |