[FFmpeg-cvslog] Increase Psygnosis YOP palette dynamics.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Nov 13 13:01:54 CET 2011


On Sat, Nov 12, 2011 at 08:57:04PM +0100, Carl Eugen Hoyos wrote:
> ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:49:53 2011 +0100| [9780c33eca3e03f146970e25196b8363e9ef4790] | committer: Carl Eugen Hoyos
> 
> Increase Psygnosis YOP palette dynamics.
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9780c33eca3e03f146970e25196b8363e9ef4790
> ---
> 
>  libavcodec/yop.c   |    3 ++-
>  tests/ref/fate/yop |   14 +++++++-------
>  2 files changed, 9 insertions(+), 8 deletions(-)
> 
> diff --git a/libavcodec/yop.c b/libavcodec/yop.c
> index 597fe89..e5333db 100644
> --- a/libavcodec/yop.c
> +++ b/libavcodec/yop.c
> @@ -221,7 +221,8 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
>          palette[i + firstcolor] = (s->srcptr[0] << 18) |
>                                    (s->srcptr[1] << 10) |
>                                    (s->srcptr[2] << 2);

Could maybe be simplified to AV_RB24(s->srcptr[0]) << 2  ?


More information about the ffmpeg-cvslog mailing list