|
|
@@ -25,13 +25,38 @@
|
|
|
#ifndef AVCODEC_MPEGVIDEO_UNQUANTIZE_H
|
|
|
#define AVCODEC_MPEGVIDEO_UNQUANTIZE_H
|
|
|
|
|
|
+#include <stdint.h>
|
|
|
+
|
|
|
+#include "config.h"
|
|
|
+
|
|
|
typedef struct MpegEncContext MpegEncContext;
|
|
|
|
|
|
-void ff_mpv_unquantize_init(MpegEncContext *s);
|
|
|
-void ff_mpv_common_init_arm(MpegEncContext *s);
|
|
|
-void ff_mpv_common_init_neon(MpegEncContext *s);
|
|
|
-void ff_mpv_common_init_ppc(MpegEncContext *s);
|
|
|
-void ff_mpv_common_init_x86(MpegEncContext *s);
|
|
|
-void ff_mpv_common_init_mips(MpegEncContext *s);
|
|
|
+typedef struct MPVUnquantDSPContext {
|
|
|
+ void (*dct_unquantize_mpeg1_intra)(struct MpegEncContext *s,
|
|
|
+ int16_t *block/*align 16*/, int n, int qscale);
|
|
|
+ void (*dct_unquantize_mpeg1_inter)(struct MpegEncContext *s,
|
|
|
+ int16_t *block/*align 16*/, int n, int qscale);
|
|
|
+ void (*dct_unquantize_mpeg2_intra)(struct MpegEncContext *s,
|
|
|
+ int16_t *block/*align 16*/, int n, int qscale);
|
|
|
+ void (*dct_unquantize_mpeg2_inter)(struct MpegEncContext *s,
|
|
|
+ int16_t *block/*align 16*/, int n, int qscale);
|
|
|
+ void (*dct_unquantize_h263_intra)(struct MpegEncContext *s,
|
|
|
+ int16_t *block/*align 16*/, int n, int qscale);
|
|
|
+ void (*dct_unquantize_h263_inter)(struct MpegEncContext *s,
|
|
|
+ int16_t *block/*align 16*/, int n, int qscale);
|
|
|
+} MPVUnquantDSPContext;
|
|
|
+
|
|
|
+#if !ARCH_MIPS
|
|
|
+#define ff_mpv_unquantize_init(s, bitexact, q_scale_type) ff_mpv_unquantize_init(s, bitexact)
|
|
|
+#endif
|
|
|
+
|
|
|
+void ff_mpv_unquantize_init(MPVUnquantDSPContext *s,
|
|
|
+ int bitexact, int q_scale_type);
|
|
|
+void ff_mpv_unquantize_init_arm (MPVUnquantDSPContext *s, int bitexact);
|
|
|
+void ff_mpv_unquantize_init_neon(MPVUnquantDSPContext *s, int bitexact);
|
|
|
+void ff_mpv_unquantize_init_ppc (MPVUnquantDSPContext *s, int bitexact);
|
|
|
+void ff_mpv_unquantize_init_x86 (MPVUnquantDSPContext *s, int bitexact);
|
|
|
+void ff_mpv_unquantize_init_mips(MPVUnquantDSPContext *s, int bitexact,
|
|
|
+ int q_scale_type);
|
|
|
|
|
|
#endif /* AVCODEC_MPEGVIDEO_UNQUANTIZE_H */
|