Logo Search packages:      
Sourcecode: blender version File versions

static int decode_init ( AVCodecContext avctx  )  [static]

initializes decoder

Parameters:
avctx codec context
Returns:
0 on success or negative if fails

Definition at line 51 of file fraps.c.

References FrapsContext::avctx, AVCodecContext::coded_frame, FrapsContext::frame, AVCodecContext::has_b_frames, AVCodecContext::pix_fmt, and AVCodecContext::priv_data.

{
    FrapsContext * const s = avctx->priv_data;

    avctx->coded_frame = (AVFrame*)&s->frame;
    avctx->has_b_frames = 0;
    avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */

    s->avctx = avctx;
    s->frame.data[0] = NULL;

    return 0;
}


Generated by  Doxygen 1.6.0   Back to index