Lines Matching refs:dst
532 static int rle_decode(SANMVideoContext *ctx, uint8_t *dst, const int out_size)
544 memset(dst, color, run_len);
548 bytestream2_get_bufferu(&ctx->gb, dst, run_len);
551 dst += run_len;
561 uint8_t *dst = ((uint8_t *)ctx->frm0) + left + top * ctx->pitch;
585 memset(dst + pos, val, code);
593 dst[pos] = val;
598 dst += ctx->pitch;
605 static inline void codec37_mv(uint8_t *dst, const uint8_t *src,
614 dst[i] = 0;
616 dst[i] = src[i];
618 dst += stride;
629 uint8_t *dst, *prev;
651 dst = ((uint8_t*)ctx->frm0) + left + top * stride;
662 bytestream2_get_buffer(&ctx->gb, dst, width);
663 dst += stride;
669 if (rle_decode(ctx, dst, decoded_size))
682 copy_block4(dst + i, prev + i, stride, stride, 4);
693 bytestream2_get_bufferu(&ctx->gb, dst + i + k * stride, 4);
699 memset(dst + i + k * stride, bytestream2_get_byteu(&ctx->gb), 4);
706 memset(dst + i + k * stride, t, 4);
719 codec37_mv(dst + i, prev + i + mx + my * stride,
724 dst += stride * 4;
733 copy_block4(dst + i, prev + i, stride, stride, 4);
741 bytestream2_get_bufferu(&ctx->gb, dst + i + k * stride, 4);
752 codec37_mv(dst + i, prev + i + mx + my * stride,
756 dst += stride * 4;
770 static int process_block(SANMVideoContext *ctx, uint8_t *dst, uint8_t *prev1,
787 dst[0] = bytestream2_get_byteu(&ctx->gb);
788 dst[1] = bytestream2_get_byteu(&ctx->gb);
789 dst[0 + stride] = bytestream2_get_byteu(&ctx->gb);
790 dst[1 + stride] = bytestream2_get_byteu(&ctx->gb);
793 if (process_block(ctx, dst, prev1, prev2, stride, tbl, size))
795 if (process_block(ctx, dst + size, prev1 + size, prev2 + size,
798 dst += size * stride;
801 if (process_block(ctx, dst, prev1, prev2, stride, tbl, size))
803 if (process_block(ctx, dst + size, prev1 + size, prev2 + size,
814 memset(dst + k * stride, t, size);
826 dst[t + k * stride] = colors[!*pglyph++];
830 memcpy(dst + k * stride, prev1 + k * stride, size);
838 memset(dst + k * stride, t, size);
854 memcpy(dst + k * stride, prev2 + mx + (my + k) * stride, size);
866 uint8_t *dst = (uint8_t *)ctx->frm0 + left + top * stride;
897 bytestream2_get_bufferu(&ctx->gb, dst, width);
898 dst += stride;
906 dst[i] =
907 dst[i + 1] =
908 dst[stride + i] =
909 dst[stride + i + 1] = bytestream2_get_byteu(&ctx->gb);
911 dst += stride * 2;
918 if (process_block(ctx, dst + i, prev1 + i, prev2 + i, stride,
921 dst += stride * 8;
934 if (rle_decode(ctx, dst, decoded_size))
1017 uint8_t *dst = (uint8_t *)pdest;
1023 copy_block4(dst, src, stride, stride, 2);
1026 copy_block8(dst, src, stride, stride, 4);
1029 copy_block16(dst, src, stride, stride, 8);
1044 static int draw_glyph(SANMVideoContext *ctx, uint16_t *dst, int index,
1060 for (y = 0; y < block_size; y++, dst += pitch)
1062 *dst++ = colors[*pglyph++];
1068 uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
1077 dst[0] = ctx->codebook[indices & 0xFF];
1079 dst[1] = ctx->codebook[indices & 0xFF];
1081 dst[pitch] = ctx->codebook[indices & 0xFF];
1083 dst[pitch + 1] = ctx->codebook[indices & 0xFF];
1095 draw_glyph(ctx, dst, glyph, fgcolor, bgcolor, block_size, pitch);
1102 uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
1108 dst[0] = bytestream2_get_le16u(&ctx->gb);
1109 dst[1] = bytestream2_get_le16u(&ctx->gb);
1110 dst[pitch] = bytestream2_get_le16u(&ctx->gb);
1111 dst[pitch + 1] = bytestream2_get_le16u(&ctx->gb);
1123 draw_glyph(ctx, dst, glyph, fgcolor, bgcolor, block_size, pitch);
1259 uint8_t *dst = (uint8_t*)ctx->frm0;
1261 if (rle_decode(ctx, dst, ctx->buf_size))
1370 uint8_t *dst;
1378 dst = ctx->frame->data[0];
1382 memcpy(dst, src, srcpitch);
1384 dst += dstpitch;