Lines Matching defs:width

45     if (!avctx->width || !avctx->height || FFMAX(avctx->width, avctx->height) >= (1<<16))
48 av_assert0(av_image_check_size(avctx->width, avctx->height, 0, avctx) >= 0);
50 s->frame_buf = av_mallocz(avctx->width * avctx->height);
57 static int decode_copy(GetByteContext *gb, uint8_t *frame, int width, int height)
59 const int size = width * height;
66 static int decode_tsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
69 const uint8_t *frame_end = frame + width * height;
109 static int decode_dsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
112 const uint8_t *frame_end = frame + width * height;
146 static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height)
149 const uint8_t *frame_end = frame + width * height;
153 if ((width | height) & 1)
168 if (frame - frame_start < offset || frame_end - frame < count*2 + width)
172 frame[width] = frame[width + 1] = frame[-offset];
182 if (width < 4 || frame_end - frame < width + 4)
185 frame[width] = frame[width + 1] = bytestream2_get_byte(gb);
188 frame[width] = frame[width + 1] = bytestream2_get_byte(gb);
197 static int decode_bdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
205 frame += width * count;
214 frame += width;
239 static int decode_wdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
241 const uint8_t *frame_end = frame + width * height;
256 int64_t delta = -((int16_t)segments * (int64_t)width);
267 frame[width - 1] = segments & 0xFF;
271 if (frame_end - frame < width)
273 frame += width;
300 static int decode_tdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
302 const uint8_t *frame_end = frame + width * height;
322 static int decode_blck(GetByteContext *gb, uint8_t *frame, int width, int height)
324 memset(frame, 0, width * height);
329 typedef int (*chunk_decoder)(GetByteContext *gb, uint8_t *frame, int width, int height);
372 if (decoder[chunk_type - 2](&gb, s->frame_buf, avctx->width, avctx->height)) {
390 const uint8_t *buf1 = buf + (i&3)*(avctx->width/4) + (i/4)*avctx->width;
391 int stride = (avctx->height/4)*avctx->width;
392 for(j = 0; j < avctx->width/4; j++) {
399 for(; j < avctx->width; j++) {
405 av_image_copy_plane(dst, frame->linesize[0], buf, avctx->width,
406 avctx->width, avctx->height);