Commit ac7b1f74 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavfi/mandelbrot: Output RGB0 instead of RGBA.

parent f5afd1c7
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#define LIBAVFILTER_VERSION_MAJOR 6 #define LIBAVFILTER_VERSION_MAJOR 6
#define LIBAVFILTER_VERSION_MINOR 9 #define LIBAVFILTER_VERSION_MINOR 9
#define LIBAVFILTER_VERSION_MICRO 100 #define LIBAVFILTER_VERSION_MICRO 101
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \ LIBAVFILTER_VERSION_MINOR, \
......
...@@ -149,7 +149,7 @@ static av_cold void uninit(AVFilterContext *ctx) ...@@ -149,7 +149,7 @@ static av_cold void uninit(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx) static int query_formats(AVFilterContext *ctx)
{ {
static const enum AVPixelFormat pix_fmts[] = { static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_BGR32, AV_PIX_FMT_0BGR32,
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}; };
...@@ -379,7 +379,6 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, ...@@ -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= 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; color[x + y*linesize]= c;
if(next_cidx < s->cache_allocated){ if(next_cidx < s->cache_allocated){
s->next_cache[next_cidx ].p[0]= cr; s->next_cache[next_cidx ].p[0]= cr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment