[FFmpeg-devel] [PATCH] reduce duplicate data

Stefan Gehrer stefan.gehrer
Fri Jun 27 19:10:37 CEST 2008


Updated patches to reduce data duplication:

mpegaudiotab.diff:

remove alloc_table_0 and alloc_table2, they duplicate
alloc_table_1 and alloc_table3 while only being a bit shorter

h261cleanup.diff

h261dec.c and h261enc.c both included h261data.h thus duplicating
all data in it. The patch moves the include to h261.c instead and
makes tables non-static if necessary. It also reuses two tables
of mpeg12 and removes the h261 copy.

h263localdup.diff
vc1localdup.diff

The same table is declared static twice in different functions.
I moved them out to a single declaration. Alternative would be
to have them on stack.

adpcmdup.diff

ct_adpcm_table is the same as the first half of AdaptationTable
and yamaha_index_scale, removed it.

h264zigzag.diff

zigzag_scan8x8 is a duplicate of ff_zigzag_direct, which is in
dsputil.c and built unconditionally

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adpcmdup.diff
Type: text/x-diff
Size: 855 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080627/5342debb/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h261cleanup.diff
Type: text/x-diff
Size: 9264 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080627/5342debb/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h263localdup.diff
Type: text/x-diff
Size: 1072 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080627/5342debb/attachment-0002.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264zigzag.diff
Type: text/x-diff
Size: 2823 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080627/5342debb/attachment-0003.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpegaudiotab.diff
Type: text/x-diff
Size: 2588 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080627/5342debb/attachment-0004.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vc1localdup.diff
Type: text/x-diff
Size: 1093 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080627/5342debb/attachment-0005.diff>



More information about the ffmpeg-devel mailing list