Lines Matching refs:pix_fmt
47 int av_image_get_linesize(enum PixelFormat pix_fmt, int width, int plane)
49 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
62 int av_image_fill_linesizes(int linesizes[4], enum PixelFormat pix_fmt, int width)
65 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
71 if ((unsigned)pix_fmt >= PIX_FMT_NB || desc->flags & PIX_FMT_HWACCEL)
93 int av_image_fill_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height,
98 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
103 if ((unsigned)pix_fmt >= PIX_FMT_NB || desc->flags & PIX_FMT_HWACCEL)
136 int ff_set_systematic_pal2(uint32_t pal[256], enum PixelFormat pix_fmt)
143 switch (pix_fmt) {
177 int w, int h, enum PixelFormat pix_fmt, int align)
184 if ((ret = av_image_fill_linesizes(linesizes, pix_fmt, w)) < 0)
190 if ((ret = av_image_fill_pointers(pointers, pix_fmt, h, NULL, linesizes)) < 0)
195 if ((ret = av_image_fill_pointers(pointers, pix_fmt, h, buf, linesizes)) < 0) {
199 if (av_pix_fmt_descriptors[pix_fmt].flags & PIX_FMT_PAL)
200 ff_set_systematic_pal2((uint32_t*)pointers[1], pix_fmt);
239 enum PixelFormat pix_fmt, int width, int height)
241 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
260 int bwidth = av_image_get_linesize(pix_fmt, width, i);