[ENH] Windows MPEG DLL
Stephen Pair
spair at advantive.com
Thu Nov 9 05:16:24 UTC 2000
I've added a new color mode to the Windows MPEG DLL that allows videos to be
correctly rendered in 16 bit color mode.
Download it at: http://spair.swiki.net/.uploads/Mpeg3Plugin.dll
To use the new color mode, import the following method:
MPEGFile>>videoReadNext16BitFrameInto: aFormBuffer width: aTargetWidth
height: aTargetHeight stream: aStream
"return non zero if failure"
| width height colorModel x y |
width _ self videoFrameWidth: aStream.
height _ self videoFrameHeight: aStream.
colorModel _ 16.
x _ 0.
y _ 0.
^self videoReadNextFrameInto: aFormBuffer x: x y: y width: width height:
height outWidth: aTargetWidth outHeight: aTargetHeight colorModel:
colorModel stream: aStream bytesPerRow: aTargetWidth*2
- Stephen
More information about the Squeak-dev
mailing list
|