diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-01-25 12:56:11 -0500 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-02-09 20:04:59 +0100 |
commit | 7c25ffe070c286874a8c3513f7504b90e1626b0c (patch) | |
tree | 8532cb662850f35681472362c3a1eab3fa597d77 /libavcodec/mpeg12.h | |
parent | 249827f736db4c94dfcb24a3883aa4c04f9b119b (diff) | |
download | ffmpeg-7c25ffe070c286874a8c3513f7504b90e1626b0c.tar.gz |
mpeg1: Make intra-block decoding independent of MpegEncContext
This allows untangling the eatqi decoder from the MPEG-1 decoder.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/mpeg12.h')
-rw-r--r-- | libavcodec/mpeg12.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index fda1a533db..c0a86b60bc 100644 --- a/libavcodec/mpeg12.h +++ b/libavcodec/mpeg12.h @@ -50,7 +50,11 @@ static inline int decode_dc(GetBitContext *gb, int component) return diff; } -int ff_mpeg1_decode_block_intra(MpegEncContext *s, int16_t *block, int n); +int ff_mpeg1_decode_block_intra(GetBitContext *gb, + const uint16_t *quant_matrix, + uint8_t *const scantable, int last_dc[3], + int16_t *block, int index, int qscale); + void ff_mpeg1_clean_buffers(MpegEncContext *s); int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size, AVCodecParserContext *s); |