Commit Graph

137 Commits

Author SHA1 Message Date
Martin Pulec
2db2a73803 resize cap. f.: replace opencv.hpp -> imgproc.hpp
Replaced generic opencv.hpp with imgproc.hpp - the former one includes
dependencies on headers that may not be available (at least U18.04 has
this header in -core but references also non-core components).
2022-10-21 12:18:58 +02:00
Martin Piatka
871147c075 cap_filter/preview: Use get_temp_dir() 2022-09-13 13:54:22 +02:00
Martin Pulec
ecba764e57 moved libavcodec_common to libavcodec/lavc_common 2022-08-18 11:20:38 +02:00
Martin Pulec
65557d112d get rid of rang.hpp dependency through color_out.h
Removed indirect dependency on rang.hpp through color_out.h. Now only
remaining dependencies on rang.hpp are direct.

+ fixed escape sequence for foreground magenta
2022-08-17 17:24:34 +02:00
Martin Piatka
291483c156 preview: "key" parameter to support multiple instances
... without specifying full path
2022-08-16 09:59:59 +02:00
Martin Piatka
27af581e1d capture preview: Fix hang on exit if socket doesn't exist 2022-08-16 09:56:33 +02:00
Martin Piatka
3257e5a036 capture preview: Allow escaping of ':' in config 2022-08-16 09:56:32 +02:00
Martin Pulec
0d793a0836 matrix.c: avioid multiple evaluation
same as previous commit
2022-08-11 12:10:56 +02:00
Martin Pulec
6b28716d30 replaced MIN/MAX with CLAMP 2022-08-11 12:10:56 +02:00
Martin Pulec
34eb23cb12 Added "color" capture filter and postprocess
The motivation for this filter currently is to measure compression
latency in UltraGrid, eg.:

    uv  --verbose=+timestamps --capture-filter color -t testcard:pattern=gray \
     -d dummy -p color [-c libavcodec]
2022-08-05 16:11:46 +02:00
Martin Pulec
2e424d50ca replaced instances of color_out with color_printf
+ reindent vidcap/file help ("where" keyword)
2022-08-04 14:07:45 +02:00
Martin Piatka
d3b66af4c2 cap_filter/preview: Add help 2022-06-24 13:40:23 +02:00
Martin Piatka
10b2cd4066 cap_filter/preview: Switch to unix socket based ipc 2022-06-24 13:40:23 +02:00
Martin Pulec
afaccbb3e4 capture_filter/display: fixed a leak
fixes CID 395233
2022-06-21 10:21:32 +02:00
Martin Pulec
d19f6a5329 display cap. f.: use decoder if needed
Use decoder if display doesn't natively support the pixel format.
2022-06-01 11:22:01 +02:00
Martin Pulec
474c4dd7cc added display capture filter 2022-06-01 11:22:00 +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
0fd508cfb8 video_codec.c: rename get_pf_block_size->bytes
Renamed get_pf_block_size to get_pf_block_bytes.
2022-05-24 10:31:27 +02:00
Martin Piatka
f557dd4028 resize_utils: Ignore opencv warnings 2022-03-22 15:49:11 +01:00
Martin Pulec
a73168960f Capture filt.: added help where missing + hide some
Added usage to modules where was missing + hide some modules (preview,
none) that are not useful from command line.
2022-01-18 11:34:50 +01:00
Martin Pulec
1b2d05ce27 Capture filter: pass "" as opts if none given
Pass "" as opts if none given on command line.

This is also consistent with other parts (eg. video capture, compress)
and it reduces some complexity from modules.

Some modules needed to be fixed.
2022-01-18 10:41:37 +01:00
Martin Pulec
1b3b27eb7c Updated copyright dates for modified files 2021-11-08 15:43:14 +01:00
Martin Pulec
f49012c9a1 Added disrupt (jitter) capture filter
For debugging only.
2021-09-14 08:40:03 +02:00
Martin Pulec
c35083fa91 Suppress clang warnings 2021-09-08 08:25:10 +02:00
Martin Pulec
f584b6ed53 Mark some warnings in headers
Setting pragma explicitly to warning allows user to compile with -Werror
without errors induced by headers.
2021-08-10 09:07:18 +02:00
Martin Pulec
f2814cf3dd Replaced some occurences of default {r,g,b}-shifts
Replaced only those occurences that are implicitly default.
2021-08-09 14:33:03 +02:00
Martin Piatka
eab94c12c0 Remove some unused includes
Removes some unused includes reported by include-what-you-use
2021-06-08 15:22:25 +02:00
Martin Pulec
4aaec8f7f0 Fixed some Coverity warnings 2021-02-23 15:00:58 +01:00
Martin Piatka
3660b4006e Every capture filter: Special case to discard all frames 2020-09-21 12:51:30 +02:00
Martin Pulec
150ac8a714 Adapt some more capture filters as vo pp
Adapt those capture filters where it makes sense to postprocessors.
2020-08-13 16:25:21 +02:00
Martin Pulec
27cee0338f Resize cap. f.: added vo pp wrapper 2020-08-13 14:16:34 +02:00
Martin Pulec
32a9bc0442 Gamma cap. f.: added vo pp wrapper 2020-08-12 15:54:05 +02:00
Martin Pulec
85d339fede Matrix cap. f.: added vo pp wrapper 2020-08-12 15:54:05 +02:00
Martin Pulec
113f791c43 Change_pixfmt cap. f.: use cap. f. vo pp wrapper 2020-08-12 15:54:05 +02:00
Martin Pulec
437b921375 Matrix cap. f.: prevent overflow on incorrect input 2020-07-21 13:04:41 +02:00
Martin Pulec
6733a83a7a Matrix cap. f.: option to disable bound checking 2020-07-14 13:55:05 +02:00
Martin Pulec
88fd2f3c05 Matrix cap. f.: avoid under/overflows 2020-07-13 11:36:22 +02:00
Martin Pulec
843d7bebe1 Gamma: allow depth conversion 2020-06-24 14:17:44 +02:00
Martin Pulec
649f615dfb Resize: fixed a c&p error causing a crash 2020-06-24 09:14:22 +02:00
Martin Pulec
aab4f61de6 Gamma cap. f.: run in parallel 2020-06-03 16:21:29 +02:00
Martin Pulec
ef402f3261 Capture filters: fixed header 2020-06-01 16:09:55 +02:00
Martin Pulec
275049f491 Matrix cap. f.: support for 16-bit RGB 2020-05-28 15:58:47 +02:00
Martin Pulec
a93b17a80c Gamma: support for 16-bits 2020-05-28 12:26:45 +02:00
Martin Pulec
08959b7752 Gamma small name fix 2020-05-26 19:56:40 +02:00
Martin Pulec
634e1230b2 Added change_pixfmt cap. f. 2020-05-26 19:56:24 +02:00
Martin Pulec
ce245ee424 Added gamma cap. f. 2020-05-25 18:04:52 +02:00
Martin Pulec
df856a6bb0 Renamed transform cap. f. to matrix 2020-05-25 18:04:52 +02:00
Martin Pulec
db2148db95 Transform cap f.: sustract forgotten offsets 2020-05-22 22:09:22 +02:00
Martin Pulec
3590af40b0 Added transform capture filter
Performs matrix transformation on input pixels.
2020-05-22 14:07:50 +02:00
Martin Pulec
948d22bfa8 Logo cap. f.: separate PAM reading to header
+ added simple writer that may be useful
2020-05-13 13:22:21 +02:00