static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred);
static void exchange_uv(MpegEncContext *s);
-int XVMC_field_start(MpegEncContext *s, AVCodecContext *avctx);
-int XVMC_field_end(MpegEncContext *s);
-void XVMC_pack_pblocks(MpegEncContext *s,int cbp);
-void XVMC_init_block(MpegEncContext *s);//set s->block
+int ff_xvmc_field_start(MpegEncContext *s, AVCodecContext *avctx);
+int ff_xvmc_field_end(MpegEncContext *s);
+void ff_xvmc_pack_pblocks(MpegEncContext *s,int cbp);
+void ff_xvmc_init_block(MpegEncContext *s);//set s->block
static const enum PixelFormat pixfmt_xvmc_mpg2_420[] = {
PIX_FMT_XVMC_MPEG2_IDCT,
#if CONFIG_MPEG_XVMC_DECODER
//if 1, we memcpy blocks in xvmcvideo
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){
exchange_uv(s);
}
#if CONFIG_MPEG_XVMC_DECODER
//if 1, we memcpy blocks in xvmcvideo
if(s->avctx->xvmc_acceleration > 1){
- XVMC_pack_pblocks(s,cbp);
+ ff_xvmc_pack_pblocks(s,cbp);
if(s->swap_uv){
exchange_uv(s);
}
// MPV_frame_start will call this function too,
// but we need to call it on every field
if(s->avctx->xvmc_acceleration)
- XVMC_field_start(s,avctx);
+ ff_xvmc_field_start(s,avctx);
#endif
return 0;
#if CONFIG_MPEG_XVMC_DECODER
//If 1, we memcpy blocks in xvmcvideo.
if(s->avctx->xvmc_acceleration > 1)
- XVMC_init_block(s);//set s->block
+ ff_xvmc_init_block(s);//set s->block
#endif
if(mpeg_decode_mb(s, s->block) < 0)
#if CONFIG_MPEG_XVMC_DECODER
if(s->avctx->xvmc_acceleration)
- XVMC_field_end(s);
+ ff_xvmc_field_end(s);
#endif
/* end of slice reached */
if (/*s->mb_y<<field_pic == s->mb_height &&*/ !s->first_field) {
int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx);
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... */
const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;
#if CONFIG_MPEG_XVMC_DECODER
if(s->avctx->xvmc_acceleration){
- XVMC_decode_mb(s);//xvmc uses pblocks
+ ff_xvmc_decode_mb(s);//xvmc uses pblocks
return;
}
#endif
#include "xvmc.h"
//set s->block
-void XVMC_init_block(MpegEncContext *s)
+void ff_xvmc_init_block(MpegEncContext *s)
{
struct xvmc_render_state * render;
render = (struct xvmc_render_state*)s->current_picture.data[2];
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;
const int mb_block_count = 4 + (1 << s->chroma_format);
//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!
-int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
+int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
{
struct xvmc_render_state * render, * last, * next;
return -1;
}
-void XVMC_field_end(MpegEncContext *s)
+void ff_xvmc_field_end(MpegEncContext *s)
{
struct xvmc_render_state * render;
render = (struct xvmc_render_state*)s->current_picture.data[2];
ff_draw_horiz_band(s,0,0);
}
-void XVMC_decode_mb(MpegEncContext *s)
+void ff_xvmc_decode_mb(MpegEncContext *s)
{
XvMCMacroBlock * mv_block;
struct xvmc_render_state * render;