Lines Matching refs:avctx
39 static int pnm_decode_frame(AVCodecContext *avctx, void *data,
44 PNMContext * const s = avctx->priv_data;
54 if ((ret = ff_pnm_decode_header(avctx, s)) < 0)
57 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
61 avctx->bits_per_raw_sample = av_log2(s->maxval) + 1;
63 switch (avctx->pix_fmt) {
67 n = avctx->width * 8;
74 n = avctx->width * 6;
81 n = avctx->width * 4;
86 n = avctx->width * 3;
93 n = avctx->width;
100 n = avctx->width * 2;
105 n = avctx->width * 2;
113 n = (avctx->width + 7) >> 3;
120 if (s->bytestream + n * avctx->height > s->bytestream_end)
123 for (i=0; i<avctx->height; i++) {
126 for(j=0; j<avctx->width * components; j++){
154 for (i = 0; i < avctx->height; i++) {
179 n = avctx->width;
184 if (s->bytestream + n * avctx->height * 3 / 2 > s->bytestream_end)
186 for (i = 0; i < avctx->height; i++) {
194 h = avctx->height >> 1;
211 n = avctx->width * 2;
214 if (s->bytestream + n * avctx->height * 3 / 2 > s->bytestream_end)
216 for (i = 0; i < avctx->height; i++) {
227 h = avctx->height >> 1;