[FFmpeg-devel] [PATCH]lavfi/mandelbrot: Output RGB0 instead of RGBA
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Oct 1 21:48:10 CEST 2015
Hi!
Attached patch improves the mandelbrot output pix_fmt imo.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 56d0503..950c5c8 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -149,7 +149,7 @@ static av_cold void uninit(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx)
{
static const enum AVPixelFormat pix_fmts[] = {
- AV_PIX_FMT_BGR32,
+ AV_PIX_FMT_0BGR32,
AV_PIX_FMT_NONE
};
@@ -379,7 +379,6 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
c= lrintf((s->zyklus[closest_index][0]/closest+1)*127+dv) + lrintf((s->zyklus[closest_index][1]/closest+1)*127+dv)*256;
}
}
- c |= 0xFF000000;
color[x + y*linesize]= c;
if(next_cidx < s->cache_allocated){
s->next_cache[next_cidx ].p[0]= cr;
More information about the ffmpeg-devel
mailing list