summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-01 08:00:27 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-13 19:49:29 +0100
commit977d8b6297633d82b498433a35d0ff496b4787c6 (patch)
tree91f9c901f4ed6c8c492cf99b590f7cd3bedb6ee5 /libavcodec/mpeg12.h
parentf78ffe382c2c6d3bd57b8a5d4e6e3689f6e90043 (diff)
downloadffmpeg-977d8b6297633d82b498433a35d0ff496b4787c6.tar.gz
avcodec/mpeg12.h: Move decoder-only stuff to a new header
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg12.h')
-rw-r--r--libavcodec/mpeg12.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h
index fb2b37e7c8..a405db6c2d 100644
--- a/libavcodec/mpeg12.h
+++ b/libavcodec/mpeg12.h
@@ -22,7 +22,6 @@
#ifndef AVCODEC_MPEG12_H
#define AVCODEC_MPEG12_H
-#include "mpeg12vlc.h"
#include "mpegvideo.h"
/* Start codes. */
@@ -37,38 +36,8 @@
void ff_mpeg12_common_init(MpegEncContext *s);
-#define INIT_2D_VLC_RL(rl, static_size, flags)\
-{\
- static RL_VLC_ELEM rl_vlc_table[static_size];\
- rl.rl_vlc[0] = rl_vlc_table;\
- ff_init_2d_vlc_rl(&rl, static_size, flags);\
-}
-
-void ff_init_2d_vlc_rl(RLTable *rl, unsigned static_size, int flags);
void ff_mpeg1_init_uni_ac_vlc(const RLTable *rl, uint8_t *uni_ac_vlc_len);
-static inline int decode_dc(GetBitContext *gb, int component)
-{
- int code, diff;
-
- if (component == 0) {
- code = get_vlc2(gb, ff_dc_lum_vlc.table, DC_VLC_BITS, 2);
- } else {
- code = get_vlc2(gb, ff_dc_chroma_vlc.table, DC_VLC_BITS, 2);
- }
- if (code == 0) {
- diff = 0;
- } else {
- diff = get_xbits(gb, code);
- }
- return diff;
-}
-
-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);
#if FF_API_FLAG_TRUNCATED
int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size, AVCodecParserContext *s);