Lines Matching defs:desc

56                        const AVPixFmtDescriptor *desc)
60 if (!desc)
65 s = (max_step_comp == 1 || max_step_comp == 2) ? desc->log2_chroma_w : 0;
71 if (desc->flags & AV_PIX_FMT_FLAG_BITSTREAM)
78 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
82 if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
85 av_image_fill_max_pixsteps(max_step, max_step_comp, desc);
86 return image_get_linesize(width, plane, max_step[plane], max_step_comp[plane], desc);
92 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
98 if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
101 av_image_fill_max_pixsteps(max_step, max_step_comp, desc);
103 if ((ret = image_get_linesize(width, i, max_step[i], max_step_comp[i], desc)) < 0)
116 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
119 if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
126 if (desc->flags & AV_PIX_FMT_FLAG_PAL) {
132 has_plane[desc->comp[i].plane] = 1;
135 int h, s = (i == 1 || i == 2) ? desc->log2_chroma_h : 0;
221 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
227 if (!desc)
255 if (desc->flags & AV_PIX_FMT_FLAG_PAL) {
264 if (desc->flags & AV_PIX_FMT_FLAG_PAL && pointers[1] &&
387 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
389 if (!desc || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
392 if (desc->flags & AV_PIX_FMT_FLAG_PAL) {
397 if ((desc->flags & AV_PIX_FMT_FLAG_PAL) || (dst_data[1] && src_data[1]))
402 for (i = 0; i < desc->nb_components; i++)
403 planes_nb = FFMAX(planes_nb, desc->comp[i].plane + 1);
413 h = AV_CEIL_RSHIFT(height, desc->log2_chroma_h);
473 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
474 if (!desc)
509 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
512 if (size > dst_size || size < 0 || !desc)
515 for (i = 0; i < desc->nb_components; i++)
516 nb_planes = FFMAX(desc->comp[i].plane, nb_planes);
524 int h, shift = (i == 1 || i == 2) ? desc->log2_chroma_h : 0;
535 if (desc->flags & AV_PIX_FMT_FLAG_PAL) {
586 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
596 if (!desc || nb_planes < 1 || nb_planes > 4 || desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
599 rgb = !!(desc->flags & AV_PIX_FMT_FLAG_RGB);
602 if (desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) {
623 for (c = 0; c < desc->nb_components; c++) {
624 const AVComponentDescriptor comp = desc->comp[c];
635 for (c = 0; c < desc->nb_components; c++) {
636 const AVComponentDescriptor comp = desc->comp[c];
667 av_write_image_line(src_array, c_data, c_linesize, desc, 0, 0, c, w);
682 int chroma_div = plane == 1 || plane == 2 ? desc->log2_chroma_h : 0;