static int new_key_frame(FlashSV2Context * s)
{
int i;
- FFSWAP(uint8_t * , s->keybuffer, s->encbuffer);
memcpy(s->key_blocks, s->frame_blocks, s->blocks_size);
memcpy(s->key_frame, s->current_frame, s->frame_size);
s->key_blocks[i].sl_end = 0;
s->key_blocks[i].data = 0;
}
+ FFSWAP(uint8_t * , s->keybuffer, s->encbuffer);
return 0;
}
buf[buf_pos++] = b->flags;
if (b->flags & HAS_DIFF_BLOCKS) {
- buf[buf_pos++] = (uint8_t) (b->start);
- buf[buf_pos++] = (uint8_t) (b->len);
+ buf[buf_pos++] = (b->start);
+ buf[buf_pos++] = (b->len);
}
if (b->flags & ZLIB_PRIME_COMPRESS_CURRENT) {
//This feature of the format is poorly understood, and as of now, unused.
- buf[buf_pos++] = (uint8_t) (b->col);
- buf[buf_pos++] = (uint8_t) (b->row);
+ buf[buf_pos++] = (b->col);
+ buf[buf_pos++] = (b->row);
}
memcpy(buf + buf_pos, b->data, b->data_size);
int c7 = pixel_color7_fast(palette, c15);
int d7 = chroma_diff(color, palette->colors[c7]);
if (dist + d15 >= d7) {
- dest[0] = (uint8_t) c7;
+ dest[0] = c7;
return 1;
} else {
- dest[0] = 0x80 | (uint8_t) (c15 >> 8);
+ dest[0] = 0x80 | (c15 >> 8);
dest[1] = c15 & 0xff;
return 2;
}
flashsv2_encode_end,
.pix_fmts = (enum PixelFormat[]) {PIX_FMT_BGR24, PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video Version 2"),
+ .capabilities = CODEC_CAP_EXPERIMENTAL,
};