Commit Graph

2357 Commits

Author SHA1 Message Date
Martin Pulec
0884709c2a Missing header in utils/thread.c
Caused crash in macOS because of implicit function declaration.

+ added -Werror for this warning
2019-06-26 13:53:12 +02:00
Martin Pulec
087d9242cd Control socked: fixed socklen 2019-06-26 13:27:41 +02:00
Martin Piatka
55bc7d3f82 lavc: Add r10k to yuv422p10le conversion 2019-06-20 12:17:37 +02:00
Martin Piatka
929e1f8fc2 lavc: swscale support 2019-06-20 12:17:37 +02:00
Martin Piatka
114de14720 lavc: Replace assert with error message.
In some cases (forcing pix_fmt using lavc-use-codec) it was possible to reach
the assert.
2019-06-20 12:17:37 +02:00
Martin Pulec
50a6fe615f Missing sstring includes 2019-06-19 16:44:20 +02:00
Martin Pulec
c29a3cbe82 Video decoder: typo 2019-06-19 16:44:20 +02:00
Martin Pulec
41bd8c580a Video codec: Cineform isn't inter-frame, AV1 is 2019-06-19 16:44:20 +02:00
Martin Pulec
997862ad3e Optimalizations for video_codec.c
- compile with -Ofast
- use restricted pointers for vc_copyline functions
- use a vectorizable for-loop
- small fixes - in vc_copylineR12LtoRGB was not decoded last few pixels
  and in copylineYUVtoRGB was out-of-bound access (not likely, only if
  output dst_len was not divisible by 6)
2019-06-19 16:43:11 +02:00
Martin Pulec
79e90e6501 Libavcodec: toggle optimalizations + params restrict
Note: C99 restrict cannot be used because restrict is not a keyword in
C++. __restrict__ or __restrict can be used (the later is supported also
by MSVC).

+ rename min/max macro
2019-06-18 14:59:20 +02:00
Martin Pulec
6b1cf9c2b5 Libavcodec conversions: rename 2019-06-18 14:59:20 +02:00
Martin Pulec
81f7b632d6 Libavcodec: moved conversions to a separate file 2019-06-18 14:59:20 +02:00
Martin Pulec
4423ea6a03 Lavc: rename conversion functions 2019-06-18 14:59:20 +02:00
Martin Pulec
4b7ea06328 GPUJPEG: Fixed decoding to RGBA 2019-06-18 14:59:04 +02:00
Martin Pulec
81ee60e056 CMPTO J2K: fixed RGBA with non-standard comp shifts 2019-06-18 14:46:03 +02:00
Martin Pulec
ca5354e1f3 CMPTO J2K: added/fixed BGR
RGB with {r,g,b}shift doesn't make sense, use BGR instead.
2019-06-18 14:45:58 +02:00
Martin Pulec
f05667c79d CMPTO_J2K: Fixed decoder returning NULL if error
When J2K decoder returned NULL and sets error, the error was processed
first while the NULL might have still been a poison pill.
2019-06-18 14:45:50 +02:00
Martin Pulec
c45924eb8a Every cap. filter: fixed wrong command order 2019-06-17 10:56:37 +02:00
Martin Pulec
1c8e70e93e DeckLink disp.: improved help 2019-06-14 08:55:07 +02:00
Martin Pulec
9438d20181 DeckLink: multiple changes
* replaced the duplex option with the profile
* half-duplex remains to allow user to use a profile with the maximal
  number of independent IOs
* prefixed DEFAULT and KEEP macros with BMD_OPT_ + moved to common hearder
* added bmd_read_fourcc() and use wherever possible (some of previous
  implementations had incorrectly used max instead of min for memcpy and
  didn't zero-initialized the union)
2019-06-14 08:55:07 +02:00
Martin Pulec
f625f8529f DeckLink: correctly set duplex mode for quad-link
Correctly set the duplex mode for quad-link (implies
bmdProfileOneSubDevicesHalfDuplex).

* changed the duplex options
+ slightly modified usage
2019-06-14 08:55:07 +02:00
Martin Pulec
4151df3d90 DeckLink disp.: print used device
+ moved the common code for querying name to a common file
2019-06-14 08:55:07 +02:00
Martin Pulec
920c9c3c0b Sanitize input of audio capture format 2019-06-14 08:55:07 +02:00
Martin Piatka
4313a10b49 Lavc: Set intra-refresh and gop_size for x265 using x265-params 2019-06-14 08:55:07 +02:00
Martin Pulec
828ed95873 JPEG: incorrectly used #ifdef 2019-06-14 08:55:07 +02:00
Martin Pulec
8a45c78314 Fixed warnings
- added (const char *) attribute to param_u union to avoid casting away
  const warnings
- added also (const void *) and (volatile void *) for the rest
- there was a typo in computing requested_mtu causing violating sequence
  point evaluation order
- alsa_get_pcm_state_name: added attribute unused
- audio/utils.cpp: different signdness
- audio/utils.cpp: different signdness
- split capture filter: useless dispose_frame
- video_compress: not copying whole string (with strncpy)
2019-06-14 08:55:07 +02:00
Martin Pulec
352518a4f2 Added option to list available video codecs 2019-06-14 08:55:07 +02:00
Martin Pulec
863cf1111e Added option to list available pixfmts 2019-06-14 08:55:07 +02:00
Martin Pulec
6ae4c6e1ca Lavc: allow UG pix fmt to force 2019-06-14 08:55:07 +02:00
Martin Pulec
d2bc11d5cd Lavd: added conversion from AV_PIX_FMT_P010LE
Cuvid may use this format (NVENC uses it).
2019-06-14 08:55:07 +02:00
Martin Pulec
8660bda2ca Video codec: added R12L->RGB conversion 2019-06-14 08:55:07 +02:00
Martin Pulec
5deed4760d Lavd: fixed decoding of VP9
VP9 stopped working with probing. It is perhaps because some data
remained in decoder causing an EAGAIN error (waiting for a read).
2019-06-14 08:55:07 +02:00
Martin Pulec
e285a2318f Lavd: print text representation of error 2019-06-14 08:55:04 +02:00
Martin Pulec
dee943122b Lavc: support also RGBA on input 2019-06-13 14:31:28 +02:00
Martin Pulec
f560110621 CMPTO J2K dec.: modified priorities
This decoder should have lower priorities (more preferred) than
libavcodec.
2019-06-13 14:31:28 +02:00
Martin Pulec
d3debe7653 Lavd: support RG48 (for higher bit depth J2K) 2019-06-13 14:31:28 +02:00
Martin Pulec
8c04528fa0 GL: fixed printing error 2019-06-13 14:31:28 +02:00
Martin Pulec
fe1e4c8d1d Libavcodec: added support for 12-bit RGB 2019-06-13 14:31:28 +02:00
Martin Pulec
23137ca4b6 Libavcodec: added support for 10-bit RGB 2019-06-13 14:31:28 +02:00
Martin Pulec
6569548e32 Lavc: support for BGR0 and GBRP 2019-06-13 14:31:28 +02:00
Martin Pulec
b32356cd29 Lavc: support for 10-bit YCbCr with NVENC
+ fixed a warning
2019-06-13 14:31:28 +02:00
Martin Pulec
6cbdcbd82a Lavc: fixed an infinite loop 2019-06-13 14:31:28 +02:00
Martin Pulec
a14b81e41d Lavc nvenc: fallback RC is CBR 2019-06-13 14:31:28 +02:00
Martin Pulec
3caa8496e5 Lavc: fixed hard-coded UYVY BPS 2019-06-13 14:31:20 +02:00
Martin Pulec
593b0bae77 Video decoder statistics highlited 2019-06-13 14:01:50 +02:00
Martin Pulec
35703188b1 Lavc: select libx264rgb for RGB formats 2019-06-13 14:01:50 +02:00
Martin Pulec
680364d5d1 Lavc: select internal format more sensibly
Now it takes into account also codec bit depth (if offered by the
encoder).
2019-06-13 14:01:50 +02:00
Martin Pulec
79531ceacf Lavc: codec ordering to a separate function 2019-06-13 14:01:50 +02:00
Martin Pulec
fd869ea034 Lavc: table for pixfmt conversions 2019-06-13 14:01:50 +02:00
Martin Pulec
5df956826c Cmpto_j2k: support encoding from RGBA 2019-06-13 14:01:50 +02:00