[Ffmpeg-devel] LucasArts SANM (Smush v2) decoder
Michael Niedermayer
michaelni
Fri Jan 19 11:57:16 CET 2007
Hi
On Thu, Jan 18, 2007 at 09:36:14PM -0500, Cyril Zorin wrote:
> Thank you for the nice and thorough code review; I'm working on it =)
>
> A question about bytestream.h -- are there functions to just get 16
> bits out of a byte stream (without reinterpreting it as big/little
> endian)? I know we have a function called "bytestream_get_buffer",
> but I don't want to have to write dest and size every time..
hmm if the data is aligned then a simple *(uint16_t*)X; X+=2 should do
you could also add a _ne16 function to bytestream.h (ne=native endian)
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No evil is honorable: but death is honorable; therefore death is not evil.
-- Citium Zeno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070119/3f2eb8de/attachment.pgp>
More information about the ffmpeg-devel
mailing list