Lines Matching defs:desc
49 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
54 if (desc->flags & PIX_FMT_BITSTREAM)
55 return (width * (desc->comp[0].step_minus1+1) + 7) >> 3;
57 av_image_fill_max_pixsteps(max_step, max_step_comp, desc);
58 s = (max_step_comp[plane] == 1 || max_step_comp[plane] == 2) ? desc->log2_chroma_w : 0;
65 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
71 if ((unsigned)pix_fmt >= PIX_FMT_NB || desc->flags & PIX_FMT_HWACCEL)
74 if (desc->flags & PIX_FMT_BITSTREAM) {
75 if (width > (INT_MAX -7) / (desc->comp[0].step_minus1+1))
77 linesizes[0] = (width * (desc->comp[0].step_minus1+1) + 7) >> 3;
81 av_image_fill_max_pixsteps(max_step, max_step_comp, desc);
83 int s = (max_step_comp[i] == 1 || max_step_comp[i] == 2) ? desc->log2_chroma_w : 0;
98 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
103 if ((unsigned)pix_fmt >= PIX_FMT_NB || desc->flags & PIX_FMT_HWACCEL)
111 if (desc->flags & PIX_FMT_PAL) {
118 has_plane[desc->comp[i].plane] = 1;
122 int h, s = (i == 1 || i == 2) ? desc->log2_chroma_h : 0;
241 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
243 if (desc->flags & PIX_FMT_HWACCEL)
246 if (desc->flags & PIX_FMT_PAL) {
255 for (i = 0; i < desc->nb_components; i++)
256 planes_nb = FFMAX(planes_nb, desc->comp[i].plane + 1);
262 h= -((-height)>>desc->log2_chroma_h);