Implementing new resizing operations.
More...
|
void | mpix_resize_frame_raw24 (const uint8_t *src_buf, size_t src_width, size_t src_height, uint8_t *dst_buf, size_t dst_width, size_t dst_height) |
| Resize an 24-bit per pixel frame by subsampling the pixels horizontally/vertically.
|
|
void | mpix_resize_frame_raw16 (const uint8_t *src_buf, size_t src_width, size_t src_height, uint8_t *dst_buf, size_t dst_width, size_t dst_height) |
| Resize an 16-bit per pixel frame by subsampling the pixels horizontally/vertically.
|
|
void | mpix_resize_frame_raw8 (const uint8_t *src_buf, size_t src_width, size_t src_height, uint8_t *dst_buf, size_t dst_width, size_t dst_height) |
| Resize an 8-bit per pixel frame by subsampling the pixels horizontally/vertically.
|
|
Implementing new resizing operations.
SPDX-License-Identifier: Apache-2.0
◆ MPIX_REGISTER_RESIZE_OP
#define MPIX_REGISTER_RESIZE_OP |
( |
|
id, |
|
|
|
fn, |
|
|
|
fmt |
|
) |
| |
Value:
.base.format_dst = (MPIX_FMT_##fmt), \
.base.run = (fn), \
}
uint32_t format_src
Definition op.h:33
uint16_t window_size
Definition op.h:43
const uint8_t * name
Definition op.h:31
Definition op_resize.h:15
struct mpix_base_op base
Definition op_resize.h:17
Define a format conversion operation.
Invoking this macro suffices for mpix_image_convert() to include the extra format.
- Parameters
-
id | Short identifier to differentiate operations of the same type. |
fn | Function converting one input line. |
fmt | The pixel format of the data resized. |
◆ mpix_resize_frame_raw16()
void mpix_resize_frame_raw16 |
( |
const uint8_t * |
src_buf, |
|
|
size_t |
src_width, |
|
|
size_t |
src_height, |
|
|
uint8_t * |
dst_buf, |
|
|
size_t |
dst_width, |
|
|
size_t |
dst_height |
|
) |
| |
Resize an 16-bit per pixel frame by subsampling the pixels horizontally/vertically.
- Parameters
-
src_buf | Input buffer to resize |
src_width | Width of the input in number of pixels. |
src_height | Height of the input in number of pixels. |
dst_buf | Output buffer in which the stretched/compressed is stored. |
dst_width | Width of the output in number of pixels. |
dst_height | Height of the output in number of pixels. |
◆ mpix_resize_frame_raw24()
void mpix_resize_frame_raw24 |
( |
const uint8_t * |
src_buf, |
|
|
size_t |
src_width, |
|
|
size_t |
src_height, |
|
|
uint8_t * |
dst_buf, |
|
|
size_t |
dst_width, |
|
|
size_t |
dst_height |
|
) |
| |
Resize an 24-bit per pixel frame by subsampling the pixels horizontally/vertically.
- Parameters
-
src_buf | Input buffer to resize |
src_width | Width of the input in number of pixels. |
src_height | Height of the input in number of pixels. |
dst_buf | Output buffer in which the stretched/compressed is stored. |
dst_width | Width of the output in number of pixels. |
dst_height | Height of the output in number of pixels. |
◆ mpix_resize_frame_raw8()
void mpix_resize_frame_raw8 |
( |
const uint8_t * |
src_buf, |
|
|
size_t |
src_width, |
|
|
size_t |
src_height, |
|
|
uint8_t * |
dst_buf, |
|
|
size_t |
dst_width, |
|
|
size_t |
dst_height |
|
) |
| |
Resize an 8-bit per pixel frame by subsampling the pixels horizontally/vertically.
- Parameters
-
src_buf | Input buffer to resize |
src_width | Width of the input in number of pixels. |
src_height | Height of the input in number of pixels. |
dst_buf | Output buffer in which the stretched/compressed is stored. |
dst_width | Width of the output in number of pixels. |
dst_height | Height of the output in number of pixels. |