Lines Matching defs:desc

712     const AVPixFmtDescriptor *desc;
723 desc = av_pix_fmt_desc_get(pix_fmt);
724 if (!(desc->flags & AV_PIX_FMT_FLAG_RGB))
728 shift = (desc->comp[i].depth - 1) >> 3; \
729 opengl->color_map[(i << 2) + (desc->comp[i].offset >> shift)] = 1.0; \
736 if (desc->flags & AV_PIX_FMT_FLAG_ALPHA)
999 const AVPixFmtDescriptor *desc;
1004 desc = av_pix_fmt_desc_get(opengl->pix_fmt);
1005 av_assert0(desc->nb_components > 0 && desc->nb_components <= 4);
1006 glGenTextures(desc->nb_components, opengl->texture_name);
1016 if (desc->nb_components > 1) {
1017 int has_alpha = desc->flags & AV_PIX_FMT_FLAG_ALPHA;
1018 int num_planes = desc->nb_components - (has_alpha ? 1 : 0);
1023 opengl->chroma_div_w = 1 << desc->log2_chroma_w;
1024 opengl->chroma_div_h = 1 << desc->log2_chroma_h;
1029 AV_CEIL_RSHIFT(opengl->width, desc->log2_chroma_w),
1030 AV_CEIL_RSHIFT(opengl->height, desc->log2_chroma_h));
1129 const AVPixFmtDescriptor *desc)
1133 int width_chroma = AV_CEIL_RSHIFT(opengl->width, desc->log2_chroma_w);
1134 int height_chroma = AV_CEIL_RSHIFT(opengl->height, desc->log2_chroma_h);
1135 int plane = desc->comp[comp_index].plane;
1159 int width = sub ? AV_CEIL_RSHIFT(opengl->width, desc->log2_chroma_w) : opengl->width; \
1160 int height = sub ? AV_CEIL_RSHIFT(opengl->height, desc->log2_chroma_h): opengl->height; \
1162 int plane = desc->comp[comp_index].plane; \
1168 if (!(desc->flags & AV_PIX_FMT_FLAG_PLANAR)) \
1169 bytes_per_pixel *= desc->nb_components; \
1189 data = opengl_get_plane_pointer(opengl, input, comp_index, desc); \
1199 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
1218 if (desc->flags & AV_PIX_FMT_FLAG_PLANAR) {
1221 if (desc->flags & AV_PIX_FMT_FLAG_ALPHA)