Lines Matching defs:width
41 int width;
81 if (writeoffset >= hnm->width * hnm->height) {
103 if (offset < 0 || offset + count >= hnm->width * hnm->height) {
106 } else if (writeoffset + count >= hnm->width * hnm->height) {
122 int width = hnm->width;
125 uint8_t *dst = hnm->processed + y * width;
128 src += src_y * width + (y % 2);
129 for (x = 0; x < width; x++) {
144 memcpy(dst, src, hnm->width);
145 src += hnm->width;
167 if (writeoffset + 2 > hnm->width * hnm->height) {
181 if (writeoffset + count > hnm->width * hnm->height) {
193 if (writeoffset > hnm->width * hnm->height) {
209 if (!backward && offset + 2*count > hnm->width * hnm->height) {
212 } else if (backward && offset + 1 >= hnm->width * hnm->height) {
215 } else if (writeoffset + 2*count > hnm->width * hnm->height) {
222 if (offset < (!!backline)*(2 * hnm->width - 1) + 2*(left-1)) {
227 if (offset < (!!backline)*(2 * hnm->width - 1)) {
236 hnm->current[writeoffset++] = hnm->previous[offset - (2 * hnm->width) + 1];
250 hnm->current[writeoffset++] = hnm->current[offset - (2 * hnm->width) + 1];
297 if (writeoffset + hnm->width >= hnm->width * hnm->height) {
302 hnm->current[writeoffset + hnm->width] = bytestream2_get_byte(&gb);
305 writeoffset += hnm->width;
309 if (writeoffset > hnm->width * hnm->height) {
329 if (offset + hnm->width + count >= hnm->width * hnm->height) {
332 } else if (writeoffset + hnm->width + count >= hnm->width * hnm->height) {
340 hnm->current[writeoffset + hnm->width] = hnm->previous[offset + hnm->width];
348 hnm->current[writeoffset + hnm->width] = hnm->current[offset + hnm->width];
416 memcpy(hnm->previous, hnm->current, hnm->width * hnm->height);
418 memcpy(hnm->processed, hnm->current, hnm->width * hnm->height);
432 memcpy(hnm->processed, hnm->current, hnm->width * hnm->height);
464 ret = av_image_check_size(avctx->width, avctx->height, 0, avctx);
472 hnm->width = avctx->width;
474 hnm->buffer1 = av_mallocz(avctx->width * avctx->height);
475 hnm->buffer2 = av_mallocz(avctx->width * avctx->height);
476 hnm->processed = av_mallocz(avctx->width * avctx->height);