Lines Matching refs:dst_pix_fmt
2829 static int get_pix_fmt_score(enum AVPixelFormat dst_pix_fmt,
2834 const AVPixFmtDescriptor *dst_desc = av_pix_fmt_desc_get(dst_pix_fmt);
2845 if (dst_pix_fmt == src_pix_fmt)
2854 if (dst_pix_fmt == src_pix_fmt)
2859 if ((ret = get_pix_fmt_depth(&dst_min_depth, &dst_max_depth, dst_pix_fmt)) < 0)
2864 if (dst_pix_fmt == AV_PIX_FMT_PAL8)
2870 int depth_minus1 = (dst_pix_fmt == AV_PIX_FMT_PAL8) ? 7/nb_components : (dst_desc->comp[i].depth - 1);
2932 if (dst_pix_fmt == AV_PIX_FMT_PAL8 && (consider & FF_LOSS_COLORQUANT) &&
2942 int av_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
2947 int ret = get_pix_fmt_score(dst_pix_fmt, src_pix_fmt, &loss, has_alpha ? ~0 : ~FF_LOSS_ALPHA);
2956 enum AVPixelFormat dst_pix_fmt;
2963 dst_pix_fmt = dst_pix_fmt2;
2965 dst_pix_fmt = dst_pix_fmt1;
2976 dst_pix_fmt = av_get_padded_bits_per_pixel(desc2) < av_get_padded_bits_per_pixel(desc1) ? dst_pix_fmt2 : dst_pix_fmt1;
2978 dst_pix_fmt = desc2->nb_components < desc1->nb_components ? dst_pix_fmt2 : dst_pix_fmt1;
2981 dst_pix_fmt = score1 < score2 ? dst_pix_fmt2 : dst_pix_fmt1;
2986 *loss_ptr = av_get_pix_fmt_loss(dst_pix_fmt, src_pix_fmt, has_alpha);
2987 return dst_pix_fmt;