[FFmpeg-devel] [PATCH] Simplify pcm.c - Phase II

pross at xvid.org pross
Mon Aug 4 15:28:50 CEST 2008


$subject

pcm-simplify-part3.diff
   Change 'n' in pcm_decode_frame() to equal "total number of samples".

optimised-f32.diff
   Add simpler/cleaner/faster F32BE encoding/decoding.
   (Nb: patch must be applied after pcm-simplify-part3.diff)

   Should the approach in this patch be considered okay, my intent would
   to, a) apply the ENCODE/DECODE macros across all the S16/S24/S32/F32
   switch cases, and b) group LE and BE cases together and use #ifdef
   WORDS_BIGENDIAN to use memcpy as appropriate.

   If anyone can suggest a better way of improving PCM, I am all ears...

Cheers,
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcm-simplify-part3.diff
Type: text/x-diff
Size: 3231 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080804/90946610/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optimised-f32.diff
Type: text/x-diff
Size: 2587 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080804/90946610/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080804/90946610/attachment.pgp>



More information about the ffmpeg-devel mailing list