Anton Khirnov
31c51f7441
avpacket: add a function for wrapping existing data as side data
2015-12-06 10:22:18 +01:00
Anton Khirnov
b09ad37c83
h264: derive the delay from the level when it's not present
...
Fall back to maximum DPB size if the level is unknown.
This should be more spec-compliant and does not depend on the caller
setting has_b_frames before opening the decoder.
The old behaviour, when the delay is supplied by the caller setting
has_b_frames, can still be obtained by setting strict_std_compliance
below normal.
2015-12-06 09:43:52 +01:00
Anton Khirnov
792b9c9dfc
h264: set frame_num in start_frame(), not decode_slice_header()
...
That is a more appropriate place for it, since it is not allowed to
change between slices.
2015-12-06 09:43:45 +01:00
Anton Khirnov
741b494fa8
h264: eliminate default_ref_list
...
According to the spec, the reference list for a slice should be
constructed by first generating an initial (what we now call "default")
reference list and then optionally applying modifications to it.
Our code has an optimization where the initial reference list is
constructed for the first inter slice and then rebuilt for other slices
if needed. This, however, adds complexity to the code, requires an extra
2.5kB array in the codec context and there is no reason to think that it
has any positive effect on performance. Therefore, simplify the code by
generating the reference list from scratch for each slice.
2015-12-06 09:42:39 +01:00
Anton Khirnov
e7078e842d
hevcdsp: add x86 SIMD for MC
2015-12-05 21:11:52 +01:00
Anton Khirnov
0cef06df07
checkasm: add HEVC MC tests
2015-12-05 21:11:21 +01:00
Anton Khirnov
a853388d2f
hevc: change the stride of the MC buffer to be in bytes instead of elements
...
Currently, the frame stride is passed in bytes, while the MC buffer size
is in int16_t elements, This can be confusing, so pass both strides in
bytes.
2015-12-05 21:11:12 +01:00
Anton Khirnov
688417399c
hevcdsp: split the pred functions by width
...
This should allow for more efficient SIMD.
2015-12-05 21:10:41 +01:00
Anton Khirnov
818bfe7f0a
hevcdsp: split the epel functions by width
...
This should allow for more efficient SIMD.
2015-12-05 21:09:57 +01:00
Anton Khirnov
1f821750f0
hevcdsp: split the qpel functions by width instead of by the subpixel fraction
...
This should allow for more efficient SIMD.
Keep the C versions as they are now, to allow the compiler to inline the
interpolation coefficients.
2015-12-05 21:08:04 +01:00
Luca Barbato
6788baebb3
log: Use a do {} while (0) for dlog
...
Avoid the warning `-Wempty-body`.
2015-12-05 13:47:09 +01:00
Luca Barbato
7d36474d19
imgconvert: Re-enable the deprecation warnings
...
The end-marked was typoed in
f7edcac040
2015-12-05 13:31:38 +01:00
Luca Barbato
f7edcac040
avpicture: Suppress warning from deprecated code
2015-12-05 13:12:27 +01:00
Luca Barbato
b805482b1f
aac: Provide more information on the failure message
...
Bug-Id: 761
2015-12-05 13:11:36 +01:00
Luca Barbato
c5eb279e24
g723: Add missing header
...
Unbreak make check.
2015-12-05 12:12:26 +01:00
Martin Storsjö
1077d8c845
configure: Add -framework CoreVideo when building the avfoundation indev
...
This fixes builds with --disable-vda, which previously failed with
undefined references to CVImageBuffer* and CVPixelBuffer* functions.
Signed-off-by: Martin Storsjö <martin@martin.st>
2015-12-03 14:28:12 +02:00
Kylie McClain
bf12a81cc6
configure: Replace pr
since it is not provided by busybox
...
While pr is a valid POSIX.1 command, its usage in configure
is a little borderline and is possible to replace it with
printf.
Bug-Id: 913
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-12-02 23:49:10 +01:00
Luca Barbato
5f3a081b42
avi: Spin out the logic to position to the next non-interleaved stream
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-12-02 23:49:10 +01:00
Luca Barbato
cb49bb10ca
build: Move -Wcast-qual to the extra_warnings
...
It amounts to about 1/2 of the warnings generated and does not help
spotting anything useful.
2015-12-02 23:49:10 +01:00
Michael Niedermayer
0fc61c6ab6
avi: Validate the stream-id for DV as well
...
Avoid false positives while syncing.
Bug-Id: ffmpeg/4086
Bug-Id: 879
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-12-02 23:49:10 +01:00
Luca Barbato
d017ed878a
avi: Use the correct data type
...
avio_tell returns an int64_t.
2015-12-02 23:49:10 +01:00
Vittorio Giovara
7f57ea143c
vsrc_color: Drop unneeded variable
...
Bug-Id: CID 1339818
2015-11-30 10:58:46 -05:00
Mohamed Naufal
ca5f386e75
lavf: G.723.1 muxer
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-30 10:58:46 -05:00
Mohamed Naufal
f023d57d35
lavc: G.723.1 encoder
...
Additional improvements by Michael Niedermayer <michaelni@gmx.at>.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-30 10:58:46 -05:00
Vittorio Giovara
165cc6fb9d
g723_1: Move sharable functions to a separate file
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-30 10:58:45 -05:00
Vittorio Giovara
aac996cc01
g723_1: Rename files to better reflect their purpose
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-30 10:58:45 -05:00
Michael Niedermayer
b74b88f30d
g723_1: Handle values at the ends of the table in lsp2lpc()
...
Fixes out of array reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-30 10:58:45 -05:00
Luca Barbato
a0fa6d06b8
matroska: Warn when metadata references a non-existent element
...
Avoid some confusion when the information is not present.
Bug-Id: 902
2015-11-28 17:02:15 +01:00
Luca Barbato
f7986239f4
dvenc: Validate the frame size before copying it
2015-11-28 17:02:15 +01:00
Petri Hintukainen
7139489c45
pgssubdec: fix API compability layer
...
Copy pointers to AVPicture after memory has been allocated.
Fixes NULL pointers in AVPicture after a17a766190
.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-11-26 10:55:36 +01:00
Luca Barbato
b0e8651a2a
doc: Amend the MSYS2 Documentation
...
Explain better which environment is discouraged and mention the
shortcuts names.
2015-11-26 10:55:35 +01:00
Alexandre Lision
4f979418c7
avfoundation: Simple capture
...
Originally based on the capture written by
Thilo Borgmann <thilo.borgmann@mail.de>.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-11-26 10:55:28 +01:00
Luca Barbato
9f57f134c1
configure: ObjC support
...
Assume that the default C compiler and the default ObjC compiler match
(default for OSX).
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-11-26 10:39:15 +01:00
Luca Barbato
0e2395293b
nut: Mark non-fatal errors as warnings
...
And make one more informative.
2015-11-25 09:01:25 +01:00
Luca Barbato
62f72b40c0
nut: Provide more information on failure
2015-11-25 09:01:25 +01:00
Luca Barbato
2c17fb61ce
rtsp: Log getaddrinfo failures
...
And forward the logging contexts when needed.
2015-11-25 09:01:25 +01:00
Luca Barbato
12b1438286
udp: Provide additional information on getaddrinfo failure
2015-11-25 09:01:25 +01:00
Luca Barbato
34af7813f7
udp: Use the logging context
2015-11-25 09:01:25 +01:00
Luca Barbato
98063bcf15
rtsp: Do not assume getnameinfo cannot fail
...
And properly report the error when it happens.
2015-11-25 09:01:25 +01:00
Michael Niedermayer
5b70fb8fee
movenc-test: Fix integer overflows
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2015-11-24 20:57:11 +02:00
Vittorio Giovara
fdd5c48ebd
texturedsp: Explicitly cast RGBA parameters to unsigned
...
Silences warnings when using -Wshift-overflow (GCC 6+).
Found-by: James Almer <jamrial@gmail.com>
2015-11-24 09:24:48 -05:00
Vittorio Giovara
eef38316ca
texturedspenc: Avoid using separate variables
...
Use the result directly, removing an unneeded cast.
2015-11-24 09:24:39 -05:00
Vittorio Giovara
7831fb9050
textureencdsp: cosmetics: Use normal static const for tables
2015-11-24 09:24:30 -05:00
Vittorio Giovara
99cb833fc2
sgi: Correctly propagate meaningful error values
2015-11-24 09:05:01 -05:00
Vittorio Giovara
823fa70045
fate: Rework sgi tests into a suite and add the missing ones
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-24 09:05:01 -05:00
Vittorio Giovara
4a0918cae6
sgienc: Support encoding high bit depth images with RLE
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-24 09:05:01 -05:00
Vittorio Giovara
59e3f4e598
sgienc: Use a local RLE encoding function
...
SGI RLE encoding is slighlty different than the one provided by rle
module (especially at high bit depth). The pixel count function however
does not change, so it is simply made library-public.
2015-11-24 09:05:01 -05:00
Vittorio Giovara
62cc8f4d79
sgienc: Port to bytestream2
2015-11-24 09:05:01 -05:00
Vittorio Giovara
99f40fd02f
sgienc: Do not end RLE lines with 0s
...
This is never mentioned in the specifications, and decoders work
just as fine without it. Update the fate references since the compressed
file is smaller.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-11-24 09:05:01 -05:00
James Zern
4d05e9392f
libvpxenc: remove some unused ctrl id mappings
...
VP8E_UPD_ENTROPY, VP8E_UPD_REFERENCE, VP8E_USE_REFERENCE were removed
from libvpx and the remaining values were never used here
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Zern <jzern@google.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-11-23 18:38:04 +01:00