![]() |
The open imaging DSP library
|
Sampling of image pixels. More...
Functions | |
int | mpix_sample_random_rgb (const uint8_t *buf, const struct mpix_format *fmt, uint8_t *dst) |
Collect a pixel at a random location from the input buffer in RGB24 format. | |
Sampling of image pixels.
SPDX-License-Identifier: Apache-2.0
int mpix_sample_random_rgb | ( | const uint8_t * | buf, |
const struct mpix_format * | fmt, | ||
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. |
fmt | Resolution of the source and destination, and format of the destination. |
dst | Buffer for one pixel filled by this function. |