[FFmpeg-devel] A64 encoder

Michael Niedermayer michaelni
Wed Jul 21 20:43:42 CEST 2010


On Wed, Jul 21, 2010 at 11:19:19AM +0200, Tobias Bindhammer wrote:
> so here is the next iteration of the codec + muxer.
>
>> ffmpeg ist ein internationales projekt, du solltest auch ein paar
>> schwedische, ungarische und japanische komentare einf?gen das ist
>> ja fast schon diskriminierend
>
> Jajaja. Ist halt reingerutscht :-)
>
> regards,
[...]
> +static av_cold int a64multi_init_encoder(AVCodecContext *avctx)
> +{
> +    A64Context *c = avctx->priv_data;
> +    av_lfg_init(&c->randctx, 1);
> +
> +    if (avctx->global_quality < 1) {
> +        c->mc_lifetime = 4;
> +    } else {
> +        c->mc_lifetime = avctx->global_quality /= FF_QP2LAMBDA;
> +    }
> +
> +    av_log(avctx, AV_LOG_INFO, "charset lifetime set to %d frame(s)\n", c->mc_lifetime);
> +
> +    c->mc_frame_counter = 0;
> +    c->mc_use_5col      = avctx->codec->id == CODEC_ID_A64_MULTI5;
> +    c->mc_meta_charset  = av_malloc(32000 * c->mc_lifetime * sizeof(int));
> +    c->mc_best_cb       = av_malloc(256 * 32 * sizeof(int));
> +    c->mc_charmap       = av_malloc(1000 * c->mc_lifetime * sizeof(int));
> +
> +    avcodec_get_frame_defaults(&c->picture);
> +    avctx->coded_frame            = &c->picture;
> +    avctx->coded_frame->pict_type = FF_I_TYPE;
> +    avctx->coded_frame->key_frame = 1;

> +    if (!avctx->codec_tag)
> +        avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt);

this doesnt look completely correct


[...]
>  general.texi |    2 ++
>  1 file changed, 2 insertions(+)
> cea37974e19e1f6289ca263419efb1d825ff50fe  a64_11_doc.diff
> Index: doc/general.texi
> ===================================================================
> --- doc/general.texi	(Revision 24208)
> +++ doc/general.texi	(Arbeitskopie)
> @@ -307,6 +307,8 @@
>  
>  @multitable @columnfractions .4 .1 .1 .4
>  @item Name @tab Encoding @tab Decoding @tab Comments
> + at item A64 multicolor         @tab  X  @tab
> +    @tab Creates video suitable to be played on a commodore 64 (multicolor mode).
>  @item 4X Movie               @tab     @tab  X
>      @tab Used in certain computer games.
>  @item 8088flex TMV           @tab     @tab  X

>  Makefile     |    1 
>  a64.c        |   72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  allformats.c |    1 
>  3 files changed, 74 insertions(+)
> 92c3b1506e366709a407f5a116c6c5adebf0b91b  a64_11_muxer.diff

ok
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100721/28c87647/attachment.pgp>



More information about the ffmpeg-devel mailing list