use ff_xvmc for function names instead of XVMC_

Originally committed as revision 17254 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Ivan Kalvachev 16 years ago
parent c1a5aa2953
commit 78f9a87830
  1. 18
      libavcodec/mpeg12.c
  2. 4
      libavcodec/mpegvideo.c
  3. 10
      libavcodec/mpegvideo_xvmc.c

@ -61,10 +61,10 @@ static inline int mpeg2_fast_decode_block_intra(MpegEncContext *s, DCTELEM *bloc
static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred); static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred);
static void exchange_uv(MpegEncContext *s); static void exchange_uv(MpegEncContext *s);
int XVMC_field_start(MpegEncContext *s, AVCodecContext *avctx); int ff_xvmc_field_start(MpegEncContext *s, AVCodecContext *avctx);
int XVMC_field_end(MpegEncContext *s); int ff_xvmc_field_end(MpegEncContext *s);
void XVMC_pack_pblocks(MpegEncContext *s,int cbp); void ff_xvmc_pack_pblocks(MpegEncContext *s,int cbp);
void XVMC_init_block(MpegEncContext *s);//set s->block void ff_xvmc_init_block(MpegEncContext *s);//set s->block
static const enum PixelFormat pixfmt_xvmc_mpg2_420[] = { static const enum PixelFormat pixfmt_xvmc_mpg2_420[] = {
PIX_FMT_XVMC_MPEG2_IDCT, PIX_FMT_XVMC_MPEG2_IDCT,
@ -304,7 +304,7 @@ static int mpeg_decode_mb(MpegEncContext *s,
#if CONFIG_MPEG_XVMC_DECODER #if CONFIG_MPEG_XVMC_DECODER
//if 1, we memcpy blocks in xvmcvideo //if 1, we memcpy blocks in xvmcvideo
if(s->avctx->xvmc_acceleration > 1){ if(s->avctx->xvmc_acceleration > 1){
XVMC_pack_pblocks(s,-1);//inter are always full blocks ff_xvmc_pack_pblocks(s,-1);//inter are always full blocks
if(s->swap_uv){ if(s->swap_uv){
exchange_uv(s); exchange_uv(s);
} }
@ -517,7 +517,7 @@ static int mpeg_decode_mb(MpegEncContext *s,
#if CONFIG_MPEG_XVMC_DECODER #if CONFIG_MPEG_XVMC_DECODER
//if 1, we memcpy blocks in xvmcvideo //if 1, we memcpy blocks in xvmcvideo
if(s->avctx->xvmc_acceleration > 1){ if(s->avctx->xvmc_acceleration > 1){
XVMC_pack_pblocks(s,cbp); ff_xvmc_pack_pblocks(s,cbp);
if(s->swap_uv){ if(s->swap_uv){
exchange_uv(s); exchange_uv(s);
} }
@ -1652,7 +1652,7 @@ static int mpeg_field_start(MpegEncContext *s){
// MPV_frame_start will call this function too, // MPV_frame_start will call this function too,
// but we need to call it on every field // but we need to call it on every field
if(s->avctx->xvmc_acceleration) if(s->avctx->xvmc_acceleration)
XVMC_field_start(s,avctx); ff_xvmc_field_start(s,avctx);
#endif #endif
return 0; return 0;
@ -1742,7 +1742,7 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
#if CONFIG_MPEG_XVMC_DECODER #if CONFIG_MPEG_XVMC_DECODER
//If 1, we memcpy blocks in xvmcvideo. //If 1, we memcpy blocks in xvmcvideo.
if(s->avctx->xvmc_acceleration > 1) if(s->avctx->xvmc_acceleration > 1)
XVMC_init_block(s);//set s->block ff_xvmc_init_block(s);//set s->block
#endif #endif
if(mpeg_decode_mb(s, s->block) < 0) if(mpeg_decode_mb(s, s->block) < 0)
@ -1923,7 +1923,7 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
#if CONFIG_MPEG_XVMC_DECODER #if CONFIG_MPEG_XVMC_DECODER
if(s->avctx->xvmc_acceleration) if(s->avctx->xvmc_acceleration)
XVMC_field_end(s); ff_xvmc_field_end(s);
#endif #endif
/* end of slice reached */ /* end of slice reached */
if (/*s->mb_y<<field_pic == s->mb_height &&*/ !s->first_field) { if (/*s->mb_y<<field_pic == s->mb_height &&*/ !s->first_field) {

@ -56,7 +56,7 @@ static void dct_unquantize_h263_inter_c(MpegEncContext *s,
int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx); int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx);
void XVMC_field_end(MpegEncContext *s); void XVMC_field_end(MpegEncContext *s);
void XVMC_decode_mb(MpegEncContext *s); void ff_xvmc_decode_mb(MpegEncContext *s);
/* enable all paranoid tests for rounding, overflows, etc... */ /* enable all paranoid tests for rounding, overflows, etc... */
@ -1738,7 +1738,7 @@ void MPV_decode_mb_internal(MpegEncContext *s, DCTELEM block[12][64],
const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;
#if CONFIG_MPEG_XVMC_DECODER #if CONFIG_MPEG_XVMC_DECODER
if(s->avctx->xvmc_acceleration){ if(s->avctx->xvmc_acceleration){
XVMC_decode_mb(s);//xvmc uses pblocks ff_xvmc_decode_mb(s);//xvmc uses pblocks
return; return;
} }
#endif #endif

@ -36,7 +36,7 @@
#include "xvmc.h" #include "xvmc.h"
//set s->block //set s->block
void XVMC_init_block(MpegEncContext *s) void ff_xvmc_init_block(MpegEncContext *s)
{ {
struct xvmc_render_state * render; struct xvmc_render_state * render;
render = (struct xvmc_render_state*)s->current_picture.data[2]; render = (struct xvmc_render_state*)s->current_picture.data[2];
@ -48,7 +48,7 @@ void XVMC_init_block(MpegEncContext *s)
s->block = (DCTELEM *)(render->data_blocks+(render->next_free_data_block_num)*64); s->block = (DCTELEM *)(render->data_blocks+(render->next_free_data_block_num)*64);
} }
void XVMC_pack_pblocks(MpegEncContext *s, int cbp) void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp)
{ {
int i,j; int i,j;
const int mb_block_count = 4 + (1 << s->chroma_format); const int mb_block_count = 4 + (1 << s->chroma_format);
@ -67,7 +67,7 @@ void XVMC_pack_pblocks(MpegEncContext *s, int cbp)
//These functions should be called on every new field and/or frame. //These functions should be called on every new field and/or frame.
//They should be safe if they are called a few times for the same field! //They should be safe if they are called a few times for the same field!
int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx) int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
{ {
struct xvmc_render_state * render, * last, * next; struct xvmc_render_state * render, * last, * next;
@ -112,7 +112,7 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
return -1; return -1;
} }
void XVMC_field_end(MpegEncContext *s) void ff_xvmc_field_end(MpegEncContext *s)
{ {
struct xvmc_render_state * render; struct xvmc_render_state * render;
render = (struct xvmc_render_state*)s->current_picture.data[2]; render = (struct xvmc_render_state*)s->current_picture.data[2];
@ -122,7 +122,7 @@ void XVMC_field_end(MpegEncContext *s)
ff_draw_horiz_band(s,0,0); ff_draw_horiz_band(s,0,0);
} }
void XVMC_decode_mb(MpegEncContext *s) void ff_xvmc_decode_mb(MpegEncContext *s)
{ {
XvMCMacroBlock * mv_block; XvMCMacroBlock * mv_block;
struct xvmc_render_state * render; struct xvmc_render_state * render;

Loading…
Cancel
Save