Lines Matching defs:enc

516 void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
525 const char *separator = enc->dump_separator ? (const char *)enc->dump_separator : ", ";
531 codec_type = av_get_media_type_string(enc->codec_type);
532 codec_name = avcodec_get_name(enc->codec_id);
533 profile = avcodec_profile_name(enc->codec_id, enc->profile);
539 if (enc->codec && strcmp(enc->codec->name, codec_name))
540 av_bprintf(&bprint, " (%s)", enc->codec->name);
544 if ( enc->codec_type == AVMEDIA_TYPE_VIDEO
546 && enc->refs)
548 enc->refs, enc->refs > 1 ? "s" : "");
550 if (enc->codec_tag)
552 av_fourcc2str(enc->codec_tag), enc->codec_tag);
554 switch (enc->codec_type) {
560 enc->pix_fmt == AV_PIX_FMT_NONE ? "none" :
561 unknown_if_null(av_get_pix_fmt_name(enc->pix_fmt)));
572 if (enc->bits_per_raw_sample && enc->pix_fmt != AV_PIX_FMT_NONE &&
573 enc->bits_per_raw_sample < av_pix_fmt_desc_get(enc->pix_fmt)->comp[0].depth)
574 av_bprintf(&bprint, "%d bpc, ", enc->bits_per_raw_sample);
575 if (enc->color_range != AVCOL_RANGE_UNSPECIFIED &&
576 (str = av_color_range_name(enc->color_range)))
579 if (enc->colorspace != AVCOL_SPC_UNSPECIFIED ||
580 enc->color_primaries != AVCOL_PRI_UNSPECIFIED ||
581 enc->color_trc != AVCOL_TRC_UNSPECIFIED) {
582 const char *col = unknown_if_null(av_color_space_name(enc->colorspace));
583 const char *pri = unknown_if_null(av_color_primaries_name(enc->color_primaries));
584 const char *trc = unknown_if_null(av_color_transfer_name(enc->color_trc));
592 if (enc->field_order != AV_FIELD_UNKNOWN) {
594 if (enc->field_order == AV_FIELD_TT)
596 else if (enc->field_order == AV_FIELD_BB)
598 else if (enc->field_order == AV_FIELD_TB)
600 else if (enc->field_order == AV_FIELD_BT)
607 enc->chroma_sample_location != AVCHROMA_LOC_UNSPECIFIED &&
608 (str = av_chroma_location_name(enc->chroma_sample_location)))
624 if (enc->width) {
626 enc->width, enc->height);
629 (enc->width != enc->coded_width ||
630 enc->height != enc->coded_height))
632 enc->coded_width, enc->coded_height);
634 if (enc->sample_aspect_ratio.num) {
636 enc->width * (int64_t)enc->sample_aspect_ratio.num,
637 enc->height * (int64_t)enc->sample_aspect_ratio.den,
640 enc->sample_aspect_ratio.num, enc->sample_aspect_ratio.den,
644 int g = av_gcd(enc->time_base.num, enc->time_base.den);
646 enc->time_base.num / g, enc->time_base.den / g);
650 av_bprintf(&bprint, ", q=%d-%d", enc->qmin, enc->qmax);
652 if (enc->properties & FF_CODEC_PROPERTY_CLOSED_CAPTIONS)
654 if (enc->properties & FF_CODEC_PROPERTY_FILM_GRAIN)
656 if (enc->properties & FF_CODEC_PROPERTY_LOSSLESS)
663 if (enc->sample_rate) {
664 av_bprintf(&bprint, "%d Hz, ", enc->sample_rate);
668 int ret = av_channel_layout_describe(&enc->ch_layout, buf, sizeof(buf));
672 if (enc->sample_fmt != AV_SAMPLE_FMT_NONE &&
673 (str = av_get_sample_fmt_name(enc->sample_fmt))) {
676 if ( enc->bits_per_raw_sample > 0
677 && enc->bits_per_raw_sample != av_get_bytes_per_sample(enc->sample_fmt) * 8)
678 av_bprintf(&bprint, " (%d bit)", enc->bits_per_raw_sample);
680 if (enc->initial_padding)
681 av_bprintf(&bprint, ", delay %d", enc->initial_padding);
682 if (enc->trailing_padding)
683 av_bprintf(&bprint, ", padding %d", enc->trailing_padding);
688 int g = av_gcd(enc->time_base.num, enc->time_base.den);
691 enc->time_base.num / g, enc->time_base.den / g);
695 if (enc->width)
696 av_bprintf(&bprint, ", %dx%d", enc->width, enc->height);
702 if (enc->flags & AV_CODEC_FLAG_PASS1)
704 if (enc->flags & AV_CODEC_FLAG_PASS2)
707 bitrate = get_bit_rate(enc);
710 } else if (enc->rc_max_rate > 0) {
711 av_bprintf(&bprint, ", max. %"PRId64" kb/s", enc->rc_max_rate / 1000);