Lines Matching refs:avctx

153 static int decode_frame(AVCodecContext *avctx, AVFrame *p,
174 av_log(avctx, AV_LOG_ERROR, "Packet too small for DPX header\n");
188 av_log(avctx, AV_LOG_ERROR, "DPX marker not found\n");
194 av_log(avctx, AV_LOG_ERROR, "Invalid data start offset\n");
204 av_log(avctx, AV_LOG_WARNING, "Unknown header format version %s.\n",
211 avpriv_report_missing_feature(avctx, "Encryption");
212 av_log(avctx, AV_LOG_WARNING, "The image is encrypted and may "
221 if ((ret = ff_set_dimensions(avctx, w, h)) < 0)
232 avctx->bits_per_raw_sample =
239 avpriv_report_missing_feature(avctx, "Encoding %d", encoding);
247 avctx->sample_aspect_ratio.num = read32(&buf, endian);
248 avctx->sample_aspect_ratio.den = read32(&buf, endian);
249 if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0)
250 av_reduce(&avctx->sample_aspect_ratio.num, &avctx->sample_aspect_ratio.den,
251 avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den,
254 avctx->sample_aspect_ratio = (AVRational){ 0, 1 };
263 avctx->framerate = q;
269 !(avctx->framerate.num && avctx->framerate.den)) {
275 avctx->framerate = q;
301 av_timecode_make_smpte_tc_string2(tcbuf, avctx->framerate,
321 avctx->color_range = AVCOL_RANGE_JPEG;
325 avctx->color_range = AVCOL_RANGE_MPEG;
361 avpriv_report_missing_feature(avctx, "Descriptor %d", descriptor);
367 stride = avctx->width * elements;
371 av_log(avctx, AV_LOG_ERROR, "Packing to 32bit required\n");
374 stride = (avctx->width * elements + 2) / 3 * 4;
377 stride = avctx->width * elements;
391 stride = 2 * avctx->width * elements;
394 stride = 4 * avctx->width * elements;
398 avpriv_report_missing_feature(avctx, "Depth %d", bits_per_color);
406 avctx->color_trc = AVCOL_TRC_LINEAR;
410 avctx->color_trc = AVCOL_TRC_BT709;
415 avctx->color_trc = AVCOL_TRC_SMPTE170M;
418 avctx->color_trc = AVCOL_TRC_GAMMA28;
425 av_log(avctx, AV_LOG_VERBOSE, "Cannot map DPX transfer characteristic "
433 avctx->color_primaries = AVCOL_PRI_BT709;
437 avctx->color_primaries = AVCOL_PRI_BT470BG;
441 avctx->color_primaries = AVCOL_PRI_SMPTE170M;
448 av_log(avctx, AV_LOG_VERBOSE, "Cannot map DPX color specification "
457 avctx->colorspace = AVCOL_SPC_BT709;
461 avctx->colorspace = AVCOL_SPC_BT470BG;
465 avctx->colorspace = AVCOL_SPC_SMPTE170M;
472 av_log(avctx, AV_LOG_INFO, "Cannot map DPX color specification "
477 avctx->colorspace = AVCOL_SPC_RGB;
485 if (need_align*avctx->height + (int64_t)offset > avpkt->size) {
487 if (stride*avctx->height + (int64_t)offset > avpkt->size) {
488 av_log(avctx, AV_LOG_ERROR, "Overread buffer. Invalid header?\n");
491 av_log(avctx, AV_LOG_INFO, "Decoding DPX without scanline "
511 avctx->pix_fmt = AV_PIX_FMT_GRAY8;
515 avctx->pix_fmt = AV_PIX_FMT_GRAY12;
522 avctx->pix_fmt = AV_PIX_FMT_GRAYF32LE;
529 avctx->pix_fmt = AV_PIX_FMT_GRAYF32BE;
533 avctx->pix_fmt = AV_PIX_FMT_RGB24;
537 avctx->pix_fmt = AV_PIX_FMT_ABGR;
541 avctx->pix_fmt = AV_PIX_FMT_RGBA;
545 avctx->pix_fmt = AV_PIX_FMT_GBRP10;
549 avctx->pix_fmt = AV_PIX_FMT_GBRAP10;
553 avctx->pix_fmt = AV_PIX_FMT_GBRP12;
557 avctx->pix_fmt = AV_PIX_FMT_GBRAP12;
561 avctx->pix_fmt = AV_PIX_FMT_GRAY10;
564 avctx->pix_fmt = AV_PIX_FMT_GRAY16BE;
567 avctx->pix_fmt = AV_PIX_FMT_GRAY16LE;
570 avctx->pix_fmt = AV_PIX_FMT_RGB48BE;
573 avctx->pix_fmt = AV_PIX_FMT_RGB48LE;
576 avctx->pix_fmt = AV_PIX_FMT_RGBA64BE;
579 avctx->pix_fmt = AV_PIX_FMT_RGBA64LE;
582 avctx->pix_fmt = AV_PIX_FMT_GBRPF32LE;
585 avctx->pix_fmt = AV_PIX_FMT_GBRPF32BE;
588 avctx->pix_fmt = AV_PIX_FMT_GBRAPF32LE;
591 avctx->pix_fmt = AV_PIX_FMT_GBRAPF32BE;
594 avctx->pix_fmt = AV_PIX_FMT_UYVY422;
597 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
600 avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
603 av_log(avctx, AV_LOG_ERROR, "Unsupported format %d\n",
608 ff_set_sar(avctx, avctx->sample_aspect_ratio);
610 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
635 for (x = 0; x < avctx->height; x++) {
641 for (y = 0; y < avctx->width; y++) {
666 for (x = 0; x < avctx->height; x++) {
672 for (y = 0; y < avctx->width; y++) {
706 elements * avctx->width * 4, avctx->height);
708 for (y = 0; y < avctx->height; y++) {
713 for (x = 0; x < avctx->width; x++) {
717 if (avctx->pix_fmt == AV_PIX_FMT_GBRAPF32BE ||
718 avctx->pix_fmt == AV_PIX_FMT_GBRAPF32LE) {
735 if ( avctx->pix_fmt == AV_PIX_FMT_YUVA444P
736 || avctx->pix_fmt == AV_PIX_FMT_YUV444P) {
737 for (x = 0; x < avctx->height; x++) {
742 for (y = 0; y < avctx->width; y++) {
746 if (avctx->pix_fmt == AV_PIX_FMT_YUVA444P)
753 elements * avctx->width, avctx->height);