FFmpeg
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. More...
 
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. More...
 

Function Documentation

◆ ff_xvmc_init_block()

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().

◆ ff_xvmc_pack_pblocks()

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().