[FFmpeg-devel] [RFC] Scalar color conversion utils (colorutils.[hc])?

Ramiro Polla ramiro.polla
Wed May 6 00:56:17 CEST 2009


On Tue, May 5, 2009 at 7:10 PM, Stefano Sabatini
<stefano.sabatini-lala at poste.it> wrote:
> On date Tuesday 2009-05-05 01:56:30 +0200, Michael Niedermayer encoded:
>> On Mon, May 04, 2009 at 09:23:21PM +0200, Stefano Sabatini wrote:
[...]
>> > Result of test is:
>> >
>> > Testing av_parse_color()
>> > Cannot find color 'foo'
>> > Cannot find color 'red'
>> > Cannot find color 'Red '
>> > Cannot find color 'RED'
>> > Violet -> R(238) G(130) B(238) A(0)
>> > Yellow -> R(255) G(255) B(0) A(0)
>> > Red -> R(255) G(0) B(0) A(0)
>> > 0x000000 -> R(0) G(0) B(0) A(0)
>> > 0x3e34ff -> R(62) G(52) B(255) A(0)
>> > 0x3e34ffaa -> R(62) G(52) B(255) A(170)
>> > Invalid RGB[A] color string: '0xfoobar'
>> > Invalid RGB[A] color string: '0xffffeeeeeeee'
[...]
> Committed.

Have fun with attached patch =)

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bikeshed.diff
Type: text/x-diff
Size: 986 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090505/9f22f679/attachment.diff>



More information about the ffmpeg-devel mailing list