diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-12-01 19:32:00 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-12-10 10:07:09 +0100 |
commit | 19ce06423964627d553c7ee602fd5c73ca4b2135 (patch) | |
tree | 7f04a8f1b6952d4d9005e2b064989e83e701a2b6 /libavcodec/huffyuvdsp.h | |
parent | e9a2a8777317d91af658f774c68442ac4aa726ec (diff) | |
download | ffmpeg-19ce06423964627d553c7ee602fd5c73ca4b2135.tar.gz |
smvjpegdec: merge into mjpegdec
SMVJPEG stores frames as slices of a big JPEG image. The decoder is
implemented as a wrapper that instantiates a full internal MJPEG
decoder, then forwards the decoded frames with offset data pointers.
This is unnecessarily complex and fragile, not supporting useful decoder
capabilities like direct rendering.
Re-implement the decoder inside the MJPEG decoder, which is accomplished
by returning each decoded frame multiple times, setting cropping
information appropriately on each instance.
One peculiar aspect of the previous design is that since
- the smvjpeg decoder returns one frame per input packet
- there are multiple frames in each packets (the aformentioned slices)
the demuxer needs to return each packet multiple times.
This is now also eliminated - the demuxer now returns each packet
exactly once, with the duration set to the number of frames it decodes
to.
This also removes one of the last remaining internal uses of the old
video decoding API.
Diffstat (limited to 'libavcodec/huffyuvdsp.h')
0 files changed, 0 insertions, 0 deletions