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

Stefano Sabatini stefano.sabatini-lala
Fri Jun 11 00:38:17 CEST 2010


On date Friday 2010-06-11 00:34:21 +0200, Stefano Sabatini encoded:
> ---
>  libavfilter/parseutils.c |   51 +++++++++++++++++++++++++++++++++++++++++++--
>  libavfilter/parseutils.h |    8 ++++++-
>  2 files changed, 55 insertions(+), 4 deletions(-)
[...]

Result of the test is:

Invalid alpha value specifier 'foo' in 'red at foo'
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 = Fierce & Foolish Mortal Perennial Enlightened Gadget



More information about the ffmpeg-devel mailing list