Lines Matching defs:avctx
43 static int pnm_decode_frame(AVCodecContext *avctx, AVFrame *p,
48 PNMContext * const s = avctx->priv_data;
58 if ((ret = ff_pnm_decode_header(avctx, s)) < 0)
61 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
65 avctx->bits_per_raw_sample = av_log2(s->maxval) + 1;
67 switch (avctx->pix_fmt) {
71 n = avctx->width * 8;
78 n = avctx->width * 6;
85 n = avctx->width * 4;
90 n = avctx->width * 3;
97 n = avctx->width;
104 n = avctx->width * 2;
109 n = avctx->width * 2;
116 n = avctx->width * 4;
124 n = (avctx->width + 7) >> 3;
131 if (n * avctx->height > s->bytestream_end - s->bytestream)
134 for (i=0; i<avctx->height; i++) {
137 for(j=0; j<avctx->width * components; j++){
155 av_log(avctx, AV_LOG_ERROR, "value %d larger than maxval %d\n", v, s->maxval);
169 for (i = 0; i < avctx->height; i++) {
194 n = avctx->width;
199 if (n * avctx->height * 3 / 2 > s->bytestream_end - s->bytestream)
201 for (i = 0; i < avctx->height; i++) {
209 h = avctx->height >> 1;
226 n = avctx->width * 2;
229 if (n * avctx->height * 3 / 2 > s->bytestream_end - s->bytestream)
231 for (i = 0; i < avctx->height; i++) {
242 h = avctx->height >> 1;
263 if (avctx->width * avctx->height * 12 > s->bytestream_end - s->bytestream)
272 for (int i = 0; i < avctx->height; i++) {
273 for (int j = 0; j < avctx->width; j++) {
290 for (int i = 0; i < avctx->height; i++) {
291 for (int j = 0; j < avctx->width; j++) {
304 if (avctx->width * avctx->height * 6 > s->bytestream_end - s->bytestream)
313 for (int i = 0; i < avctx->height; i++) {
314 for (int j = 0; j < avctx->width; j++) {
340 for (int i = 0; i < avctx->height; i++) {
341 for (int j = 0; j < avctx->width; j++) {
365 if (avctx->width * avctx->height * 4 > s->bytestream_end - s->bytestream)
370 for (int i = 0; i < avctx->height; i++) {
371 for (int j = 0; j < avctx->width; j++) {
379 for (int i = 0; i < avctx->height; i++) {
380 for (int j = 0; j < avctx->width; j++) {
388 if (avctx->width * avctx->height * 2 > s->bytestream_end - s->bytestream)
393 for (int i = 0; i < avctx->height; i++) {
394 for (int j = 0; j < avctx->width; j++) {
405 for (int i = 0; i < avctx->height; i++) {
406 for (int j = 0; j < avctx->width; j++) {
498 static av_cold int phm_dec_init(AVCodecContext *avctx)
500 PNMContext *s = avctx->priv_data;