[FFmpeg-devel] [PATCH] RoQ encoder

Vitor vitor1001
Fri May 4 18:56:31 CEST 2007


As suggested in Mike Melanson blog, I modified Eric Lasota's RoQ 
encoding patch for inclusion in FFmpeg. The main problem with the 
original patch was that while RoQ is an YUV based codec, the patch 
expected RGB data from FFmpeg.

I modified it to work with YUV without doing any conversion to RGB. 
There were a point where the algorithm calculated the squared difference 
of the RGB values of two pixel blocks. I changed it to calculate the 
squared difference of the YUV values. It looks like it didn't worsen the 
video quality.

I also renamed the variables and structures not to have the sb3_ prefix 
anymore, merged a lot of files and changed the indentation.

This is my first patch, so any suggestion is welcome.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: roqenc.diff
Type: text/x-patch
Size: 108913 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070504/6142f565/attachment.bin>

More information about the ffmpeg-devel mailing list