Lines Matching defs:linesizes
62 int av_image_fill_linesizes(int linesizes[4], enum PixelFormat pix_fmt, int width)
69 memset(linesizes, 0, 4*sizeof(linesizes[0]));
77 linesizes[0] = (width * (desc->comp[0].step_minus1+1) + 7) >> 3;
87 linesizes[i] = max_step[i] * shifted_w;
94 uint8_t *ptr, const int linesizes[4])
107 if (linesizes[0] > (INT_MAX - 1024) / height)
109 size[0] = linesizes[0] * height;
125 if (linesizes[i] > INT_MAX / h)
127 size[i] = h * linesizes[i];
176 int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
184 if ((ret = av_image_fill_linesizes(linesizes, pix_fmt, w)) < 0)
188 linesizes[i] = FFALIGN(linesizes[i], align);
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) {