From patchwork Fri May 12 18:01:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 3658 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.3.129 with SMTP id 123csp440717vsd; Fri, 12 May 2017 11:02:19 -0700 (PDT) X-Received: by 10.223.151.203 with SMTP id t11mr4383424wrb.18.1494612139013; Fri, 12 May 2017 11:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494612138; cv=none; d=google.com; s=arc-20160816; b=Kxnk+96voHds77sMMPq66bCuW1HfBdBbmX9uw9665awAUdV56H87bO58rC/1eUVWaa d29bu5csiViE9gd3nqam971w1YaM0VFu3pk1i461wvltKWxgnKOigHpNOSEX8IbIpsWC rZTNjwO/jFh/btq5MguN4IuoXXew+GTBcP6ombHafMiF+3nLFj+mxq9CmTDqk9eqlbyW r7wrbCrop+SedGCM+PQybFz/4SKNUES4xT/eEddq+PbxDf4JhmYZjoTmO69f/AdAXGJf a5PI6fQm/TvAsYE5DNWjG5C4FYvjQHrETwQXClyPQARS3X78zUbpZZGDVRSRT++HxfRP ew9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=8fzbD8+wR7jHG7f0BV8QK3jOQNnXP6Yos6GRBegxULM=; b=OoUmRLFKA18JMWxYOfQ1zJmA4WM6YrfrH1udfAIiqt8fmNm40HH50asTUeQ9nPuhG9 V3XyYluI9L/IttaXtzdGjptuDQnwUpAlT94V8DUynrc/G5Fu+IPpiUYWGEZY2XGYoWNT VeIb5JOxQIfgs4LVYcnCzj3S1OUFhkKHJG1a2yQMTXoCATSge400Yd9oI83bVsFqUNVO q3FAXPWzORAQ+5v39qy4+1NUX0qcukS4TKv6slUCri6C62EgQ4TFWlXZhp8Axcy6kRUn 6+OZjNlYkMEjD4sjxpFzuelOcS+LOjdqAgdaFE1q65Lu+SLqz4aMz4eQNI1c+ET//3UH OtSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id e135si964470wmd.44.2017.05.12.11.02.18; Fri, 12 May 2017 11:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 540AF687EBA; Fri, 12 May 2017 21:02:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BBAEE6807EB for ; Fri, 12 May 2017 21:02:00 +0300 (EEST) Received: by mail-wm0-f67.google.com with SMTP id u65so15229922wmu.3 for ; Fri, 12 May 2017 11:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=QOHGR6dDwhozxm3TpDxMfXb5gLCFDWdBB3w0qw8GpTQ=; b=r35k2sWt3JkP8L+KPTVvMFWRX0aIrnd+6s0TKZHM1FzQkIEQkTEWYKXoD98H0OWFlY wpWi8a861aNFtptTPHNAEAZK6QmCUuE8weG+ahGwCGoD5XzPre97dddiJqU2nf0GI1Nv mNFqRKobA9uKRmdik4NpHKgXgvs6rIqTp0D73IyzUmLaMqC3d+wpDuCSyXfdp4zawfeD rNe/v5ZZeKzBr8CW2eNADyIui5J64IVejY9lwsqD/Q/jH3ZzdsNZNeTaOKLS1zXV9D8u 3gWfsFQGprscP3G2fo8BhP4Yt5wO4jsDoe1nvfxMHZVOMvk2zZze4l/zx3tdK6y/h+PF SidA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=QOHGR6dDwhozxm3TpDxMfXb5gLCFDWdBB3w0qw8GpTQ=; b=RxhvgH5x1XO2MxIHaWcpwwD+hyaUlnC1JDqzifnI3N4oCZzjNX827IKBn5axX2Sc+O c9DdSrVmkxxtXsjiLYGZjDycioV8OdFSIL8qnH16cEV4Q5QR934J9NNmGJ+a5zTqImjV QftTni/6VkjRRKmDR8nbupfQelqRAdoRUh4F3BLPJIvym68XBZ/fc5qJs1ToXs4Dk4Kf +Vja2xbv67MTIOEuSz0CArkkPXUR9tc2VVWgnr1pS77pVZD4vMGK8ns4Wla2OLwUO3tW ZkAoMtnWHxhjyYiOxAWc2pCHO1YThMaP2sf/juVkKFTu+4z+4NQ+thtXPSCaqUdlGb2g GYNg== X-Gm-Message-State: AODbwcCU0rUkuKyBhqKEuds8s+tlarzsfkIoBmQ7o6oTmBTL89dN1u7r 7HwxQL62ZUjOrRit X-Received: by 10.28.15.14 with SMTP id 14mr3832703wmp.51.1494612127319; Fri, 12 May 2017 11:02:07 -0700 (PDT) Received: from localhost.localdomain ([94.250.174.60]) by smtp.gmail.com with ESMTPSA id t85sm5343590wmt.23.2017.05.12.11.02.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 11:02:05 -0700 (PDT) From: Paul B Mahol To: ffmpeg-devel@ffmpeg.org Date: Fri, 12 May 2017 20:01:54 +0200 Message-Id: <20170512180154.29344-1-onemda@gmail.com> X-Mailer: git-send-email 2.9.3 Subject: [FFmpeg-devel] [PATCH] avfilter: don't anonymously typedef structs X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Paul B Mahol --- libavfilter/aeval.c | 2 +- libavfilter/af_afade.c | 2 +- libavfilter/af_amerge.c | 2 +- libavfilter/af_apad.c | 2 +- libavfilter/af_aresample.c | 2 +- libavfilter/af_asetnsamples.c | 2 +- libavfilter/af_asetrate.c | 2 +- libavfilter/af_astats.c | 2 +- libavfilter/af_atempo.c | 4 ++-- libavfilter/af_earwax.c | 2 +- libavfilter/af_firequalizer.c | 6 +++--- libavfilter/af_hdcd.c | 4 ++-- libavfilter/af_volumedetect.c | 2 +- libavfilter/asrc_anoisesrc.c | 2 +- libavfilter/asrc_anullsrc.c | 2 +- libavfilter/asrc_flite.c | 2 +- libavfilter/asrc_sine.c | 2 +- libavfilter/avf_concat.c | 2 +- libavfilter/avf_showcqt.h | 8 ++++---- libavfilter/avf_showspectrum.c | 2 +- libavfilter/avf_showwaves.c | 2 +- libavfilter/bbox.h | 2 +- libavfilter/buffersink.h | 4 ++-- libavfilter/deshake.h | 10 +++++----- libavfilter/deshake_opencl.h | 2 +- libavfilter/dualinput.h | 2 +- libavfilter/ebur128.h | 2 +- libavfilter/f_bench.c | 2 +- libavfilter/f_ebur128.c | 2 +- libavfilter/f_interleave.c | 2 +- libavfilter/f_perms.c | 2 +- libavfilter/f_sendcmd.c | 6 +++--- libavfilter/f_zmq.c | 4 ++-- libavfilter/signature.h | 10 +++++----- libavfilter/signature_lookup.c | 2 +- libavfilter/tinterlace.h | 2 +- libavfilter/unsharp.h | 2 +- libavfilter/vf_alphamerge.c | 2 +- libavfilter/vf_bbox.c | 2 +- libavfilter/vf_blackdetect.c | 2 +- libavfilter/vf_codecview.c | 2 +- libavfilter/vf_colorbalance.c | 4 ++-- libavfilter/vf_colorchannelmixer.c | 2 +- libavfilter/vf_colorlevels.c | 4 ++-- libavfilter/vf_colormatrix.c | 2 +- libavfilter/vf_curves.c | 2 +- libavfilter/vf_decimate.c | 2 +- libavfilter/vf_dejudder.c | 2 +- libavfilter/vf_detelecine.c | 2 +- libavfilter/vf_edgedetect.c | 2 +- libavfilter/vf_eq.h | 2 +- libavfilter/vf_extractplanes.c | 2 +- libavfilter/vf_fftfilt.c | 2 +- libavfilter/vf_field.c | 2 +- libavfilter/vf_fieldmatch.c | 2 +- libavfilter/vf_geq.c | 2 +- libavfilter/vf_histeq.c | 2 +- libavfilter/vf_hqx.c | 2 +- libavfilter/vf_hue.c | 2 +- libavfilter/vf_idet.h | 2 +- libavfilter/vf_il.c | 2 +- libavfilter/vf_kerndeint.c | 2 +- libavfilter/vf_mcdeint.c | 2 +- libavfilter/vf_mpdecimate.c | 2 +- libavfilter/vf_nlmeans.c | 2 +- libavfilter/vf_noise.h | 4 ++-- libavfilter/vf_owdenoise.c | 2 +- libavfilter/vf_palettegen.c | 2 +- libavfilter/vf_pp.c | 2 +- libavfilter/vf_removelogo.c | 2 +- libavfilter/vf_sab.c | 4 ++-- libavfilter/vf_selectivecolor.c | 2 +- libavfilter/vf_separatefields.c | 2 +- libavfilter/vf_setfield.c | 2 +- libavfilter/vf_showpalette.c | 2 +- libavfilter/vf_signalstats.c | 2 +- libavfilter/vf_smartblur.c | 4 ++-- libavfilter/vf_spp.h | 2 +- libavfilter/vf_subtitles.c | 2 +- libavfilter/vf_super2xsai.c | 2 +- libavfilter/vf_telecine.c | 2 +- libavfilter/vf_thumbnail.c | 2 +- libavfilter/vf_tile.c | 2 +- libavfilter/vf_uspp.c | 2 +- libavfilter/vf_vidstabdetect.c | 2 +- libavfilter/vf_vidstabtransform.c | 2 +- libavfilter/vf_vignette.c | 2 +- libavfilter/vf_xbr.c | 2 +- libavfilter/vidstabutils.c | 2 +- libavfilter/vsrc_cellauto.c | 2 +- libavfilter/vsrc_life.c | 2 +- libavfilter/vsrc_mandelbrot.c | 2 +- 92 files changed, 116 insertions(+), 116 deletions(-) diff --git a/libavfilter/aeval.c b/libavfilter/aeval.c index 42970f4..faf4835 100644 --- a/libavfilter/aeval.c +++ b/libavfilter/aeval.c @@ -53,7 +53,7 @@ enum var_name { VAR_VARS_NB }; -typedef struct { +typedef struct EvalContext { const AVClass *class; char *sample_rate_str; int sample_rate; diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c index 3a6266f..ba7a2ab 100644 --- a/libavfilter/af_afade.c +++ b/libavfilter/af_afade.c @@ -29,7 +29,7 @@ #include "avfilter.h" #include "internal.h" -typedef struct { +typedef struct AudioFadeContext { const AVClass *class; int type; int curve, curve2; diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c index 3cf36b3..cc974cd 100644 --- a/libavfilter/af_amerge.c +++ b/libavfilter/af_amerge.c @@ -37,7 +37,7 @@ #define SWR_CH_MAX 64 -typedef struct { +typedef struct AMergeContext { const AVClass *class; int nb_inputs; int route[SWR_CH_MAX]; /**< channels routing, see copy_samples */ diff --git a/libavfilter/af_apad.c b/libavfilter/af_apad.c index 8171f2a..f7a4199 100644 --- a/libavfilter/af_apad.c +++ b/libavfilter/af_apad.c @@ -34,7 +34,7 @@ #include "audio.h" #include "internal.h" -typedef struct { +typedef struct APadContext { const AVClass *class; int64_t next_pts; diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c index 2b55d70..0216432 100644 --- a/libavfilter/af_aresample.c +++ b/libavfilter/af_aresample.c @@ -34,7 +34,7 @@ #include "audio.h" #include "internal.h" -typedef struct { +typedef struct AResampleContext { const AVClass *class; int sample_rate_arg; double ratio; diff --git a/libavfilter/af_asetnsamples.c b/libavfilter/af_asetnsamples.c index b5aa193..3c2f66b 100644 --- a/libavfilter/af_asetnsamples.c +++ b/libavfilter/af_asetnsamples.c @@ -33,7 +33,7 @@ #include "internal.h" #include "formats.h" -typedef struct { +typedef struct ASNSContext { const AVClass *class; int nb_out_samples; ///< how many samples to output AVAudioFifo *fifo; ///< samples are queued here diff --git a/libavfilter/af_asetrate.c b/libavfilter/af_asetrate.c index 66febd7..50a5f43 100644 --- a/libavfilter/af_asetrate.c +++ b/libavfilter/af_asetrate.c @@ -22,7 +22,7 @@ #include "avfilter.h" #include "internal.h" -typedef struct { +typedef struct ASetRateContext { const AVClass *class; int sample_rate; int rescale_pts; diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c index 51fc2cc..182532f 100644 --- a/libavfilter/af_astats.c +++ b/libavfilter/af_astats.c @@ -42,7 +42,7 @@ typedef struct ChannelStats { uint64_t nb_samples; } ChannelStats; -typedef struct { +typedef struct AudioStatsContext { const AVClass *class; ChannelStats *chstats; int nb_channels; diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c index eb62656..d909105 100644 --- a/libavfilter/af_atempo.c +++ b/libavfilter/af_atempo.c @@ -53,7 +53,7 @@ /** * A fragment of audio waveform */ -typedef struct { +typedef struct AudioFragment { // index of the first sample of this fragment in the overall waveform; // 0: input sample position // 1: output sample position @@ -84,7 +84,7 @@ typedef enum { /** * Filter state machine */ -typedef struct { +typedef struct ATempoContext { const AVClass *class; // ring-buffer of input samples, necessary because some times diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c index b0ba4cf..7b880c8 100644 --- a/libavfilter/af_earwax.c +++ b/libavfilter/af_earwax.c @@ -71,7 +71,7 @@ static const int8_t filt[NUMTAPS] = { 0, -5, 4, 0}; -typedef struct { +typedef struct EarwaxContext { int16_t taps[NUMTAPS * 2]; } EarwaxContext; diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c index 4243d66..7741057 100644 --- a/libavfilter/af_firequalizer.c +++ b/libavfilter/af_firequalizer.c @@ -52,17 +52,17 @@ enum Scale { }; #define NB_GAIN_ENTRY_MAX 4096 -typedef struct { +typedef struct GainEntry { double freq; double gain; } GainEntry; -typedef struct { +typedef struct OverlapIndex { int buf_idx; int overlap_idx; } OverlapIndex; -typedef struct { +typedef struct FIREqualizerContext { const AVClass *class; RDFTContext *analysis_rdft; diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 2800ed9..fd17646 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -837,7 +837,7 @@ static const int32_t gaintab[] = { /** tone generator: sample_number, frequency, sample_rate, amplitude */ #define TONEGEN16(sn, f, sr, a) (int16_t)(sin((6.28318530718 * (sn) * (f)) /(sr)) * (a) * 0x7fff) -typedef struct { +typedef struct hdcd_state { uint64_t window; unsigned char readahead; @@ -904,7 +904,7 @@ static const char * const pf_str[] = { "?", "A", "B", "A+B" }; -typedef struct { +typedef struct hdcd_detection_data { hdcd_dv hdcd_detected; hdcd_pf packet_type; int total_packets; /**< valid packets */ diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c index c7d58e8..43c1ebf 100644 --- a/libavfilter/af_volumedetect.c +++ b/libavfilter/af_volumedetect.c @@ -24,7 +24,7 @@ #include "avfilter.h" #include "internal.h" -typedef struct { +typedef struct VolDetectContext { /** * Number of samples at each PCM value. * histogram[0x8000 + i] is the number of samples at value i. diff --git a/libavfilter/asrc_anoisesrc.c b/libavfilter/asrc_anoisesrc.c index 709224c..be0d5ab 100644 --- a/libavfilter/asrc_anoisesrc.c +++ b/libavfilter/asrc_anoisesrc.c @@ -25,7 +25,7 @@ #include "libavutil/lfg.h" #include "libavutil/random_seed.h" -typedef struct { +typedef struct ANoiseSrcContext { const AVClass *class; int sample_rate; double amplitude; diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c index 94bd0ca..cb67694 100644 --- a/libavfilter/asrc_anullsrc.c +++ b/libavfilter/asrc_anullsrc.c @@ -34,7 +34,7 @@ #include "avfilter.h" #include "internal.h" -typedef struct { +typedef struct ANullContext { const AVClass *class; char *channel_layout_str; uint64_t channel_layout; diff --git a/libavfilter/asrc_flite.c b/libavfilter/asrc_flite.c index d13a4a3..c9619eb 100644 --- a/libavfilter/asrc_flite.c +++ b/libavfilter/asrc_flite.c @@ -32,7 +32,7 @@ #include "formats.h" #include "internal.h" -typedef struct { +typedef struct FliteContext { const AVClass *class; char *voice_str; char *textfile; diff --git a/libavfilter/asrc_sine.c b/libavfilter/asrc_sine.c index ff77526..3a87210 100644 --- a/libavfilter/asrc_sine.c +++ b/libavfilter/asrc_sine.c @@ -28,7 +28,7 @@ #include "avfilter.h" #include "internal.h" -typedef struct { +typedef struct SineContext { const AVClass *class; double frequency; double beep_factor; diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c index 56e4179..4c49368 100644 --- a/libavfilter/avf_concat.c +++ b/libavfilter/avf_concat.c @@ -36,7 +36,7 @@ #define TYPE_ALL 2 -typedef struct { +typedef struct ConcatContext { const AVClass *class; unsigned nb_streams[TYPE_ALL]; /**< number of out streams of each type */ unsigned nb_segments; diff --git a/libavfilter/avf_showcqt.h b/libavfilter/avf_showcqt.h index 010f85c..0cef5a2 100644 --- a/libavfilter/avf_showcqt.h +++ b/libavfilter/avf_showcqt.h @@ -25,16 +25,16 @@ #include "avfilter.h" #include "internal.h" -typedef struct { +typedef struct Coeffs { FFTSample *val; int start, len; } Coeffs; -typedef struct { +typedef struct RGBFloat { float r, g, b; } RGBFloat; -typedef struct { +typedef struct YUVFloat { float y, u, v; } YUVFloat; @@ -43,7 +43,7 @@ typedef union { YUVFloat yuv; } ColorFloat; -typedef struct { +typedef struct ShowCQTContext { const AVClass *class; AVFilterContext *ctx; AVFrame *axis_frame; diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 4dd52a2..bf0c244 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -48,7 +48,7 @@ enum ColorMode { CHANNEL, INTENSITY, RAINBOW, MORELAND, NEBULAE, FIRE, FIERY, enum SlideMode { REPLACE, SCROLL, FULLFRAME, RSCROLL, NB_SLIDES }; enum Orientation { VERTICAL, HORIZONTAL, NB_ORIENTATIONS }; -typedef struct { +typedef struct ShowSpectrumContext { const AVClass *class; int w, h; AVFrame *outpicref; diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index aadc5c1..0866967 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -55,7 +55,7 @@ struct frame_node { struct frame_node *next; }; -typedef struct { +typedef struct ShowWavesContext { const AVClass *class; int w, h; AVRational rate; diff --git a/libavfilter/bbox.h b/libavfilter/bbox.h index eb73154..cf026b8 100644 --- a/libavfilter/bbox.h +++ b/libavfilter/bbox.h @@ -23,7 +23,7 @@ #include -typedef struct { +typedef struct FFBoundingBox { int x1, x2, y1, y2; } FFBoundingBox; diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h index f51fa7c..21d6bb5 100644 --- a/libavfilter/buffersink.h +++ b/libavfilter/buffersink.h @@ -62,7 +62,7 @@ int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flag /** * Struct to use for initializing a buffersink context. */ -typedef struct { +typedef struct AVBufferSinkParams { const enum AVPixelFormat *pixel_fmts; ///< list of allowed pixel formats, terminated by AV_PIX_FMT_NONE } AVBufferSinkParams; @@ -76,7 +76,7 @@ AVBufferSinkParams *av_buffersink_params_alloc(void); /** * Struct to use for initializing an abuffersink context. */ -typedef struct { +typedef struct AVABufferSinkParams { const enum AVSampleFormat *sample_fmts; ///< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1 const int *channel_counts; ///< list of allowed channel counts, terminated by -1 diff --git a/libavfilter/deshake.h b/libavfilter/deshake.h index becd6c2..5e25bb3 100644 --- a/libavfilter/deshake.h +++ b/libavfilter/deshake.h @@ -37,17 +37,17 @@ enum SearchMethod { SEARCH_COUNT }; -typedef struct { +typedef struct IntMotionVector { int x; ///< Horizontal shift int y; ///< Vertical shift } IntMotionVector; -typedef struct { +typedef struct MotionVector { double x; ///< Horizontal shift double y; ///< Vertical shift } MotionVector; -typedef struct { +typedef struct Transform { MotionVector vec; ///< Motion vector double angle; ///< Angle of rotation double zoom; ///< Zoom percentage @@ -55,7 +55,7 @@ typedef struct { #if CONFIG_OPENCL -typedef struct { +typedef struct DeshakeOpenclContext { cl_command_queue command_queue; cl_program program; cl_kernel kernel_luma; @@ -73,7 +73,7 @@ typedef struct { #define MAX_R 64 -typedef struct { +typedef struct DeshakeContext { const AVClass *class; int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search double *angles; ///< Scratch buffer for block angles diff --git a/libavfilter/deshake_opencl.h b/libavfilter/deshake_opencl.h index 5b0a241..f3d96dc 100644 --- a/libavfilter/deshake_opencl.h +++ b/libavfilter/deshake_opencl.h @@ -23,7 +23,7 @@ #include "deshake.h" -typedef struct { +typedef struct float4 { float x; float y; float z; diff --git a/libavfilter/dualinput.h b/libavfilter/dualinput.h index 707b10c..fcde0d6 100644 --- a/libavfilter/dualinput.h +++ b/libavfilter/dualinput.h @@ -29,7 +29,7 @@ #include "framesync.h" #include "internal.h" -typedef struct { +typedef struct FFDualInputContext { FFFrameSync fs; AVFrame *(*process)(AVFilterContext *ctx, AVFrame *main, const AVFrame *second); diff --git a/libavfilter/ebur128.h b/libavfilter/ebur128.h index b94cd24..7436754 100644 --- a/libavfilter/ebur128.h +++ b/libavfilter/ebur128.h @@ -100,7 +100,7 @@ struct FFEBUR128StateInternal; * * You should not need to modify this struct directly. */ -typedef struct { +typedef struct FFEBUR128State { int mode; /**< The current mode. */ unsigned int channels; /**< The number of channels. */ unsigned long samplerate; /**< The sample rate. */ diff --git a/libavfilter/f_bench.c b/libavfilter/f_bench.c index b7b1792..f9e1006 100644 --- a/libavfilter/f_bench.c +++ b/libavfilter/f_bench.c @@ -28,7 +28,7 @@ enum BenchAction { NB_ACTION }; -typedef struct { +typedef struct BenchContext { const AVClass *class; int action; int64_t max, min; diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index 1fd85bb..daeb9f9 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -90,7 +90,7 @@ struct integrator { struct rect { int x, y, w, h; }; -typedef struct { +typedef struct EBUR128Context { const AVClass *class; ///< AVClass context for log and options purpose /* peak metering */ diff --git a/libavfilter/f_interleave.c b/libavfilter/f_interleave.c index b9192e9..a988900 100644 --- a/libavfilter/f_interleave.c +++ b/libavfilter/f_interleave.c @@ -37,7 +37,7 @@ #include "audio.h" #include "video.h" -typedef struct { +typedef struct InterleaveContext { const AVClass *class; int nb_inputs; struct FFBufQueue *queues; diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c index da11d50..dc6ecbb 100644 --- a/libavfilter/f_perms.c +++ b/libavfilter/f_perms.c @@ -33,7 +33,7 @@ enum mode { NB_MODES }; -typedef struct { +typedef struct PermsContext { const AVClass *class; AVLFG lfg; int64_t random_seed; diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c index 522d6ad..1e53465 100644 --- a/libavfilter/f_sendcmd.c +++ b/libavfilter/f_sendcmd.c @@ -55,13 +55,13 @@ static inline char *make_command_flags_str(AVBPrint *pbuf, int flags) return pbuf->str; } -typedef struct { +typedef struct Command { int flags; char *target, *command, *arg; int index; } Command; -typedef struct { +typedef struct Interval { int64_t start_ts; ///< start timestamp expressed as microseconds units int64_t end_ts; ///< end timestamp expressed as microseconds units int index; ///< unique index for these interval commands @@ -70,7 +70,7 @@ typedef struct { int enabled; ///< current time detected inside this interval } Interval; -typedef struct { +typedef struct SendCmdContext { const AVClass *class; Interval *intervals; int nb_intervals; diff --git a/libavfilter/f_zmq.c b/libavfilter/f_zmq.c index d6c3c65..2666016 100644 --- a/libavfilter/f_zmq.c +++ b/libavfilter/f_zmq.c @@ -33,7 +33,7 @@ #include "audio.h" #include "video.h" -typedef struct { +typedef struct ZMQContext { const AVClass *class; void *zmq; void *responder; @@ -86,7 +86,7 @@ static void av_cold uninit(AVFilterContext *ctx) zmq_ctx_destroy(zmq->zmq); } -typedef struct { +typedef struct Command { char *target, *command, *arg; } Command; diff --git a/libavfilter/signature.h b/libavfilter/signature.h index 2659c87..cc198db 100644 --- a/libavfilter/signature.h +++ b/libavfilter/signature.h @@ -51,17 +51,17 @@ enum formats { NB_FORMATS }; -typedef struct { +typedef struct Point { uint8_t x; uint8_t y; } Point; -typedef struct { +typedef struct Block { Point up; Point to; } Block; -typedef struct { +typedef struct ElemCat { int av_elem; /* average element category */ short left_count; /* count of blocks that will be added together */ short block_count; /* count of blocks per element */ @@ -99,7 +99,7 @@ typedef struct MatchingInfo { struct MatchingInfo* next; } MatchingInfo; -typedef struct { +typedef struct StreamContext { AVRational time_base; /* needed for xml_export */ int w; /* height */ @@ -124,7 +124,7 @@ typedef struct { int exported; /* boolean whether stream already exported */ } StreamContext; -typedef struct { +typedef struct SignatureContext { const AVClass *class; /* input parameters */ int mode; diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c index 871a10c..272c717 100644 --- a/libavfilter/signature_lookup.c +++ b/libavfilter/signature_lookup.c @@ -187,7 +187,7 @@ static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont FineSignature *b[COARSE_SIZE]; } pairs[COARSE_SIZE]; - typedef struct { + typedef struct hspace_elem { int dist; size_t score; FineSignature *a; diff --git a/libavfilter/tinterlace.h b/libavfilter/tinterlace.h index e01050c..7f50d3c 100644 --- a/libavfilter/tinterlace.h +++ b/libavfilter/tinterlace.h @@ -46,7 +46,7 @@ enum TInterlaceMode { MODE_NB, }; -typedef struct { +typedef struct TInterlaceContext { const AVClass *class; int mode; ///< TInterlaceMode, interlace mode selected AVRational preout_time_base; diff --git a/libavfilter/unsharp.h b/libavfilter/unsharp.h index fc651c0..340a6a0 100644 --- a/libavfilter/unsharp.h +++ b/libavfilter/unsharp.h @@ -33,7 +33,7 @@ #if CONFIG_OPENCL -typedef struct { +typedef struct UnsharpOpenclContext { cl_command_queue command_queue; cl_program program; cl_kernel kernel_default; diff --git a/libavfilter/vf_alphamerge.c b/libavfilter/vf_alphamerge.c index d0a2639..45fa340 100644 --- a/libavfilter/vf_alphamerge.c +++ b/libavfilter/vf_alphamerge.c @@ -36,7 +36,7 @@ enum { Y, U, V, A }; -typedef struct { +typedef struct AlphaMergeContext { int is_packed_rgb; uint8_t rgba_map[4]; struct FFBufQueue queue_main; diff --git a/libavfilter/vf_bbox.c b/libavfilter/vf_bbox.c index 7d50553..4ac2980 100644 --- a/libavfilter/vf_bbox.c +++ b/libavfilter/vf_bbox.c @@ -30,7 +30,7 @@ #include "bbox.h" #include "internal.h" -typedef struct { +typedef struct BBoxContext { const AVClass *class; int min_val; } BBoxContext; diff --git a/libavfilter/vf_blackdetect.c b/libavfilter/vf_blackdetect.c index 28fdb48..06ef998 100644 --- a/libavfilter/vf_blackdetect.c +++ b/libavfilter/vf_blackdetect.c @@ -30,7 +30,7 @@ #include "avfilter.h" #include "internal.h" -typedef struct { +typedef struct BlackDetectContext { const AVClass *class; double black_min_duration_time; ///< minimum duration of detected black, in seconds int64_t black_min_duration; ///< minimum duration of detected black, expressed in timebase units diff --git a/libavfilter/vf_codecview.c b/libavfilter/vf_codecview.c index dc33973..331bfba 100644 --- a/libavfilter/vf_codecview.c +++ b/libavfilter/vf_codecview.c @@ -44,7 +44,7 @@ #define FRAME_TYPE_P (1<<1) #define FRAME_TYPE_B (1<<2) -typedef struct { +typedef struct CodecViewContext { const AVClass *class; unsigned mv; unsigned frame_type; diff --git a/libavfilter/vf_colorbalance.c b/libavfilter/vf_colorbalance.c index e37f199..f996524 100644 --- a/libavfilter/vf_colorbalance.c +++ b/libavfilter/vf_colorbalance.c @@ -31,13 +31,13 @@ #define B 2 #define A 3 -typedef struct { +typedef struct Range { double shadows; double midtones; double highlights; } Range; -typedef struct { +typedef struct ColorBalanceContext { const AVClass *class; Range cyan_red; Range magenta_green; diff --git a/libavfilter/vf_colorchannelmixer.c b/libavfilter/vf_colorchannelmixer.c index cda972d..2e068fa 100644 --- a/libavfilter/vf_colorchannelmixer.c +++ b/libavfilter/vf_colorchannelmixer.c @@ -30,7 +30,7 @@ #define B 2 #define A 3 -typedef struct { +typedef struct ColorChannelMixerContext { const AVClass *class; double rr, rg, rb, ra; double gr, gg, gb, ga; diff --git a/libavfilter/vf_colorlevels.c b/libavfilter/vf_colorlevels.c index dedbe30..5385a5e 100644 --- a/libavfilter/vf_colorlevels.c +++ b/libavfilter/vf_colorlevels.c @@ -32,12 +32,12 @@ #define B 2 #define A 3 -typedef struct { +typedef struct Range { double in_min, in_max; double out_min, out_max; } Range; -typedef struct { +typedef struct ColorLevelsContext { const AVClass *class; Range range[4]; int nb_comp; diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c index 8ddec4f..3a02e2b 100644 --- a/libavfilter/vf_colormatrix.c +++ b/libavfilter/vf_colormatrix.c @@ -58,7 +58,7 @@ enum ColorMode { COLOR_MODE_COUNT }; -typedef struct { +typedef struct ColorMatrixContext { const AVClass *class; int yuv_convert[25][3][3]; int interlaced; diff --git a/libavfilter/vf_curves.c b/libavfilter/vf_curves.c index 69ec108..19ab789 100644 --- a/libavfilter/vf_curves.c +++ b/libavfilter/vf_curves.c @@ -58,7 +58,7 @@ enum preset { NB_PRESETS, }; -typedef struct { +typedef struct CurvesContext { const AVClass *class; int preset; char *comp_points_str[NB_COMP + 1]; diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c index 1fb242a..f9a40f2 100644 --- a/libavfilter/vf_decimate.c +++ b/libavfilter/vf_decimate.c @@ -34,7 +34,7 @@ struct qitem { int64_t totdiff; }; -typedef struct { +typedef struct DecimateContext { const AVClass *class; struct qitem *queue; ///< window of cycle frames and the associated data diff int fid; ///< current frame id in the queue diff --git a/libavfilter/vf_dejudder.c b/libavfilter/vf_dejudder.c index c4d7b6b..4705cb6 100644 --- a/libavfilter/vf_dejudder.c +++ b/libavfilter/vf_dejudder.c @@ -55,7 +55,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct DejudderContext { const AVClass *class; int64_t *ringbuff; int i1, i2, i3, i4; diff --git a/libavfilter/vf_detelecine.c b/libavfilter/vf_detelecine.c index 0d5f88d..0d1e2f2 100644 --- a/libavfilter/vf_detelecine.c +++ b/libavfilter/vf_detelecine.c @@ -32,7 +32,7 @@ #include "internal.h" #include "video.h" -typedef struct { +typedef struct DetelecineContext { const AVClass *class; int first_field; char *pattern; diff --git a/libavfilter/vf_edgedetect.c b/libavfilter/vf_edgedetect.c index ac88e02..173f9fe 100644 --- a/libavfilter/vf_edgedetect.c +++ b/libavfilter/vf_edgedetect.c @@ -44,7 +44,7 @@ struct plane_info { char *directions; }; -typedef struct { +typedef struct EdgeDetectContext { const AVClass *class; struct plane_info planes[3]; int nb_planes; diff --git a/libavfilter/vf_eq.h b/libavfilter/vf_eq.h index 8525048..fa49d46 100644 --- a/libavfilter/vf_eq.h +++ b/libavfilter/vf_eq.h @@ -55,7 +55,7 @@ typedef struct EQParameters { } EQParameters; -typedef struct { +typedef struct EQContext { const AVClass *class; EQParameters param[3]; diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c index 65bba33..d3a9046 100644 --- a/libavfilter/vf_extractplanes.c +++ b/libavfilter/vf_extractplanes.c @@ -38,7 +38,7 @@ #define PLANE_U 0x20 #define PLANE_V 0x40 -typedef struct { +typedef struct ExtractPlanesContext { const AVClass *class; int requested_planes; int map[4]; diff --git a/libavfilter/vf_fftfilt.c b/libavfilter/vf_fftfilt.c index 307b41a..c0c5eb4 100644 --- a/libavfilter/vf_fftfilt.c +++ b/libavfilter/vf_fftfilt.c @@ -33,7 +33,7 @@ #define MAX_PLANES 4 -typedef struct { +typedef struct FFTFILTContext { const AVClass *class; RDFTContext *rdft; diff --git a/libavfilter/vf_field.c b/libavfilter/vf_field.c index 72cabdb..2f4eb67 100644 --- a/libavfilter/vf_field.c +++ b/libavfilter/vf_field.c @@ -31,7 +31,7 @@ enum FieldType { FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM }; -typedef struct { +typedef struct FieldContext { const AVClass *class; int type; ///< FieldType int nb_planes; ///< number of planes of the current format diff --git a/libavfilter/vf_fieldmatch.c b/libavfilter/vf_fieldmatch.c index 54a2c7a..1740215 100644 --- a/libavfilter/vf_fieldmatch.c +++ b/libavfilter/vf_fieldmatch.c @@ -72,7 +72,7 @@ enum comb_dbg { NB_COMBDBG }; -typedef struct { +typedef struct FieldMatchContext { const AVClass *class; AVFrame *prv, *src, *nxt; ///< main sliding window of 3 frames diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c index 9d26f54..b2a7bc0 100644 --- a/libavfilter/vf_geq.c +++ b/libavfilter/vf_geq.c @@ -33,7 +33,7 @@ #include "libavutil/pixdesc.h" #include "internal.h" -typedef struct { +typedef struct GEQContext { const AVClass *class; AVExpr *e[4]; ///< expressions for each plane char *expr_str[4+3]; ///< expression strings for each plane diff --git a/libavfilter/vf_histeq.c b/libavfilter/vf_histeq.c index b3d2545..2449e10 100644 --- a/libavfilter/vf_histeq.c +++ b/libavfilter/vf_histeq.c @@ -54,7 +54,7 @@ enum HisteqAntibanding { HISTEQ_ANTIBANDING_NB, }; -typedef struct { +typedef struct HisteqContext { const AVClass *class; float strength; float intensity; diff --git a/libavfilter/vf_hqx.c b/libavfilter/vf_hqx.c index 5f63b2a..16a1be7 100644 --- a/libavfilter/vf_hqx.c +++ b/libavfilter/vf_hqx.c @@ -34,7 +34,7 @@ typedef int (*hqxfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); -typedef struct { +typedef struct HQXContext { const AVClass *class; int n; hqxfunc_t func; diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index 0d2862f..45a5a1a 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -57,7 +57,7 @@ enum var_name { VAR_NB }; -typedef struct { +typedef struct HueContext { const AVClass *class; float hue_deg; /* hue expressed in degrees */ float hue; /* hue expressed in radians */ diff --git a/libavfilter/vf_idet.h b/libavfilter/vf_idet.h index 47e3d9c..afd8947 100644 --- a/libavfilter/vf_idet.h +++ b/libavfilter/vf_idet.h @@ -39,7 +39,7 @@ typedef enum { REPEAT_BOTTOM, } RepeatedField; -typedef struct { +typedef struct IDETContext { const AVClass *class; float interlace_threshold; float progressive_threshold; diff --git a/libavfilter/vf_il.c b/libavfilter/vf_il.c index e0bf8d5..ae0cc19 100644 --- a/libavfilter/vf_il.c +++ b/libavfilter/vf_il.c @@ -36,7 +36,7 @@ enum FilterMode { MODE_DEINTERLEAVE }; -typedef struct { +typedef struct IlContext { const AVClass *class; int luma_mode, chroma_mode, alpha_mode; ///