Lines Matching refs:pitch

272     ptrdiff_t pitch;
448 ctx->pitch = width;
561 uint8_t *dst = ((uint8_t *)ctx->frm0) + left + top * ctx->pitch;
598 dst += ctx->pitch;
627 ptrdiff_t stride = ctx->pitch;
865 ptrdiff_t stride = ctx->pitch;
928 memcpy(ctx->frm0, ctx->frm2, ctx->pitch * ctx->height);
931 memcpy(ctx->frm0, ctx->frm1, ctx->pitch * ctx->height);
1004 frm += ctx->pitch;
1015 static void copy_block(uint16_t *pdest, uint16_t *psrc, int block_size, ptrdiff_t pitch)
1019 ptrdiff_t stride = pitch * 2;
1034 static void fill_block(uint16_t *pdest, uint16_t color, int block_size, ptrdiff_t pitch)
1038 pitch -= block_size;
1039 for (y = 0; y < block_size; y++, pdest += pitch)
1046 ptrdiff_t pitch)
1058 pitch -= block_size;
1060 for (y = 0; y < block_size; y++, dst += pitch)
1066 static int opcode_0xf7(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch)
1068 uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
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);
1100 static int opcode_0xf8(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch)
1102 uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch;
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);
1131 int start_pos = cx + mx + (cy + my) * ctx->pitch;
1132 int end_pos = start_pos + (block_size - 1) * (ctx->pitch + 1);
1160 copy_block(ctx->frm0 + cx + ctx->pitch * cy,
1161 ctx->frm2 + cx + mx + ctx->pitch * (cy + my),
1162 blk_size, ctx->pitch);
1174 copy_block(ctx->frm0 + cx + ctx->pitch * cy,
1175 ctx->frm2 + cx + mx + ctx->pitch * (cy + my),
1176 blk_size, ctx->pitch);
1180 copy_block(ctx->frm0 + cx + ctx->pitch * cy,
1181 ctx->frm1 + cx + ctx->pitch * cy,
1182 blk_size, ctx->pitch);
1185 opcode_0xf7(ctx, cx, cy, blk_size, ctx->pitch);
1189 opcode_0xf8(ctx, cx, cy, blk_size, ctx->pitch);
1195 fill_block(ctx->frm0 + cx + cy * ctx->pitch,
1196 ctx->small_codebook[opcode - 0xf9], blk_size, ctx->pitch);
1201 fill_block(ctx->frm0 + cx + cy * ctx->pitch,
1202 ctx->codebook[bytestream2_get_byteu(&ctx->gb)], blk_size, ctx->pitch);
1207 fill_block(ctx->frm0 + cx + cy * ctx->pitch,
1208 bytestream2_get_le16u(&ctx->gb), blk_size, ctx->pitch);
1212 opcode_0xf8(ctx, cx, cy, blk_size, ctx->pitch);
1373 ptrdiff_t dstpitch, srcpitch = ctx->pitch * (hdr ? sizeof(ctx->frm0[0]) : 1);