Lines Matching defs:width
54 static void decode_row(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, const int width,
55 void (*unpack_frame)(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width))
58 int w = (FFMAX(0, width - 12) / 12) * 12;
67 while (w < width - 5) {
75 if (w++ < width) {
78 if (w++ < width) {
82 if (w++ < width) {
88 if (w++ < width) {
91 if (w++ < width) {
97 if (w++ < width)
120 decode_row((const uint32_t *)psrc, py, pu, pv, avctx->width, s->unpack_frame);
130 static int v210_stride(int width, int align) {
131 int aligned_width = ((width + align - 1) / align) * align;
146 stride = v210_stride(avctx->width, 48);
150 int small_stride = v210_stride(avctx->width, align);
164 if (stride == 0 && ((avctx->width & 1) || (int64_t)avctx->width * avctx->height > INT_MAX / 6)) {
165 av_log(avctx, AV_LOG_ERROR, "Strideless v210 is not supported for size %dx%d\n", avctx->width, avctx->height);
170 stride == 0 && avpkt->size < v210_stride(avctx->width * avctx->height, 6)) {
200 int ret = av_image_alloc(pointers, linesizes, avctx->width, avctx->height, avctx->pix_fmt, 1);
203 decode_row((const uint32_t *)psrc, (uint16_t *)pointers[0], (uint16_t *)pointers[1], (uint16_t *)pointers[2], avctx->width * avctx->height, s->unpack_frame);
204 av_image_copy(pic->data, pic->linesize, (const uint8_t **)pointers, linesizes, avctx->pix_fmt, avctx->width, avctx->height);