Lines Matching defs:avctx

47     AVCodecContext *avctx;
75 av_log(s->avctx, AV_LOG_ERROR, "Header too short to parse.\n");
81 av_log(s->avctx, AV_LOG_ERROR, "Wrong signature %d.\n", signature);
87 av_log(s->avctx, AV_LOG_ERROR, "Wrong version %d.\n", version);
95 av_log(s->avctx, AV_LOG_ERROR, "Invalid channel count %d.\n", s->channel_count);
101 if ((s->height > 30000) && (s->avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL)) {
102 av_log(s->avctx, AV_LOG_ERROR,
110 if ((s->width > 30000) && (s->avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL)) {
111 av_log(s->avctx, AV_LOG_ERROR,
118 if ((ret = ff_set_dimensions(s->avctx, s->width, s->height)) < 0)
150 av_log(s->avctx, AV_LOG_ERROR, "Unknown color mode %d.\n", color_mode);
157 av_log(s->avctx, AV_LOG_ERROR, "Negative size for color map data section.\n");
162 av_log(s->avctx, AV_LOG_ERROR, "Incomplete file.\n");
178 av_log(s->avctx, AV_LOG_ERROR, "Negative size for image ressources section.\n");
183 av_log(s->avctx, AV_LOG_ERROR, "Incomplete file.\n");
191 av_log(s->avctx, AV_LOG_ERROR, "Negative size for layers and masks data section.\n");
196 av_log(s->avctx, AV_LOG_ERROR, "Incomplete file.\n");
203 av_log(s->avctx, AV_LOG_ERROR, "File without image data section.\n");
213 avpriv_request_sample(s->avctx, "ZIP without predictor compression");
216 avpriv_request_sample(s->avctx, "ZIP with predictor compression");
219 av_log(s->avctx, AV_LOG_ERROR, "Unknown compression %d.\n", s->compression);
239 av_log(s->avctx, AV_LOG_ERROR, "Not enough data for rle scanline table.\n");
255 av_log(s->avctx, AV_LOG_ERROR, "Not enough data for rle scanline.\n");
260 av_log(s->avctx, AV_LOG_ERROR, "Invalid rle char.\n");
271 av_log(s->avctx, AV_LOG_ERROR, "Not enough data for rle scanline.\n");
276 av_log(s->avctx, AV_LOG_ERROR, "Invalid rle char.\n");
292 static int decode_frame(AVCodecContext *avctx, AVFrame *picture,
302 PSDContext *s = avctx->priv_data;
303 s->avctx = avctx;
320 av_log(s->avctx, AV_LOG_ERROR,
326 avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
330 av_log(s->avctx, AV_LOG_ERROR,
335 avctx->pix_fmt = AV_PIX_FMT_PAL8;
340 avctx->pix_fmt = AV_PIX_FMT_GBRP;
342 avctx->pix_fmt = AV_PIX_FMT_GBRP16BE;
344 avpriv_report_missing_feature(avctx, "channel depth %d for cmyk", s->channel_depth);
349 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
351 avctx->pix_fmt = AV_PIX_FMT_GBRAP16BE;
353 avpriv_report_missing_feature(avctx, "channel depth %d for cmyk", s->channel_depth);
357 avpriv_report_missing_feature(avctx, "channel count %d for cmyk", s->channel_count);
364 avctx->pix_fmt = AV_PIX_FMT_GBRP;
366 avctx->pix_fmt = AV_PIX_FMT_GBRP16BE;
368 avpriv_report_missing_feature(avctx, "channel depth %d for rgb", s->channel_depth);
373 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
375 avctx->pix_fmt = AV_PIX_FMT_GBRAP16BE;
377 avpriv_report_missing_feature(avctx, "channel depth %d for rgb", s->channel_depth);
381 avpriv_report_missing_feature(avctx, "channel count %d for rgb", s->channel_count);
386 av_log(avctx, AV_LOG_WARNING, "ignoring unknown duotone specification.\n");
390 avctx->pix_fmt = AV_PIX_FMT_GRAY8;
392 avctx->pix_fmt = AV_PIX_FMT_GRAY16BE;
394 avctx->pix_fmt = AV_PIX_FMT_GRAYF32BE;
396 avpriv_report_missing_feature(avctx, "channel depth %d for grayscale", s->channel_depth);
401 avctx->pix_fmt = AV_PIX_FMT_YA8;
403 avctx->pix_fmt = AV_PIX_FMT_YA16BE;
405 avpriv_report_missing_feature(avctx, "channel depth %d for grayscale", s->channel_depth);
409 avpriv_report_missing_feature(avctx, "channel count %d for grayscale", s->channel_count);
414 avpriv_report_missing_feature(avctx, "color mode %d", s->color_mode);
420 if ((ret = ff_get_buffer(avctx, picture, 0)) < 0)
439 av_log(s->avctx, AV_LOG_ERROR, "Not enough data for raw image data section.\n");
446 if ((avctx->pix_fmt == AV_PIX_FMT_YA8)||(avctx->pix_fmt == AV_PIX_FMT_YA16BE)){/* Interleaved */
485 if (avctx->pix_fmt == AV_PIX_FMT_GBRAP) {
511 if (avctx->pix_fmt == AV_PIX_FMT_GBRAP16BE) {