FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
xvmc_internal.h File Reference
#include "avcodec.h"
#include "mpegvideo.h"
#include "version.h"

Go to the source code of this file.

Functions

void ff_xvmc_init_block (MpegEncContext *s)
 Initialize the block field of the MpegEncContext pointer passed as parameter after making sure that the data is not corrupted.
 
void ff_xvmc_pack_pblocks (MpegEncContext *s, int cbp)
 Fill individual block pointers, so there are no gaps in the data_block array in case not all blocks in the macroblock are coded.
 

Function Documentation

void ff_xvmc_init_block ( MpegEncContext s)

Initialize the block field of the MpegEncContext pointer passed as parameter after making sure that the data is not corrupted.

In order to implement something like direct rendering instead of decoding coefficients in s->blocks and then copying them, copy them directly into the data_blocks array provided by xvmc.

Definition at line 43 of file mpegvideo_xvmc.c.

Referenced by mpeg_decode_slice().

void ff_xvmc_pack_pblocks ( MpegEncContext s,
int  cbp 
)

Fill individual block pointers, so there are no gaps in the data_block array in case not all blocks in the macroblock are coded.

Definition at line 64 of file mpegvideo_xvmc.c.

Referenced by mpeg_decode_mb().