Merge commit '2f15846ad7ad57beb0bca99c624affa0facf284b'

* commit '2f15846ad7ad57beb0bca99c624affa0facf284b':
  mpegvideo: wmv2: Move function declarations

Conflicts:
	libavcodec/wmv2.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-06-01 01:09:38 +02:00
commit f5ee10c16a
8 changed files with 20 additions and 12 deletions

View File

@ -42,6 +42,7 @@
#include "qpeldsp.h" #include "qpeldsp.h"
#include "vdpau_compat.h" #include "vdpau_compat.h"
#include "thread.h" #include "thread.h"
#include "wmv2.h"
static enum AVPixelFormat h263_get_format(AVCodecContext *avctx) static enum AVPixelFormat h263_get_format(AVCodecContext *avctx)
{ {

View File

@ -45,6 +45,7 @@
#include "msmpeg4.h" #include "msmpeg4.h"
#include "qpeldsp.h" #include "qpeldsp.h"
#include "thread.h" #include "thread.h"
#include "wmv2.h"
#include <limits.h> #include <limits.h>
static const uint8_t ff_default_chroma_qscale_table[32] = { static const uint8_t ff_default_chroma_qscale_table[32] = {

View File

@ -891,17 +891,6 @@ int ff_msmpeg4_decode_picture_header(MpegEncContext * s);
int ff_msmpeg4_decode_ext_header(MpegEncContext * s, int buf_size); int ff_msmpeg4_decode_ext_header(MpegEncContext * s, int buf_size);
int ff_msmpeg4_decode_init(AVCodecContext *avctx); int ff_msmpeg4_decode_init(AVCodecContext *avctx);
int ff_msmpeg4_encode_init(MpegEncContext *s); int ff_msmpeg4_encode_init(MpegEncContext *s);
int ff_wmv2_decode_picture_header(MpegEncContext * s);
int ff_wmv2_decode_secondary_picture_header(MpegEncContext * s);
void ff_wmv2_add_mb(MpegEncContext *s, int16_t block[6][64], uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr);
void ff_mspel_motion(MpegEncContext *s,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
int motion_x, int motion_y, int h);
int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number);
void ff_wmv2_encode_mb(MpegEncContext * s,
int16_t block[6][64],
int motion_x, int motion_y);
int ff_mpeg_ref_picture(AVCodecContext *avctx, Picture *dst, Picture *src); int ff_mpeg_ref_picture(AVCodecContext *avctx, Picture *dst, Picture *src);
void ff_mpeg_unref_picture(AVCodecContext *avctx, Picture *picture); void ff_mpeg_unref_picture(AVCodecContext *avctx, Picture *picture);

View File

@ -56,6 +56,7 @@
#include "mpeg4video.h" #include "mpeg4video.h"
#include "internal.h" #include "internal.h"
#include "bytestream.h" #include "bytestream.h"
#include "wmv2.h"
#include <limits.h> #include <limits.h>
#include "sp5x.h" #include "sp5x.h"

View File

@ -32,6 +32,7 @@
#include "mjpegenc.h" #include "mjpegenc.h"
#include "msmpeg4.h" #include "msmpeg4.h"
#include "qpeldsp.h" #include "qpeldsp.h"
#include "wmv2.h"
#include <limits.h> #include <limits.h>
static void gmc1_motion(MpegEncContext *s, static void gmc1_motion(MpegEncContext *s,

View File

@ -54,7 +54,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
int n, int coded, const uint8_t *scan_table); int n, int coded, const uint8_t *scan_table);
int ff_msmpeg4_pred_dc(MpegEncContext *s, int n, int ff_msmpeg4_pred_dc(MpegEncContext *s, int n,
int16_t **dc_val_ptr, int *dir_ptr); int16_t **dc_val_ptr, int *dir_ptr);
int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64]);
#define CONFIG_MSMPEG4_DECODER (CONFIG_MSMPEG4V1_DECODER || \ #define CONFIG_MSMPEG4_DECODER (CONFIG_MSMPEG4V1_DECODER || \
CONFIG_MSMPEG4V2_DECODER || \ CONFIG_MSMPEG4V2_DECODER || \

View File

@ -33,6 +33,7 @@
#include "mpeg4video.h" #include "mpeg4video.h"
#include "msmpeg4data.h" #include "msmpeg4data.h"
#include "vc1data.h" #include "vc1data.h"
#include "wmv2.h"
#define DC_VLC_BITS 9 #define DC_VLC_BITS 9
#define V2_INTRA_CBPC_VLC_BITS 3 #define V2_INTRA_CBPC_VLC_BITS 3

View File

@ -56,6 +56,21 @@ typedef struct Wmv2Context {
void ff_wmv2_common_init(Wmv2Context *w); void ff_wmv2_common_init(Wmv2Context *w);
int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64]);
int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number);
void ff_wmv2_encode_mb(MpegEncContext * s, int16_t block[6][64],
int motion_x, int motion_y);
int ff_wmv2_decode_picture_header(MpegEncContext * s);
int ff_wmv2_decode_secondary_picture_header(MpegEncContext * s);
void ff_wmv2_add_mb(MpegEncContext *s, int16_t block[6][64],
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr);
void ff_mspel_motion(MpegEncContext *s,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
int motion_x, int motion_y, int h);
static av_always_inline int wmv2_get_cbp_table_index(MpegEncContext *s, int cbp_index) static av_always_inline int wmv2_get_cbp_table_index(MpegEncContext *s, int cbp_index)
{ {
static const uint8_t map[3][3] = { static const uint8_t map[3][3] = {