Commit Graph

16 Commits

Author SHA1 Message Date
Martin Pulec
507a419bb1 Libavcodec common: return print_decoder_error
Needed by audio libavcodec, if linking with the object, there would be
needed to link also with VDPAU which doesn't look fortunate.
2019-10-31 09:56:03 +01:00
Martin Pulec
a6dd67032b Libavcodec common: moved functions from hdr to src 2019-10-23 09:54:57 +02:00
Martin Pulec
06b521f2d0 Libavcodec common: UV<->AV pixfmt conversion funcs
Use form UV<->AV pixfmt conversions functions rather than the C++ map in
order to maintain compatibility with C code.
2019-10-22 13:46:06 +02:00
Martin Pulec
763d354794 Lavc: moved UG<->libav codec map to common 2019-10-21 13:49:23 +02:00
Martin Pulec
72f0f59582 Libavcodec: fixed gbrp12le compat
The condition was reversed.

+ compile the conversions only if used (i. e. when the pixfmt is
  supported by FFMPEG)
2019-10-07 18:28:54 +02:00
Martin Pulec
9e9e77e135 Libavcodec common: do not export API of convs
Mark conversion functions as static and remove from header.
2019-10-07 18:28:51 +02:00
Martin Pulec
294041f60b Libavcodec common: don't include conv list in header
Do not include conversion lists in header - it adds dependency on the
libavcodec_common.c file to every module that (transitively) includes
the header (eg. GL) which results in undefined references with modular
build.
2019-10-03 16:57:54 +02:00
Martin Pulec
8a6674d516 Libavcodec common: fixed version check 2019-09-25 08:36:13 +02:00
Martin Pulec
de00f170eb Added r10k_to_bgr0 2019-09-23 14:23:31 +02:00
Martin Pulec
f3f59bc664 Lavc: GBR is not BGR (fixed conversions) 2019-08-08 13:18:45 +02:00
Lukas Rucka
babdb79239 COMPAT: compile even with antique version of ffmpeg/libavcodec 2019-07-23 16:01:01 +02:00
Martin Piatka
55bc7d3f82 lavc: Add r10k to yuv422p10le conversion 2019-06-20 12:17:37 +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