Lines Matching defs:desc
36 const AVPixFmtDescriptor *desc,
40 AVComponentDescriptor comp = desc->comp[c];
46 int flags = desc->flags;
84 const AVPixFmtDescriptor *desc,
87 AVComponentDescriptor comp = desc->comp[c];
91 int flags = desc->flags;
1993 enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)
1995 if (desc < av_pix_fmt_descriptors ||
1996 desc >= av_pix_fmt_descriptors + FF_ARRAY_ELEMS(av_pix_fmt_descriptors))
1999 return desc - av_pix_fmt_descriptors;
2006 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
2007 if (!desc)
2009 *h_shift = desc->log2_chroma_w;
2010 *v_shift = desc->log2_chroma_h;
2017 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
2020 if (!desc)
2023 for (i = 0; i < desc->nb_components; i++)
2024 planes[desc->comp[i].plane] = 1;
2074 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
2078 if (!desc || strlen(desc->name) < 2)
2080 av_strlcpy(name, desc->name, sizeof(name));
2100 static int get_color_type(const AVPixFmtDescriptor *desc) {
2101 if (desc->flags & AV_PIX_FMT_FLAG_PAL)
2104 if(desc->nb_components == 1 || desc->nb_components == 2)
2107 if(desc->name && !strncmp(desc->name, "yuvj", 4))
2110 if(desc->flags & AV_PIX_FMT_FLAG_RGB)
2113 if(desc->nb_components == 0)
2121 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
2124 if (!desc || !desc->nb_components) {
2130 for (i = 0; i < desc->nb_components; i++) {
2131 *min = FFMIN(desc->comp[i].depth_minus1+1, *min);
2132 *max = FFMAX(desc->comp[i].depth_minus1+1, *max);
2293 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i);
2294 if(!desc || !desc->name) {
2302 av_log(NULL, AV_LOG_INFO, "pix fmt %s avg_bpp:%d colortype:%d\n", desc->name, av_get_padded_bits_per_pixel(desc), get_color_type(desc));
2303 if ((!(desc->flags & AV_PIX_FMT_FLAG_ALPHA)) != (desc->nb_components != 2 && desc->nb_components != 4)) {