Commit Graph

33 Commits

Author SHA1 Message Date
Martin Pulec
21129d7fcb image generators: unified initialization
- either nothing or string passed to constructor
- disallowed omitting "blank" when color with "blank=<color>" given
2022-08-15 15:12:54 +02:00
Martin Pulec
edad146aeb added testcard pattern uv_plane 2022-08-15 15:11:57 +02:00
Martin Pulec
6e3133a6e6 image generator: help updated
highlight pattern names + use new color API
2022-08-15 15:10:40 +02:00
Martin Pulec
04c2d245d0 fixed Win compile warnings (from CI) 2022-08-11 10:42:45 +02:00
Martin Pulec
26a739dc6b testcard gray: preinit frames
Generating frames on-fly is a bit slow.
2022-08-05 16:11:46 +02:00
Martin Pulec
e1a490b334 testcard: added gray pattern 2022-08-05 09:43:22 +02:00
Martin Pulec
76e6a824c9 still_image_video_pattern_generator: use vector
use vector instead of unique ptrs for still_image_video_pattern_generator and image_pattern.
2022-08-04 15:33:00 +02:00
Martin Pulec
85111a96c2 restructuralize video_pattern_generactor a bit
Currently only still image patterns are used, but it can be also
something else so factor out it to separate class.
2022-08-04 15:00:44 +02:00
Martin Pulec
b9ea5ec9a9 testcard: encapsulate frame sequence to video_pattern_generator
Get every frame from video_pattern_generator, i. e. every frame, not
only first one.

This will allow more complex pattern than just sliding over one picture.
2022-08-04 14:32:40 +02:00
Martin Pulec
a0458aa6dd video pattern generator: finished SMPTE bars
It is not fully-conformant but the wiki description is rather vague and
it is eg. inpossible to represent a "superblack" color if we assume 0 as
a base black.
2022-07-14 15:54:22 +02:00
Martin Pulec
8f5d5b4ccd video pattern generator: fixed 7nd bar of SMPTE 2022-07-14 15:40:52 +02:00
Martin Pulec
e4f56be955 prevent dangling lambdas
Prevent dangling parameter-less lambdas. Although it may not be so dangerous
(operator() should be a plain function in the end), it is not correct.
2022-07-14 09:29:15 +02:00
Martin Pulec
c66e7de98d testcard: show "Fill rect" only if verbose 2022-06-29 09:34:04 +02:00
Martin Pulec
7b1837c668 video_codec: removed slow parameter from get_decoder_from_to 2022-05-30 15:38:48 +02:00
Martin Pulec
bd8d70195b video pattern generator: rem. hard-coded 16-b list
Use 16-bit source if there is a conversion.
2022-05-26 10:53:11 +02:00
Martin Pulec
5b0c8ca268 video pattern generator: add full-depth Y216/Y416 2022-05-25 14:47:18 +02:00
Martin Pulec
f62ec32d9d image generator: fixed typo in help 2022-05-25 14:47:18 +02:00
Martin Pulec
6aacbccdcf testcard, pattern generator: generate full-depth v210 2022-05-06 09:58:36 +02:00
Martin Pulec
20215db4b8 moved testcard_fillRect to testcard_common 2022-01-26 08:22:40 +01:00
Martin Pulec
d6ed8a8cca video_pattern_generator.cpp: use testcard_convert_buffer()
Use testcard_convert_buffer() for pixel format conversion to avoid messy
code that there has been.
2022-01-26 08:22:39 +01:00
Martin Pulec
9e555352d2 testcard2: factorized some common code to testcard_common
+ removed redundant functinos
+ relicense (there remains nothing from original code now)
2022-01-26 08:22:39 +01:00
Martin Pulec
5de79bd6be Testcard: encode full depth with R10k 2021-11-12 15:22:17 +01:00
Martin Pulec
f9890e47da Image pattern generator: fixed NL in exception explanation string
Standard exceptions (eg. from stol) doesn't have newlines in what() so
do not pass it with custom ones but print it in the handler.
2021-11-12 09:57:36 +01:00
Martin Pulec
81bb2d7397 Image pattern generator: simplified a bit 2021-11-12 09:54:46 +01:00
Martin Pulec
e2bedca34d Image pattern generator: fixed gradient2
- "gradient" is prefix of "gradient2" and the first was checked earlier
  thus gradient2 was never selected
- incorrect check for boundaries with min instead of max
2021-11-12 09:38:15 +01:00
Martin Pulec
a2593b0a8a SMPTE bars: fixed column count
Smpte bars doesn't have the eight colum as EBU has.

Moreover the pattern is not complete - the bottom third contains
different data - mention this in help + todo.
2021-10-14 10:52:49 +02:00
Martin Pulec
19e4110e6b Image pattern generator: use enum to indicate bit depth 2021-10-14 10:52:48 +02:00
Martin Pulec
cfe793a23b Image pattern generator: adapt EBU bars gen also for SMPTE 2021-10-14 10:52:48 +02:00
Martin Pulec
2b47dd4acd Image pattern generator: added EBU bars 2021-10-14 10:52:48 +02:00
Martin Pulec
5b1084e8b8 video_pattern_generator.cpp: noise - make it uniformly distributed 2021-09-14 08:40:00 +02:00
Martin Pulec
b23736770b Added image_pattern_raw
Added raw image data generator that user can use to provide raw image
data that won't be color-converted. This could be useful eg. for testing
out-of-range YUV values.
2021-06-16 12:27:14 +02:00
Martin Pulec
c0a17534cc Fixed newly detected Coverity issues 2021-05-20 11:04:52 +02:00
Martin Pulec
af05b44fcf Separated pattern generator from testcard
Note: currently depends on testcard_common so it was moved as a core
object.
2021-05-05 09:00:58 +02:00