Lines Matching refs:pixdesc
28 #include "pixdesc.h"
1927 int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
1930 int log2_pixels = pixdesc->log2_chroma_w + pixdesc->log2_chroma_h;
1932 for (c = 0; c < pixdesc->nb_components; c++) {
1934 bits += (pixdesc->comp[c].depth_minus1 + 1) << s;
1940 int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
1943 int log2_pixels = pixdesc->log2_chroma_w + pixdesc->log2_chroma_h;
1946 for (c = 0; c < pixdesc->nb_components; c++) {
1947 const AVComponentDescriptor *comp = &pixdesc->comp[c];
1954 if(!(pixdesc->flags & AV_PIX_FMT_FLAG_BITSTREAM))
1966 const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt];
1967 snprintf(buf, buf_size, "%-11s %7d %10d", pixdesc->name,
1968 pixdesc->nb_components, av_get_bits_per_pixel(pixdesc));
2096 #define pixdesc_has_alpha(pixdesc) \
2097 ((pixdesc)->nb_components == 2 || (pixdesc)->nb_components == 4 || (pixdesc)->flags & AV_PIX_FMT_FLAG_PAL)