Lines Matching defs:linesizes
88 int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width)
95 memset(linesizes, 0, 4*sizeof(linesizes[0]));
104 linesizes[i] = ret;
111 uint8_t *ptr, const int linesizes[4])
122 if (linesizes[0] > (INT_MAX - 1024) / height)
124 size[0] = linesizes[0] * height;
141 if (linesizes[i] > INT_MAX / h)
143 size[i] = h * linesizes[i];
192 int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
204 if ((ret = av_image_fill_linesizes(linesizes, pix_fmt, align>7 ? FFALIGN(w, 8) : w)) < 0)
208 linesizes[i] = FFALIGN(linesizes[i], align);
210 if ((ret = av_image_fill_pointers(pointers, pix_fmt, h, NULL, linesizes)) < 0)
215 if ((ret = av_image_fill_pointers(pointers, pix_fmt, h, buf, linesizes)) < 0) {