Lines Matching refs:avctx
25 static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
33 h = avctx->height;
34 w = avctx->width;
35 switch (avctx->pix_fmt) {
88 if ((ret = ff_alloc_packet2(avctx, pkt, n*h + 200)) < 0)
103 if (avctx->pix_fmt == AV_PIX_FMT_MONOBLACK){
124 static av_cold int pam_encode_init(AVCodecContext *avctx)
126 avctx->coded_frame = av_frame_alloc();
127 if (!avctx->coded_frame)
130 avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
131 avctx->coded_frame->key_frame = 1;
136 static av_cold int pam_encode_close(AVCodecContext *avctx)
138 av_frame_free(&avctx->coded_frame);