Commit Graph

206 Commits

Author SHA1 Message Date
Martin Pulec
1de5447c52 fix 2 Win warnings (Delta + cf/noise) 2025-11-03 16:48:42 +01:00
Martin Pulec
3a108863e6 cf/noise,vcap/testcard2: decrease noisiness
The original noisiness 30 seem to be too much to be default - with default
compression JPEG or H.264 it produces high-bitrate stream. The new value
200 may better approximate real-life complexity video.
2025-09-26 15:49:37 +02:00
Martin Pulec
ffaeadb737 add vcf/noise
Similar idea as "noise" in testcard2 (to add entropy for compression
testing when using artificial source).
2025-09-17 10:44:44 +02:00
Martin Pulec
02cefe8fd0 vo_cf/flip: remove swscale
added errorneously by IWYU
2025-08-27 12:12:26 +02:00
Martin Pulec
6a91cf000e add vo_cf/temporal_3d 2025-08-07 08:57:48 +02:00
Martin Pulec
03d4d69dbb capture_filter/*: IWYU 2025-08-07 08:39:19 +02:00
Ben Roeder
a62fe80c3f Fix spelling errors throughout codebase
Corrected various spelling mistakes in comments, documentation, and
variable names across the project. Changes include:
- Documentation files (CONTRIBUTING.md, README.md, etc.)
- Source code comments in C/C++ files
- Function parameter names and descriptions

No functional changes were made.
2025-06-01 18:03:40 +01:00
Martin Pulec
abc30c2be9 PAM: rename depth to ch_count
The depth (DEPTH field of PAM) is actually channel count, which may be
slightly misleading - use rather ch_count instead.
2025-02-18 16:58:08 +01:00
Martin Pulec
abd758241a debug: move some stuff to utils/debug
The rationale is to separate the config.h-dependent stuff to a separate
file to eliminate the need to transitively include config.h.

+ fix the files that need config.h directly to include it
2024-11-28 11:46:09 +01:00
Martin Pulec
2bb1ad97ac vcap/preview vdisp/unix_sock: use path rel to src/
see the previous commit
2024-11-14 11:54:19 +01:00
Martin Pulec
d693e74068 vcapf,vopp/matrix2: supp fmts converted over Y416
+ do not print the BT.601 hint if matrix with 601->709 conv used
2024-10-03 15:13:37 +02:00
Martin Pulec
f08f56f6b5 vcapf,vopp/matrix: hint to use matrix2 + improve
Hint to use matrix2 - matrix (1) is somehow special, especially when
handling UYVY that is handled (historically) very unorthodoxly - after
matrix applied, marked as RGB (YUV expanded to 4:4:4).

also improved including (IWYU)
2024-10-03 15:13:37 +02:00
Martin Pulec
7db0b8dfc9 added matrix2 capf/vopp
Matrix (1) doesn't seem to be generic enough in case of UYVY.

THe aim is, among others, last resort fix of the BT.601 problem when
got from QSV compression and no YCbCr->RGB conversion took place.
2024-10-03 15:13:35 +02:00
Martin Pulec
671b188013 change_pixfmt: added buffer padding
Pixelformat conversion suppose buffers with additional padding to handle
"odd" resolutions that doesn't match the pixfmt native block
size. Eg. this change fixes:
```
uv -t testcard:codec=R12L:size=1922x1080 -d gl -p change_pixfmt:RG48
```
2024-08-30 15:49:05 +02:00
Martin Pulec
493033ee53 change_pixfmt: fixed including 2024-08-27 10:36:38 +02:00
Martin Pulec
2ec634bbfa added magic to change_pixfmt and cf/vo_pp wrap. 2024-08-27 10:31:04 +02:00
Martin Pulec
4b12d3c376 vo_pp/change_pixfmt.c: report convertible codecs
Properly report codecs that we can accept on input. If not reported,
the display native codecs were reported, which is not correct in general
(although may work in some cases).
2024-08-27 10:29:11 +02:00
Martin Pulec
d65df35c8f vo_postprocess_cf_wrapper: get_property callback
Allow setting the get_property callback that can be specified for
vo_postproess filters. This is optional for the wrapper - if set to
nullptr, false will be always returned as until now.
2024-08-27 09:38:03 +02:00
Martin Pulec
b1d5309a81 vcf/logo: CID 467080 fix
Fixed the Coverity complaint by keeping the behavior of "doing nothing" with
the frame while passing it unchanged. It may also return nothing, as it was
doing for the short time - this seems to be inferior in cases when the input
changes from supported to unsupported, this would cut-off the picture eniterely,
not just the logo.
2024-08-14 11:28:11 +02:00
Martin Pulec
98f8e31c0b vcf/logo: replace assert with error messages
If either encoder or decoder is not found, print the error message rather
than crashing with abort().

refer to GH-403
2024-08-02 16:50:09 +02:00
Martin Pulec
04fe6be014 vcf/logo: include needed headers
do not use config*h
2024-08-02 16:45:08 +02:00
Martin Pulec
e494106bba moved strdupa from compat/misc to strings
\+ missing include guard
2024-06-12 14:26:34 +02:00
Martin Pulec
756d9ee42a resize_utils.cpp: return config.h
It is required in CentOS 7 the macro HAVE_OPENCV2_OPENCV_HPP to be
defined.
2024-01-30 11:31:26 +01:00
Martin Pulec
c1c099c64a CI ARM Linux: disable INTER_LINEAR_EXACT
OpenCV in Buster (Linux armhf build) doesn't have
INTER_LINEAR_EXACT. Similarly to INTER_NEAREST_EXACT, this doesn't seem
to be necessary so enable it for now (althoug compat macros should be
possible as well).
2024-01-23 09:52:07 +01:00
Martin Pulec
e74f100d5d fixed CID 434949 2024-01-16 09:01:26 +01:00
Martin Pulec
6ff7d1e347 resize: fixed missing NEAREST_EXACT in U20.04 2024-01-11 16:47:38 +01:00
Martin Pulec
3423636c41 resize: fixed clang-tidy complains 2024-01-11 16:47:38 +01:00
Martin Pulec
3425746ed7 resize: accept also decimal point resize factor 2024-01-11 16:47:38 +01:00
Martin Pulec
3996ed6d8a resize: print autoselected interpolation algorithm
\+ fixed mapping "nearest_exact" (was mapped to INTERNEAREST)
2024-01-11 16:47:37 +01:00
Martin Pulec
bfd34006d0 resize: refactor + simplified
Expose the struct with parameters passed to acutal resize than passing
individual parameters.

\+ measure duration also for resize defined with a ratio (only if DEBUG
is specified)
2024-01-11 16:47:37 +01:00
Martin Pulec
7e46764e87 resize cap. f.: support for algorithm spec 2024-01-11 14:59:05 +01:00
Martin Pulec
36b0b01d5b resize: moved opt parsing to parse_fmt 2024-01-11 11:53:05 +01:00
Martin Pulec
0cfdd0f2af resize_utils: removed unneeded config.h 2024-01-11 10:11:36 +01:00
Martin Pulec
866ba7e586 resize_utils: return config.h include
Removed 2023-11-02 by commit 818e7624, but it is actually required for
the HAVE_OPENCV2_OPENCV_HPP macro.
2023-11-20 09:02:06 +01:00
Martin Pulec
d1a8e93f0b resize: simplified a bit
Generalized handling a bit - there are only 2 cases in general - output
is 16 bit (if resize input is /eg. converted/ RG48) or 8 bit RGB.
2023-11-13 16:48:22 +01:00
Martin Pulec
4c2778b397 resize cap. f.: support for conversions 2023-11-13 16:48:17 +01:00
Martin Pulec
05d73fb5d0 resize: removed enforcing interlacing option
It is unneeded now, since `override_fps` capture filter and postprocess
is present and so it is slightly unsystematic here.
2023-11-13 10:27:10 +01:00
Martin Pulec
818e76247e resize cap. f.: support for RG48 2023-11-13 10:27:10 +01:00
Martin Pulec
41ad20d13d resize_utils: small rebase 2023-11-13 10:27:10 +01:00
Martin Pulec
a57124f174 resize cap. f.: print error on unsupp codec
Print error on unsupported codec instead of crashing on abort.
2023-11-13 10:27:10 +01:00
Martin Pulec
56582cd614 resize cap. f.: moved reconf to fn
\+ use logger for reconfigure notice
2023-11-13 10:27:10 +01:00
Martin Pulec
1994a02ecf resize utils: abort on unsupported codecs
Continuing would cause abort anyways in CV calls, because the empty
(error) return value is not handled in any way.
2023-11-13 10:27:09 +01:00
Martin Pulec
84f827d4cb resize_utils: return void
Actually no error is handled except of wrong usage (passing NULL in/out
pointers). As the functions are used just from one place, the caller
should take responsibility that this won't happen.
2023-11-13 10:27:09 +01:00
Martin Pulec
9dae59dc5f resize cap f.: color help
\+ removed config_*h includes
2023-11-13 10:27:09 +01:00
Martin Pulec
c14ad5f95e pixfmt_conv.h: small doxy update
\+ added some direct pixfmt_conv.h includes (in attempt to remove its
inclusion from video_codec.h, which finally didn't take place but still
it is better to include this directly)
2023-11-13 10:27:09 +01:00
Martin Pulec
4734c9e983 removed few next rang.hpp uses 2023-09-19 13:47:11 +02:00
Martin Pulec
2f995895c8 rename indent_paragraph to wrap_paragraph
More suitable name - the function doesn't indent but just wraps long
lines.
2023-09-15 15:36:41 +02:00
Martin Pulec
15d0f4ae55 removed capture_filter none
This capture filter is never initialized now (if none capture filter is
given, empty list of capture filters is used).
2023-08-09 16:08:30 +02:00
Martin Pulec
3639d00dbf replaced not thread-safe *rand48 functions
Use rand_s() in Windows and random() in POSIX systems.
2023-08-02 10:07:19 +02:00
Martin Pulec
0658f483d0 supressed capture_filter wrapper Coverity issues
All are false positive provided that the wrapped capture filter correctly
sets its `dispose` callback.
2023-07-26 09:50:44 +02:00