|
|
@ -321,8 +321,14 @@ static int a64multi_encode_frame(AVCodecContext *avctx, AVPacket *pkt, |
|
|
|
buf = pkt->data; |
|
|
|
buf = pkt->data; |
|
|
|
|
|
|
|
|
|
|
|
/* calc optimal new charset + charmaps */ |
|
|
|
/* calc optimal new charset + charmaps */ |
|
|
|
ff_init_elbg(meta, 32, 1000 * c->mc_lifetime, best_cb, CHARSET_CHARS, 50, charmap, &c->randctx); |
|
|
|
ret = ff_init_elbg(meta, 32, 1000 * c->mc_lifetime, best_cb, |
|
|
|
ff_do_elbg (meta, 32, 1000 * c->mc_lifetime, best_cb, CHARSET_CHARS, 50, charmap, &c->randctx); |
|
|
|
CHARSET_CHARS, 50, charmap, &c->randctx); |
|
|
|
|
|
|
|
if (ret < 0) |
|
|
|
|
|
|
|
return ret; |
|
|
|
|
|
|
|
ret = ff_do_elbg(meta, 32, 1000 * c->mc_lifetime, best_cb, |
|
|
|
|
|
|
|
CHARSET_CHARS, 50, charmap, &c->randctx); |
|
|
|
|
|
|
|
if (ret < 0) |
|
|
|
|
|
|
|
return ret; |
|
|
|
|
|
|
|
|
|
|
|
/* create colorram map and a c64 readable charset */ |
|
|
|
/* create colorram map and a c64 readable charset */ |
|
|
|
render_charset(avctx, charset, colram); |
|
|
|
render_charset(avctx, charset, colram); |
|
|
|