| Commit message (Collapse) | Author | Age |
... | |
|
|
|
| |
Helps in decoupling this code from mpegvideo.
|
|
|
|
|
| |
Use it instead of the embedded mpegvideo one. Update init function
signature to load it directly from the callers.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
These buffers are just a way to store frame pointers and be able to
modify them without touching the original ones.
The two dependent decoders (WMV2 and VC1) do not need special care for
these fields: the former does not seem to use the dest buffers, while
the latter reinits them every time to the current frame data buffers.
So only keep a local copy rather than the one from mpegvideo.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until now, the decoding API was restricted to outputting 0 or 1 frames
per input packet. It also enforces a somewhat rigid dataflow in general.
This new API seeks to relax these restrictions by decoupling input and
output. Instead of doing a single call on each decode step, which may
consume the packet and may produce output, the new API requires the user
to send input first, and then ask for output.
For now, there are no codecs supporting this API. The API can work with
codecs using the old API, and most code added here is to make them
interoperate. The reverse is not possible, although for audio it might.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
| |
|
|
|
|
| |
This allows dropping an afterwards redundant assert.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
These macros are treated like functions, the wrapping simplifies error
checking and avoids deeply nested ifs in the following commit.
|
|
|
|
|
|
|
|
| |
The intrax8 decoding process does not imply any kind of error
resilience, and the only call present is more related to how mpegvideo
works rather than anything else.
Therefore have the parent decoders carry out er when actually needed.
|
|
|
|
| |
Avoid using multiple variables for the same purpose.
|
|
|
|
|
|
|
|
| |
* Change log level from error to debug
* Print report after the first decoded frame, not at the end of decoding
* Drop macro guard and use a context variable instead
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
|
|
|
|
| |
Deprecate the current bitstream filtering API.
|
|
|
|
|
|
|
|
| |
If chan2 is not smaller than the number of channels, it can cause
segmentation faults due to dereferencing a NULL pointer.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
The AVPacket.data should be considered read-only.
|
|
|
|
| |
av_get_token does not strip the trailing separator.
|
| |
|
|
|
|
| |
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
|
|
|
|
|
|
| |
Found-by: gcc5-ubsan.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The original code left-shifts negative values, which is undefined
in the C99 specification (the one used during normal Libav compilation).
This change multiplies by (1 << shift), which is functionally equivalent,
but has defined behavior.
With this change, fate-idct8x8 compiled with --fsanitize=undefined works.
Bug-Id: 686
|
| |
|
|
|
|
|
|
| |
Remove the duplicated code for handling failure of apply_param_change().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
|
|
| |
Rename luma table to delta table and change how it is used.
CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
|
|
|
|
|
| |
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
The plugin loaded may not match the general implementation capability
wise.
|
|
|
|
|
| |
It currently just calls av_init_packet(), which does not touch those
fields.
|
| |
|
|
|
|
| |
This avoids accessing NULL pointers in case of error.
|
|
|
|
|
| |
The deinit function in the 'error' section will correctly free
everything.
|
| |
|
| |
|
| |
|
|
|
|
| |
The reasoning is the same as for the corresponding qsvenc patch.
|
|
|
|
|
|
|
|
| |
The QSV runtime expects the sync point address passed to
MFXVideoENCODE_EncodeFrameAsync() to be valid until
MFXVideoCORE_SyncOperation().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
AVCodecParameters
|
|
|
|
|
|
| |
This API is intended to allow passing around codec parameters without
using full AVCodecContext (which also contains codec options and
encoder/decoder state).
|