[FFmpeg-devel] [PATCH 2/2] Extend color syntax, make it accept an alpha component specifier.

Stefano Sabatini stefano.sabatini-lala
Fri Jun 11 00:58:03 CEST 2010


On date Friday 2010-06-11 00:38:17 +0200, Stefano Sabatini encoded:
[...]

New, somehow more general variant:

Invalid alpha value specifier 'foo' in 'red at foo'
random at 10 -> R(198) G(189) B(241) A(10)
0xff0000 at 1.0 -> R(255) G(0) B(0) A(255)
Invalid alpha value specifier '' in 'red@'
Invalid alpha value specifier '0xfff' in 'red at 0xfff'
red at 0xf -> R(255) G(0) B(0) A(15)
red at 2 -> R(255) G(0) B(0) A(2)
red at 0.1 -> R(255) G(0) B(0) A(25)
Invalid alpha value specifier '-1' in 'red at -1'
red at 0.5 -> R(255) G(0) B(0) A(127)
red at 1.0 -> R(255) G(0) B(0) A(255)
Invalid alpha value specifier '256' in 'red at 256'
Invalid alpha value specifier '10foo' in 'red at 10foo'
Invalid alpha value specifier '-1.0' in 'red at -1.0'
red at -0.0 -> R(255) G(0) B(0) A(0)

Regards.
-- 
FFmpeg = Frightening Freak Magnificient Powered Elitist Gymnast



More information about the ffmpeg-devel mailing list