Browse code

mpegvideo: wmv2: Move function declarations

Vittorio Giovara authored on 2015/05/30 03:44:01
Showing 8 changed files
... ...
@@ -39,6 +39,7 @@
39 39
 #include "msmpeg4.h"
40 40
 #include "qpeldsp.h"
41 41
 #include "thread.h"
42
+#include "wmv2.h"
42 43
 
43 44
 static enum AVPixelFormat h263_get_format(AVCodecContext *avctx)
44 45
 {
... ...
@@ -44,6 +44,7 @@
44 44
 #include "qpeldsp.h"
45 45
 #include "xvmc_internal.h"
46 46
 #include "thread.h"
47
+#include "wmv2.h"
47 48
 #include <limits.h>
48 49
 
49 50
 static const uint8_t ff_default_chroma_qscale_table[32] = {
... ...
@@ -851,17 +851,6 @@ int ff_msmpeg4_decode_picture_header(MpegEncContext * s);
851 851
 int ff_msmpeg4_decode_ext_header(MpegEncContext * s, int buf_size);
852 852
 int ff_msmpeg4_decode_init(AVCodecContext *avctx);
853 853
 int ff_msmpeg4_encode_init(MpegEncContext *s);
854
-int ff_wmv2_decode_picture_header(MpegEncContext * s);
855
-int ff_wmv2_decode_secondary_picture_header(MpegEncContext * s);
856
-void ff_wmv2_add_mb(MpegEncContext *s, int16_t block[6][64], uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr);
857
-void ff_mspel_motion(MpegEncContext *s,
858
-                               uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
859
-                               uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
860
-                               int motion_x, int motion_y, int h);
861
-int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number);
862
-void ff_wmv2_encode_mb(MpegEncContext * s,
863
-                       int16_t block[6][64],
864
-                       int motion_x, int motion_y);
865 854
 
866 855
 int ff_mpeg_ref_picture(AVCodecContext *avctx, Picture *dst, Picture *src);
867 856
 void ff_mpeg_unref_picture(AVCodecContext *avctx, Picture *picture);
... ...
@@ -56,6 +56,7 @@
56 56
 #include "mpeg4video.h"
57 57
 #include "internal.h"
58 58
 #include "bytestream.h"
59
+#include "wmv2.h"
59 60
 #include <limits.h>
60 61
 
61 62
 #define QUANT_BIAS_SHIFT 8
... ...
@@ -31,6 +31,7 @@
31 31
 #include "mjpegenc.h"
32 32
 #include "msmpeg4.h"
33 33
 #include "qpeldsp.h"
34
+#include "wmv2.h"
34 35
 #include <limits.h>
35 36
 
36 37
 static void gmc1_motion(MpegEncContext *s,
... ...
@@ -54,7 +54,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
54 54
                             int n, int coded, const uint8_t *scan_table);
55 55
 int ff_msmpeg4_pred_dc(MpegEncContext *s, int n,
56 56
                        int16_t **dc_val_ptr, int *dir_ptr);
57
-int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64]);
58 57
 
59 58
 #define CONFIG_MSMPEG4_DECODER (CONFIG_MSMPEG4V1_DECODER || \
60 59
                                 CONFIG_MSMPEG4V2_DECODER || \
... ...
@@ -32,6 +32,7 @@
32 32
 #include "mpeg4video.h"
33 33
 #include "msmpeg4data.h"
34 34
 #include "vc1data.h"
35
+#include "wmv2.h"
35 36
 
36 37
 #define DC_VLC_BITS 9
37 38
 #define V2_INTRA_CBPC_VLC_BITS 3
... ...
@@ -56,4 +56,18 @@ typedef struct Wmv2Context {
56 56
 
57 57
 void ff_wmv2_common_init(Wmv2Context *w);
58 58
 
59
+int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64]);
60
+int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number);
61
+void ff_wmv2_encode_mb(MpegEncContext * s, int16_t block[6][64],
62
+                       int motion_x, int motion_y);
63
+int ff_wmv2_decode_picture_header(MpegEncContext * s);
64
+int ff_wmv2_decode_secondary_picture_header(MpegEncContext * s);
65
+void ff_wmv2_add_mb(MpegEncContext *s, int16_t block[6][64],
66
+                    uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr);
67
+
68
+void ff_mspel_motion(MpegEncContext *s,
69
+                     uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
70
+                     uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
71
+                     int motion_x, int motion_y, int h);
72
+
59 73
 #endif /* AVCODEC_WMV2_H */