Logo Search packages:      
Sourcecode: xmms-wma version File versions  Download package

int avcodec_decode_video ( AVCodecContext avctx,
AVFrame picture,
int *  got_picture_ptr,
uint8_t *  buf,
int  buf_size 

decode a frame.

buf bitstream buffer, must be FF_INPUT_BUFFER_PADDING_SIZE larger then the actual read bytes because some optimized bitstream readers read 32 or 64 bit at once and could read over the end
buf_size the size of the buffer in bytes
got_picture_ptr zero if no frame could be decompressed, Otherwise, it is non zero
-1 if error, otherwise return the number of bytes used.

Definition at line 448 of file utils.c.

References AVCodecContext::codec, AVCodec::decode, emms_c, and AVCodecContext::frame_number.

    int ret;
    ret = avctx->codec->decode(avctx, picture, got_picture_ptr, 
                               buf, buf_size);

    emms_c(); //needed to avoid a emms_c() call before every return;
    if (*got_picture_ptr)                           
    return ret;

Generated by  Doxygen 1.6.0   Back to index