[SMPEG] dither mode

Hi,

I would like to play mpeg at a reasonnable fps on slow PCs with SMPEG.
On such machines, i’d like to use a 256 palette to speed up display (some of
them can not even handle more than 256 colors ).
I know the original mpeg_play for Berkeley does support dither modes, does
SMPEG support it either?

thx

Alexis

Hi,

I would like to play mpeg at a reasonnable fps on slow PCs with SMPEG.
On such machines, i’d like to use a 256 palette to speed up display (some of
them can not even handle more than 256 colors ).
I know the original mpeg_play for Berkeley does support dither modes, does
SMPEG support it either?

No, it was ripped out in the interest of simplicity. You could go back and
re-add it, if you want though. The dither code is pretty slow though.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Alexis wrote:

Hi,

I would like to play mpeg at a reasonnable fps on slow PCs with SMPEG.
On such machines, i’d like to use a 256 palette to speed up display (some of
them can not even handle more than 256 colors ).
I know the original mpeg_play for Berkeley does support dither modes, does
SMPEG support it either?

I would imagine the most practical way would be to get SMPEG to output its
data into a YCrCb format buffer (save time on the YCrCb-RGB conversion)
and dither to a paletted display yourself. Use a 4:2:2 YUV palette.

If you can get SMPEG to about the YUV data in 4:1:1 pixel format,
that’ll be great.

Not that I know anything about SMPEG itself :slight_smile:

Cheers.