![]() |
The open imaging DSP library
|
Sampling of image pixels [EXPERIMENTAL]. More...
Functions | |
int | mpix_sample_random_rgb (const uint8_t *buf, uint16_t width, uint16_t height, uint32_t fourcc, uint8_t *dst) |
Collect a pixel at a random location from the input buffer in RGB24 format. | |
Sampling of image pixels [EXPERIMENTAL].
SPDX-License-Identifier: Apache-2.0
int mpix_sample_random_rgb | ( | const uint8_t * | buf, |
uint16_t | width, | ||
uint16_t | height, | ||
uint32_t | fourcc, | ||
uint8_t * | dst | ||
) |
Collect a pixel at a random location from the input buffer in RGB24 format.
buf | Buffer of pixels from which collect the sample. |
width | Width of the buffer in pixel. |
height | Height of the buffer in pixel. |
fourcc | Pixel format of the buffer as a Four Character Code. |
dst | Buffer for one pixel filled by this function. |