[MPlayer-dev-eng] [PATCH] improve dvd subtitle. cmd 7 (CHG_COLCON)

A Tanaka tanahqua-aa at yahoo.co.jp
Sun Mar 7 11:29:50 CET 2010


On Thu, 04 Mar 2010 14:23:41 +0100
Diego Biurrun <diego at biurrun.de> wrote:
> Could you split this patch into separate parts?  Thank you.
> 
> Diego

splitted.

expalation for patches.

*01_spudec_queue_packet.diff
 in current code, command sequence will queued only when all sequences were processed.
 this means some commands will ignored.
 if sequences is like below
  ==command sequences==
  1) startdisplay,coodinate,color,alpha
  2) alpha
  3) alpha
  4) alpha
  5) stopdisplay
  6) end
  ==============
 alpha value in 1~3 will not used.
 this patch make every sequence queued.

*02_spudec_dont_cut.diff
 in function 'spudec_process_control', spu image are copied, and cut to visible part.
 in many dvd, this process causes repeating
 allocate image size buffer(1) => copy image to buffer 1 
 => allocate smaller buffer(2) for visible size => copy buffer 1 to buffer 2.
 this patch don't reallocate smaller buffer when cut. so buffer is only allocated when need more.
 and only copy once each time.

*03_spudec_chg_colcon.diff
 this handles chg_colcon command. need above two patches.

*04_spudec_copy_packet_once.diff
 by 01_spudec_queue_packet, command sequences could queued many time for one packet.
 and packet will be copied each time when queued.
 sometime one packet has 20~30 sequences. 30 same copies of packet?
 so, this patch use reference counter with one copy.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01_spudec_queue_packet.diff
Type: text/x-patch
Size: 3246 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100307/c1d17e8b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02_spudec_dont_cut.diff
Type: text/x-patch
Size: 4918 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100307/c1d17e8b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03_spudec_chg_colcon.diff
Type: text/x-patch
Size: 6671 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100307/c1d17e8b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04_spudec_copy_packet_once.diff
Type: text/x-patch
Size: 2207 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100307/c1d17e8b/attachment-0003.bin>


More information about the MPlayer-dev-eng mailing list