[FFmpeg-devel] [PATCH] imlib2's rgb.txt

Michael Niedermayer michaelni
Mon Jun 18 13:10:33 CEST 2007


Hi

On Sat, Jun 16, 2007 at 09:40:46PM -0300, Ramiro Ribeiro Polla wrote:
[...]
> >>>This is interesting. Used with output_example's video, you get quite a
> >>>psychedelic output =).
> >>>Patch attached (and then another commit to reindent).
> >>>      
> >>While you're on it, what about adding the alpha channel too (R,G,B,A)?
> >>-A max(255,N) would produce a nice fade in text.
> >>    
> >
> >Oops, I really mean -A min(255,N)
> >  
> 
> Patch attached =)
[...]
> @@ -333,9 +338,18 @@
>          }
>      }
>  
> -    if (!ci->eval_colors)
> -        imlib_context_set_color(ci->r, ci->g, ci->b, 255);
> +    if (ci->expr_A) {
> +        if (!(ci->eval_a = ff_parse(ci->expr_A, const_names, NULL, NULL, NULL, NULL, NULL))){
> +        av_log(NULL, AV_LOG_ERROR, "Couldn't parse A expression '%s'\n", ci->expr_A);
> +        return -1;
> +        }

indention


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070618/85232373/attachment.pgp>



More information about the ffmpeg-devel mailing list