[MPlayer-dev-eng] [PATCH] EOSD/ASS code factorization

Nicolas George nicolas.george at normalesup.org
Sun Aug 15 12:20:47 CEST 2010


Hi.

The next step of my attempt to extend the EOSD system, three patches:

- mplayer-eosd-strtol: completely unrelated to the rest, it makes the
  command parser use strtol instead of atoi. It gives better error detection
  (atoi silently accepts 1.9E-12 as 1) and accepts the 0x syntax (RGBA
  0xFFC000FF is nicer than 4290773247).

- mplayer-eosd-dynamic: depends on yesterday's mplayer-eosd-api: eosd.c
  keeps a list of OSD images sources and merges them. Therefore, it becomes
  possible to add EOSD elements from various parts of mplayer code.

- mplayer-eosd-command: depends on mplayer-eosd-dynamic: this adds two slave
  commands: overlay_add and overlay_remove; "overlay_add logo.pgm 42 50 10
  0xFFC000FF" adds logo.pgm (which must not have comments) at (50,10) in
  orange; 42 is a identifier used later for overlay_remove.

You may notice that mplayer-eosd-command only changes command.c and
input.[ch]: it does not need to change anything in eosd.c, let alone the
output system.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-eosd-strtol-20100815.diff
Type: text/x-diff
Size: 656 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100815/3c387bb3/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-eosd-dynamic-20100815.diff
Type: text/x-diff
Size: 9759 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100815/3c387bb3/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-eosd-command-20100815.diff
Type: text/x-diff
Size: 4899 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100815/3c387bb3/attachment-0002.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100815/3c387bb3/attachment.pgp>


More information about the MPlayer-dev-eng mailing list