◆ gray_video_pattern_generator()
| gray_video_pattern_generator::gray_video_pattern_generator |
( |
int | w, |
|
|
int | h, |
|
|
codec_t | c, |
|
|
string const & | opts ) |
|
inline |
Definition at line 720 of file video_pattern_generator.cpp.
722 {
723 if (!opts.empty()) {
724 if (opts == "help") {
725 col() <<
"Usage:\n\t" SBOLD(
"gray[:step]") <<
" - interframe color increment (default " <<
DEFAULT_STEP <<
")\n";
726 throw 1;
727 }
729 }
734 for (
int i = 0; i <
pixels * 4; ++i) {
735 rgba[i] = (i + 1) % 4 != 0 ?
col : 0xFFU;
736 }
740
741 auto next_frame = vector<unsigned char>(
data_len);
742 for (
int y = 0; y <
height; ++y) {
745 }
746 }
747 data.push_back(std::move(next_frame));
749 }
750 }
int vc_get_linesize(unsigned int width, codec_t codec)
static constexpr int DEFAULT_STEP
vector< vector< unsigned char > > data
void testcard_convert_buffer(codec_t in_c, codec_t out_c, unsigned char *out, unsigned const char *in, int width, int height)
@ RGBA
RGBA 8-bit, big-endian.
int get_pf_block_bytes(codec_t codec)
returns codec_info_t::block_size_bytes
int get_pf_block_pixels(codec_t codec)
returns codec_info_t::block_size_pixels
#define MAX_PFB_SIZE
maximal pixfmt block size (R12L - 8 B)
References step.
◆ get_next()
| char * gray_video_pattern_generator::get_next |
( |
| ) |
|
|
inlineoverridevirtual |
◆ color_spec
| codec_t gray_video_pattern_generator::color_spec |
|
private |
◆ cur_idx
| int gray_video_pattern_generator::cur_idx = 0 |
|
private |
◆ data
| vector<vector<unsigned char> > gray_video_pattern_generator::data |
|
private |
◆ data_len
◆ DEFAULT_STEP
| int gray_video_pattern_generator::DEFAULT_STEP = 1 |
|
staticconstexprprivate |
◆ height
| int gray_video_pattern_generator::height |
|
private |
◆ step
◆ width
| int gray_video_pattern_generator::width |
|
private |
The documentation for this struct was generated from the following file: