◆ image_pattern_uv_plane()
| image_pattern_uv_plane::image_pattern_uv_plane |
( |
string const & | y_lvl | ) |
|
|
inlineexplicit |
◆ fill()
| enum generator_depth image_pattern_uv_plane::fill |
( |
int | width, |
|
|
int | height, |
|
|
unsigned char * | data ) |
|
inlineoverrideprivatevirtual |
- Return values
-
| bit | depth used by the generator (either 8 or 16) |
Implements image_pattern.
Definition at line 400 of file video_pattern_generator.cpp.
400 {
401 assert(width > 1 && height > 1);
402 auto *ptr = reinterpret_cast<uint16_t *>(data);
405 for (int j = 0; j < height; j += 1) {
406 for (int i = 0; i < width; i += 1) {
407 uint16_t uyva[4];
408 uyva[0] =
LIMIT_LO(16) + i * scale_cbcr / (width - 1);
410 uyva[2] =
LIMIT_LO(16) + j * scale_cbcr / (height - 1);
411 uyva[3] = 0xFF'FF;
413 ptr += 3;
414 }
415 }
417 }
#define LIMIT_HI_CBCR(depth)
decoder_t get_decoder_from_to(codec_t in, codec_t out)
@ RG48
16-bit RGB little-endian (RlRhGl...)
@ Y416
interleaved little-endian YCbCr 4444 16-bit - UYVA
References bits16, DEFAULT_B_SHIFT, DEFAULT_G_SHIFT, DEFAULT_R_SHIFT, get_decoder_from_to(), LIMIT_HI_CBCR, LIMIT_LO, RG48, Y416, and y_level.
◆ y_level
The documentation for this class was generated from the following file: