Lines Matching defs:width

71     int width, height;
311 const uint8_t *src, int src_stride, int width, int height,
323 /* Image is double the width and half the height we need, each row comprises 2 rows of the output
330 for (col = 0; col < width; col++)
338 for (col = 0; col < width; col++)
352 for (col = 0; col < width; col++)
363 for (col = 0; col < width; col++)
376 uint8_t c, int width, int offset)
380 while (--width >= 0) {
381 dst[(width+offset)*8+7] = (usePtr ? src[width] : c) & 0x1;
382 dst[(width+offset)*8+6] = (usePtr ? src[width] : c) >> 1 & 0x1;
383 dst[(width+offset)*8+5] = (usePtr ? src[width] : c) >> 2 & 0x1;
384 dst[(width+offset)*8+4] = (usePtr ? src[width] : c) >> 3 & 0x1;
385 dst[(width+offset)*8+3] = (usePtr ? src[width] : c) >> 4 & 0x1;
386 dst[(width+offset)*8+2] = (usePtr ? src[width] : c) >> 5 & 0x1;
387 dst[(width+offset)*8+1] = (usePtr ? src[width] : c) >> 6 & 0x1;
388 dst[(width+offset)*8+0] = (usePtr ? src[width] : c) >> 7;
392 while (--width >= 0) {
393 dst[(width+offset)*4+3] = (usePtr ? src[width] : c) & 0x3;
394 dst[(width+offset)*4+2] = (usePtr ? src[width] : c) >> 2 & 0x3;
395 dst[(width+offset)*4+1] = (usePtr ? src[width] : c) >> 4 & 0x3;
396 dst[(width+offset)*4+0] = (usePtr ? src[width] : c) >> 6;
400 while (--width >= 0) {
401 dst[(width+offset)*2+1] = (usePtr ? src[width] : c) & 0xF;
402 dst[(width+offset)*2+0] = (usePtr ? src[width] : c) >> 4;
413 init_get_bits8(&gb, src, width);
414 for (int i = 0; i < s->width; i++) {
421 memcpy(dst + offset, src, width);
423 memset(dst + offset, c, width);
442 const uint8_t *src, int lnum, int width, int bpp)
447 init_get_bits8(&gb, src, width);
449 for (int i = 0; i < s->width; i++) {
458 int w = (s->width - 1) / s->subsampling[0] + 1;
461 if (s->width % s->subsampling[0] || s->height % s->subsampling[1]) {
466 FFMIN(i * s->subsampling[0] + k, s->width-1)] = *src++;
505 const uint8_t *src, int size, int width, int lines,
511 outlen = width * lines;
526 (unsigned long)width * lines, ret);
533 horizontal_fill(s, s->bpp, dst, 1, src, 0, width, 0);
535 memcpy(dst, src, width);
542 src += width;
572 const uint8_t *src, int size, int width, int lines,
575 uint64_t outlen = width * (uint64_t)lines;
591 (uint64_t)width * lines, ret);
598 horizontal_fill(s, s->bpp, dst, 1, src, 0, width, 0);
600 memcpy(dst, src, width);
607 src += width;
615 const uint8_t *src, int size, int width, int lines)
629 horizontal_fill(s, s->bpp, dst, 1, dst, 0, width, 0);
680 if (s->jpgframe->width != s->avctx_mjpeg->width ||
686 if (s->avctx_mjpeg->width == w * 2 &&
690 } else if (s->avctx_mjpeg->width >= w &&
731 int width = ((s->width * s->bpp) + 7) >> 3;
739 width /= s->bppcount;
745 int bytes_per_row = (((s->width - 1) / s->subsampling[0] + 1) * s->bpp *
755 width = (s->width - 1) / s->subsampling[0] + 1;
756 width = width * s->subsampling[0] * s->subsampling[1] + 2*width;
757 av_assert0(width <= bytes_per_row);
761 av_assert0(width == (s->bpp * s->width + 7) >> 3);
765 av_fast_padded_malloc(&s->yuv_line, &s->yuv_line_size, width);
776 return tiff_unpack_zlib(s, p, dst, stride, src, size, width, lines,
787 return tiff_unpack_lzma(s, p, dst, stride, src, size, width, lines,
809 pixels = ff_lzw_decode(s->lzw, dst, width);
810 if (pixels < width) {
812 pixels, width);
816 horizontal_fill(s, s->bpp, dst, 1, dst, 0, width, 0);
821 unpack_gray(s, p, dst, strip_start + line, width, s->bpp);
833 return tiff_unpack_fax(s, dst, stride, src, size, width, lines);
849 if ((ret = dng_decode_jpeg(s->avctx, p, s->stripsize, 0, 0, s->width, s->height)) < 0)
868 if (ssrc + size - src < width)
873 dst, 1, src, 0, width, 0);
876 for (i = 0; i < width; i++)
888 elements = width / pixel_size_bytes * pixel_size_bits / s->bpp * s->bppcount; // need to account for [1, 16] bpp
901 src += width;
904 for (pixels = 0; pixels < width;) {
912 if (pixels + code > width ||
924 if (pixels + code > width) {
937 for (i = 0; i < width; i++)
946 unpack_gray(s, p, dst, strip_start + line, width, s->bpp);
970 has_width_leftover = (s->width % s->tile_width != 0);
974 tile_count_x = (s->width + s->tile_width - 1) / s->tile_width;
983 tile_width = s->width % s->tile_width;
1178 if (s->width != s->avctx->width || s->height != s->avctx->height) {
1179 ret = ff_set_dimensions(s->avctx, s->width, s->height);
1272 s->width = value;
2024 ssize = s->width * soff;
2072 for (j = 0; j < s->width; j++) {
2090 for (j = 0; j < s->width; j++) {
2115 for (j = 0; j < s->width; j++)
2132 s->width = 0;