summaryrefslogtreecommitdiff
path: root/libavcodec/wmv2.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-27 23:32:49 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-13 15:27:48 +0100
commitcc90478967431d046b2d930a60be15e81c7d0e12 (patch)
treea4af17069bfc6b4a3ed819cfdb51c7cf28b366e3 /libavcodec/wmv2.h
parent584f26db0d8e4a2d34ec027b6bc70a9b2eb14926 (diff)
avcodec/wmv2: Split Wmv2Context into decoder and encoder context
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/wmv2.h')
-rw-r--r--libavcodec/wmv2.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/libavcodec/wmv2.h b/libavcodec/wmv2.h
index 1798dbabcd..4001093881 100644
--- a/libavcodec/wmv2.h
+++ b/libavcodec/wmv2.h
@@ -21,9 +21,6 @@
#ifndef AVCODEC_WMV2_H
#define AVCODEC_WMV2_H
-#include "libavutil/mem_internal.h"
-
-#include "intrax8.h"
#include "mpegvideo.h"
#include "wmv2dsp.h"
@@ -33,29 +30,12 @@
#define SKIP_TYPE_COL 3
-typedef struct Wmv2Context {
- MpegEncContext s;
- IntraX8Context x8;
+typedef struct WMV2Context {
WMV2DSPContext wdsp;
- int j_type_bit;
- int j_type;
- int abt_flag;
- int abt_type;
- int abt_type_table[6];
- int per_mb_abt;
- int per_block_abt;
- int mspel_bit;
- int cbp_table_index;
- int top_left_mv_flag;
- int per_mb_rl_bit;
- int skip_type;
int hshift;
+} WMV2Context;
- ScanTable abt_scantable[2];
- DECLARE_ALIGNED(32, int16_t, abt_block2)[6][64];
-} Wmv2Context;
-
-void ff_wmv2_common_init(Wmv2Context *w);
+void ff_wmv2_common_init(MpegEncContext *s);
int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64]);
int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number);