You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/vf_exposure: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		| @@ -75,16 +75,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) | ||||
|     return ff_filter_frame(ctx->outputs[0], frame); | ||||
| } | ||||
|  | ||||
| static av_cold int query_formats(AVFilterContext *ctx) | ||||
| { | ||||
|     static const enum AVPixelFormat pixel_fmts[] = { | ||||
|         AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32, | ||||
|         AV_PIX_FMT_NONE | ||||
|     }; | ||||
|  | ||||
|     return ff_set_common_formats_from_list(ctx, pixel_fmts); | ||||
| } | ||||
|  | ||||
| static av_cold int config_input(AVFilterLink *inlink) | ||||
| { | ||||
|     AVFilterContext *ctx = inlink->dst; | ||||
| @@ -130,7 +120,7 @@ const AVFilter ff_vf_exposure = { | ||||
|     .priv_class    = &exposure_class, | ||||
|     FILTER_INPUTS(exposure_inputs), | ||||
|     FILTER_OUTPUTS(exposure_outputs), | ||||
|     FILTER_QUERY_FUNC(query_formats), | ||||
|     FILTER_PIXFMTS(AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32), | ||||
|     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, | ||||
|     .process_command = ff_filter_process_command, | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user