From e12cb945355a27b6c4229b6c30b6c8aebeceb6f1 Mon Sep 17 00:00:00 2001 From: tqk2811 Date: Thu, 13 Jan 2022 13:24:36 +0700 Subject: [PATCH] REWORK --- FFmpegArgs.Autogens/DocLine.cs | 3 - .../FFmpegArgs.Autogens.csproj | 3 +- FFmpegArgs.Autogens/FiltersGen.cs | 101 +------ FFmpegArgs.Autogens/Program.cs | 4 - .../FFmpegArgs.Executes.nuspec | 4 +- FFmpegArgs.Executes/FFmpegRender.cs | 41 ++- FFmpegArgs.Executes/FFmpegRenderConfig.cs | 23 +- FFmpegArgs.Executes/FFmpegRenderException.cs | 21 +- FFmpegArgs.Executes/FFmpegRenderExtension.cs | 84 ++++-- FFmpegArgs.Executes/FFmpegRenderResult.cs | 24 +- FFmpegArgs.Executes/GlobalUsing.cs | 9 + .../ProcessArgumentOutOfRangeException.cs | 12 +- FFmpegArgs.Executes/RenderProgress.cs | 36 ++- .../AbenchFilterGen.g.cs | 13 +- .../AbufferFilterGen.g.cs | 13 +- .../AcompressorFilterGen.g.cs | 17 +- .../AcontrastFilterGen.g.cs | 11 - .../AcrossfadeFilterGen.g.cs | 19 +- .../AcrusherFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/AcueFilterGen.g.cs | 11 - .../AddroiFilterGen.g.cs | 11 - .../AdeclickFilterGen.g.cs | 13 +- .../AdeclipFilterGen.g.cs | 13 +- .../AdelayFilterGen.g.cs | 11 - .../AdenormFilterGen.g.cs | 13 +- .../AechoFilterGen.g.cs | 11 - .../AemphasisFilterGen.g.cs | 15 +- .../AevalFilterGen.g.cs | 11 - .../AevalsrcFilterGen.g.cs | 11 - .../AexciterFilterGen.g.cs | 11 - .../AfadeFilterGen.g.cs | 15 +- .../AfftdnFilterGen.g.cs | 15 +- .../AfftfiltFilterGen.g.cs | 13 +- .../AfirsrcFilterGen.g.cs | 13 +- .../AformatFilterGen.g.cs | 11 - .../AfreqshiftFilterGen.g.cs | 11 - .../AgateFilterGen.g.cs | 17 +- .../AlimiterFilterGen.g.cs | 11 - .../AllpassFilterGen.g.cs | 25 +- .../AllrgbFilterGen.g.cs | 11 - .../AllyuvFilterGen.g.cs | 11 - .../AloopFilterGen.g.cs | 11 - .../AlphamergeFilterGen.g.cs | 11 - .../AmetadataFilterGen.g.cs | 15 +- .../AmplifyFilterGen.g.cs | 13 +- .../AnlmdnFilterGen.g.cs | 13 +- .../AnlmsFilterGen.g.cs | 13 +- .../AnoisesrcFilterGen.g.cs | 17 +- .../AnullsrcFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/ApadFilterGen.g.cs | 11 - .../ApermsFilterGen.g.cs | 13 +- .../AphaserFilterGen.g.cs | 13 +- .../AphaseshiftFilterGen.g.cs | 11 - .../ApulsatorFilterGen.g.cs | 15 +- .../ArealtimeFilterGen.g.cs | 11 - .../AresampleFilterGen.g.cs | 11 - .../ArnndnFilterGen.g.cs | 11 - .../AsendcmdFilterGen.g.cs | 11 - .../AsetnsamplesFilterGen.g.cs | 11 - .../AsetptsFilterGen.g.cs | 11 - .../AsetrateFilterGen.g.cs | 11 - .../AsettbFilterGen.g.cs | 11 - .../AsidedataFilterGen.g.cs | 15 +- .../AsoftclipFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/AssFilterGen.g.cs | 13 +- .../AstatsFilterGen.g.cs | 15 +- .../AsubboostFilterGen.g.cs | 11 - .../AsubcutFilterGen.g.cs | 11 - .../AsupercutFilterGen.g.cs | 11 - .../AsuperpassFilterGen.g.cs | 11 - .../AsuperstopFilterGen.g.cs | 11 - .../AtadenoiseFilterGen.g.cs | 15 +- .../AtempoFilterGen.g.cs | 11 - .../AtrimFilterGen.g.cs | 11 - .../AvgblurFilterGen.g.cs | 11 - .../Avgblur_openclFilterGen.g.cs | 11 - .../Avgblur_vulkanFilterGen.g.cs | 11 - .../AxcorrelateFilterGen.g.cs | 13 +- .../BandpassFilterGen.g.cs | 25 +- .../BandrejectFilterGen.g.cs | 25 +- FFmpegArgs.Filters.Autogen/BassFilterGen.g.cs | 25 +- FFmpegArgs.Filters.Autogen/BboxFilterGen.g.cs | 11 - .../BenchFilterGen.g.cs | 13 +- .../BilateralFilterGen.g.cs | 11 - .../BiquadFilterGen.g.cs | 21 +- .../BitplanenoiseFilterGen.g.cs | 11 - .../BlackdetectFilterGen.g.cs | 11 - .../BlackframeFilterGen.g.cs | 11 - .../BlendFilterGen.g.cs | 21 +- .../BoxblurFilterGen.g.cs | 11 - .../Boxblur_openclFilterGen.g.cs | 11 - .../BufferFilterGen.g.cs | 11 - .../BwdifFilterGen.g.cs | 17 +- FFmpegArgs.Filters.Autogen/CasFilterGen.g.cs | 13 +- .../CellautoFilterGen.g.cs | 11 - .../ChannelmapFilterGen.g.cs | 11 - .../ChorusFilterGen.g.cs | 11 - .../Chromaber_vulkanFilterGen.g.cs | 11 - .../ChromaholdFilterGen.g.cs | 11 - .../ChromakeyFilterGen.g.cs | 11 - .../ChromanrFilterGen.g.cs | 11 - .../ChromashiftFilterGen.g.cs | 13 +- .../CiescopeFilterGen.g.cs | 17 +- .../CodecviewFilterGen.g.cs | 21 +- .../ColorFilterGen.g.cs | 11 - .../ColorbalanceFilterGen.g.cs | 11 - .../ColorchannelmixerFilterGen.g.cs | 11 - .../ColorcontrastFilterGen.g.cs | 11 - .../ColorcorrectFilterGen.g.cs | 11 - .../ColorholdFilterGen.g.cs | 11 - .../ColorizeFilterGen.g.cs | 11 - .../ColorkeyFilterGen.g.cs | 11 - .../Colorkey_openclFilterGen.g.cs | 11 - .../ColorlevelsFilterGen.g.cs | 11 - .../ColormatrixFilterGen.g.cs | 15 +- .../ColorspaceFilterGen.g.cs | 37 +-- .../ColortemperatureFilterGen.g.cs | 11 - .../CompandFilterGen.g.cs | 11 - .../CompensationdelayFilterGen.g.cs | 11 - .../ConvolutionFilterGen.g.cs | 19 +- .../Convolution_openclFilterGen.g.cs | 11 - .../ConvolveFilterGen.g.cs | 13 +- .../Cover_rectFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/CropFilterGen.g.cs | 11 - .../CropdetectFilterGen.g.cs | 11 - .../CrossfeedFilterGen.g.cs | 11 - .../CrystalizerFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/CueFilterGen.g.cs | 11 - .../CurvesFilterGen.g.cs | 13 +- .../DatascopeFilterGen.g.cs | 15 +- .../DblurFilterGen.g.cs | 11 - .../DcshiftFilterGen.g.cs | 11 - .../DctdnoizFilterGen.g.cs | 11 - .../DebandFilterGen.g.cs | 11 - .../DeblockFilterGen.g.cs | 13 +- .../DeconvolveFilterGen.g.cs | 13 +- .../DedotFilterGen.g.cs | 13 +- .../DeesserFilterGen.g.cs | 13 +- .../DeflateFilterGen.g.cs | 11 - .../DeflickerFilterGen.g.cs | 13 +- .../Deinterlace_qsvFilterGen.g.cs | 13 +- .../DejudderFilterGen.g.cs | 11 - .../DelogoFilterGen.g.cs | 11 - .../DerainFilterGen.g.cs | 15 +- .../DeshakeFilterGen.g.cs | 15 +- .../Deshake_openclFilterGen.g.cs | 11 - .../DespillFilterGen.g.cs | 13 +- .../DetelecineFilterGen.g.cs | 13 +- .../DilationFilterGen.g.cs | 11 - .../Dilation_openclFilterGen.g.cs | 11 - .../DisplaceFilterGen.g.cs | 13 +- .../Dnn_processingFilterGen.g.cs | 13 +- .../DoubleweaveFilterGen.g.cs | 13 +- .../DrawboxFilterGen.g.cs | 11 - .../DrawgraphFilterGen.g.cs | 15 +- .../DrawgridFilterGen.g.cs | 11 - .../DrawtextFilterGen.g.cs | 15 +- .../DrmeterFilterGen.g.cs | 11 - .../DynaudnormFilterGen.g.cs | 11 - .../EdgedetectFilterGen.g.cs | 15 +- FFmpegArgs.Filters.Autogen/ElbgFilterGen.g.cs | 11 - .../EntropyFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/EpxFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/EqFilterGen.g.cs | 13 +- .../EqualizerFilterGen.g.cs | 25 +- .../ErosionFilterGen.g.cs | 11 - .../Erosion_openclFilterGen.g.cs | 11 - .../EstdifFilterGen.g.cs | 19 +- .../ExposureFilterGen.g.cs | 11 - .../ExtrastereoFilterGen.g.cs | 11 - .../FFmpegArgs.Filters.Autogen.csproj | 1 + .../FFmpegArgs.Filters.Autogen.nuspec | 5 +- FFmpegArgs.Filters.Autogen/FadeFilterGen.g.cs | 13 +- .../FftdnoizFilterGen.g.cs | 11 - .../FftfiltFilterGen.g.cs | 13 +- .../FieldFilterGen.g.cs | 13 +- .../FieldhintFilterGen.g.cs | 13 +- .../FieldorderFilterGen.g.cs | 13 +- .../FillbordersFilterGen.g.cs | 13 +- .../Find_rectFilterGen.g.cs | 11 - .../FirequalizerFilterGen.g.cs | 17 +- .../FlangerFilterGen.g.cs | 15 +- .../FloodfillFilterGen.g.cs | 11 - .../FormatFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/FpsFilterGen.g.cs | 15 +- .../FramepackFilterGen.g.cs | 13 +- .../FramerateFilterGen.g.cs | 13 +- .../FramestepFilterGen.g.cs | 11 - .../FreezedetectFilterGen.g.cs | 11 - .../FreezeframesFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/FsppFilterGen.g.cs | 11 - .../GblurFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/GeqFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/GlobalUsing.cs | 13 + .../GradfunFilterGen.g.cs | 11 - .../GradientsFilterGen.g.cs | 11 - .../GraphmonitorFilterGen.g.cs | 15 +- .../GreyedgeFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/HaasFilterGen.g.cs | 13 +- .../HaldclutFilterGen.g.cs | 13 +- .../HaldclutsrcFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/HdcdFilterGen.g.cs | 15 +- .../HflipFilterGen.g.cs | 11 - .../HighpassFilterGen.g.cs | 25 +- .../HighshelfFilterGen.g.cs | 25 +- .../HilbertFilterGen.g.cs | 13 +- .../HisteqFilterGen.g.cs | 13 +- .../HistogramFilterGen.g.cs | 17 +- .../Hqdn3dFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/HqxFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/HueFilterGen.g.cs | 11 - .../HwmapFilterGen.g.cs | 13 +- .../HwuploadFilterGen.g.cs | 11 - .../HysteresisFilterGen.g.cs | 11 - .../IdentityFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/IdetFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/IlFilterGen.g.cs | 17 +- .../InflateFilterGen.g.cs | 11 - .../InterlaceFilterGen.g.cs | 15 +- .../KerndeintFilterGen.g.cs | 11 - .../KirschFilterGen.g.cs | 11 - .../LagfunFilterGen.g.cs | 13 +- .../LenscorrectionFilterGen.g.cs | 13 +- .../LibvmafFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/LifeFilterGen.g.cs | 11 - .../LimiterFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/LoopFilterGen.g.cs | 11 - .../LoudnormFilterGen.g.cs | 13 +- .../LowpassFilterGen.g.cs | 25 +- .../LowshelfFilterGen.g.cs | 25 +- .../LumakeyFilterGen.g.cs | 11 - .../Lut1dFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/Lut2FilterGen.g.cs | 11 - .../Lut3dFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/LutFilterGen.g.cs | 11 - .../LutrgbFilterGen.g.cs | 11 - .../LutyuvFilterGen.g.cs | 11 - .../MandelbrotFilterGen.g.cs | 15 +- .../MaskedclampFilterGen.g.cs | 11 - .../MaskedmaxFilterGen.g.cs | 11 - .../MaskedmergeFilterGen.g.cs | 11 - .../MaskedminFilterGen.g.cs | 11 - .../MaskedthresholdFilterGen.g.cs | 11 - .../MaskfunFilterGen.g.cs | 11 - .../McdeintFilterGen.g.cs | 15 +- .../McompandFilterGen.g.cs | 11 - .../MedianFilterGen.g.cs | 11 - .../MestimateFilterGen.g.cs | 13 +- .../MetadataFilterGen.g.cs | 15 +- .../MidequalizerFilterGen.g.cs | 11 - .../MinterpolateFilterGen.g.cs | 21 +- .../MonochromeFilterGen.g.cs | 11 - .../MpdecimateFilterGen.g.cs | 11 - .../MptestsrcFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/MsadFilterGen.g.cs | 11 - .../NegateFilterGen.g.cs | 11 - .../NlmeansFilterGen.g.cs | 11 - .../Nlmeans_openclFilterGen.g.cs | 11 - .../NnediFilterGen.g.cs | 25 +- .../NoformatFilterGen.g.cs | 11 - .../NoiseFilterGen.g.cs | 31 +- .../NormalizeFilterGen.g.cs | 11 - .../NullsrcFilterGen.g.cs | 11 - .../OpenclsrcFilterGen.g.cs | 11 - .../OscilloscopeFilterGen.g.cs | 11 - .../OverlayFilterGen.g.cs | 19 +- .../Overlay_cudaFilterGen.g.cs | 13 +- .../Overlay_openclFilterGen.g.cs | 11 - .../Overlay_qsvFilterGen.g.cs | 13 +- .../Overlay_vulkanFilterGen.g.cs | 11 - .../OwdenoiseFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/PadFilterGen.g.cs | 13 +- .../Pad_openclFilterGen.g.cs | 11 - .../Pal100barsFilterGen.g.cs | 11 - .../Pal75barsFilterGen.g.cs | 11 - .../PalettegenFilterGen.g.cs | 13 +- .../PaletteuseFilterGen.g.cs | 17 +- FFmpegArgs.Filters.Autogen/PanFilterGen.g.cs | 11 - .../PermsFilterGen.g.cs | 13 +- .../PerspectiveFilterGen.g.cs | 17 +- .../PhaseFilterGen.g.cs | 13 +- .../PhotosensitivityFilterGen.g.cs | 11 - .../PixscopeFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/Pp7FilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/PpFilterGen.g.cs | 11 - .../PrewittFilterGen.g.cs | 11 - .../Prewitt_openclFilterGen.g.cs | 11 - .../Program_openclFilterGen.g.cs | 11 - .../PseudocolorFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/PsnrFilterGen.g.cs | 11 - .../PullupFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/QpFilterGen.g.cs | 11 - .../RandomFilterGen.g.cs | 11 - .../Readeia608FilterGen.g.cs | 11 - .../ReadvitcFilterGen.g.cs | 11 - .../RealtimeFilterGen.g.cs | 11 - .../RemapFilterGen.g.cs | 13 +- .../RemovegrainFilterGen.g.cs | 11 - .../RemovelogoFilterGen.g.cs | 11 - .../RgbashiftFilterGen.g.cs | 13 +- .../RgbtestsrcFilterGen.g.cs | 11 - .../RobertsFilterGen.g.cs | 11 - .../Roberts_openclFilterGen.g.cs | 11 - .../RotateFilterGen.g.cs | 11 - .../RubberbandFilterGen.g.cs | 27 +- FFmpegArgs.Filters.Autogen/SabFilterGen.g.cs | 11 - .../ScaleFilterGen.g.cs | 19 +- .../Scale_qsvFilterGen.g.cs | 13 +- .../Scale_vulkanFilterGen.g.cs | 15 +- .../ScdetFilterGen.g.cs | 11 - .../ScrollFilterGen.g.cs | 11 - .../SelectivecolorFilterGen.g.cs | 13 +- .../SendcmdFilterGen.g.cs | 11 - .../SetdarFilterGen.g.cs | 11 - .../SetfieldFilterGen.g.cs | 13 +- .../SetparamsFilterGen.g.cs | 21 +- .../SetptsFilterGen.g.cs | 11 - .../SetrangeFilterGen.g.cs | 13 +- .../SetsarFilterGen.g.cs | 11 - .../SettbFilterGen.g.cs | 11 - .../ShearFilterGen.g.cs | 13 +- .../ShowinfoFilterGen.g.cs | 11 - .../ShowpaletteFilterGen.g.cs | 11 - .../ShuffleframesFilterGen.g.cs | 11 - .../ShufflepixelsFilterGen.g.cs | 15 +- .../ShuffleplanesFilterGen.g.cs | 11 - .../SidechaincompressFilterGen.g.cs | 17 +- .../SidechaingateFilterGen.g.cs | 17 +- .../SidedataFilterGen.g.cs | 15 +- .../SierpinskiFilterGen.g.cs | 13 +- .../SignalstatsFilterGen.g.cs | 15 +- .../SilencedetectFilterGen.g.cs | 11 - .../SilenceremoveFilterGen.g.cs | 17 +- FFmpegArgs.Filters.Autogen/SincFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/SineFilterGen.g.cs | 11 - .../SmartblurFilterGen.g.cs | 11 - .../SmptebarsFilterGen.g.cs | 11 - .../SmptehdbarsFilterGen.g.cs | 11 - .../SobelFilterGen.g.cs | 11 - .../Sobel_openclFilterGen.g.cs | 11 - .../SpeechnormFilterGen.g.cs | 15 +- FFmpegArgs.Filters.Autogen/SppFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/SrFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/SsimFilterGen.g.cs | 11 - .../Stereo3dFilterGen.g.cs | 15 +- .../StereotoolsFilterGen.g.cs | 17 +- .../StereowidenFilterGen.g.cs | 11 - .../SubtitlesFilterGen.g.cs | 11 - .../SuperequalizerFilterGen.g.cs | 11 - .../SurroundFilterGen.g.cs | 15 +- .../SwaprectFilterGen.g.cs | 11 - .../SwapuvFilterGen.g.cs | 11 - .../TblendFilterGen.g.cs | 21 +- .../TelecineFilterGen.g.cs | 13 +- .../Testsrc2FilterGen.g.cs | 11 - .../TestsrcFilterGen.g.cs | 11 - .../ThistogramFilterGen.g.cs | 19 +- .../ThresholdFilterGen.g.cs | 11 - .../ThumbnailFilterGen.g.cs | 11 - .../Thumbnail_cudaFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/TileFilterGen.g.cs | 11 - .../TinterlaceFilterGen.g.cs | 13 +- .../Tlut2FilterGen.g.cs | 11 - .../TmedianFilterGen.g.cs | 11 - .../TmidequalizerFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/TmixFilterGen.g.cs | 11 - .../TonemapFilterGen.g.cs | 13 +- .../Tonemap_openclFilterGen.g.cs | 21 +- FFmpegArgs.Filters.Autogen/TpadFilterGen.g.cs | 15 +- .../TransposeFilterGen.g.cs | 15 +- .../Transpose_openclFilterGen.g.cs | 15 +- .../TrebleFilterGen.g.cs | 25 +- .../TremoloFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/TrimFilterGen.g.cs | 11 - .../UnsharpFilterGen.g.cs | 11 - .../Unsharp_openclFilterGen.g.cs | 11 - .../UntileFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/UsppFilterGen.g.cs | 11 - FFmpegArgs.Filters.Autogen/V360FilterGen.g.cs | 21 +- .../VaguedenoiserFilterGen.g.cs | 15 +- .../VectorscopeFilterGen.g.cs | 21 +- .../VflipFilterGen.g.cs | 11 - .../VibranceFilterGen.g.cs | 11 - .../VibratoFilterGen.g.cs | 11 - .../VidstabdetectFilterGen.g.cs | 11 - .../VidstabtransformFilterGen.g.cs | 17 +- FFmpegArgs.Filters.Autogen/VifFilterGen.g.cs | 11 - .../VignetteFilterGen.g.cs | 15 +- .../VmafmotionFilterGen.g.cs | 11 - .../VolumeFilterGen.g.cs | 17 +- .../Vpp_qsvFilterGen.g.cs | 15 +- .../W3fdifFilterGen.g.cs | 19 +- .../WaveformFilterGen.g.cs | 25 +- .../WeaveFilterGen.g.cs | 13 +- FFmpegArgs.Filters.Autogen/XbrFilterGen.g.cs | 11 - .../XfadeFilterGen.g.cs | 13 +- .../Xfade_openclFilterGen.g.cs | 13 +- .../YadifFilterGen.g.cs | 17 +- .../Yadif_cudaFilterGen.g.cs | 17 +- .../YaepblurFilterGen.g.cs | 11 - .../YuvtestsrcFilterGen.g.cs | 11 - .../ZoompanFilterGen.g.cs | 11 - .../ZscaleFilterGen.g.cs | 51 ++-- .../AudioToAudioFilter.cs | 26 +- .../FFmpegArgs.Executes.nuspec | 37 +++ .../FFmpegArgs.Filters.Common.csproj | 17 ++ .../FilterExtensions.cs | 51 ++-- .../FloatRangeAttribute.cs | 18 +- FFmpegArgs.Filters.Common/GlobalUsing.cs | 13 + .../ICommandSupport.cs | 6 +- .../IFramesync.cs | 17 +- .../IResamplerOptions.cs | 267 ++---------------- .../ISliceThreading.cs | 7 +- .../ITimelineSupport.cs | 31 +- .../ImageToImageFilter.cs | 28 +- FFmpegArgs.Filters.Common/Nuget.ps1 | 78 +++++ .../SourceAudioFilter.cs | 26 +- .../SourceImageFilter.cs | 26 +- .../VideoToVideoFilter.cs | 17 ++ .../AudioFilters/AcompressorFilter.cs | 18 -- .../AudioFilters/AcontrastFilter.cs | 4 - .../AudioFilters/AcopyFilter.cs | 2 - .../AudioFilters/AcrossfadeFilter.cs | 21 +- .../AudioFilters/AcrossoverFilter.cs | 24 +- .../AudioFilters/AcrusherFilter.cs | 15 - FFmpegArgs.Filters/AudioFilters/AcueFilter.cs | 7 - .../AudioFilters/AdeclickFilter.cs | 10 - .../AudioFilters/AdeclipFilter.cs | 18 -- .../AudioFilters/AevalFilter.cs | 12 +- .../AudioFilters/AexciterFilter.cs | 19 -- .../AudioFilters/AfadeFilter.cs | 31 -- .../AudioFilters/AfftdnFilter.cs | 16 -- .../AudioFilters/AfftfiltFilter.cs | 15 - FFmpegArgs.Filters/AudioFilters/AfirFilter.cs | 20 -- .../AudioFilters/AformatFilter.cs | 12 +- .../AudioFilters/AfreqshiftFilter.cs | 8 - .../AudioFilters/AfwtdnFilter.cs | 9 +- .../AudioFilters/AgateFilter.cs | 25 -- .../AudioFilters/AloopFilter.cs | 14 - .../AudioFilters/AmergeFilter.cs | 15 +- FFmpegArgs.Filters/AudioFilters/AmixFilter.cs | 18 +- FFmpegArgs.Filters/AudioFilters/Aresample.cs | 14 +- .../AudioFilters/AsetrateFilter.cs | 17 +- .../AudioFilters/AtrimFilter.cs | 21 +- .../AudioFilters/VolumeFilter.cs | 24 +- .../AudioSinks/AbuffersinkFilter.cs | 3 - .../AudioSinks/AnullsinkFilter.cs | 3 - .../AudioSources/AbufferFilter.cs | 15 +- .../AudioSources/AevalsrcFilter.cs | 12 - .../AudioSources/AfirsrcFilter.cs | 11 - .../AudioSources/AnoisesrcFilter.cs | 10 - .../AudioSources/AnullsrcFilter.cs | 11 +- .../AudioSources/FliteFilter.cs | 7 - .../AudioSources/HilbertFilter.cs | 8 - FFmpegArgs.Filters/AudioSources/SincFilter.cs | 12 - FFmpegArgs.Filters/AudioSources/SineFilter.cs | 12 +- FFmpegArgs.Filters/FFmpegArgs.Filters.csproj | 1 + FFmpegArgs.Filters/FFmpegArgs.Filters.nuspec | 5 +- FFmpegArgs.Filters/GlobalUsing.cs | 10 + .../MultimediaFilters/ASelectFilter.cs | 10 +- .../MultimediaFilters/ASplitFilter.cs | 7 +- .../MultimediaFilters/ConcatFilter.cs | 15 +- .../MultimediaFilters/SelectFilter.cs | 10 +- .../MultimediaFilters/SetAPtsFilter.cs | 8 +- .../MultimediaFilters/SetPtsFilter.cs | 10 +- .../MultimediaFilters/SplitFilter.cs | 7 +- .../MultimediaSources/AmovieFilter.cs | 4 - .../MultimediaSources/MovieFilter.cs | 4 - .../Avgblur_openclFilter.cs | 4 - .../VAAPIVideoFilters/TonemapVaapiFilter.cs | 2 - .../VideoFilters/AddroiFilter.cs | 21 +- .../VideoFilters/AlphaextractFilter.cs | 5 +- .../VideoFilters/AlphamergeFilter.cs | 5 +- .../VideoFilters/AmplifyFilter.cs | 12 +- FFmpegArgs.Filters/VideoFilters/AssFilter.cs | 8 +- .../VideoFilters/AtadenoiseFilter.cs | 15 +- .../VideoFilters/AvgblurFilter.cs | 9 +- FFmpegArgs.Filters/VideoFilters/BboxFilter.cs | 6 +- .../VideoFilters/BilateralFilter.cs | 8 +- .../VideoFilters/BitplanenoiseFilter.cs | 7 +- .../VideoFilters/BlackdetectFilter.cs | 9 +- .../VideoFilters/BlackframeFilter.cs | 7 +- .../VideoFilters/BlendFilter.cs | 17 +- FFmpegArgs.Filters/VideoFilters/Bm3dFilter.cs | 17 +- .../VideoFilters/BoxBlurFilter.cs | 13 +- .../VideoFilters/BwdifFilter.cs | 12 +- FFmpegArgs.Filters/VideoFilters/CasFilter.cs | 7 +- .../VideoFilters/ChromaholdFilter.cs | 8 - .../VideoFilters/ChromakeyFilter.cs | 9 - .../VideoFilters/ChromanrFilter.cs | 9 +- .../VideoFilters/ChromashiftFilter.cs | 7 +- .../VideoFilters/CiescopeFilter.cs | 16 +- .../VideoFilters/CodecviewFilter.cs | 12 +- .../VideoFilters/ColorKeyFilter.cs | 11 +- .../VideoFilters/ColorbalanceFilter.cs | 12 +- .../VideoFilters/ColorchannelmixerFilter.cs | 13 +- .../VideoFilters/ColorcontrastFilter.cs | 12 +- .../VideoFilters/ColorcorrectFilter.cs | 12 +- .../VideoFilters/ColorholdFilter.cs | 8 - .../VideoFilters/ColorizeFilter.cs | 9 +- .../VideoFilters/ColorlevelsFilter.cs | 34 +-- .../VideoFilters/ColormatrixFilter.cs | 6 +- .../VideoFilters/ColorspaceFilter.cs | 66 ++--- .../VideoFilters/ColortemperatureFilter.cs | 9 +- .../VideoFilters/ConvolutionFilter.cs | 13 +- .../VideoFilters/ConvolveFilter.cs | 8 - FFmpegArgs.Filters/VideoFilters/CopyFilter.cs | 5 +- .../VideoFilters/CoreimageFilter.cs | 1 - .../VideoFilters/Cover_rectFilter.cs | 6 - FFmpegArgs.Filters/VideoFilters/CropFilter.cs | 16 +- .../VideoFilters/CropdetectFilter.cs | 11 +- FFmpegArgs.Filters/VideoFilters/CueFilter.cs | 9 +- .../VideoFilters/CurvesFilter.cs | 17 +- .../VideoFilters/DatascopeFilter.cs | 17 -- .../VideoFilters/DblurFilter.cs | 9 +- .../VideoFilters/DctdnoizFilter.cs | 14 +- .../VideoFilters/DebandFilter.cs | 13 +- .../VideoFilters/DeblockFilter.cs | 11 +- .../VideoFilters/DecimateFilter.cs | 12 +- .../VideoFilters/DeconvolveFilter.cs | 12 +- .../VideoFilters/DedotFilter.cs | 12 +- .../VideoFilters/DrawBoxFilter.cs | 16 +- .../VideoFilters/DrawTextFilter.cs | 50 +--- FFmpegArgs.Filters/VideoFilters/FadeFilter.cs | 14 - .../VideoFilters/FormatFilter.cs | 12 +- FFmpegArgs.Filters/VideoFilters/FpsFilter.cs | 11 +- FFmpegArgs.Filters/VideoFilters/GeqFilter.cs | 19 +- FFmpegArgs.Filters/VideoFilters/LoopFilter.cs | 14 - .../VideoFilters/OverLayFilter.cs | 19 +- FFmpegArgs.Filters/VideoFilters/PadFilter.cs | 23 +- .../VideoFilters/RotateFilter.cs | 13 - .../VideoFilters/ScaleFilter.cs | 43 +-- .../VideoFilters/SetDarFilter.cs | 12 - .../VideoFilters/SetSarFilter.cs | 11 - .../Shares/BaseSubtitlesFilter.cs | 48 ++-- .../VideoFilters/SubtitlesFilter.cs | 9 +- FFmpegArgs.Filters/VideoFilters/TrimFilter.cs | 13 +- .../VideoFilters/ZoompanFilter.cs | 22 +- .../VideoSinks/BuffersinkFilter.cs | 4 - .../VideoSinks/NullsinkFilter.cs | 4 - .../BaseVideoSources/AllyuvFilter.cs | 1 - .../BaseVideoSources/BaseVideoSource.cs | 30 +- .../BaseVideoSources/ColorFilter.cs | 6 +- .../BaseVideoSources/HaldclutsrcFilter.cs | 2 - .../BaseVideoSources/NullsrcFilter.cs | 1 - .../BaseVideoSources/Pal100barsFilter.cs | 1 - .../BaseVideoSources/Pal75barsFilter.cs | 1 - .../BaseVideoSources/RgbtestsrcFilter.cs | 1 - .../BaseVideoSources/SmptebarsFilter.cs | 1 - .../BaseVideoSources/SmptehdbarsFilter.cs | 1 - .../BaseVideoSources/Testsrc2Filter.cs | 2 - .../BaseVideoSources/TestsrcFilter.cs | 2 - .../BaseVideoSources/YuvtestsrcFilter.cs | 1 - .../VideoSources/BufferFilter.cs | 21 +- .../VideoSources/CellautoFilter.cs | 23 +- .../VideoSources/CoreimagesrcFilter.cs | 1 - .../VideoSources/Frei0r_srcFilter.cs | 1 - .../VideoSources/GradientsFilter.cs | 25 +- FFmpegArgs.Filters/VideoSources/LifeFilter.cs | 23 +- .../VideoSources/MandelbrotFilter.cs | 30 +- .../VideoSources/MptestsrcFilter.cs | 10 +- .../VideoSources/OpenclsrcFilter.cs | 12 +- .../VideoSources/SierpinskiFilter.cs | 25 +- FFmpegArgs.Inputs/AudioFileInput.cs | 28 +- FFmpegArgs.Inputs/FFmpegArgs.Inputs.nuspec | 4 +- FFmpegArgs.Inputs/FilterInput.cs | 10 - FFmpegArgs.Inputs/GlobalUsing.cs | 7 + FFmpegArgs.Inputs/ImageFileInput.cs | 20 +- FFmpegArgs.Inputs/ImageFilesConcatInput.cs | 30 +- FFmpegArgs.Inputs/InputExtensions.cs | 22 +- FFmpegArgs.Inputs/VideoFileInput.cs | 34 +-- FFmpegArgs.Outputs/AudioFileOutput.cs | 22 +- FFmpegArgs.Outputs/FFmpegArgs.Outputs.nuspec | 4 +- FFmpegArgs.Outputs/GlobalUsing.cs | 10 + FFmpegArgs.Outputs/ImageFileOutput.cs | 23 +- FFmpegArgs.Outputs/OutputExtensions.cs | 53 ++-- FFmpegArgs.Outputs/VSyncMethod.cs | 3 + FFmpegArgs.Outputs/VideoFileOutput.cs | 23 +- FFmpegArgs.Test/FFmpegArgTest.cs | 41 +-- FFmpegArgs.Test/FFmpegArgs.Test.csproj | 1 + FFmpegArgs.Test/FFmpegExpressionTest.cs | 10 - FFmpegArgs.Test/FilterTest/DrawTextTest.cs | 23 +- FFmpegArgs.Test/GlobalUsing.cs | 25 ++ FFmpegArgs.Test/Render.cs | 12 +- .../TanersenerSlideShow/BarsOne.cs | 53 +--- .../TanersenerSlideShow/BlurredBackground.cs | 25 +- .../TanersenerSlideShow/CheckerBoard.cs | 29 +- FFmpegArgs.Test/TanersenerSlideShow/Clock.cs | 52 +--- .../TanersenerSlideShow/Collapse.cs | 37 +-- FFmpegArgs.Test/TanersenerSlideShow/Config.cs | 8 +- FFmpegArgs.Test/TanersenerSlideShow/Cover.cs | 47 +-- .../Enums/CollapseExpandMode.cs | 1 - .../Enums/HorizontalDirection.cs | 1 - FFmpegArgs.Test/TanersenerSlideShow/Expand.cs | 37 +-- .../TanersenerSlideShow/FadeInOne.cs | 25 +- .../TanersenerSlideShow/FadeInTwo.cs | 26 +- .../TanersenerSlideShow/PhotoCollection.cs | 43 +-- FFmpegArgs.Test/TanersenerSlideShow/Push.cs | 66 +---- .../TanersenerSlideShow/PushBox.cs | 89 +----- .../TanersenerSlideShow/PushFilm.cs | 57 +--- FFmpegArgs.Test/TanersenerSlideShow/Shared.cs | 33 +-- .../TanersenerSlideShow/StartEnd.cs | 4 +- FFmpegArgs.sln | 6 + FFmpegArgs/Attributes/AttributeExtensions.cs | 23 ++ .../{Filters => Attributes}/NameAttribute.cs | 13 +- FFmpegArgs/AudioOptionExtensions.cs | 4 - FFmpegArgs/BaseOption.cs | 9 - FFmpegArgs/BaseOptionFlag.cs | 2 - FFmpegArgs/Cores/BaseInputOutput.cs | 1 - FFmpegArgs/Cores/Filters/BaseFilter.cs | 15 - FFmpegArgs/Cores/Filters/FilterChain.cs | 18 +- FFmpegArgs/Cores/Filters/FilterExtensions.cs | 9 +- FFmpegArgs/Cores/Filters/IFilter.cs | 2 - FFmpegArgs/Cores/Inputs/BaseInput.cs | 1 - FFmpegArgs/Cores/Maps/AudioMap.cs | 2 - FFmpegArgs/Cores/Maps/BaseMap.cs | 7 - FFmpegArgs/Cores/Maps/ImageMap.cs | 4 +- FFmpegArgs/Cores/Maps/VideoMap.cs | 3 - FFmpegArgs/Cores/Outputs/AudioOutput.cs | 1 - FFmpegArgs/Cores/Outputs/ImageOutput.cs | 1 - .../{Filters => }/Enums/AVSampleFormat.cs | 17 +- FFmpegArgs/{Filters => }/Enums/AlphaBlend.cs | 2 +- .../{Filters => }/Enums/ChannelLayout.cs | 6 +- FFmpegArgs/{Filters => }/Enums/PixFmt.cs | 2 +- FFmpegArgs/{Filters => }/Enums/SwsDither.cs | 2 +- FFmpegArgs/{Filters => }/Enums/SwsFlags.cs | 2 +- FFmpegArgs/{Filters => }/Enums/VideoRate.cs | 10 +- .../{Filters => }/Enums/VideoSizeUtils.cs | 55 +--- FFmpegArgs/Exceptions/ExpressionException.cs | 6 - FFmpegArgs/Exceptions/FilterException.cs | 2 - .../Exceptions/InvalidRangeException.cs | 2 - .../Expressions/ExpressionExtensions.cs | 28 ++ FFmpegArgs/Expressions/FFmpegExpression.cs | 16 -- .../Expressions/TimelineEditingExpression.cs | 4 - FFmpegArgs/FFmpegArg.cs | 18 -- FFmpegArgs/FFmpegArgs.nuspec | 2 +- FFmpegArgs/FilterGraph.cs | 18 +- FFmpegArgs/Filters/VideoToVideoFilter.cs | 13 - FFmpegArgs/GlobalOptionsExtension.cs | 8 - FFmpegArgs/InputOutputExtensions.cs | 7 - FFmpegArgs/{Filters => Utils}/Rational.cs | 62 +++- FFmpegArgs/VideoOptionExtensions.cs | 9 +- ProjectBuildProperties.targets | 4 +- 643 files changed, 1598 insertions(+), 7797 deletions(-) create mode 100644 FFmpegArgs.Executes/GlobalUsing.cs create mode 100644 FFmpegArgs.Filters.Autogen/GlobalUsing.cs rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/AudioToAudioFilter.cs (54%) create mode 100644 FFmpegArgs.Filters.Common/FFmpegArgs.Executes.nuspec create mode 100644 FFmpegArgs.Filters.Common/FFmpegArgs.Filters.Common.csproj rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/FilterExtensions.cs (51%) rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/FloatRangeAttribute.cs (50%) create mode 100644 FFmpegArgs.Filters.Common/GlobalUsing.cs rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/ICommandSupport.cs (89%) rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/IFramesync.cs (95%) rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/IResamplerOptions.cs (56%) rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/ISliceThreading.cs (88%) rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/ITimelineSupport.cs (60%) rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/ImageToImageFilter.cs (55%) create mode 100644 FFmpegArgs.Filters.Common/Nuget.ps1 rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/SourceAudioFilter.cs (56%) rename {FFmpegArgs/Filters => FFmpegArgs.Filters.Common}/SourceImageFilter.cs (56%) create mode 100644 FFmpegArgs.Filters.Common/VideoToVideoFilter.cs create mode 100644 FFmpegArgs.Filters/GlobalUsing.cs create mode 100644 FFmpegArgs.Inputs/GlobalUsing.cs create mode 100644 FFmpegArgs.Outputs/GlobalUsing.cs create mode 100644 FFmpegArgs.Test/GlobalUsing.cs create mode 100644 FFmpegArgs/Attributes/AttributeExtensions.cs rename FFmpegArgs/{Filters => Attributes}/NameAttribute.cs (53%) rename FFmpegArgs/{Filters => }/Enums/AVSampleFormat.cs (96%) rename FFmpegArgs/{Filters => }/Enums/AlphaBlend.cs (83%) rename FFmpegArgs/{Filters => }/Enums/ChannelLayout.cs (99%) rename FFmpegArgs/{Filters => }/Enums/PixFmt.cs (98%) rename FFmpegArgs/{Filters => }/Enums/SwsDither.cs (85%) rename FFmpegArgs/{Filters => }/Enums/SwsFlags.cs (92%) rename FFmpegArgs/{Filters => }/Enums/VideoRate.cs (93%) rename FFmpegArgs/{Filters => }/Enums/VideoSizeUtils.cs (98%) create mode 100644 FFmpegArgs/Expressions/ExpressionExtensions.cs delete mode 100644 FFmpegArgs/Filters/VideoToVideoFilter.cs rename FFmpegArgs/{Filters => Utils}/Rational.cs (53%) diff --git a/FFmpegArgs.Autogens/DocLine.cs b/FFmpegArgs.Autogens/DocLine.cs index 1dc80ed6..2e143159 100644 --- a/FFmpegArgs.Autogens/DocLine.cs +++ b/FFmpegArgs.Autogens/DocLine.cs @@ -1,19 +1,16 @@ using System; using System.Collections.Generic; using System.Linq; - namespace FFmpegArgs.Autogens { internal class DocLine { public string LineData { get; set; } public List ChildLines { get; } = new List(); - public override string ToString() { return LineData; } - public static List GetDocLine(List lines) { List docLines = new List(); diff --git a/FFmpegArgs.Autogens/FFmpegArgs.Autogens.csproj b/FFmpegArgs.Autogens/FFmpegArgs.Autogens.csproj index c93f3e8f..650a7a0d 100644 --- a/FFmpegArgs.Autogens/FFmpegArgs.Autogens.csproj +++ b/FFmpegArgs.Autogens/FFmpegArgs.Autogens.csproj @@ -6,7 +6,8 @@ - + + diff --git a/FFmpegArgs.Autogens/FiltersGen.cs b/FFmpegArgs.Autogens/FiltersGen.cs index 49eaa1fa..3e305dc3 100644 --- a/FFmpegArgs.Autogens/FiltersGen.cs +++ b/FFmpegArgs.Autogens/FiltersGen.cs @@ -1,20 +1,20 @@ -using FFmpegArgs.Cores.Maps; +using FFmpegArgs.Attributes; +using FFmpegArgs.Cores.Maps; +using FFmpegArgs.Enums; using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; +using FFmpegArgs.Utils; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; - namespace FFmpegArgs.Autogens { internal class FilterData { internal static Regex regex_DocLineMethod { get; } = new Regex("^([0-9A-z-+<>_-]+) +(|[0-9A-z<>-]+) +([.EDFVASXRBTP]{11})(.*?|)$"); static Regex regex_DocLineMethodFromTo { get; } = new Regex("from ([0-9A-Z-+._e]+) to ([0-9A-Z-+._e]+)"); - internal FilterData(DocLine function) { this.Function = function; @@ -27,7 +27,7 @@ internal FilterData(DocLine function) Flag = match_method.Groups[3].Value; Description = match_method.Groups[4].Value; Match match_fromto = regex_DocLineMethodFromTo.Match(Description); - if(match_fromto.Success) + if (match_fromto.Success) { Min = match_fromto.Groups[1].Value; Max = match_fromto.Groups[2].Value; @@ -43,12 +43,10 @@ internal FilterData(DocLine function) public string Min { get; } public string Max { get; } } - internal class FilterFunction { private FilterFunction() { - } public string ReturnTypeName { get; set; } public string FunctionName { get; set; } @@ -56,28 +54,24 @@ private FilterFunction() public string FunctionParamType { get; set; } public string FunctionBody { get; set; } public string EnumData { get; set; } - public override string ToString() { return $"public {ReturnTypeName} {FunctionName}({FunctionParamType} {FunctionName}) {FunctionBody}"; } - internal static FilterFunction GetFilterFunction(FilterData filterData, string returnTypeName) { - if(filterData.IsSuccess) + if (filterData.IsSuccess) { FilterFunction filterFunction = new FilterFunction(); filterFunction.ReturnTypeName = returnTypeName; filterFunction.FunctionName = filterData.Name.FixNameRule(); filterFunction.Description = filterData.Description; - switch (filterData.Type) { case "": filterFunction.FunctionParamType = $"double"; filterFunction.FunctionBody = $"=> this.SetOptionRange(\"{filterData.Name}\", {filterFunction.FunctionName},{filterData.Min},{filterData.Max});"; break; - case "": if (filterData.Function.ChildLines.Count == 0) { @@ -86,71 +80,57 @@ internal static FilterFunction GetFilterFunction(FilterData filterData, string r } else WriteFunctionWithEnum(filterFunction, filterData, returnTypeName); break; - case "": WriteFunctionWithEnum(filterFunction, filterData, returnTypeName); break; - case "": filterFunction.FunctionParamType = $"long"; filterFunction.FunctionBody = $"=> this.SetOptionRange(\"{filterData.Name}\", {filterFunction.FunctionName},{filterData.Min},{filterData.Max});"; break; - case "": filterFunction.FunctionParamType = $"float"; filterFunction.FunctionBody = $"=> this.SetOptionRange(\"{filterData.Name}\", {filterFunction.FunctionName},{filterData.Min},{filterData.Max});"; break; - case "": filterFunction.FunctionParamType = $"bool"; filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.{nameof(FilterExtensions.ToFFmpegFlag)}());"; break; - case "": filterFunction.FunctionParamType = $"string"; filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName});"; break; - case "": filterFunction.FunctionParamType = $"Size"; filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",$\"{{{filterFunction.FunctionName}.Width}}x{{{filterFunction.FunctionName}.Height}}\");"; break; - case "": filterFunction.FunctionParamType = $"TimeSpan"; filterFunction.FunctionBody = $"=> this.SetOptionRange(\"{filterData.Name}\",{filterFunction.FunctionName},TimeSpan.Zero,TimeSpan.MaxValue);"; break; - case "": filterFunction.FunctionParamType = $"Color"; filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.{nameof(FilterExtensions.ToHexStringRGBA)}());"; break; - case "": filterFunction.FunctionParamType = nameof(PixFmt); filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.ToString());"; break; - case "": filterFunction.FunctionParamType = nameof(Rational); filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName});"; break; - case "": filterFunction.FunctionParamType = nameof(Rational); filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.{nameof(Rational.Check)}({filterData.Min},{filterData.Max}));"; break; - case "": filterFunction.FunctionParamType = nameof(ChannelLayout); - filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.{nameof(FilterExtensions.GetAttribute)}<{nameof(NameAttribute)}>().{nameof(NameAttribute.Name)});"; + filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.{nameof(AttributeExtensions.GetEnumAttribute)}<{nameof(NameAttribute)}>().{nameof(NameAttribute.Name)});"; break; - case "": filterFunction.FunctionParamType = nameof(AVSampleFormat); - filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.{nameof(FilterExtensions.GetAttribute)}<{nameof(NameAttribute)}>().{nameof(NameAttribute.Name)});"; + filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\",{filterFunction.FunctionName}.{nameof(AttributeExtensions.GetEnumAttribute)}<{nameof(NameAttribute)}>().{nameof(NameAttribute.Name)});"; break; - //dictionary //binary default: @@ -164,7 +144,6 @@ internal static FilterFunction GetFilterFunction(FilterData filterData, string r else Console.WriteLine($"{returnTypeName}: function error: {filterData.Function.LineData}"); return null; } - static void WriteFunctionWithEnum(FilterFunction filterFunction, FilterData filterData, string returnTypeName) { Dictionary pairs = new Dictionary(); @@ -178,7 +157,6 @@ static void WriteFunctionWithEnum(FilterFunction filterFunction, FilterData filt } else Console.WriteLine($"enum {returnTypeName}{filterData.Name.UpperFirst()} error: {item.LineData}"); } - StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine($"public enum {returnTypeName}{filterData.Name.UpperFirst()}\r\n{{"); foreach (var item in pairs) @@ -187,12 +165,10 @@ static void WriteFunctionWithEnum(FilterFunction filterFunction, FilterData filt } stringBuilder.AppendLine($"}}"); filterFunction.EnumData = stringBuilder.ToString(); - filterFunction.FunctionParamType = $"{returnTypeName}{filterData.Name.UpperFirst()}"; - filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\", {filterFunction.FunctionName}.{nameof(FilterExtensions.GetAttribute)}<{nameof(NameAttribute)}>().{nameof(NameAttribute.Name)});"; + filterFunction.FunctionBody = $"=> this.SetOption(\"{filterData.Name}\", {filterFunction.FunctionName}.{nameof(AttributeExtensions.GetEnumAttribute)}<{nameof(NameAttribute)}>().{nameof(NameAttribute.Name)});"; } } - internal static class FiltersGen { static readonly IEnumerable _skip = new string[] @@ -207,7 +183,6 @@ internal static class FiltersGen static Regex regex_filter { get; } = new Regex("^([TSC.]{3}) +([a-z0-9_]+) +([AVN|]{1,}->[AVN|]{1,}) +(.+)$"); //static Regex regex_DocLineMethodDefault { get; } = new Regex("default (.*?)(?=\\))"); - internal static string UpperFirst(this string input) { if (string.IsNullOrWhiteSpace(input)) return input; @@ -229,22 +204,6 @@ internal static string FixNameRule(this string input) if (_NameRule.Contains(input)) return $"_{input}"; return input; } - - internal static StreamWriter WriteUsing(this StreamWriter streamWriter) - { - streamWriter.WriteLine("using System;"); - streamWriter.WriteLine("using System.Linq;"); - streamWriter.WriteLine("using System.Drawing;"); - streamWriter.WriteLine("using System.Collections.Generic;"); - streamWriter.WriteLine("using FFmpegArgs;"); - streamWriter.WriteLine("using FFmpegArgs.Cores;"); - streamWriter.WriteLine("using FFmpegArgs.Cores.Filters;"); - streamWriter.WriteLine("using FFmpegArgs.Cores.Maps;"); - streamWriter.WriteLine("using FFmpegArgs.Expressions;"); - streamWriter.WriteLine("using FFmpegArgs.Filters;"); - streamWriter.WriteLine("using FFmpegArgs.Filters.Enums;"); - return streamWriter; - } internal static StreamWriter WriteNameSpace(this StreamWriter streamWriter, string child = null) { if (string.IsNullOrWhiteSpace(child)) streamWriter.WriteLine($"namespace FFmpegArgs.Filters.Autogens"); @@ -263,11 +222,6 @@ internal static StreamWriter WriteSummary(this StreamWriter streamWriter, params - - - - - public static void Gen(List filters, List docLines) { foreach (var filter in filters) @@ -280,32 +234,26 @@ public static void Gen(List filters, List docLines) string type = match.Groups[3].Value; string description = match.Groups[4].Value; DocLine docLine = docLines.FirstOrDefault(x => x.LineData.StartsWith($"{name} AVOptions:")); - if (docLine == null) { Console.WriteLine($"Filters.Gen not found ({name}):{filter}"); continue; } - if (_skip.Contains(name)) { Console.WriteLine($"Filters.Gen skip ({name}):{filter}"); continue; } - TypeName typeName = GetFilterInheritance(type); if (typeName == null) { Console.WriteLine($"Filters.Gen skip ({type}):{filter}"); continue; } - var interfaces = GetFilterInterface(support).ToList(); interfaces.Insert(0, typeName.Inheritance); - string className = $"{name.UpperFirst()}FilterGen"; using StreamWriter streamWriter = new StreamWriter($"FFmpegArgs.Filters.Autogen\\{className}.g.cs", false); - streamWriter.WriteUsing(); streamWriter.WriteNameSpace(); streamWriter.WriteLine("{"); streamWriter.WriteLine($"public class {className} : {string.Join(",", interfaces)}"); @@ -320,7 +268,6 @@ public static void Gen(List filters, List docLines) } List enumDatas = new List(); - var filterFunctions = docLine.ChildLines .Select(x => new FilterData(x)) .Where(x => x.IsSuccess) @@ -335,7 +282,6 @@ public static void Gen(List filters, List docLines) .Where(x => x.Last().FunctionName.StartsWith(x.First().FunctionName)) .Select(x => x.First()) .ToList(); - foreach (var filterFunction in filterFunctions.Except(removes)) { streamWriter.WriteSummary(filterFunction.Description); @@ -343,9 +289,7 @@ public static void Gen(List filters, List docLines) if (!string.IsNullOrWhiteSpace(filterFunction.EnumData)) enumDatas.Add(filterFunction.EnumData); } - streamWriter.WriteLine("}"); - //Extensions List inputs = new List(); List paramsInput = new List(); @@ -354,7 +298,6 @@ public static void Gen(List filters, List docLines) inputs.Add($"{typeName.Input} input{i}"); paramsInput.Add($"input{i}"); } - streamWriter.WriteLine($"public static class {className}Extensions"); streamWriter.WriteLine("{"); //default extension @@ -367,40 +310,35 @@ public static void Gen(List filters, List docLines) streamWriter.WriteLine($"var result = new {className}({string.Join(", ", paramsInput)});"); foreach (var filterFunction in filterFunctions.Except(removes)) { - switch(filterFunction.FunctionParamType) + switch (filterFunction.FunctionParamType) { case "string": streamWriter.WriteLine($"if(!string.{nameof(string.IsNullOrWhiteSpace)}(config?.{filterFunction.FunctionName})) result.{filterFunction.FunctionName}(config.{filterFunction.FunctionName});"); break; - case nameof(Rational)://class streamWriter.WriteLine($"if(config?.{filterFunction.FunctionName} != null) result.{filterFunction.FunctionName}(config.{filterFunction.FunctionName});"); break; - default://struct streamWriter.WriteLine($"if(config?.{filterFunction.FunctionName} != null) result.{filterFunction.FunctionName}(config.{filterFunction.FunctionName}.Value);"); break; } - } - if(interfaces.Contains(nameof(ITimelineSupport))) + if (interfaces.Contains(nameof(ITimelineSupport))) { streamWriter.WriteLine($"if(!string.{nameof(string.IsNullOrWhiteSpace)}(config?.{nameof(ITimelineSupport).Substring(1)})) result.{nameof(TimelineSupportExtension.Enable)}(config.{nameof(ITimelineSupport).Substring(1)});"); } streamWriter.WriteLine("return result;"); streamWriter.WriteLine("}"); streamWriter.WriteLine("}"); - //config class var interfaceConfigs = new List(); if (interfaces.Contains(nameof(ITimelineSupport))) { interfaceConfigs.Add(nameof(ITimelineSupportConfig)); } - streamWriter.WriteLine($"public class {className}Config"); - if(interfaceConfigs.Count > 0) streamWriter.WriteLine(":" + string.Join(",", interfaceConfigs)); + if (interfaceConfigs.Count > 0) streamWriter.WriteLine(":" + string.Join(",", interfaceConfigs)); streamWriter.WriteLine("{"); foreach (var filterFunction in filterFunctions.Except(removes)) { @@ -409,25 +347,21 @@ public static void Gen(List filters, List docLines) { case "string": case nameof(Rational)://class - streamWriter.WriteLine($"public {filterFunction.FunctionParamType} {filterFunction.FunctionName} {{ get; set; }}"); + streamWriter.WriteLine($"public {filterFunction.FunctionParamType} {filterFunction.FunctionName} {{ get; set; }}"); break; - default://struct - streamWriter.WriteLine($"public {filterFunction.FunctionParamType}? {filterFunction.FunctionName} {{ get; set; }}"); + streamWriter.WriteLine($"public {filterFunction.FunctionParamType}? {filterFunction.FunctionName} {{ get; set; }}"); break; } - } if (interfaces.Contains(nameof(ITimelineSupport))) { streamWriter.WriteLine($"public string {nameof(ITimelineSupport).Substring(1)} {{ get; set; }}"); } streamWriter.WriteLine("}"); - //enum enumDatas.ForEach(x => streamWriter.WriteLine(x)); - streamWriter.WriteLine("}"); } else @@ -437,8 +371,6 @@ public static void Gen(List filters, List docLines) } } - - static TypeName GetFilterInheritance(string type) { if (type.Equals("V->V")) return new TypeName() @@ -470,7 +402,6 @@ static TypeName GetFilterInheritance(string type) Input = nameof(FilterGraph) }; - if (type.Equals("A->A")) return new TypeName() { Inheritance = nameof(AudioToAudioFilter), @@ -488,11 +419,9 @@ static TypeName GetFilterInheritance(string type) Input = nameof(FilterGraph) }; - //skip N->? , ?->N return null; } - static IEnumerable GetFilterInterface(string support) { if (support[0] == 'T') yield return nameof(ITimelineSupport); @@ -501,8 +430,6 @@ static IEnumerable GetFilterInterface(string support) } } - - class TypeName { public int InputCount { get; set; } = 1; diff --git a/FFmpegArgs.Autogens/Program.cs b/FFmpegArgs.Autogens/Program.cs index 80dd009b..465ef75d 100644 --- a/FFmpegArgs.Autogens/Program.cs +++ b/FFmpegArgs.Autogens/Program.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; - namespace FFmpegArgs.Autogens { internal class Program @@ -11,12 +10,10 @@ static void Main(string[] args) { var filters = GetDoc("-filters").Skip(8).Where(x => !string.IsNullOrWhiteSpace(x)).Select(x => x.TrimStart()).ToList(); var fulls = DocLine.GetDocLine(GetDoc("-h full").ToList()); - FiltersGen.Gen(filters, fulls); Console.ReadLine(); } - static IEnumerable GetDoc(string arg) { ProcessStartInfo processStart = new ProcessStartInfo(); @@ -32,6 +29,5 @@ static IEnumerable GetDoc(string arg) } while (!process.StandardOutput.EndOfStream); } - } } diff --git a/FFmpegArgs.Executes/FFmpegArgs.Executes.nuspec b/FFmpegArgs.Executes/FFmpegArgs.Executes.nuspec index 9f2dee7d..6522e94d 100644 --- a/FFmpegArgs.Executes/FFmpegArgs.Executes.nuspec +++ b/FFmpegArgs.Executes/FFmpegArgs.Executes.nuspec @@ -3,7 +3,7 @@ FFmpegArgs.Executes - 1.1.1$build$ + 1.2.0$build$ Executable for FFmpegArgs tqk2811 https://github.com/tqk2811/FFmpegArgs @@ -12,7 +12,7 @@ - + diff --git a/FFmpegArgs.Executes/FFmpegRender.cs b/FFmpegArgs.Executes/FFmpegRender.cs index 1022ca72..4650ba36 100644 --- a/FFmpegArgs.Executes/FFmpegRender.cs +++ b/FFmpegArgs.Executes/FFmpegRender.cs @@ -1,25 +1,27 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; - -namespace FFmpegArgs.Executes +namespace FFmpegArgs.Executes { - public class FFmpegRender + public class FFmpegRender { - + /// + /// + /// public event Action OnEncodingProgress; + /// + /// + /// public event Action OnOutputDataReceived; - + /// + /// + /// public FFmpegRenderConfig Config { get; } - internal FFmpegRender(FFmpegRenderConfig config) { Config = config; } - + /// + /// + /// public string Arguments { get; private set; } - internal void ErrorDataReceived(object sender, DataReceivedEventArgs e) { if (OnEncodingProgress != null) @@ -28,12 +30,10 @@ internal void ErrorDataReceived(object sender, DataReceivedEventArgs e) if (progress != null) OnEncodingProgress?.Invoke(progress); } } - internal void OutputDataReceived(object sender, DataReceivedEventArgs e) { OnOutputDataReceived?.Invoke(e?.Data); } - /// /// /// @@ -46,12 +46,10 @@ public static FFmpegRender FromArguments(FFmpegArg ffmpegArg, Action /// /// @@ -64,23 +62,19 @@ public static FFmpegRender FromArguments(FFmpegArg ffmpegArg, FFmpegRenderConfig { if (ffmpegArg == null) throw new ArgumentNullException(nameof(ffmpegArg)); if (config == null) throw new ArgumentNullException(nameof(config)); - FFmpegRender fFmpegBuild = new FFmpegRender(config); string args = ffmpegArg.GetFullCommandline(); if (config.IsForceUseScript || args.Length > config.ArgumentsMaxLength) { string scripts = ffmpegArg.FilterGraph.GetFiltersArgs(true, true); - if(string.IsNullOrWhiteSpace(scripts)) throw new ProcessArgumentOutOfRangeException($"{nameof(FFmpegArg)} argument too long"); - + if (string.IsNullOrWhiteSpace(scripts)) throw new ProcessArgumentOutOfRangeException($"{nameof(FFmpegArg)} argument too long"); File.WriteAllText(Path.Combine(config.WorkingDirectory, config.FilterScriptName), scripts); fFmpegBuild.Arguments = ffmpegArg.GetFullCommandlineWithFilterScript(config.FilterScriptName); - if (fFmpegBuild.Arguments.Length > config.ArgumentsMaxLength) throw new ProcessArgumentOutOfRangeException($"{nameof(FFmpegArg)} argument too long"); } else fFmpegBuild.Arguments = args; return fFmpegBuild; } - /// /// /// @@ -94,13 +88,11 @@ public static FFmpegRender FromArguments(string commands, FFmpegRenderConfig con if (string.IsNullOrWhiteSpace(commands)) throw new ArgumentNullException(nameof(commands)); if (config == null) throw new ArgumentNullException(nameof(config)); if (commands.Length > config.ArgumentsMaxLength) throw new ProcessArgumentOutOfRangeException($"{nameof(commands)} too long"); - return new FFmpegRender(config) { Arguments = commands }; } - /// /// /// @@ -112,8 +104,7 @@ public static FFmpegRender FromArguments(string commands, FFmpegRenderConfig con public static FFmpegRender FromArguments(string commands, Action config) { if (string.IsNullOrWhiteSpace(commands)) throw new ArgumentNullException(nameof(commands)); - if (config == null) throw new ArgumentNullException(nameof(config)); - + if (config == null) throw new ArgumentNullException(nameof(config)); FFmpegRenderConfig buildConfig = new FFmpegRenderConfig(); config.Invoke(buildConfig); return FromArguments(commands, buildConfig); diff --git a/FFmpegArgs.Executes/FFmpegRenderConfig.cs b/FFmpegArgs.Executes/FFmpegRenderConfig.cs index 1cdd2cc2..12f2d0f7 100644 --- a/FFmpegArgs.Executes/FFmpegRenderConfig.cs +++ b/FFmpegArgs.Executes/FFmpegRenderConfig.cs @@ -1,8 +1,8 @@ -using System; -using System.IO; - -namespace FFmpegArgs.Executes +namespace FFmpegArgs.Executes { + /// + /// + /// public class FFmpegRenderConfig { /// @@ -17,18 +17,13 @@ public string FFmpegBinaryPath else throw new FileNotFoundException(value); } } - string _FFmpegBinaryPath = "ffmpeg"; - - /// /// Default: False /// public bool IsForceUseScript { get; set; } = false; - - /// /// Default: FS.txt /// @@ -43,15 +38,11 @@ public string FilterScriptName } string _FilterScriptName = "FS.txt"; - - /// /// Default: Directory.GetCurrentDirectory() /// public string WorkingDirectory { get; set; } = Directory.GetCurrentDirectory(); - - /// /// Window default: 32766 /// @@ -64,13 +55,9 @@ public int ArgumentsMaxLength else throw new InvalidDataException($"ArgumentsMaxLength should be > 10"); } } - int _ArgumentsMaxLength = 32766; - - - /// /// Default: ffmpeg /// @@ -80,7 +67,6 @@ public FFmpegRenderConfig WithFFmpegBinaryPath(string filePath) else throw new FileNotFoundException(filePath); return this; } - /// /// Default: FS.txt /// @@ -91,7 +77,6 @@ public FFmpegRenderConfig WithFilterScriptName(string scriptName, bool forceUseS IsForceUseScript = forceUseScript; return this; } - /// /// Default: Directory.GetCurrentDirectory() /// diff --git a/FFmpegArgs.Executes/FFmpegRenderException.cs b/FFmpegArgs.Executes/FFmpegRenderException.cs index 31b95780..f68dcf99 100644 --- a/FFmpegArgs.Executes/FFmpegRenderException.cs +++ b/FFmpegArgs.Executes/FFmpegRenderException.cs @@ -1,12 +1,23 @@ -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Executes +namespace FFmpegArgs.Executes { - public class FFmpegRenderException: Exception + /// + /// + /// + public class FFmpegRenderException : Exception { + /// + /// + /// public int ExitCode { get; } + /// + /// + /// public IEnumerable OutputDatas { get; } + /// + /// + /// + /// + /// public FFmpegRenderException(int ExitCode, IEnumerable outputData) : base() { this.ExitCode = ExitCode; diff --git a/FFmpegArgs.Executes/FFmpegRenderExtension.cs b/FFmpegArgs.Executes/FFmpegRenderExtension.cs index 793fa7dd..c4e5b91e 100644 --- a/FFmpegArgs.Executes/FFmpegRenderExtension.cs +++ b/FFmpegArgs.Executes/FFmpegRenderExtension.cs @@ -1,16 +1,25 @@ -using System; -using System.Diagnostics; -using System.Threading; -using System.Threading.Tasks; - -namespace FFmpegArgs.Executes +namespace FFmpegArgs.Executes { + /// + /// + /// public static class FFmpegRenderExtension { + /// + /// + /// + /// + /// + /// public static FFmpegRender Render(this FFmpegArg ffmpegArg, FFmpegRenderConfig config) => FFmpegRender.FromArguments(ffmpegArg, config); + /// + /// + /// + /// + /// + /// public static FFmpegRender Render(this FFmpegArg ffmpegArg, Action config) => FFmpegRender.FromArguments(ffmpegArg, config); - private static Process BuildProcess(this FFmpegRender build, FFmpegRenderResult renderResult) { ProcessStartInfo info = new ProcessStartInfo(build.Config.FFmpegBinaryPath, build.Arguments) @@ -31,10 +40,14 @@ private static Process BuildProcess(this FFmpegRender build, FFmpegRenderResult return process; } - - - - + /// + /// + /// + /// + /// + /// + /// + /// public static FFmpegRenderResult Execute( this FFmpegRender build, Action onEncodingProgress, @@ -43,7 +56,15 @@ public static FFmpegRenderResult Execute( build.OnEncodingProgress += onEncodingProgress ?? throw new ArgumentNullException(nameof(onEncodingProgress)); return build.Execute(token); } - + /// + /// + /// + /// + /// + /// + /// + /// + /// public static FFmpegRenderResult Execute( this FFmpegRender build, Action onEncodingProgress, @@ -54,7 +75,13 @@ public static FFmpegRenderResult Execute( build.OnOutputDataReceived += onOutputDataReceived ?? throw new ArgumentNullException(nameof(onOutputDataReceived)); return build.Execute(token); } - + /// + /// + /// + /// + /// + /// + /// public static FFmpegRenderResult Execute(this FFmpegRender build, CancellationToken token = default) { if (build == null) throw new ArgumentNullException(nameof(build)); @@ -68,9 +95,15 @@ public static FFmpegRenderResult Execute(this FFmpegRender build, CancellationTo renderResult.ExitCode = process.ExitCode; return renderResult; } - - - + /// + /// + /// + /// + /// + /// + /// + /// + /// public static Task ExecuteAsync( this FFmpegRender build, Action onEncodingProgress, @@ -81,6 +114,14 @@ public static Task ExecuteAsync( build.OnOutputDataReceived += onOutputDataReceived ?? throw new ArgumentNullException(nameof(onOutputDataReceived)); return build.ExecuteAsync(token); } + /// + /// + /// + /// + /// + /// + /// + /// public static Task ExecuteAsync( this FFmpegRender build, Action onEncodingProgress, @@ -89,8 +130,14 @@ public static Task ExecuteAsync( build.OnEncodingProgress += onEncodingProgress ?? throw new ArgumentNullException(nameof(onEncodingProgress)); return build.ExecuteAsync(token); } - - + /// + /// + /// + /// + /// + /// + /// + /// public static async Task ExecuteAsync( this FFmpegRender build, CancellationToken token = default) @@ -98,7 +145,6 @@ public static async Task ExecuteAsync( if (build == null) throw new ArgumentNullException(nameof(build)); FFmpegRenderResult renderResult = new FFmpegRenderResult(); using Process process = build.BuildProcess(renderResult); - #if NET5_0_OR_GREATER #else //https://github.com/Tyrrrz/CliWrap/blob/8ff36a648d57b22497a7cb6feae14ef28bbb2be8/CliWrap/Utils/ProcessEx.cs#L41 diff --git a/FFmpegArgs.Executes/FFmpegRenderResult.cs b/FFmpegArgs.Executes/FFmpegRenderResult.cs index 2d90f005..49aa0529 100644 --- a/FFmpegArgs.Executes/FFmpegRenderResult.cs +++ b/FFmpegArgs.Executes/FFmpegRenderResult.cs @@ -1,15 +1,33 @@ -using System.Collections.Generic; - -namespace FFmpegArgs.Executes +namespace FFmpegArgs.Executes { + /// + /// + /// public class FFmpegRenderResult { + /// + /// + /// public string Arguments { get; internal set; } internal List _OutputDatas { get; } = new List(); internal List _ErrorDatas { get; } = new List(); + /// + /// + /// public int ExitCode { get; internal set; } = 0; + /// + /// + /// public IEnumerable OutputDatas { get { return _OutputDatas; } } + /// + /// + /// public IEnumerable ErrorDatas { get { return _ErrorDatas; } } + /// + /// + /// + /// + /// public FFmpegRenderResult EnsureSuccess() { if (ExitCode != 0) throw new FFmpegRenderException(ExitCode, OutputDatas); diff --git a/FFmpegArgs.Executes/GlobalUsing.cs b/FFmpegArgs.Executes/GlobalUsing.cs new file mode 100644 index 00000000..55648024 --- /dev/null +++ b/FFmpegArgs.Executes/GlobalUsing.cs @@ -0,0 +1,9 @@ +global using FFmpegArgs; +global using System; +global using System.Diagnostics; +global using System.IO; +global using System.Collections.Generic; +global using System.Linq; +global using System.Text.RegularExpressions; +global using System.Threading; +global using System.Threading.Tasks; \ No newline at end of file diff --git a/FFmpegArgs.Executes/ProcessArgumentOutOfRangeException.cs b/FFmpegArgs.Executes/ProcessArgumentOutOfRangeException.cs index ad1b730e..99af3361 100644 --- a/FFmpegArgs.Executes/ProcessArgumentOutOfRangeException.cs +++ b/FFmpegArgs.Executes/ProcessArgumentOutOfRangeException.cs @@ -1,12 +1,16 @@ -using System; - -namespace FFmpegArgs.Executes +namespace FFmpegArgs.Executes { + /// + /// + /// public class ProcessArgumentOutOfRangeException : Exception { + /// + /// + /// + /// public ProcessArgumentOutOfRangeException(string message) : base(message) { - } } } diff --git a/FFmpegArgs.Executes/RenderProgress.cs b/FFmpegArgs.Executes/RenderProgress.cs index 2754e15a..010cde30 100644 --- a/FFmpegArgs.Executes/RenderProgress.cs +++ b/FFmpegArgs.Executes/RenderProgress.cs @@ -1,15 +1,21 @@ -using System; -using System.Text.RegularExpressions; - -namespace FFmpegArgs.Executes +namespace FFmpegArgs.Executes { + /// + /// + /// public class RenderProgress { static readonly Regex regex = new Regex(@"frame= *(\d+) fps= *([0-9.]+).*?size= *(N\/A|[0-9.]+kB).*?time= *(\d{2}:\d{2}:\d{2}\.\d+).*?bitrate= *(N\/A|[0-9.]+kbits\/s).*?speed= *([0-9.]+)x"); + + /// + /// + /// + /// + /// public static RenderProgress FromProgressString(string progress) { - if(!string.IsNullOrWhiteSpace(progress)) + if (!string.IsNullOrWhiteSpace(progress)) { Match match = regex.Match(progress); if (match.Success && match.Groups.Count == 7) @@ -18,7 +24,7 @@ public static RenderProgress FromProgressString(string progress) { Frame = int.Parse(match.Groups[1].Value), Fps = double.Parse(match.Groups[2].Value), - Size = match.Groups[3].Value.Equals("N/A") ? double.NaN : double.Parse(match.Groups[3].Value.Replace("kB",string.Empty)), + Size = match.Groups[3].Value.Equals("N/A") ? double.NaN : double.Parse(match.Groups[3].Value.Replace("kB", string.Empty)), Time = TimeSpan.Parse(match.Groups[4].Value), Bitrate = match.Groups[5].Value.Equals("N/A") ? double.NaN : double.Parse(match.Groups[5].Value.Replace("kbits/s", string.Empty)), Speed = float.Parse(match.Groups[6].Value) @@ -27,26 +33,32 @@ public static RenderProgress FromProgressString(string progress) } return null; } - internal RenderProgress() { } - + /// + /// Frame rendered + /// public int Frame { get; private set; } + /// + /// frame per second rendered + /// public double Fps { get; private set; } - /// /// Size in kB /// public double Size { get; private set; } + /// + /// Time of video rendered + /// public TimeSpan Time { get; private set; } - /// /// kbits/s /// public double Bitrate { get; private set; } - + /// + /// Speed render / speed video play 1x + /// public float Speed { get; private set; } - } } diff --git a/FFmpegArgs.Filters.Autogen/AbenchFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AbenchFilterGen.g.cs index 2b8cfbb8..4c973b96 100644 --- a/FFmpegArgs.Filters.Autogen/AbenchFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AbenchFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AbenchFilterGen : AudioToAudioFilter @@ -17,7 +6,7 @@ public class AbenchFilterGen : AudioToAudioFilter /// /// set action (from 0 to 1) (default start) /// -public AbenchFilterGen action(AbenchFilterGenAction action) => this.SetOption("action", action.GetAttribute().Name); +public AbenchFilterGen action(AbenchFilterGenAction action) => this.SetOption("action", action.GetEnumAttribute().Name); } public static class AbenchFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AbufferFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AbufferFilterGen.g.cs index b539211c..2ca8cc40 100644 --- a/FFmpegArgs.Filters.Autogen/AbufferFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AbufferFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AbufferFilterGen : SourceAudioFilter @@ -25,7 +14,7 @@ public class AbufferFilterGen : SourceAudioFilter /// /// (default none) /// -public AbufferFilterGen sample_fmt(AVSampleFormat sample_fmt) => this.SetOption("sample_fmt",sample_fmt.GetAttribute().Name); +public AbufferFilterGen sample_fmt(AVSampleFormat sample_fmt) => this.SetOption("sample_fmt",sample_fmt.GetEnumAttribute().Name); /// /// /// diff --git a/FFmpegArgs.Filters.Autogen/AcompressorFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AcompressorFilterGen.g.cs index 7487c5d6..d7c7562c 100644 --- a/FFmpegArgs.Filters.Autogen/AcompressorFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AcompressorFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AcompressorFilterGen : AudioToAudioFilter,ICommandSupport @@ -21,7 +10,7 @@ public class AcompressorFilterGen : AudioToAudioFilter,ICommandSupport /// /// set mode (from 0 to 1) (default downward) /// -public AcompressorFilterGen mode(AcompressorFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public AcompressorFilterGen mode(AcompressorFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set threshold (from 0.000976563 to 1) (default 0.125) /// @@ -49,11 +38,11 @@ public class AcompressorFilterGen : AudioToAudioFilter,ICommandSupport /// /// set link type (from 0 to 1) (default average) /// -public AcompressorFilterGen link(AcompressorFilterGenLink link) => this.SetOption("link", link.GetAttribute().Name); +public AcompressorFilterGen link(AcompressorFilterGenLink link) => this.SetOption("link", link.GetEnumAttribute().Name); /// /// set detection (from 0 to 1) (default rms) /// -public AcompressorFilterGen detection(AcompressorFilterGenDetection detection) => this.SetOption("detection", detection.GetAttribute().Name); +public AcompressorFilterGen detection(AcompressorFilterGenDetection detection) => this.SetOption("detection", detection.GetEnumAttribute().Name); /// /// set sidechain gain (from 0.015625 to 64) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/AcontrastFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AcontrastFilterGen.g.cs index 00f8182b..e3173e36 100644 --- a/FFmpegArgs.Filters.Autogen/AcontrastFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AcontrastFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AcontrastFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AcrossfadeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AcrossfadeFilterGen.g.cs index d7d510e2..13d31e7d 100644 --- a/FFmpegArgs.Filters.Autogen/AcrossfadeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AcrossfadeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AcrossfadeFilterGen : AudioToAudioFilter @@ -33,19 +22,19 @@ public class AcrossfadeFilterGen : AudioToAudioFilter /// /// set fade curve type for 1st stream (from -1 to 18) (default tri) /// -public AcrossfadeFilterGen curve1(AcrossfadeFilterGenCurve1 curve1) => this.SetOption("curve1", curve1.GetAttribute().Name); +public AcrossfadeFilterGen curve1(AcrossfadeFilterGenCurve1 curve1) => this.SetOption("curve1", curve1.GetEnumAttribute().Name); /// /// set fade curve type for 1st stream (from -1 to 18) (default tri) /// -public AcrossfadeFilterGen c1(AcrossfadeFilterGenC1 c1) => this.SetOption("c1", c1.GetAttribute().Name); +public AcrossfadeFilterGen c1(AcrossfadeFilterGenC1 c1) => this.SetOption("c1", c1.GetEnumAttribute().Name); /// /// set fade curve type for 2nd stream (from -1 to 18) (default tri) /// -public AcrossfadeFilterGen curve2(AcrossfadeFilterGenCurve2 curve2) => this.SetOption("curve2", curve2.GetAttribute().Name); +public AcrossfadeFilterGen curve2(AcrossfadeFilterGenCurve2 curve2) => this.SetOption("curve2", curve2.GetEnumAttribute().Name); /// /// set fade curve type for 2nd stream (from -1 to 18) (default tri) /// -public AcrossfadeFilterGen c2(AcrossfadeFilterGenC2 c2) => this.SetOption("c2", c2.GetAttribute().Name); +public AcrossfadeFilterGen c2(AcrossfadeFilterGenC2 c2) => this.SetOption("c2", c2.GetEnumAttribute().Name); } public static class AcrossfadeFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AcrusherFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AcrusherFilterGen.g.cs index 74e01394..36615199 100644 --- a/FFmpegArgs.Filters.Autogen/AcrusherFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AcrusherFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AcrusherFilterGen : AudioToAudioFilter,ICommandSupport @@ -33,7 +22,7 @@ public class AcrusherFilterGen : AudioToAudioFilter,ICommandSupport /// /// set mode (from 0 to 1) (default lin) /// -public AcrusherFilterGen mode(AcrusherFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public AcrusherFilterGen mode(AcrusherFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set DC (from 0.25 to 4) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/AcueFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AcueFilterGen.g.cs index af6e28ec..fe54a2e6 100644 --- a/FFmpegArgs.Filters.Autogen/AcueFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AcueFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AcueFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AddroiFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AddroiFilterGen.g.cs index 70e9bd0e..80fe49aa 100644 --- a/FFmpegArgs.Filters.Autogen/AddroiFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AddroiFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AddroiFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/AdeclickFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AdeclickFilterGen.g.cs index 8486c347..46f8a352 100644 --- a/FFmpegArgs.Filters.Autogen/AdeclickFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AdeclickFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AdeclickFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading @@ -37,7 +26,7 @@ public class AdeclickFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set overlap method (from 0 to 1) (default add) /// -public AdeclickFilterGen method(AdeclickFilterGenMethod method) => this.SetOption("method", method.GetAttribute().Name); +public AdeclickFilterGen method(AdeclickFilterGenMethod method) => this.SetOption("method", method.GetEnumAttribute().Name); } public static class AdeclickFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AdeclipFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AdeclipFilterGen.g.cs index a2751967..308dd4a8 100644 --- a/FFmpegArgs.Filters.Autogen/AdeclipFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AdeclipFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AdeclipFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading @@ -41,7 +30,7 @@ public class AdeclipFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set overlap method (from 0 to 1) (default add) /// -public AdeclipFilterGen method(AdeclipFilterGenMethod method) => this.SetOption("method", method.GetAttribute().Name); +public AdeclipFilterGen method(AdeclipFilterGenMethod method) => this.SetOption("method", method.GetEnumAttribute().Name); } public static class AdeclipFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AdelayFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AdelayFilterGen.g.cs index 73db0236..33749143 100644 --- a/FFmpegArgs.Filters.Autogen/AdelayFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AdelayFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AdelayFilterGen : AudioToAudioFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/AdenormFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AdenormFilterGen.g.cs index ef968abb..b23329fb 100644 --- a/FFmpegArgs.Filters.Autogen/AdenormFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AdenormFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AdenormFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,7 +10,7 @@ public class AdenormFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set type (from 0 to 3) (default dc) /// -public AdenormFilterGen type(AdenormFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public AdenormFilterGen type(AdenormFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class AdenormFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AechoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AechoFilterGen.g.cs index 06fb3f80..987b5ce6 100644 --- a/FFmpegArgs.Filters.Autogen/AechoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AechoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AechoFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AemphasisFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AemphasisFilterGen.g.cs index c4ecd686..1d14c55c 100644 --- a/FFmpegArgs.Filters.Autogen/AemphasisFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AemphasisFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AemphasisFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -25,11 +14,11 @@ public class AemphasisFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set filter mode (from 0 to 1) (default reproduction) /// -public AemphasisFilterGen mode(AemphasisFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public AemphasisFilterGen mode(AemphasisFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set filter type (from 0 to 8) (default cd) /// -public AemphasisFilterGen type(AemphasisFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public AemphasisFilterGen type(AemphasisFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class AemphasisFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AevalFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AevalFilterGen.g.cs index 5ebb135e..831a8cfe 100644 --- a/FFmpegArgs.Filters.Autogen/AevalFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AevalFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AevalFilterGen : AudioToAudioFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/AevalsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AevalsrcFilterGen.g.cs index aa843bbc..f0cac758 100644 --- a/FFmpegArgs.Filters.Autogen/AevalsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AevalsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AevalsrcFilterGen : SourceAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AexciterFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AexciterFilterGen.g.cs index 91f32537..19c5756b 100644 --- a/FFmpegArgs.Filters.Autogen/AexciterFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AexciterFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AexciterFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AfadeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AfadeFilterGen.g.cs index 121ee543..df67fdd9 100644 --- a/FFmpegArgs.Filters.Autogen/AfadeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AfadeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AfadeFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport @@ -17,7 +6,7 @@ public class AfadeFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSuppor /// /// set the fade direction (from 0 to 1) (default in) /// -public AfadeFilterGen type(AfadeFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public AfadeFilterGen type(AfadeFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); /// /// set number of first sample to start fading (from 0 to I64_MAX) (default 0) /// @@ -45,7 +34,7 @@ public class AfadeFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSuppor /// /// set fade curve type (from -1 to 18) (default tri) /// -public AfadeFilterGen curve(AfadeFilterGenCurve curve) => this.SetOption("curve", curve.GetAttribute().Name); +public AfadeFilterGen curve(AfadeFilterGenCurve curve) => this.SetOption("curve", curve.GetEnumAttribute().Name); } public static class AfadeFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AfftdnFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AfftdnFilterGen.g.cs index 11c11401..d7a605c2 100644 --- a/FFmpegArgs.Filters.Autogen/AfftdnFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AfftdnFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AfftdnFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -25,7 +14,7 @@ public class AfftdnFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set the noise type (from 0 to 3) (default w) /// -public AfftdnFilterGen nt(AfftdnFilterGenNt nt) => this.SetOption("nt", nt.GetAttribute().Name); +public AfftdnFilterGen nt(AfftdnFilterGenNt nt) => this.SetOption("nt", nt.GetEnumAttribute().Name); /// /// set the custom bands noise /// @@ -45,7 +34,7 @@ public class AfftdnFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set output mode (from 0 to 2) (default o) /// -public AfftdnFilterGen om(AfftdnFilterGenOm om) => this.SetOption("om", om.GetAttribute().Name); +public AfftdnFilterGen om(AfftdnFilterGenOm om) => this.SetOption("om", om.GetEnumAttribute().Name); } public static class AfftdnFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AfftfiltFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AfftfiltFilterGen.g.cs index 85c76edd..f64d376c 100644 --- a/FFmpegArgs.Filters.Autogen/AfftfiltFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AfftfiltFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AfftfiltFilterGen : AudioToAudioFilter @@ -29,7 +18,7 @@ public class AfftfiltFilterGen : AudioToAudioFilter /// /// set window function (from 0 to 19) (default hann) /// -public AfftfiltFilterGen win_func(AfftfiltFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetAttribute().Name); +public AfftfiltFilterGen win_func(AfftfiltFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetEnumAttribute().Name); /// /// set window overlap (from 0 to 1) (default 0.75) /// diff --git a/FFmpegArgs.Filters.Autogen/AfirsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AfirsrcFilterGen.g.cs index b4c7e8f2..1159530d 100644 --- a/FFmpegArgs.Filters.Autogen/AfirsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AfirsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AfirsrcFilterGen : SourceAudioFilter @@ -45,7 +34,7 @@ public class AfirsrcFilterGen : SourceAudioFilter /// /// set window function (from 0 to 19) (default blackman) /// -public AfirsrcFilterGen win_func(AfirsrcFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetAttribute().Name); +public AfirsrcFilterGen win_func(AfirsrcFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetEnumAttribute().Name); } public static class AfirsrcFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AformatFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AformatFilterGen.g.cs index a9853779..59ccbfe7 100644 --- a/FFmpegArgs.Filters.Autogen/AformatFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AformatFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AformatFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AfreqshiftFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AfreqshiftFilterGen.g.cs index 0ea4da0d..a14517df 100644 --- a/FFmpegArgs.Filters.Autogen/AfreqshiftFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AfreqshiftFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AfreqshiftFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AgateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AgateFilterGen.g.cs index 85488d63..31b01b37 100644 --- a/FFmpegArgs.Filters.Autogen/AgateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AgateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AgateFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport @@ -21,7 +10,7 @@ public class AgateFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSuppor /// /// set mode (from 0 to 1) (default downward) /// -public AgateFilterGen mode(AgateFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public AgateFilterGen mode(AgateFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set max gain reduction (from 0 to 1) (default 0.06125) /// @@ -53,11 +42,11 @@ public class AgateFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSuppor /// /// set detection (from 0 to 1) (default rms) /// -public AgateFilterGen detection(AgateFilterGenDetection detection) => this.SetOption("detection", detection.GetAttribute().Name); +public AgateFilterGen detection(AgateFilterGenDetection detection) => this.SetOption("detection", detection.GetEnumAttribute().Name); /// /// set link (from 0 to 1) (default average) /// -public AgateFilterGen link(AgateFilterGenLink link) => this.SetOption("link", link.GetAttribute().Name); +public AgateFilterGen link(AgateFilterGenLink link) => this.SetOption("link", link.GetEnumAttribute().Name); /// /// set sidechain gain (from 0.015625 to 64) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/AlimiterFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AlimiterFilterGen.g.cs index 023f0d45..55304728 100644 --- a/FFmpegArgs.Filters.Autogen/AlimiterFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AlimiterFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AlimiterFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AllpassFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AllpassFilterGen.g.cs index 2fecd083..9091836e 100644 --- a/FFmpegArgs.Filters.Autogen/AllpassFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AllpassFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AllpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class AllpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set filter-width type (from 1 to 5) (default h) /// -public AllpassFilterGen width_type(AllpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public AllpassFilterGen width_type(AllpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default h) /// -public AllpassFilterGen t(AllpassFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public AllpassFilterGen t(AllpassFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set filter-width (from 0 to 99999) (default 707.1) /// @@ -37,7 +26,7 @@ public class AllpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set channels to filter (default 0xffffffffffffffff) /// -public AllpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public AllpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -49,19 +38,19 @@ public class AllpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set transform type (from 0 to 3) (default di) /// -public AllpassFilterGen transform(AllpassFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public AllpassFilterGen transform(AllpassFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public AllpassFilterGen a(AllpassFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public AllpassFilterGen a(AllpassFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public AllpassFilterGen precision(AllpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public AllpassFilterGen precision(AllpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public AllpassFilterGen r(AllpassFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public AllpassFilterGen r(AllpassFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class AllpassFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AllrgbFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AllrgbFilterGen.g.cs index 06243f64..6f24134a 100644 --- a/FFmpegArgs.Filters.Autogen/AllrgbFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AllrgbFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AllrgbFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/AllyuvFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AllyuvFilterGen.g.cs index 9e4f6310..3aeb7b56 100644 --- a/FFmpegArgs.Filters.Autogen/AllyuvFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AllyuvFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AllyuvFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/AloopFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AloopFilterGen.g.cs index 8ee639ef..7adf1509 100644 --- a/FFmpegArgs.Filters.Autogen/AloopFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AloopFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AloopFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AlphamergeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AlphamergeFilterGen.g.cs index 2ff9bd7d..63a83a9b 100644 --- a/FFmpegArgs.Filters.Autogen/AlphamergeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AlphamergeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AlphamergeFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/AmetadataFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AmetadataFilterGen.g.cs index b6009a1f..f4d93402 100644 --- a/FFmpegArgs.Filters.Autogen/AmetadataFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AmetadataFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AmetadataFilterGen : AudioToAudioFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class AmetadataFilterGen : AudioToAudioFilter,ITimelineSupport /// /// set a mode of operation (from 0 to 4) (default select) /// -public AmetadataFilterGen mode(AmetadataFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public AmetadataFilterGen mode(AmetadataFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set metadata key /// @@ -29,7 +18,7 @@ public class AmetadataFilterGen : AudioToAudioFilter,ITimelineSupport /// /// function for comparing values (from 0 to 6) (default same_str) /// -public AmetadataFilterGen function(AmetadataFilterGenFunction function) => this.SetOption("function", function.GetAttribute().Name); +public AmetadataFilterGen function(AmetadataFilterGenFunction function) => this.SetOption("function", function.GetEnumAttribute().Name); /// /// set expression for expr function /// diff --git a/FFmpegArgs.Filters.Autogen/AmplifyFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AmplifyFilterGen.g.cs index f4faf4bb..63898953 100644 --- a/FFmpegArgs.Filters.Autogen/AmplifyFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AmplifyFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AmplifyFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -41,7 +30,7 @@ public class AmplifyFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThread /// /// set what planes to filter (default 7) /// -public AmplifyFilterGen planes(AmplifyFilterGenPlanes planes) => this.SetOption("planes", planes.GetAttribute().Name); +public AmplifyFilterGen planes(AmplifyFilterGenPlanes planes) => this.SetOption("planes", planes.GetEnumAttribute().Name); } public static class AmplifyFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AnlmdnFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AnlmdnFilterGen.g.cs index 546c43a9..b10a26ea 100644 --- a/FFmpegArgs.Filters.Autogen/AnlmdnFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AnlmdnFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AnlmdnFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -29,7 +18,7 @@ public class AnlmdnFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set output mode (from 0 to 2) (default o) /// -public AnlmdnFilterGen o(AnlmdnFilterGenO o) => this.SetOption("o", o.GetAttribute().Name); +public AnlmdnFilterGen o(AnlmdnFilterGenO o) => this.SetOption("o", o.GetEnumAttribute().Name); /// /// set smooth factor (from 1 to 15) (default 11) /// diff --git a/FFmpegArgs.Filters.Autogen/AnlmsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AnlmsFilterGen.g.cs index 3e396699..bdee0607 100644 --- a/FFmpegArgs.Filters.Autogen/AnlmsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AnlmsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AnlmsFilterGen : AudioToAudioFilter,ISliceThreading,ICommandSupport @@ -33,7 +22,7 @@ public class AnlmsFilterGen : AudioToAudioFilter,ISliceThreading,ICommandSupport /// /// set output mode (from 0 to 3) (default o) /// -public AnlmsFilterGen out_mode(AnlmsFilterGenOut_mode out_mode) => this.SetOption("out_mode", out_mode.GetAttribute().Name); +public AnlmsFilterGen out_mode(AnlmsFilterGenOut_mode out_mode) => this.SetOption("out_mode", out_mode.GetEnumAttribute().Name); } public static class AnlmsFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AnoisesrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AnoisesrcFilterGen.g.cs index 2b1e3c14..ea069713 100644 --- a/FFmpegArgs.Filters.Autogen/AnoisesrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AnoisesrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AnoisesrcFilterGen : SourceAudioFilter @@ -33,15 +22,15 @@ public class AnoisesrcFilterGen : SourceAudioFilter /// /// set noise color (from 0 to 5) (default white) /// -public AnoisesrcFilterGen color(AnoisesrcFilterGenColor color) => this.SetOption("color", color.GetAttribute().Name); +public AnoisesrcFilterGen color(AnoisesrcFilterGenColor color) => this.SetOption("color", color.GetEnumAttribute().Name); /// /// set noise color (from 0 to 5) (default white) /// -public AnoisesrcFilterGen colour(AnoisesrcFilterGenColour colour) => this.SetOption("colour", colour.GetAttribute().Name); +public AnoisesrcFilterGen colour(AnoisesrcFilterGenColour colour) => this.SetOption("colour", colour.GetEnumAttribute().Name); /// /// set noise color (from 0 to 5) (default white) /// -public AnoisesrcFilterGen c(AnoisesrcFilterGenC c) => this.SetOption("c", c.GetAttribute().Name); +public AnoisesrcFilterGen c(AnoisesrcFilterGenC c) => this.SetOption("c", c.GetEnumAttribute().Name); /// /// set random seed (from -1 to UINT32_MAX) (default -1) /// diff --git a/FFmpegArgs.Filters.Autogen/AnullsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AnullsrcFilterGen.g.cs index 9b254f71..507ea743 100644 --- a/FFmpegArgs.Filters.Autogen/AnullsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AnullsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AnullsrcFilterGen : SourceAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/ApadFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ApadFilterGen.g.cs index 296a801b..8bd2b623 100644 --- a/FFmpegArgs.Filters.Autogen/ApadFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ApadFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ApadFilterGen : AudioToAudioFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/ApermsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ApermsFilterGen.g.cs index 0a38884e..e9bc89c8 100644 --- a/FFmpegArgs.Filters.Autogen/ApermsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ApermsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ApermsFilterGen : AudioToAudioFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class ApermsFilterGen : AudioToAudioFilter,ITimelineSupport /// /// select permissions mode (from 0 to 4) (default none) /// -public ApermsFilterGen mode(ApermsFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public ApermsFilterGen mode(ApermsFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set the seed for the random mode (from -1 to UINT32_MAX) (default -1) /// diff --git a/FFmpegArgs.Filters.Autogen/AphaserFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AphaserFilterGen.g.cs index c655dcb3..a865067e 100644 --- a/FFmpegArgs.Filters.Autogen/AphaserFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AphaserFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AphaserFilterGen : AudioToAudioFilter @@ -37,7 +26,7 @@ public class AphaserFilterGen : AudioToAudioFilter /// /// set modulation type (from 0 to 1) (default triangular) /// -public AphaserFilterGen type(AphaserFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public AphaserFilterGen type(AphaserFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class AphaserFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AphaseshiftFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AphaseshiftFilterGen.g.cs index ba14083f..5cb1dffc 100644 --- a/FFmpegArgs.Filters.Autogen/AphaseshiftFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AphaseshiftFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AphaseshiftFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ApulsatorFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ApulsatorFilterGen.g.cs index ea615207..eed705b1 100644 --- a/FFmpegArgs.Filters.Autogen/ApulsatorFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ApulsatorFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ApulsatorFilterGen : AudioToAudioFilter @@ -25,7 +14,7 @@ public class ApulsatorFilterGen : AudioToAudioFilter /// /// set mode (from 0 to 4) (default sine) /// -public ApulsatorFilterGen mode(ApulsatorFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public ApulsatorFilterGen mode(ApulsatorFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set modulation (from 0 to 1) (default 1) /// @@ -45,7 +34,7 @@ public class ApulsatorFilterGen : AudioToAudioFilter /// /// set timing (from 0 to 2) (default hz) /// -public ApulsatorFilterGen timing(ApulsatorFilterGenTiming timing) => this.SetOption("timing", timing.GetAttribute().Name); +public ApulsatorFilterGen timing(ApulsatorFilterGenTiming timing) => this.SetOption("timing", timing.GetEnumAttribute().Name); /// /// set BPM (from 30 to 300) (default 120) /// diff --git a/FFmpegArgs.Filters.Autogen/ArealtimeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ArealtimeFilterGen.g.cs index 649f32bc..d4c4b15e 100644 --- a/FFmpegArgs.Filters.Autogen/ArealtimeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ArealtimeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ArealtimeFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AresampleFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AresampleFilterGen.g.cs index d6496412..f2784ead 100644 --- a/FFmpegArgs.Filters.Autogen/AresampleFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AresampleFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AresampleFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/ArnndnFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ArnndnFilterGen.g.cs index 1f662dd7..bfdabc2d 100644 --- a/FFmpegArgs.Filters.Autogen/ArnndnFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ArnndnFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ArnndnFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AsendcmdFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsendcmdFilterGen.g.cs index ff4e8484..5c644954 100644 --- a/FFmpegArgs.Filters.Autogen/AsendcmdFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsendcmdFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsendcmdFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AsetnsamplesFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsetnsamplesFilterGen.g.cs index 9af7185c..2e9601d7 100644 --- a/FFmpegArgs.Filters.Autogen/AsetnsamplesFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsetnsamplesFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsetnsamplesFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AsetptsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsetptsFilterGen.g.cs index dfffd3b7..4033c922 100644 --- a/FFmpegArgs.Filters.Autogen/AsetptsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsetptsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsetptsFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AsetrateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsetrateFilterGen.g.cs index d5abafc6..eca374c4 100644 --- a/FFmpegArgs.Filters.Autogen/AsetrateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsetrateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsetrateFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AsettbFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsettbFilterGen.g.cs index 47d8ef78..748d8a7b 100644 --- a/FFmpegArgs.Filters.Autogen/AsettbFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsettbFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsettbFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AsidedataFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsidedataFilterGen.g.cs index 99389f54..531aaf70 100644 --- a/FFmpegArgs.Filters.Autogen/AsidedataFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsidedataFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsidedataFilterGen : AudioToAudioFilter,ITimelineSupport @@ -17,11 +6,11 @@ public class AsidedataFilterGen : AudioToAudioFilter,ITimelineSupport /// /// set a mode of operation (from 0 to 1) (default select) /// -public AsidedataFilterGen mode(AsidedataFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public AsidedataFilterGen mode(AsidedataFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set side data type (from -1 to INT_MAX) (default -1) /// -public AsidedataFilterGen type(AsidedataFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public AsidedataFilterGen type(AsidedataFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class AsidedataFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AsoftclipFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsoftclipFilterGen.g.cs index c6179d2e..4a0f3e18 100644 --- a/FFmpegArgs.Filters.Autogen/AsoftclipFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsoftclipFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsoftclipFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,7 +6,7 @@ public class AsoftclipFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set softclip type (from -1 to 7) (default tanh) /// -public AsoftclipFilterGen type(AsoftclipFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public AsoftclipFilterGen type(AsoftclipFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); /// /// set softclip threshold (from 1e-06 to 1) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/AssFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AssFilterGen.g.cs index a2476728..cb3ba89e 100644 --- a/FFmpegArgs.Filters.Autogen/AssFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AssFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AssFilterGen : ImageToImageFilter @@ -33,7 +22,7 @@ public class AssFilterGen : ImageToImageFilter /// /// set shaping engine (from -1 to 1) (default auto) /// -public AssFilterGen shaping(AssFilterGenShaping shaping) => this.SetOption("shaping", shaping.GetAttribute().Name); +public AssFilterGen shaping(AssFilterGenShaping shaping) => this.SetOption("shaping", shaping.GetEnumAttribute().Name); } public static class AssFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AstatsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AstatsFilterGen.g.cs index 1d8b0ba6..bb6938bc 100644 --- a/FFmpegArgs.Filters.Autogen/AstatsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AstatsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AstatsFilterGen : AudioToAudioFilter,ISliceThreading @@ -29,11 +18,11 @@ public class AstatsFilterGen : AudioToAudioFilter,ISliceThreading /// /// only measure_perchannel these per-channel statistics (default all+DC_offset+Min_level+Max_level+Min_difference+Max_difference+Mean_difference+RMS_difference+Peak_level+RMS_level+RMS_peak+RMS_trough+Crest_factor+Flat_factor+Peak_count+Bit_depth+Dynamic_range+Zero_crossings+Zero_crossings_rate+Noise_floor+Noise_floor_count+Number_of_samples+Number_of_NaNs+Number_of_Infs+Number_of_denormals) /// -public AstatsFilterGen measure_perchannel(AstatsFilterGenMeasure_perchannel measure_perchannel) => this.SetOption("measure_perchannel", measure_perchannel.GetAttribute().Name); +public AstatsFilterGen measure_perchannel(AstatsFilterGenMeasure_perchannel measure_perchannel) => this.SetOption("measure_perchannel", measure_perchannel.GetEnumAttribute().Name); /// /// only measure_perchannel these overall statistics (default all+DC_offset+Min_level+Max_level+Min_difference+Max_difference+Mean_difference+RMS_difference+Peak_level+RMS_level+RMS_peak+RMS_trough+Crest_factor+Flat_factor+Peak_count+Bit_depth+Dynamic_range+Zero_crossings+Zero_crossings_rate+Noise_floor+Noise_floor_count+Number_of_samples+Number_of_NaNs+Number_of_Infs+Number_of_denormals) /// -public AstatsFilterGen measure_overall(AstatsFilterGenMeasure_overall measure_overall) => this.SetOption("measure_overall", measure_overall.GetAttribute().Name); +public AstatsFilterGen measure_overall(AstatsFilterGenMeasure_overall measure_overall) => this.SetOption("measure_overall", measure_overall.GetEnumAttribute().Name); } public static class AstatsFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/AsubboostFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsubboostFilterGen.g.cs index b642d75c..ec456225 100644 --- a/FFmpegArgs.Filters.Autogen/AsubboostFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsubboostFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsubboostFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AsubcutFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsubcutFilterGen.g.cs index 9312027d..a0e920ae 100644 --- a/FFmpegArgs.Filters.Autogen/AsubcutFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsubcutFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsubcutFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AsupercutFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsupercutFilterGen.g.cs index ce7fcc47..807b63de 100644 --- a/FFmpegArgs.Filters.Autogen/AsupercutFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsupercutFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsupercutFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AsuperpassFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsuperpassFilterGen.g.cs index f50de42d..50438da2 100644 --- a/FFmpegArgs.Filters.Autogen/AsuperpassFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsuperpassFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsuperpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AsuperstopFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AsuperstopFilterGen.g.cs index 561e511a..f4569509 100644 --- a/FFmpegArgs.Filters.Autogen/AsuperstopFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AsuperstopFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AsuperstopFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AtadenoiseFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AtadenoiseFilterGen.g.cs index decaf384..209284b6 100644 --- a/FFmpegArgs.Filters.Autogen/AtadenoiseFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AtadenoiseFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AtadenoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -45,11 +34,11 @@ public class AtadenoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThr /// /// set what planes to filter (default 7) /// -public AtadenoiseFilterGen p(AtadenoiseFilterGenP p) => this.SetOption("p", p.GetAttribute().Name); +public AtadenoiseFilterGen p(AtadenoiseFilterGenP p) => this.SetOption("p", p.GetEnumAttribute().Name); /// /// set variant of algorithm (from 0 to 1) (default p) /// -public AtadenoiseFilterGen a(AtadenoiseFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public AtadenoiseFilterGen a(AtadenoiseFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set sigma for 1st plane (from 0 to 32767) (default 32767) /// diff --git a/FFmpegArgs.Filters.Autogen/AtempoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AtempoFilterGen.g.cs index 4f13a66b..a8b88254 100644 --- a/FFmpegArgs.Filters.Autogen/AtempoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AtempoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AtempoFilterGen : AudioToAudioFilter,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/AtrimFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AtrimFilterGen.g.cs index 7ab579bb..4f30f324 100644 --- a/FFmpegArgs.Filters.Autogen/AtrimFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AtrimFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AtrimFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/AvgblurFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AvgblurFilterGen.g.cs index d5bb0645..8dbf2f21 100644 --- a/FFmpegArgs.Filters.Autogen/AvgblurFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AvgblurFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AvgblurFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Avgblur_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Avgblur_openclFilterGen.g.cs index a221b15c..6999e960 100644 --- a/FFmpegArgs.Filters.Autogen/Avgblur_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Avgblur_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Avgblur_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/Avgblur_vulkanFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Avgblur_vulkanFilterGen.g.cs index e79c0dd8..753dead0 100644 --- a/FFmpegArgs.Filters.Autogen/Avgblur_vulkanFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Avgblur_vulkanFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Avgblur_vulkanFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/AxcorrelateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/AxcorrelateFilterGen.g.cs index 1f97fcbf..e789ccee 100644 --- a/FFmpegArgs.Filters.Autogen/AxcorrelateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/AxcorrelateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class AxcorrelateFilterGen : AudioToAudioFilter @@ -21,7 +10,7 @@ public class AxcorrelateFilterGen : AudioToAudioFilter /// /// set alghorithm (from 0 to 1) (default slow) /// -public AxcorrelateFilterGen algo(AxcorrelateFilterGenAlgo algo) => this.SetOption("algo", algo.GetAttribute().Name); +public AxcorrelateFilterGen algo(AxcorrelateFilterGenAlgo algo) => this.SetOption("algo", algo.GetEnumAttribute().Name); } public static class AxcorrelateFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/BandpassFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BandpassFilterGen.g.cs index f297d069..a68d68a7 100644 --- a/FFmpegArgs.Filters.Autogen/BandpassFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BandpassFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BandpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class BandpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set filter-width type (from 1 to 5) (default q) /// -public BandpassFilterGen width_type(BandpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public BandpassFilterGen width_type(BandpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public BandpassFilterGen t(BandpassFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public BandpassFilterGen t(BandpassFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set band-width (from 0 to 99999) (default 0.5) /// @@ -41,7 +30,7 @@ public class BandpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set channels to filter (default 0xffffffffffffffff) /// -public BandpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public BandpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -49,19 +38,19 @@ public class BandpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set transform type (from 0 to 3) (default di) /// -public BandpassFilterGen transform(BandpassFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public BandpassFilterGen transform(BandpassFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public BandpassFilterGen a(BandpassFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public BandpassFilterGen a(BandpassFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BandpassFilterGen precision(BandpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public BandpassFilterGen precision(BandpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BandpassFilterGen r(BandpassFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public BandpassFilterGen r(BandpassFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class BandpassFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/BandrejectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BandrejectFilterGen.g.cs index 7976b237..01adb0b2 100644 --- a/FFmpegArgs.Filters.Autogen/BandrejectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BandrejectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BandrejectFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class BandrejectFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThr /// /// set filter-width type (from 1 to 5) (default q) /// -public BandrejectFilterGen width_type(BandrejectFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public BandrejectFilterGen width_type(BandrejectFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public BandrejectFilterGen t(BandrejectFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public BandrejectFilterGen t(BandrejectFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set band-width (from 0 to 99999) (default 0.5) /// @@ -37,7 +26,7 @@ public class BandrejectFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThr /// /// set channels to filter (default 0xffffffffffffffff) /// -public BandrejectFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public BandrejectFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -45,19 +34,19 @@ public class BandrejectFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThr /// /// set transform type (from 0 to 3) (default di) /// -public BandrejectFilterGen transform(BandrejectFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public BandrejectFilterGen transform(BandrejectFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public BandrejectFilterGen a(BandrejectFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public BandrejectFilterGen a(BandrejectFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BandrejectFilterGen precision(BandrejectFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public BandrejectFilterGen precision(BandrejectFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BandrejectFilterGen r(BandrejectFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public BandrejectFilterGen r(BandrejectFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class BandrejectFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/BassFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BassFilterGen.g.cs index c66c0501..dea9d8db 100644 --- a/FFmpegArgs.Filters.Autogen/BassFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BassFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class BassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading /// /// set filter-width type (from 1 to 5) (default q) /// -public BassFilterGen width_type(BassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public BassFilterGen width_type(BassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public BassFilterGen t(BassFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public BassFilterGen t(BassFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set shelf transition steep (from 0 to 99999) (default 0.5) /// @@ -45,7 +34,7 @@ public class BassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading /// /// set channels to filter (default 0xffffffffffffffff) /// -public BassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public BassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -53,19 +42,19 @@ public class BassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading /// /// set transform type (from 0 to 3) (default di) /// -public BassFilterGen transform(BassFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public BassFilterGen transform(BassFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public BassFilterGen a(BassFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public BassFilterGen a(BassFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BassFilterGen precision(BassFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public BassFilterGen precision(BassFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BassFilterGen r(BassFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public BassFilterGen r(BassFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class BassFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/BboxFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BboxFilterGen.g.cs index be027e10..bc61a375 100644 --- a/FFmpegArgs.Filters.Autogen/BboxFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BboxFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BboxFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/BenchFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BenchFilterGen.g.cs index 39b501ec..838684b5 100644 --- a/FFmpegArgs.Filters.Autogen/BenchFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BenchFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BenchFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class BenchFilterGen : ImageToImageFilter /// /// set action (from 0 to 1) (default start) /// -public BenchFilterGen action(BenchFilterGenAction action) => this.SetOption("action", action.GetAttribute().Name); +public BenchFilterGen action(BenchFilterGenAction action) => this.SetOption("action", action.GetEnumAttribute().Name); } public static class BenchFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/BilateralFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BilateralFilterGen.g.cs index 34366dbe..dec4f8e3 100644 --- a/FFmpegArgs.Filters.Autogen/BilateralFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BilateralFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BilateralFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/BiquadFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BiquadFilterGen.g.cs index b8d8b426..202ebdf5 100644 --- a/FFmpegArgs.Filters.Autogen/BiquadFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BiquadFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BiquadFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -45,7 +34,7 @@ public class BiquadFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set channels to filter (default 0xffffffffffffffff) /// -public BiquadFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public BiquadFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -53,19 +42,19 @@ public class BiquadFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set transform type (from 0 to 3) (default di) /// -public BiquadFilterGen transform(BiquadFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public BiquadFilterGen transform(BiquadFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public BiquadFilterGen a(BiquadFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public BiquadFilterGen a(BiquadFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BiquadFilterGen precision(BiquadFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public BiquadFilterGen precision(BiquadFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public BiquadFilterGen r(BiquadFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public BiquadFilterGen r(BiquadFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class BiquadFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/BitplanenoiseFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BitplanenoiseFilterGen.g.cs index 62987072..d97ccd55 100644 --- a/FFmpegArgs.Filters.Autogen/BitplanenoiseFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BitplanenoiseFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BitplanenoiseFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/BlackdetectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BlackdetectFilterGen.g.cs index a72c5dff..0c12e18b 100644 --- a/FFmpegArgs.Filters.Autogen/BlackdetectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BlackdetectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BlackdetectFilterGen : ImageToImageFilter,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/BlackframeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BlackframeFilterGen.g.cs index 821f5b26..2885ef0b 100644 --- a/FFmpegArgs.Filters.Autogen/BlackframeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BlackframeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BlackframeFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/BlendFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BlendFilterGen.g.cs index bd51ed8d..1ec16a1a 100644 --- a/FFmpegArgs.Filters.Autogen/BlendFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BlendFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BlendFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,23 +6,23 @@ public class BlendFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set component #0 blend mode (from 0 to 32) (default normal) /// -public BlendFilterGen c0_mode(BlendFilterGenC0_mode c0_mode) => this.SetOption("c0_mode", c0_mode.GetAttribute().Name); +public BlendFilterGen c0_mode(BlendFilterGenC0_mode c0_mode) => this.SetOption("c0_mode", c0_mode.GetEnumAttribute().Name); /// /// set component #1 blend mode (from 0 to 32) (default normal) /// -public BlendFilterGen c1_mode(BlendFilterGenC1_mode c1_mode) => this.SetOption("c1_mode", c1_mode.GetAttribute().Name); +public BlendFilterGen c1_mode(BlendFilterGenC1_mode c1_mode) => this.SetOption("c1_mode", c1_mode.GetEnumAttribute().Name); /// /// set component #2 blend mode (from 0 to 32) (default normal) /// -public BlendFilterGen c2_mode(BlendFilterGenC2_mode c2_mode) => this.SetOption("c2_mode", c2_mode.GetAttribute().Name); +public BlendFilterGen c2_mode(BlendFilterGenC2_mode c2_mode) => this.SetOption("c2_mode", c2_mode.GetEnumAttribute().Name); /// /// set component #3 blend mode (from 0 to 32) (default normal) /// -public BlendFilterGen c3_mode(BlendFilterGenC3_mode c3_mode) => this.SetOption("c3_mode", c3_mode.GetAttribute().Name); +public BlendFilterGen c3_mode(BlendFilterGenC3_mode c3_mode) => this.SetOption("c3_mode", c3_mode.GetEnumAttribute().Name); /// /// set blend mode for all components (from -1 to 32) (default -1) /// -public BlendFilterGen all_mode(BlendFilterGenAll_mode all_mode) => this.SetOption("all_mode", all_mode.GetAttribute().Name); +public BlendFilterGen all_mode(BlendFilterGenAll_mode all_mode) => this.SetOption("all_mode", all_mode.GetEnumAttribute().Name); /// /// set color component #0 expression /// diff --git a/FFmpegArgs.Filters.Autogen/BoxblurFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BoxblurFilterGen.g.cs index f65997d6..3e663888 100644 --- a/FFmpegArgs.Filters.Autogen/BoxblurFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BoxblurFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BoxblurFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/Boxblur_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Boxblur_openclFilterGen.g.cs index 379108b0..49fc3279 100644 --- a/FFmpegArgs.Filters.Autogen/Boxblur_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Boxblur_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Boxblur_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/BufferFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BufferFilterGen.g.cs index 11a00690..7296a8fd 100644 --- a/FFmpegArgs.Filters.Autogen/BufferFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BufferFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BufferFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/BwdifFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/BwdifFilterGen.g.cs index 6ac0c556..b71c1c3d 100644 --- a/FFmpegArgs.Filters.Autogen/BwdifFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/BwdifFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class BwdifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,15 +6,15 @@ public class BwdifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// specify the interlacing mode (from 0 to 1) (default send_field) /// -public BwdifFilterGen mode(BwdifFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public BwdifFilterGen mode(BwdifFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// specify the assumed picture field parity (from -1 to 1) (default auto) /// -public BwdifFilterGen parity(BwdifFilterGenParity parity) => this.SetOption("parity", parity.GetAttribute().Name); +public BwdifFilterGen parity(BwdifFilterGenParity parity) => this.SetOption("parity", parity.GetEnumAttribute().Name); /// /// specify which frames to deinterlace (from 0 to 1) (default all) /// -public BwdifFilterGen deint(BwdifFilterGenDeint deint) => this.SetOption("deint", deint.GetAttribute().Name); +public BwdifFilterGen deint(BwdifFilterGenDeint deint) => this.SetOption("deint", deint.GetEnumAttribute().Name); } public static class BwdifFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/CasFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CasFilterGen.g.cs index 04cd06ab..f9159bc9 100644 --- a/FFmpegArgs.Filters.Autogen/CasFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CasFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CasFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,7 +10,7 @@ public class CasFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading, /// /// set what planes to filter (default 7) /// -public CasFilterGen planes(CasFilterGenPlanes planes) => this.SetOption("planes", planes.GetAttribute().Name); +public CasFilterGen planes(CasFilterGenPlanes planes) => this.SetOption("planes", planes.GetEnumAttribute().Name); } public static class CasFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/CellautoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CellautoFilterGen.g.cs index 72a7e010..32e55892 100644 --- a/FFmpegArgs.Filters.Autogen/CellautoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CellautoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CellautoFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ChannelmapFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ChannelmapFilterGen.g.cs index d13b8435..7bfd2008 100644 --- a/FFmpegArgs.Filters.Autogen/ChannelmapFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ChannelmapFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ChannelmapFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/ChorusFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ChorusFilterGen.g.cs index 2c868a93..9e719b56 100644 --- a/FFmpegArgs.Filters.Autogen/ChorusFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ChorusFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ChorusFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/Chromaber_vulkanFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Chromaber_vulkanFilterGen.g.cs index 1efd2662..bc113cb0 100644 --- a/FFmpegArgs.Filters.Autogen/Chromaber_vulkanFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Chromaber_vulkanFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Chromaber_vulkanFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ChromaholdFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ChromaholdFilterGen.g.cs index 5aa28791..6391a34d 100644 --- a/FFmpegArgs.Filters.Autogen/ChromaholdFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ChromaholdFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ChromaholdFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ChromakeyFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ChromakeyFilterGen.g.cs index 0d4eb158..b517660a 100644 --- a/FFmpegArgs.Filters.Autogen/ChromakeyFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ChromakeyFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ChromakeyFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ChromanrFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ChromanrFilterGen.g.cs index 8b984872..f7e7d8ab 100644 --- a/FFmpegArgs.Filters.Autogen/ChromanrFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ChromanrFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ChromanrFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ChromashiftFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ChromashiftFilterGen.g.cs index 41774d17..0381b928 100644 --- a/FFmpegArgs.Filters.Autogen/ChromashiftFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ChromashiftFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ChromashiftFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -33,7 +22,7 @@ public class ChromashiftFilterGen : ImageToImageFilter,ITimelineSupport,ISliceTh /// /// set edge operation (from 0 to 1) (default smear) /// -public ChromashiftFilterGen edge(ChromashiftFilterGenEdge edge) => this.SetOption("edge", edge.GetAttribute().Name); +public ChromashiftFilterGen edge(ChromashiftFilterGenEdge edge) => this.SetOption("edge", edge.GetEnumAttribute().Name); } public static class ChromashiftFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/CiescopeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CiescopeFilterGen.g.cs index 4ef70e5a..9f9114a5 100644 --- a/FFmpegArgs.Filters.Autogen/CiescopeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CiescopeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CiescopeFilterGen : ImageToImageFilter @@ -17,15 +6,15 @@ public class CiescopeFilterGen : ImageToImageFilter /// /// set color system (from 0 to 9) (default hdtv) /// -public CiescopeFilterGen system(CiescopeFilterGenSystem system) => this.SetOption("system", system.GetAttribute().Name); +public CiescopeFilterGen system(CiescopeFilterGenSystem system) => this.SetOption("system", system.GetEnumAttribute().Name); /// /// set cie system (from 0 to 2) (default xyy) /// -public CiescopeFilterGen cie(CiescopeFilterGenCie cie) => this.SetOption("cie", cie.GetAttribute().Name); +public CiescopeFilterGen cie(CiescopeFilterGenCie cie) => this.SetOption("cie", cie.GetEnumAttribute().Name); /// /// set what gamuts to draw (default 0) /// -public CiescopeFilterGen gamuts(CiescopeFilterGenGamuts gamuts) => this.SetOption("gamuts", gamuts.GetAttribute().Name); +public CiescopeFilterGen gamuts(CiescopeFilterGenGamuts gamuts) => this.SetOption("gamuts", gamuts.GetEnumAttribute().Name); /// /// set ciescope size (from 256 to 8192) (default 512) /// diff --git a/FFmpegArgs.Filters.Autogen/CodecviewFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CodecviewFilterGen.g.cs index e45237b5..8ffccd56 100644 --- a/FFmpegArgs.Filters.Autogen/CodecviewFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CodecviewFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CodecviewFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class CodecviewFilterGen : ImageToImageFilter,ITimelineSupport /// /// set motion vectors to visualize (default 0) /// -public CodecviewFilterGen mv(CodecviewFilterGenMv mv) => this.SetOption("mv", mv.GetAttribute().Name); +public CodecviewFilterGen mv(CodecviewFilterGenMv mv) => this.SetOption("mv", mv.GetEnumAttribute().Name); /// /// (default false) /// @@ -25,19 +14,19 @@ public class CodecviewFilterGen : ImageToImageFilter,ITimelineSupport /// /// set motion vectors type (default 0) /// -public CodecviewFilterGen mv_type(CodecviewFilterGenMv_type mv_type) => this.SetOption("mv_type", mv_type.GetAttribute().Name); +public CodecviewFilterGen mv_type(CodecviewFilterGenMv_type mv_type) => this.SetOption("mv_type", mv_type.GetEnumAttribute().Name); /// /// set motion vectors type (default 0) /// -public CodecviewFilterGen mvt(CodecviewFilterGenMvt mvt) => this.SetOption("mvt", mvt.GetAttribute().Name); +public CodecviewFilterGen mvt(CodecviewFilterGenMvt mvt) => this.SetOption("mvt", mvt.GetEnumAttribute().Name); /// /// set frame types to visualize motion vectors of (default 0) /// -public CodecviewFilterGen frame_type(CodecviewFilterGenFrame_type frame_type) => this.SetOption("frame_type", frame_type.GetAttribute().Name); +public CodecviewFilterGen frame_type(CodecviewFilterGenFrame_type frame_type) => this.SetOption("frame_type", frame_type.GetEnumAttribute().Name); /// /// set frame types to visualize motion vectors of (default 0) /// -public CodecviewFilterGen ft(CodecviewFilterGenFt ft) => this.SetOption("ft", ft.GetAttribute().Name); +public CodecviewFilterGen ft(CodecviewFilterGenFt ft) => this.SetOption("ft", ft.GetEnumAttribute().Name); } public static class CodecviewFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ColorFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorFilterGen.g.cs index cb5551f8..bf2d88a7 100644 --- a/FFmpegArgs.Filters.Autogen/ColorFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorFilterGen : SourceImageFilter,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColorbalanceFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorbalanceFilterGen.g.cs index 951ba111..14e7a8f3 100644 --- a/FFmpegArgs.Filters.Autogen/ColorbalanceFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorbalanceFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorbalanceFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColorchannelmixerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorchannelmixerFilterGen.g.cs index 18c71af3..f1faf7dd 100644 --- a/FFmpegArgs.Filters.Autogen/ColorchannelmixerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorchannelmixerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorchannelmixerFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColorcontrastFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorcontrastFilterGen.g.cs index b6c33fe3..5caa668e 100644 --- a/FFmpegArgs.Filters.Autogen/ColorcontrastFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorcontrastFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorcontrastFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColorcorrectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorcorrectFilterGen.g.cs index a570fbbf..27f83718 100644 --- a/FFmpegArgs.Filters.Autogen/ColorcorrectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorcorrectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorcorrectFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColorholdFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorholdFilterGen.g.cs index 63572b1b..50dc5585 100644 --- a/FFmpegArgs.Filters.Autogen/ColorholdFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorholdFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorholdFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColorizeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorizeFilterGen.g.cs index 65eff3ed..9d9c8ffb 100644 --- a/FFmpegArgs.Filters.Autogen/ColorizeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorizeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorizeFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColorkeyFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorkeyFilterGen.g.cs index ca3425b7..f62a0071 100644 --- a/FFmpegArgs.Filters.Autogen/ColorkeyFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorkeyFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorkeyFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Colorkey_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Colorkey_openclFilterGen.g.cs index dceaac63..1734bd9c 100644 --- a/FFmpegArgs.Filters.Autogen/Colorkey_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Colorkey_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Colorkey_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ColorlevelsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorlevelsFilterGen.g.cs index e02c4b49..8641fe6f 100644 --- a/FFmpegArgs.Filters.Autogen/ColorlevelsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorlevelsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorlevelsFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ColormatrixFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColormatrixFilterGen.g.cs index 5b8fd8f3..d3679015 100644 --- a/FFmpegArgs.Filters.Autogen/ColormatrixFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColormatrixFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColormatrixFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,11 +6,11 @@ public class ColormatrixFilterGen : ImageToImageFilter,ITimelineSupport,ISliceTh /// /// set source color matrix (from -1 to 4) (default -1) /// -public ColormatrixFilterGen src(ColormatrixFilterGenSrc src) => this.SetOption("src", src.GetAttribute().Name); +public ColormatrixFilterGen src(ColormatrixFilterGenSrc src) => this.SetOption("src", src.GetEnumAttribute().Name); /// /// set destination color matrix (from -1 to 4) (default -1) /// -public ColormatrixFilterGen dst(ColormatrixFilterGenDst dst) => this.SetOption("dst", dst.GetAttribute().Name); +public ColormatrixFilterGen dst(ColormatrixFilterGenDst dst) => this.SetOption("dst", dst.GetEnumAttribute().Name); } public static class ColormatrixFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ColorspaceFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColorspaceFilterGen.g.cs index 9ce2022b..d31ea053 100644 --- a/FFmpegArgs.Filters.Autogen/ColorspaceFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColorspaceFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColorspaceFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,27 +6,27 @@ public class ColorspaceFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThr /// /// Set all color properties together (from 0 to 8) (default 0) /// -public ColorspaceFilterGen all(ColorspaceFilterGenAll all) => this.SetOption("all", all.GetAttribute().Name); +public ColorspaceFilterGen all(ColorspaceFilterGenAll all) => this.SetOption("all", all.GetEnumAttribute().Name); /// /// Output colorspace (from 0 to 14) (default 2) /// -public ColorspaceFilterGen space(ColorspaceFilterGenSpace space) => this.SetOption("space", space.GetAttribute().Name); +public ColorspaceFilterGen space(ColorspaceFilterGenSpace space) => this.SetOption("space", space.GetEnumAttribute().Name); /// /// Output color range (from 0 to 2) (default 0) /// -public ColorspaceFilterGen range(ColorspaceFilterGenRange range) => this.SetOption("range", range.GetAttribute().Name); +public ColorspaceFilterGen range(ColorspaceFilterGenRange range) => this.SetOption("range", range.GetEnumAttribute().Name); /// /// Output color primaries (from 0 to 22) (default 2) /// -public ColorspaceFilterGen primaries(ColorspaceFilterGenPrimaries primaries) => this.SetOption("primaries", primaries.GetAttribute().Name); +public ColorspaceFilterGen primaries(ColorspaceFilterGenPrimaries primaries) => this.SetOption("primaries", primaries.GetEnumAttribute().Name); /// /// Output transfer characteristics (from 0 to 18) (default 2) /// -public ColorspaceFilterGen trc(ColorspaceFilterGenTrc trc) => this.SetOption("trc", trc.GetAttribute().Name); +public ColorspaceFilterGen trc(ColorspaceFilterGenTrc trc) => this.SetOption("trc", trc.GetEnumAttribute().Name); /// /// Output pixel format (from -1 to 164) (default -1) /// -public ColorspaceFilterGen format(ColorspaceFilterGenFormat format) => this.SetOption("format", format.GetAttribute().Name); +public ColorspaceFilterGen format(ColorspaceFilterGenFormat format) => this.SetOption("format", format.GetEnumAttribute().Name); /// /// Ignore primary chromaticity and gamma correction (default false) /// @@ -45,31 +34,31 @@ public class ColorspaceFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThr /// /// Dithering mode (from 0 to 1) (default none) /// -public ColorspaceFilterGen dither(ColorspaceFilterGenDither dither) => this.SetOption("dither", dither.GetAttribute().Name); +public ColorspaceFilterGen dither(ColorspaceFilterGenDither dither) => this.SetOption("dither", dither.GetEnumAttribute().Name); /// /// Whitepoint adaptation method (from 0 to 2) (default bradford) /// -public ColorspaceFilterGen wpadapt(ColorspaceFilterGenWpadapt wpadapt) => this.SetOption("wpadapt", wpadapt.GetAttribute().Name); +public ColorspaceFilterGen wpadapt(ColorspaceFilterGenWpadapt wpadapt) => this.SetOption("wpadapt", wpadapt.GetEnumAttribute().Name); /// /// Set all input color properties together (from 0 to 8) (default 0) /// -public ColorspaceFilterGen iall(ColorspaceFilterGenIall iall) => this.SetOption("iall", iall.GetAttribute().Name); +public ColorspaceFilterGen iall(ColorspaceFilterGenIall iall) => this.SetOption("iall", iall.GetEnumAttribute().Name); /// /// Input colorspace (from 0 to 22) (default 2) /// -public ColorspaceFilterGen ispace(ColorspaceFilterGenIspace ispace) => this.SetOption("ispace", ispace.GetAttribute().Name); +public ColorspaceFilterGen ispace(ColorspaceFilterGenIspace ispace) => this.SetOption("ispace", ispace.GetEnumAttribute().Name); /// /// Input color range (from 0 to 2) (default 0) /// -public ColorspaceFilterGen irange(ColorspaceFilterGenIrange irange) => this.SetOption("irange", irange.GetAttribute().Name); +public ColorspaceFilterGen irange(ColorspaceFilterGenIrange irange) => this.SetOption("irange", irange.GetEnumAttribute().Name); /// /// Input color primaries (from 0 to 22) (default 2) /// -public ColorspaceFilterGen iprimaries(ColorspaceFilterGenIprimaries iprimaries) => this.SetOption("iprimaries", iprimaries.GetAttribute().Name); +public ColorspaceFilterGen iprimaries(ColorspaceFilterGenIprimaries iprimaries) => this.SetOption("iprimaries", iprimaries.GetEnumAttribute().Name); /// /// Input transfer characteristics (from 0 to 18) (default 2) /// -public ColorspaceFilterGen itrc(ColorspaceFilterGenItrc itrc) => this.SetOption("itrc", itrc.GetAttribute().Name); +public ColorspaceFilterGen itrc(ColorspaceFilterGenItrc itrc) => this.SetOption("itrc", itrc.GetEnumAttribute().Name); } public static class ColorspaceFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ColortemperatureFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ColortemperatureFilterGen.g.cs index d3ef58aa..4a7996f8 100644 --- a/FFmpegArgs.Filters.Autogen/ColortemperatureFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ColortemperatureFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ColortemperatureFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/CompandFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CompandFilterGen.g.cs index 32c5ef7a..586fd643 100644 --- a/FFmpegArgs.Filters.Autogen/CompandFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CompandFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CompandFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/CompensationdelayFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CompensationdelayFilterGen.g.cs index 3a3df841..38b8ac78 100644 --- a/FFmpegArgs.Filters.Autogen/CompensationdelayFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CompensationdelayFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CompensationdelayFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/ConvolutionFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ConvolutionFilterGen.g.cs index 69bbd24c..c674a172 100644 --- a/FFmpegArgs.Filters.Autogen/ConvolutionFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ConvolutionFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ConvolutionFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -65,19 +54,19 @@ public class ConvolutionFilterGen : ImageToImageFilter,ITimelineSupport,ISliceTh /// /// set matrix mode for 1st plane (from 0 to 2) (default square) /// -public ConvolutionFilterGen _0mode(ConvolutionFilterGen_0mode _0mode) => this.SetOption("0mode", _0mode.GetAttribute().Name); +public ConvolutionFilterGen _0mode(ConvolutionFilterGen_0mode _0mode) => this.SetOption("0mode", _0mode.GetEnumAttribute().Name); /// /// set matrix mode for 2nd plane (from 0 to 2) (default square) /// -public ConvolutionFilterGen _1mode(ConvolutionFilterGen_1mode _1mode) => this.SetOption("1mode", _1mode.GetAttribute().Name); +public ConvolutionFilterGen _1mode(ConvolutionFilterGen_1mode _1mode) => this.SetOption("1mode", _1mode.GetEnumAttribute().Name); /// /// set matrix mode for 3rd plane (from 0 to 2) (default square) /// -public ConvolutionFilterGen _2mode(ConvolutionFilterGen_2mode _2mode) => this.SetOption("2mode", _2mode.GetAttribute().Name); +public ConvolutionFilterGen _2mode(ConvolutionFilterGen_2mode _2mode) => this.SetOption("2mode", _2mode.GetEnumAttribute().Name); /// /// set matrix mode for 4th plane (from 0 to 2) (default square) /// -public ConvolutionFilterGen _3mode(ConvolutionFilterGen_3mode _3mode) => this.SetOption("3mode", _3mode.GetAttribute().Name); +public ConvolutionFilterGen _3mode(ConvolutionFilterGen_3mode _3mode) => this.SetOption("3mode", _3mode.GetEnumAttribute().Name); } public static class ConvolutionFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Convolution_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Convolution_openclFilterGen.g.cs index 97260714..d6c9bdfb 100644 --- a/FFmpegArgs.Filters.Autogen/Convolution_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Convolution_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Convolution_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ConvolveFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ConvolveFilterGen.g.cs index 3557eaa7..0cec0f4e 100644 --- a/FFmpegArgs.Filters.Autogen/ConvolveFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ConvolveFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ConvolveFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -21,7 +10,7 @@ public class ConvolveFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThrea /// /// when to process impulses (from 0 to 1) (default all) /// -public ConvolveFilterGen impulse(ConvolveFilterGenImpulse impulse) => this.SetOption("impulse", impulse.GetAttribute().Name); +public ConvolveFilterGen impulse(ConvolveFilterGenImpulse impulse) => this.SetOption("impulse", impulse.GetEnumAttribute().Name); /// /// set noise (from 0 to 1) (default 1e-07) /// diff --git a/FFmpegArgs.Filters.Autogen/Cover_rectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Cover_rectFilterGen.g.cs index f3ef4bbd..d32233c6 100644 --- a/FFmpegArgs.Filters.Autogen/Cover_rectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Cover_rectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Cover_rectFilterGen : ImageToImageFilter @@ -21,7 +10,7 @@ public class Cover_rectFilterGen : ImageToImageFilter /// /// set removal mode (from 0 to 1) (default blur) /// -public Cover_rectFilterGen mode(Cover_rectFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public Cover_rectFilterGen mode(Cover_rectFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class Cover_rectFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/CropFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CropFilterGen.g.cs index 8a19d344..b924ff68 100644 --- a/FFmpegArgs.Filters.Autogen/CropFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CropFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CropFilterGen : ImageToImageFilter,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/CropdetectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CropdetectFilterGen.g.cs index 8974140a..7df106c6 100644 --- a/FFmpegArgs.Filters.Autogen/CropdetectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CropdetectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CropdetectFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/CrossfeedFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CrossfeedFilterGen.g.cs index f1983b86..003d8254 100644 --- a/FFmpegArgs.Filters.Autogen/CrossfeedFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CrossfeedFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CrossfeedFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/CrystalizerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CrystalizerFilterGen.g.cs index dcbc8c41..b064d354 100644 --- a/FFmpegArgs.Filters.Autogen/CrystalizerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CrystalizerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CrystalizerFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/CueFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CueFilterGen.g.cs index 1653ec7e..2f5b9c6f 100644 --- a/FFmpegArgs.Filters.Autogen/CueFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CueFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CueFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/CurvesFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/CurvesFilterGen.g.cs index 045448ef..bfdc36c3 100644 --- a/FFmpegArgs.Filters.Autogen/CurvesFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/CurvesFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class CurvesFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,7 +6,7 @@ public class CurvesFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadi /// /// select a color curves preset (from 0 to 10) (default none) /// -public CurvesFilterGen preset(CurvesFilterGenPreset preset) => this.SetOption("preset", preset.GetAttribute().Name); +public CurvesFilterGen preset(CurvesFilterGenPreset preset) => this.SetOption("preset", preset.GetEnumAttribute().Name); /// /// set master points coordinates /// diff --git a/FFmpegArgs.Filters.Autogen/DatascopeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DatascopeFilterGen.g.cs index 962e4329..ab701960 100644 --- a/FFmpegArgs.Filters.Autogen/DatascopeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DatascopeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DatascopeFilterGen : ImageToImageFilter,ISliceThreading,ICommandSupport @@ -29,7 +18,7 @@ public class DatascopeFilterGen : ImageToImageFilter,ISliceThreading,ICommandSup /// /// set scope mode (from 0 to 2) (default mono) /// -public DatascopeFilterGen mode(DatascopeFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public DatascopeFilterGen mode(DatascopeFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// draw column/row numbers (default false) /// @@ -41,7 +30,7 @@ public class DatascopeFilterGen : ImageToImageFilter,ISliceThreading,ICommandSup /// /// set display number format (from 0 to 1) (default hex) /// -public DatascopeFilterGen format(DatascopeFilterGenFormat format) => this.SetOption("format", format.GetAttribute().Name); +public DatascopeFilterGen format(DatascopeFilterGenFormat format) => this.SetOption("format", format.GetEnumAttribute().Name); /// /// set components to display (from 1 to 15) (default 15) /// diff --git a/FFmpegArgs.Filters.Autogen/DblurFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DblurFilterGen.g.cs index f0717c3a..a0e43e92 100644 --- a/FFmpegArgs.Filters.Autogen/DblurFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DblurFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DblurFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/DcshiftFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DcshiftFilterGen.g.cs index bc6386b4..8cb001bf 100644 --- a/FFmpegArgs.Filters.Autogen/DcshiftFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DcshiftFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DcshiftFilterGen : AudioToAudioFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/DctdnoizFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DctdnoizFilterGen.g.cs index a1e66b8e..88078203 100644 --- a/FFmpegArgs.Filters.Autogen/DctdnoizFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DctdnoizFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DctdnoizFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/DebandFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DebandFilterGen.g.cs index 18c5721f..282ac76f 100644 --- a/FFmpegArgs.Filters.Autogen/DebandFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DebandFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DebandFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/DeblockFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DeblockFilterGen.g.cs index 2c0bfac3..a0fc2fd5 100644 --- a/FFmpegArgs.Filters.Autogen/DeblockFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DeblockFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DeblockFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport @@ -17,7 +6,7 @@ public class DeblockFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupp /// /// set type of filter (from 0 to 1) (default strong) /// -public DeblockFilterGen filter(DeblockFilterGenFilter filter) => this.SetOption("filter", filter.GetAttribute().Name); +public DeblockFilterGen filter(DeblockFilterGenFilter filter) => this.SetOption("filter", filter.GetEnumAttribute().Name); /// /// set size of block (from 4 to 512) (default 8) /// diff --git a/FFmpegArgs.Filters.Autogen/DeconvolveFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DeconvolveFilterGen.g.cs index 23708542..e77d69ec 100644 --- a/FFmpegArgs.Filters.Autogen/DeconvolveFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DeconvolveFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DeconvolveFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -21,7 +10,7 @@ public class DeconvolveFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThr /// /// when to process impulses (from 0 to 1) (default all) /// -public DeconvolveFilterGen impulse(DeconvolveFilterGenImpulse impulse) => this.SetOption("impulse", impulse.GetAttribute().Name); +public DeconvolveFilterGen impulse(DeconvolveFilterGenImpulse impulse) => this.SetOption("impulse", impulse.GetEnumAttribute().Name); /// /// set noise (from 0 to 1) (default 1e-07) /// diff --git a/FFmpegArgs.Filters.Autogen/DedotFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DedotFilterGen.g.cs index 5d18b898..22796a2f 100644 --- a/FFmpegArgs.Filters.Autogen/DedotFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DedotFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DedotFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,7 +6,7 @@ public class DedotFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set filtering mode (default dotcrawl+rainbows) /// -public DedotFilterGen m(DedotFilterGenM m) => this.SetOption("m", m.GetAttribute().Name); +public DedotFilterGen m(DedotFilterGenM m) => this.SetOption("m", m.GetEnumAttribute().Name); /// /// set spatial luma threshold (from 0 to 1) (default 0.079) /// diff --git a/FFmpegArgs.Filters.Autogen/DeesserFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DeesserFilterGen.g.cs index 23262ccd..30fc43e1 100644 --- a/FFmpegArgs.Filters.Autogen/DeesserFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DeesserFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DeesserFilterGen : AudioToAudioFilter,ITimelineSupport @@ -29,7 +18,7 @@ public class DeesserFilterGen : AudioToAudioFilter,ITimelineSupport /// /// set output mode (from 0 to 2) (default o) /// -public DeesserFilterGen s(DeesserFilterGenS s) => this.SetOption("s", s.GetAttribute().Name); +public DeesserFilterGen s(DeesserFilterGenS s) => this.SetOption("s", s.GetEnumAttribute().Name); } public static class DeesserFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/DeflateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DeflateFilterGen.g.cs index 7d203ff2..153aca92 100644 --- a/FFmpegArgs.Filters.Autogen/DeflateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DeflateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DeflateFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/DeflickerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DeflickerFilterGen.g.cs index 24dab2b0..36010d79 100644 --- a/FFmpegArgs.Filters.Autogen/DeflickerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DeflickerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DeflickerFilterGen : ImageToImageFilter @@ -21,7 +10,7 @@ public class DeflickerFilterGen : ImageToImageFilter /// /// set how to smooth luminance (from 0 to 6) (default am) /// -public DeflickerFilterGen mode(DeflickerFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public DeflickerFilterGen mode(DeflickerFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// leave frames unchanged (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/Deinterlace_qsvFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Deinterlace_qsvFilterGen.g.cs index 7f769cc5..0039d359 100644 --- a/FFmpegArgs.Filters.Autogen/Deinterlace_qsvFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Deinterlace_qsvFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Deinterlace_qsvFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class Deinterlace_qsvFilterGen : ImageToImageFilter /// /// set deinterlace mode (from 1 to 2) (default advanced) /// -public Deinterlace_qsvFilterGen mode(Deinterlace_qsvFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public Deinterlace_qsvFilterGen mode(Deinterlace_qsvFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class Deinterlace_qsvFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/DejudderFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DejudderFilterGen.g.cs index d9b0ce72..4bcf2608 100644 --- a/FFmpegArgs.Filters.Autogen/DejudderFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DejudderFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DejudderFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/DelogoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DelogoFilterGen.g.cs index da570607..56bc5292 100644 --- a/FFmpegArgs.Filters.Autogen/DelogoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DelogoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DelogoFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/DerainFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DerainFilterGen.g.cs index 9e15180e..c168c8cb 100644 --- a/FFmpegArgs.Filters.Autogen/DerainFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DerainFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DerainFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,11 +6,11 @@ public class DerainFilterGen : ImageToImageFilter,ITimelineSupport /// /// filter type(derain/dehaze) (from 0 to 1) (default derain) /// -public DerainFilterGen filter_type(DerainFilterGenFilter_type filter_type) => this.SetOption("filter_type", filter_type.GetAttribute().Name); +public DerainFilterGen filter_type(DerainFilterGenFilter_type filter_type) => this.SetOption("filter_type", filter_type.GetEnumAttribute().Name); /// /// DNN backend (from 0 to 1) (default native) /// -public DerainFilterGen dnn_backend(DerainFilterGenDnn_backend dnn_backend) => this.SetOption("dnn_backend", dnn_backend.GetAttribute().Name); +public DerainFilterGen dnn_backend(DerainFilterGenDnn_backend dnn_backend) => this.SetOption("dnn_backend", dnn_backend.GetEnumAttribute().Name); /// /// path to model file /// diff --git a/FFmpegArgs.Filters.Autogen/DeshakeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DeshakeFilterGen.g.cs index 1936ef00..beb5af9c 100644 --- a/FFmpegArgs.Filters.Autogen/DeshakeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DeshakeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DeshakeFilterGen : ImageToImageFilter @@ -41,7 +30,7 @@ public class DeshakeFilterGen : ImageToImageFilter /// /// set edge mode (from 0 to 3) (default mirror) /// -public DeshakeFilterGen edge(DeshakeFilterGenEdge edge) => this.SetOption("edge", edge.GetAttribute().Name); +public DeshakeFilterGen edge(DeshakeFilterGenEdge edge) => this.SetOption("edge", edge.GetEnumAttribute().Name); /// /// set motion search blocksize (from 4 to 128) (default 8) /// @@ -53,7 +42,7 @@ public class DeshakeFilterGen : ImageToImageFilter /// /// set search strategy (from 0 to 1) (default exhaustive) /// -public DeshakeFilterGen search(DeshakeFilterGenSearch search) => this.SetOption("search", search.GetAttribute().Name); +public DeshakeFilterGen search(DeshakeFilterGenSearch search) => this.SetOption("search", search.GetEnumAttribute().Name); /// /// set motion search detailed log file name /// diff --git a/FFmpegArgs.Filters.Autogen/Deshake_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Deshake_openclFilterGen.g.cs index eb21a6f8..7851c034 100644 --- a/FFmpegArgs.Filters.Autogen/Deshake_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Deshake_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Deshake_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/DespillFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DespillFilterGen.g.cs index 9cc69ff0..14244150 100644 --- a/FFmpegArgs.Filters.Autogen/DespillFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DespillFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DespillFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,7 +6,7 @@ public class DespillFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThread /// /// set the screen type (from 0 to 1) (default green) /// -public DespillFilterGen type(DespillFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public DespillFilterGen type(DespillFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); /// /// set the spillmap mix (from 0 to 1) (default 0.5) /// diff --git a/FFmpegArgs.Filters.Autogen/DetelecineFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DetelecineFilterGen.g.cs index 8ea6b82f..cce8a239 100644 --- a/FFmpegArgs.Filters.Autogen/DetelecineFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DetelecineFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DetelecineFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class DetelecineFilterGen : ImageToImageFilter /// /// select first field (from 0 to 1) (default top) /// -public DetelecineFilterGen first_field(DetelecineFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetAttribute().Name); +public DetelecineFilterGen first_field(DetelecineFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetEnumAttribute().Name); /// /// pattern that describe for how many fields a frame is to be displayed (default "23") /// diff --git a/FFmpegArgs.Filters.Autogen/DilationFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DilationFilterGen.g.cs index d28888d7..282a1c20 100644 --- a/FFmpegArgs.Filters.Autogen/DilationFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DilationFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DilationFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Dilation_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Dilation_openclFilterGen.g.cs index 036989af..3c82029b 100644 --- a/FFmpegArgs.Filters.Autogen/Dilation_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Dilation_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Dilation_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/DisplaceFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DisplaceFilterGen.g.cs index dc240d1a..9041bece 100644 --- a/FFmpegArgs.Filters.Autogen/DisplaceFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DisplaceFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DisplaceFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class DisplaceFilterGen : ImageToImageFilter,ITimelineSupport /// /// set edge mode (from 0 to 3) (default smear) /// -public DisplaceFilterGen edge(DisplaceFilterGenEdge edge) => this.SetOption("edge", edge.GetAttribute().Name); +public DisplaceFilterGen edge(DisplaceFilterGenEdge edge) => this.SetOption("edge", edge.GetEnumAttribute().Name); } public static class DisplaceFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Dnn_processingFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Dnn_processingFilterGen.g.cs index c8a77c66..d0cf186f 100644 --- a/FFmpegArgs.Filters.Autogen/Dnn_processingFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Dnn_processingFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Dnn_processingFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class Dnn_processingFilterGen : ImageToImageFilter /// /// DNN backend (from INT_MIN to INT_MAX) (default native) /// -public Dnn_processingFilterGen dnn_backend(Dnn_processingFilterGenDnn_backend dnn_backend) => this.SetOption("dnn_backend", dnn_backend.GetAttribute().Name); +public Dnn_processingFilterGen dnn_backend(Dnn_processingFilterGenDnn_backend dnn_backend) => this.SetOption("dnn_backend", dnn_backend.GetEnumAttribute().Name); /// /// path to model file /// diff --git a/FFmpegArgs.Filters.Autogen/DoubleweaveFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DoubleweaveFilterGen.g.cs index 8fb3c6d1..753e80ee 100644 --- a/FFmpegArgs.Filters.Autogen/DoubleweaveFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DoubleweaveFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DoubleweaveFilterGen : ImageToImageFilter,ISliceThreading @@ -17,7 +6,7 @@ public class DoubleweaveFilterGen : ImageToImageFilter,ISliceThreading /// /// set first field (from 0 to 1) (default top) /// -public DoubleweaveFilterGen first_field(DoubleweaveFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetAttribute().Name); +public DoubleweaveFilterGen first_field(DoubleweaveFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetEnumAttribute().Name); } public static class DoubleweaveFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/DrawboxFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DrawboxFilterGen.g.cs index 1d941205..81f48e62 100644 --- a/FFmpegArgs.Filters.Autogen/DrawboxFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DrawboxFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DrawboxFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/DrawgraphFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DrawgraphFilterGen.g.cs index 54b5044e..4a6042a7 100644 --- a/FFmpegArgs.Filters.Autogen/DrawgraphFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DrawgraphFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DrawgraphFilterGen : ImageToImageFilter @@ -61,11 +50,11 @@ public class DrawgraphFilterGen : ImageToImageFilter /// /// set graph mode (from 0 to 2) (default line) /// -public DrawgraphFilterGen mode(DrawgraphFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public DrawgraphFilterGen mode(DrawgraphFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set slide mode (from 0 to 4) (default frame) /// -public DrawgraphFilterGen slide(DrawgraphFilterGenSlide slide) => this.SetOption("slide", slide.GetAttribute().Name); +public DrawgraphFilterGen slide(DrawgraphFilterGenSlide slide) => this.SetOption("slide", slide.GetEnumAttribute().Name); /// /// set graph size (default "900x256") /// diff --git a/FFmpegArgs.Filters.Autogen/DrawgridFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DrawgridFilterGen.g.cs index 20b951c8..480f32d0 100644 --- a/FFmpegArgs.Filters.Autogen/DrawgridFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DrawgridFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DrawgridFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/DrawtextFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DrawtextFilterGen.g.cs index 128f78d3..72334c1e 100644 --- a/FFmpegArgs.Filters.Autogen/DrawtextFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DrawtextFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DrawtextFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport @@ -97,7 +86,7 @@ public class DrawtextFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSup /// /// set the expansion mode (from 0 to 2) (default normal) /// -public DrawtextFilterGen expansion(DrawtextFilterGenExpansion expansion) => this.SetOption("expansion", expansion.GetAttribute().Name); +public DrawtextFilterGen expansion(DrawtextFilterGenExpansion expansion) => this.SetOption("expansion", expansion.GetEnumAttribute().Name); /// /// set initial timecode /// @@ -141,7 +130,7 @@ public class DrawtextFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSup /// /// set font loading flags for libfreetype (default 0) /// -public DrawtextFilterGen ft_load_flags(DrawtextFilterGenFt_load_flags ft_load_flags) => this.SetOption("ft_load_flags", ft_load_flags.GetAttribute().Name); +public DrawtextFilterGen ft_load_flags(DrawtextFilterGenFt_load_flags ft_load_flags) => this.SetOption("ft_load_flags", ft_load_flags.GetEnumAttribute().Name); } public static class DrawtextFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/DrmeterFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DrmeterFilterGen.g.cs index 7117cc51..020e7fcc 100644 --- a/FFmpegArgs.Filters.Autogen/DrmeterFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DrmeterFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DrmeterFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/DynaudnormFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/DynaudnormFilterGen.g.cs index 234b7f8d..b8027002 100644 --- a/FFmpegArgs.Filters.Autogen/DynaudnormFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/DynaudnormFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class DynaudnormFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/EdgedetectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/EdgedetectFilterGen.g.cs index fab48746..c481bf31 100644 --- a/FFmpegArgs.Filters.Autogen/EdgedetectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/EdgedetectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class EdgedetectFilterGen : ImageToImageFilter,ITimelineSupport @@ -25,11 +14,11 @@ public class EdgedetectFilterGen : ImageToImageFilter,ITimelineSupport /// /// set mode (from 0 to 2) (default wires) /// -public EdgedetectFilterGen mode(EdgedetectFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public EdgedetectFilterGen mode(EdgedetectFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set planes to filter (default y+u+v+r+g+b) /// -public EdgedetectFilterGen planes(EdgedetectFilterGenPlanes planes) => this.SetOption("planes", planes.GetAttribute().Name); +public EdgedetectFilterGen planes(EdgedetectFilterGenPlanes planes) => this.SetOption("planes", planes.GetEnumAttribute().Name); } public static class EdgedetectFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ElbgFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ElbgFilterGen.g.cs index 0f68732d..45d5476f 100644 --- a/FFmpegArgs.Filters.Autogen/ElbgFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ElbgFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ElbgFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/EntropyFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/EntropyFilterGen.g.cs index d0f69c1f..e4fcb163 100644 --- a/FFmpegArgs.Filters.Autogen/EntropyFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/EntropyFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class EntropyFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class EntropyFilterGen : ImageToImageFilter,ITimelineSupport /// /// set kind of histogram entropy measurement (from 0 to 1) (default normal) /// -public EntropyFilterGen mode(EntropyFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public EntropyFilterGen mode(EntropyFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class EntropyFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/EpxFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/EpxFilterGen.g.cs index 2156b49f..b2cb3971 100644 --- a/FFmpegArgs.Filters.Autogen/EpxFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/EpxFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class EpxFilterGen : ImageToImageFilter,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/EqFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/EqFilterGen.g.cs index 12347d20..201f0a4b 100644 --- a/FFmpegArgs.Filters.Autogen/EqFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/EqFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class EqFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport @@ -49,7 +38,7 @@ public class EqFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport /// /// specify when to evaluate expressions (from 0 to 1) (default init) /// -public EqFilterGen eval(EqFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public EqFilterGen eval(EqFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); } public static class EqFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/EqualizerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/EqualizerFilterGen.g.cs index b0e91c01..69df5e6a 100644 --- a/FFmpegArgs.Filters.Autogen/EqualizerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/EqualizerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class EqualizerFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class EqualizerFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set filter-width type (from 1 to 5) (default q) /// -public EqualizerFilterGen width_type(EqualizerFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public EqualizerFilterGen width_type(EqualizerFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public EqualizerFilterGen t(EqualizerFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public EqualizerFilterGen t(EqualizerFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set band-width (from 0 to 99999) (default 1) /// @@ -41,7 +30,7 @@ public class EqualizerFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set channels to filter (default 0xffffffffffffffff) /// -public EqualizerFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public EqualizerFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -49,19 +38,19 @@ public class EqualizerFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set transform type (from 0 to 3) (default di) /// -public EqualizerFilterGen transform(EqualizerFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public EqualizerFilterGen transform(EqualizerFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public EqualizerFilterGen a(EqualizerFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public EqualizerFilterGen a(EqualizerFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public EqualizerFilterGen precision(EqualizerFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public EqualizerFilterGen precision(EqualizerFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public EqualizerFilterGen r(EqualizerFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public EqualizerFilterGen r(EqualizerFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class EqualizerFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ErosionFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ErosionFilterGen.g.cs index 8ab9a16d..13a41f22 100644 --- a/FFmpegArgs.Filters.Autogen/ErosionFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ErosionFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ErosionFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Erosion_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Erosion_openclFilterGen.g.cs index 6cc91309..fd34dc4d 100644 --- a/FFmpegArgs.Filters.Autogen/Erosion_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Erosion_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Erosion_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/EstdifFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/EstdifFilterGen.g.cs index a481fd7e..9e4bc269 100644 --- a/FFmpegArgs.Filters.Autogen/EstdifFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/EstdifFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class EstdifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,15 +6,15 @@ public class EstdifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadi /// /// specify the mode (from 0 to 1) (default field) /// -public EstdifFilterGen mode(EstdifFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public EstdifFilterGen mode(EstdifFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// specify the assumed picture field parity (from -1 to 1) (default auto) /// -public EstdifFilterGen parity(EstdifFilterGenParity parity) => this.SetOption("parity", parity.GetAttribute().Name); +public EstdifFilterGen parity(EstdifFilterGenParity parity) => this.SetOption("parity", parity.GetEnumAttribute().Name); /// /// specify which frames to deinterlace (from 0 to 1) (default all) /// -public EstdifFilterGen deint(EstdifFilterGenDeint deint) => this.SetOption("deint", deint.GetAttribute().Name); +public EstdifFilterGen deint(EstdifFilterGenDeint deint) => this.SetOption("deint", deint.GetEnumAttribute().Name); /// /// specify the search radius for edge slope tracing (from 1 to 15) (default 1) /// @@ -37,7 +26,7 @@ public class EstdifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadi /// /// specify the type of interpolation (from 0 to 2) (default 4p) /// -public EstdifFilterGen interp(EstdifFilterGenInterp interp) => this.SetOption("interp", interp.GetAttribute().Name); +public EstdifFilterGen interp(EstdifFilterGenInterp interp) => this.SetOption("interp", interp.GetEnumAttribute().Name); } public static class EstdifFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ExposureFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ExposureFilterGen.g.cs index b06c357f..a767e275 100644 --- a/FFmpegArgs.Filters.Autogen/ExposureFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ExposureFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ExposureFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ExtrastereoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ExtrastereoFilterGen.g.cs index 26538bc0..c6a3995d 100644 --- a/FFmpegArgs.Filters.Autogen/ExtrastereoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ExtrastereoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ExtrastereoFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.csproj b/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.csproj index 74ef3332..7ae28e2d 100644 --- a/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.csproj +++ b/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.csproj @@ -6,6 +6,7 @@ + diff --git a/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.nuspec b/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.nuspec index 82ed19ad..e978f508 100644 --- a/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.nuspec +++ b/FFmpegArgs.Filters.Autogen/FFmpegArgs.Filters.Autogen.nuspec @@ -3,7 +3,7 @@ FFmpegArgs.Filters.Autogen - 1.1.1$build$ + 1.2.0$build$ Filters auto generate for FFmpegArgs tqk2811 https://github.com/tqk2811/FFmpegArgs @@ -12,7 +12,8 @@ - + + diff --git a/FFmpegArgs.Filters.Autogen/FadeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FadeFilterGen.g.cs index fd2ead50..1e497d3e 100644 --- a/FFmpegArgs.Filters.Autogen/FadeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FadeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FadeFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,7 +6,7 @@ public class FadeFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading /// /// set the fade direction (from 0 to 1) (default in) /// -public FadeFilterGen type(FadeFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public FadeFilterGen type(FadeFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); /// /// Number of the first frame to which to apply the effect. (from 0 to INT_MAX) (default 0) /// diff --git a/FFmpegArgs.Filters.Autogen/FftdnoizFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FftdnoizFilterGen.g.cs index 880c9023..8caffaaa 100644 --- a/FFmpegArgs.Filters.Autogen/FftdnoizFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FftdnoizFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FftdnoizFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/FftfiltFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FftfiltFilterGen.g.cs index da0a9dac..08441942 100644 --- a/FFmpegArgs.Filters.Autogen/FftfiltFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FftfiltFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FftfiltFilterGen : ImageToImageFilter,ITimelineSupport @@ -41,7 +30,7 @@ public class FftfiltFilterGen : ImageToImageFilter,ITimelineSupport /// /// specify when to evaluate expressions (from 0 to 1) (default init) /// -public FftfiltFilterGen eval(FftfiltFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public FftfiltFilterGen eval(FftfiltFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); } public static class FftfiltFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FieldFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FieldFilterGen.g.cs index 33ec961d..b2d3212c 100644 --- a/FFmpegArgs.Filters.Autogen/FieldFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FieldFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FieldFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class FieldFilterGen : ImageToImageFilter /// /// set field type (top or bottom) (from 0 to 1) (default top) /// -public FieldFilterGen type(FieldFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public FieldFilterGen type(FieldFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class FieldFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FieldhintFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FieldhintFilterGen.g.cs index d35eaadb..a4b7c4e2 100644 --- a/FFmpegArgs.Filters.Autogen/FieldhintFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FieldhintFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FieldhintFilterGen : ImageToImageFilter @@ -21,7 +10,7 @@ public class FieldhintFilterGen : ImageToImageFilter /// /// set hint mode (from 0 to 1) (default absolute) /// -public FieldhintFilterGen mode(FieldhintFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public FieldhintFilterGen mode(FieldhintFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class FieldhintFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FieldorderFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FieldorderFilterGen.g.cs index f48ede96..955495ca 100644 --- a/FFmpegArgs.Filters.Autogen/FieldorderFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FieldorderFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FieldorderFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class FieldorderFilterGen : ImageToImageFilter,ITimelineSupport /// /// output field order (from 0 to 1) (default tff) /// -public FieldorderFilterGen order(FieldorderFilterGenOrder order) => this.SetOption("order", order.GetAttribute().Name); +public FieldorderFilterGen order(FieldorderFilterGenOrder order) => this.SetOption("order", order.GetEnumAttribute().Name); } public static class FieldorderFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FillbordersFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FillbordersFilterGen.g.cs index 1ada82e4..8eccc623 100644 --- a/FFmpegArgs.Filters.Autogen/FillbordersFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FillbordersFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FillbordersFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport @@ -33,7 +22,7 @@ public class FillbordersFilterGen : ImageToImageFilter,ITimelineSupport,ICommand /// /// set the fill borders mode (from 0 to 5) (default smear) /// -public FillbordersFilterGen mode(FillbordersFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public FillbordersFilterGen mode(FillbordersFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set the color for the fixed/fade mode (default "black") /// diff --git a/FFmpegArgs.Filters.Autogen/Find_rectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Find_rectFilterGen.g.cs index a8617731..71e77d67 100644 --- a/FFmpegArgs.Filters.Autogen/Find_rectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Find_rectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Find_rectFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/FirequalizerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FirequalizerFilterGen.g.cs index 89a9b604..84a581c9 100644 --- a/FFmpegArgs.Filters.Autogen/FirequalizerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FirequalizerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FirequalizerFilterGen : AudioToAudioFilter,ICommandSupport @@ -33,7 +22,7 @@ public class FirequalizerFilterGen : AudioToAudioFilter,ICommandSupport /// /// set window function (from 0 to 9) (default hann) /// -public FirequalizerFilterGen wfunc(FirequalizerFilterGenWfunc wfunc) => this.SetOption("wfunc", wfunc.GetAttribute().Name); +public FirequalizerFilterGen wfunc(FirequalizerFilterGenWfunc wfunc) => this.SetOption("wfunc", wfunc.GetEnumAttribute().Name); /// /// set fixed frame samples (default false) /// @@ -49,7 +38,7 @@ public class FirequalizerFilterGen : AudioToAudioFilter,ICommandSupport /// /// set gain scale (from 0 to 3) (default linlog) /// -public FirequalizerFilterGen scale(FirequalizerFilterGenScale scale) => this.SetOption("scale", scale.GetAttribute().Name); +public FirequalizerFilterGen scale(FirequalizerFilterGenScale scale) => this.SetOption("scale", scale.GetEnumAttribute().Name); /// /// set dump file /// @@ -57,7 +46,7 @@ public class FirequalizerFilterGen : AudioToAudioFilter,ICommandSupport /// /// set dump scale (from 0 to 3) (default linlog) /// -public FirequalizerFilterGen dumpscale(FirequalizerFilterGenDumpscale dumpscale) => this.SetOption("dumpscale", dumpscale.GetAttribute().Name); +public FirequalizerFilterGen dumpscale(FirequalizerFilterGenDumpscale dumpscale) => this.SetOption("dumpscale", dumpscale.GetEnumAttribute().Name); /// /// set 2-channels fft (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/FlangerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FlangerFilterGen.g.cs index e4a999b9..689d08f6 100644 --- a/FFmpegArgs.Filters.Autogen/FlangerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FlangerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FlangerFilterGen : AudioToAudioFilter @@ -37,7 +26,7 @@ public class FlangerFilterGen : AudioToAudioFilter /// /// swept wave shape (from 0 to 1) (default sinusoidal) /// -public FlangerFilterGen shape(FlangerFilterGenShape shape) => this.SetOption("shape", shape.GetAttribute().Name); +public FlangerFilterGen shape(FlangerFilterGenShape shape) => this.SetOption("shape", shape.GetEnumAttribute().Name); /// /// swept wave percentage phase-shift for multi-channel (from 0 to 100) (default 25) /// @@ -45,7 +34,7 @@ public class FlangerFilterGen : AudioToAudioFilter /// /// delay-line interpolation (from 0 to 1) (default linear) /// -public FlangerFilterGen interp(FlangerFilterGenInterp interp) => this.SetOption("interp", interp.GetAttribute().Name); +public FlangerFilterGen interp(FlangerFilterGenInterp interp) => this.SetOption("interp", interp.GetEnumAttribute().Name); } public static class FlangerFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FloodfillFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FloodfillFilterGen.g.cs index 6a33e241..32298974 100644 --- a/FFmpegArgs.Filters.Autogen/FloodfillFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FloodfillFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FloodfillFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/FormatFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FormatFilterGen.g.cs index a9aaa11c..f429bb80 100644 --- a/FFmpegArgs.Filters.Autogen/FormatFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FormatFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FormatFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/FpsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FpsFilterGen.g.cs index 7463408b..ba2af809 100644 --- a/FFmpegArgs.Filters.Autogen/FpsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FpsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FpsFilterGen : ImageToImageFilter @@ -25,11 +14,11 @@ public class FpsFilterGen : ImageToImageFilter /// /// set rounding method for timestamps (from 0 to 5) (default near) /// -public FpsFilterGen round(FpsFilterGenRound round) => this.SetOption("round", round.GetAttribute().Name); +public FpsFilterGen round(FpsFilterGenRound round) => this.SetOption("round", round.GetEnumAttribute().Name); /// /// action performed for last frame (from 0 to 1) (default round) /// -public FpsFilterGen eof_action(FpsFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetAttribute().Name); +public FpsFilterGen eof_action(FpsFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetEnumAttribute().Name); } public static class FpsFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FramepackFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FramepackFilterGen.g.cs index a05fbb43..696010f1 100644 --- a/FFmpegArgs.Filters.Autogen/FramepackFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FramepackFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FramepackFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class FramepackFilterGen : ImageToImageFilter /// /// Frame pack output format (from 0 to INT_MAX) (default sbs) /// -public FramepackFilterGen format(FramepackFilterGenFormat format) => this.SetOption("format", format.GetAttribute().Name); +public FramepackFilterGen format(FramepackFilterGenFormat format) => this.SetOption("format", format.GetEnumAttribute().Name); } public static class FramepackFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FramerateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FramerateFilterGen.g.cs index b3094258..d7f86c7b 100644 --- a/FFmpegArgs.Filters.Autogen/FramerateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FramerateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FramerateFilterGen : ImageToImageFilter,ISliceThreading @@ -33,7 +22,7 @@ public class FramerateFilterGen : ImageToImageFilter,ISliceThreading /// /// set flags (default scene_change_detect+scd) /// -public FramerateFilterGen flags(FramerateFilterGenFlags flags) => this.SetOption("flags", flags.GetAttribute().Name); +public FramerateFilterGen flags(FramerateFilterGenFlags flags) => this.SetOption("flags", flags.GetEnumAttribute().Name); } public static class FramerateFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/FramestepFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FramestepFilterGen.g.cs index 7a0f839b..4a7fcda2 100644 --- a/FFmpegArgs.Filters.Autogen/FramestepFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FramestepFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FramestepFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/FreezedetectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FreezedetectFilterGen.g.cs index 5cf03595..4847dba4 100644 --- a/FFmpegArgs.Filters.Autogen/FreezedetectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FreezedetectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FreezedetectFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/FreezeframesFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FreezeframesFilterGen.g.cs index 4ac28449..2dd83875 100644 --- a/FFmpegArgs.Filters.Autogen/FreezeframesFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FreezeframesFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FreezeframesFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/FsppFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/FsppFilterGen.g.cs index 2ea8c79a..04537cf7 100644 --- a/FFmpegArgs.Filters.Autogen/FsppFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/FsppFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class FsppFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/GblurFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/GblurFilterGen.g.cs index 87e5d157..6bcd10a2 100644 --- a/FFmpegArgs.Filters.Autogen/GblurFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/GblurFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class GblurFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/GeqFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/GeqFilterGen.g.cs index f5611919..80c10917 100644 --- a/FFmpegArgs.Filters.Autogen/GeqFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/GeqFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class GeqFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -45,7 +34,7 @@ public class GeqFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading /// /// set interpolation method (from 0 to 1) (default bilinear) /// -public GeqFilterGen interpolation(GeqFilterGenInterpolation interpolation) => this.SetOption("interpolation", interpolation.GetAttribute().Name); +public GeqFilterGen interpolation(GeqFilterGenInterpolation interpolation) => this.SetOption("interpolation", interpolation.GetEnumAttribute().Name); } public static class GeqFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/GlobalUsing.cs b/FFmpegArgs.Filters.Autogen/GlobalUsing.cs new file mode 100644 index 00000000..fbbe8aa8 --- /dev/null +++ b/FFmpegArgs.Filters.Autogen/GlobalUsing.cs @@ -0,0 +1,13 @@ +global using System; +global using System.Linq; +global using System.Drawing; +global using System.Collections.Generic; +global using FFmpegArgs; +global using FFmpegArgs.Utils; +global using FFmpegArgs.Enums; +global using FFmpegArgs.Attributes; +global using FFmpegArgs.Cores; +global using FFmpegArgs.Cores.Filters; +global using FFmpegArgs.Cores.Maps; +global using FFmpegArgs.Expressions; +global using FFmpegArgs.Filters; \ No newline at end of file diff --git a/FFmpegArgs.Filters.Autogen/GradfunFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/GradfunFilterGen.g.cs index 265425cb..48775da7 100644 --- a/FFmpegArgs.Filters.Autogen/GradfunFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/GradfunFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class GradfunFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/GradientsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/GradientsFilterGen.g.cs index 890ace14..79fc27f1 100644 --- a/FFmpegArgs.Filters.Autogen/GradientsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/GradientsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class GradientsFilterGen : SourceImageFilter,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/GraphmonitorFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/GraphmonitorFilterGen.g.cs index 3cf02821..caf81529 100644 --- a/FFmpegArgs.Filters.Autogen/GraphmonitorFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/GraphmonitorFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class GraphmonitorFilterGen : ImageToImageFilter @@ -25,11 +14,11 @@ public class GraphmonitorFilterGen : ImageToImageFilter /// /// set mode (from 0 to 1) (default full) /// -public GraphmonitorFilterGen mode(GraphmonitorFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public GraphmonitorFilterGen mode(GraphmonitorFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set flags (default queue) /// -public GraphmonitorFilterGen flags(GraphmonitorFilterGenFlags flags) => this.SetOption("flags", flags.GetAttribute().Name); +public GraphmonitorFilterGen flags(GraphmonitorFilterGenFlags flags) => this.SetOption("flags", flags.GetEnumAttribute().Name); /// /// set video rate (default "25") /// diff --git a/FFmpegArgs.Filters.Autogen/GreyedgeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/GreyedgeFilterGen.g.cs index 25f7042c..918b67ab 100644 --- a/FFmpegArgs.Filters.Autogen/GreyedgeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/GreyedgeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class GreyedgeFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/HaasFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HaasFilterGen.g.cs index e00796f2..a72bbb64 100644 --- a/FFmpegArgs.Filters.Autogen/HaasFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HaasFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HaasFilterGen : AudioToAudioFilter @@ -29,7 +18,7 @@ public class HaasFilterGen : AudioToAudioFilter /// /// set middle source (from 0 to 3) (default mid) /// -public HaasFilterGen middle_source(HaasFilterGenMiddle_source middle_source) => this.SetOption("middle_source", middle_source.GetAttribute().Name); +public HaasFilterGen middle_source(HaasFilterGenMiddle_source middle_source) => this.SetOption("middle_source", middle_source.GetEnumAttribute().Name); /// /// set middle phase (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/HaldclutFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HaldclutFilterGen.g.cs index 861d0f6d..f1f5f35d 100644 --- a/FFmpegArgs.Filters.Autogen/HaldclutFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HaldclutFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HaldclutFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,7 +6,7 @@ public class HaldclutFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThrea /// /// select interpolation mode (from 0 to 4) (default tetrahedral) /// -public HaldclutFilterGen interp(HaldclutFilterGenInterp interp) => this.SetOption("interp", interp.GetAttribute().Name); +public HaldclutFilterGen interp(HaldclutFilterGenInterp interp) => this.SetOption("interp", interp.GetEnumAttribute().Name); } public static class HaldclutFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/HaldclutsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HaldclutsrcFilterGen.g.cs index 50e995ac..d094c532 100644 --- a/FFmpegArgs.Filters.Autogen/HaldclutsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HaldclutsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HaldclutsrcFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/HdcdFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HdcdFilterGen.g.cs index 316606fa..a34d2131 100644 --- a/FFmpegArgs.Filters.Autogen/HdcdFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HdcdFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HdcdFilterGen : AudioToAudioFilter @@ -33,11 +22,11 @@ public class HdcdFilterGen : AudioToAudioFilter /// /// Replace audio with solid tone and signal some processing aspect in the amplitude. (from 0 to 4) (default off) /// -public HdcdFilterGen analyze_mode(HdcdFilterGenAnalyze_mode analyze_mode) => this.SetOption("analyze_mode", analyze_mode.GetAttribute().Name); +public HdcdFilterGen analyze_mode(HdcdFilterGenAnalyze_mode analyze_mode) => this.SetOption("analyze_mode", analyze_mode.GetEnumAttribute().Name); /// /// Valid bits per sample (location of the true LSB). (from 16 to 24) (default 16) /// -public HdcdFilterGen bits_per_sample(HdcdFilterGenBits_per_sample bits_per_sample) => this.SetOption("bits_per_sample", bits_per_sample.GetAttribute().Name); +public HdcdFilterGen bits_per_sample(HdcdFilterGenBits_per_sample bits_per_sample) => this.SetOption("bits_per_sample", bits_per_sample.GetEnumAttribute().Name); } public static class HdcdFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/HflipFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HflipFilterGen.g.cs index 11ac3a7f..b9c65dd3 100644 --- a/FFmpegArgs.Filters.Autogen/HflipFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HflipFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HflipFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/HighpassFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HighpassFilterGen.g.cs index ce10a066..f975816f 100644 --- a/FFmpegArgs.Filters.Autogen/HighpassFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HighpassFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HighpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class HighpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set filter-width type (from 1 to 5) (default q) /// -public HighpassFilterGen width_type(HighpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public HighpassFilterGen width_type(HighpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public HighpassFilterGen t(HighpassFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public HighpassFilterGen t(HighpassFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set width (from 0 to 99999) (default 0.707) /// @@ -41,7 +30,7 @@ public class HighpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set channels to filter (default 0xffffffffffffffff) /// -public HighpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public HighpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -49,19 +38,19 @@ public class HighpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set transform type (from 0 to 3) (default di) /// -public HighpassFilterGen transform(HighpassFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public HighpassFilterGen transform(HighpassFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public HighpassFilterGen a(HighpassFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public HighpassFilterGen a(HighpassFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public HighpassFilterGen precision(HighpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public HighpassFilterGen precision(HighpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public HighpassFilterGen r(HighpassFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public HighpassFilterGen r(HighpassFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class HighpassFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/HighshelfFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HighshelfFilterGen.g.cs index c616c335..b17cfb53 100644 --- a/FFmpegArgs.Filters.Autogen/HighshelfFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HighshelfFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HighshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class HighshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set filter-width type (from 1 to 5) (default q) /// -public HighshelfFilterGen width_type(HighshelfFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public HighshelfFilterGen width_type(HighshelfFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public HighshelfFilterGen t(HighshelfFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public HighshelfFilterGen t(HighshelfFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set shelf transition steep (from 0 to 99999) (default 0.5) /// @@ -45,7 +34,7 @@ public class HighshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set channels to filter (default 0xffffffffffffffff) /// -public HighshelfFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public HighshelfFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -53,19 +42,19 @@ public class HighshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThre /// /// set transform type (from 0 to 3) (default di) /// -public HighshelfFilterGen transform(HighshelfFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public HighshelfFilterGen transform(HighshelfFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public HighshelfFilterGen a(HighshelfFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public HighshelfFilterGen a(HighshelfFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public HighshelfFilterGen precision(HighshelfFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public HighshelfFilterGen precision(HighshelfFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public HighshelfFilterGen r(HighshelfFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public HighshelfFilterGen r(HighshelfFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class HighshelfFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/HilbertFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HilbertFilterGen.g.cs index 34a6fbe3..3431400e 100644 --- a/FFmpegArgs.Filters.Autogen/HilbertFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HilbertFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HilbertFilterGen : SourceAudioFilter @@ -33,7 +22,7 @@ public class HilbertFilterGen : SourceAudioFilter /// /// set window function (from 0 to 19) (default blackman) /// -public HilbertFilterGen win_func(HilbertFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetAttribute().Name); +public HilbertFilterGen win_func(HilbertFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetEnumAttribute().Name); } public static class HilbertFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/HisteqFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HisteqFilterGen.g.cs index 58efe5e6..78d57288 100644 --- a/FFmpegArgs.Filters.Autogen/HisteqFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HisteqFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HisteqFilterGen : ImageToImageFilter,ITimelineSupport @@ -25,7 +14,7 @@ public class HisteqFilterGen : ImageToImageFilter,ITimelineSupport /// /// set the antibanding level (from 0 to 2) (default none) /// -public HisteqFilterGen antibanding(HisteqFilterGenAntibanding antibanding) => this.SetOption("antibanding", antibanding.GetAttribute().Name); +public HisteqFilterGen antibanding(HisteqFilterGenAntibanding antibanding) => this.SetOption("antibanding", antibanding.GetEnumAttribute().Name); } public static class HisteqFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/HistogramFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HistogramFilterGen.g.cs index 85424c27..530a7e24 100644 --- a/FFmpegArgs.Filters.Autogen/HistogramFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HistogramFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HistogramFilterGen : ImageToImageFilter @@ -25,15 +14,15 @@ public class HistogramFilterGen : ImageToImageFilter /// /// set display mode (from 0 to 2) (default stack) /// -public HistogramFilterGen display_mode(HistogramFilterGenDisplay_mode display_mode) => this.SetOption("display_mode", display_mode.GetAttribute().Name); +public HistogramFilterGen display_mode(HistogramFilterGenDisplay_mode display_mode) => this.SetOption("display_mode", display_mode.GetEnumAttribute().Name); /// /// set levels mode (from 0 to 1) (default linear) /// -public HistogramFilterGen levels_mode(HistogramFilterGenLevels_mode levels_mode) => this.SetOption("levels_mode", levels_mode.GetAttribute().Name); +public HistogramFilterGen levels_mode(HistogramFilterGenLevels_mode levels_mode) => this.SetOption("levels_mode", levels_mode.GetEnumAttribute().Name); /// /// set levels mode (from 0 to 1) (default linear) /// -public HistogramFilterGen m(HistogramFilterGenM m) => this.SetOption("m", m.GetAttribute().Name); +public HistogramFilterGen m(HistogramFilterGenM m) => this.SetOption("m", m.GetEnumAttribute().Name); /// /// set color components to display (from 1 to 15) (default 7) /// diff --git a/FFmpegArgs.Filters.Autogen/Hqdn3dFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Hqdn3dFilterGen.g.cs index 9a353884..bbb15438 100644 --- a/FFmpegArgs.Filters.Autogen/Hqdn3dFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Hqdn3dFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Hqdn3dFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/HqxFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HqxFilterGen.g.cs index b71d5e69..326eb183 100644 --- a/FFmpegArgs.Filters.Autogen/HqxFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HqxFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HqxFilterGen : ImageToImageFilter,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/HueFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HueFilterGen.g.cs index 4eb9177b..2ef1f181 100644 --- a/FFmpegArgs.Filters.Autogen/HueFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HueFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HueFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/HwmapFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HwmapFilterGen.g.cs index acba8273..e465b57c 100644 --- a/FFmpegArgs.Filters.Autogen/HwmapFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HwmapFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HwmapFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class HwmapFilterGen : ImageToImageFilter /// /// Frame mapping mode (default read+write) /// -public HwmapFilterGen mode(HwmapFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public HwmapFilterGen mode(HwmapFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// Derive a new device of this type /// diff --git a/FFmpegArgs.Filters.Autogen/HwuploadFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HwuploadFilterGen.g.cs index 0ed81709..187e2289 100644 --- a/FFmpegArgs.Filters.Autogen/HwuploadFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HwuploadFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HwuploadFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/HysteresisFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/HysteresisFilterGen.g.cs index 5daf14c7..a7edcf23 100644 --- a/FFmpegArgs.Filters.Autogen/HysteresisFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/HysteresisFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class HysteresisFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/IdentityFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/IdentityFilterGen.g.cs index 7f8fdfde..85669419 100644 --- a/FFmpegArgs.Filters.Autogen/IdentityFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/IdentityFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class IdentityFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/IdetFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/IdetFilterGen.g.cs index 8279e81d..dd4cfcca 100644 --- a/FFmpegArgs.Filters.Autogen/IdetFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/IdetFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class IdetFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/IlFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/IlFilterGen.g.cs index 843ce041..1622e780 100644 --- a/FFmpegArgs.Filters.Autogen/IlFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/IlFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class IlFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport @@ -17,15 +6,15 @@ public class IlFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport /// /// select luma mode (from 0 to 2) (default none) /// -public IlFilterGen luma_mode(IlFilterGenLuma_mode luma_mode) => this.SetOption("luma_mode", luma_mode.GetAttribute().Name); +public IlFilterGen luma_mode(IlFilterGenLuma_mode luma_mode) => this.SetOption("luma_mode", luma_mode.GetEnumAttribute().Name); /// /// select chroma mode (from 0 to 2) (default none) /// -public IlFilterGen chroma_mode(IlFilterGenChroma_mode chroma_mode) => this.SetOption("chroma_mode", chroma_mode.GetAttribute().Name); +public IlFilterGen chroma_mode(IlFilterGenChroma_mode chroma_mode) => this.SetOption("chroma_mode", chroma_mode.GetEnumAttribute().Name); /// /// select alpha mode (from 0 to 2) (default none) /// -public IlFilterGen alpha_mode(IlFilterGenAlpha_mode alpha_mode) => this.SetOption("alpha_mode", alpha_mode.GetAttribute().Name); +public IlFilterGen alpha_mode(IlFilterGenAlpha_mode alpha_mode) => this.SetOption("alpha_mode", alpha_mode.GetEnumAttribute().Name); /// /// swap luma fields (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/InflateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/InflateFilterGen.g.cs index 4688d4f1..27a39910 100644 --- a/FFmpegArgs.Filters.Autogen/InflateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/InflateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class InflateFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/InterlaceFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/InterlaceFilterGen.g.cs index 5f906a60..db5b27b5 100644 --- a/FFmpegArgs.Filters.Autogen/InterlaceFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/InterlaceFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class InterlaceFilterGen : ImageToImageFilter @@ -17,11 +6,11 @@ public class InterlaceFilterGen : ImageToImageFilter /// /// scanning mode (from 0 to 1) (default tff) /// -public InterlaceFilterGen scan(InterlaceFilterGenScan scan) => this.SetOption("scan", scan.GetAttribute().Name); +public InterlaceFilterGen scan(InterlaceFilterGenScan scan) => this.SetOption("scan", scan.GetEnumAttribute().Name); /// /// set vertical low-pass filter (from 0 to 2) (default linear) /// -public InterlaceFilterGen lowpass(InterlaceFilterGenLowpass lowpass) => this.SetOption("lowpass", lowpass.GetAttribute().Name); +public InterlaceFilterGen lowpass(InterlaceFilterGenLowpass lowpass) => this.SetOption("lowpass", lowpass.GetEnumAttribute().Name); } public static class InterlaceFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/KerndeintFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/KerndeintFilterGen.g.cs index f30f5f67..af21e669 100644 --- a/FFmpegArgs.Filters.Autogen/KerndeintFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/KerndeintFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class KerndeintFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/KirschFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/KirschFilterGen.g.cs index c19a9498..2bd4180e 100644 --- a/FFmpegArgs.Filters.Autogen/KirschFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/KirschFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class KirschFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/LagfunFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LagfunFilterGen.g.cs index 96e71184..2480126a 100644 --- a/FFmpegArgs.Filters.Autogen/LagfunFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LagfunFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LagfunFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,7 +10,7 @@ public class LagfunFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadi /// /// set what planes to filter (default F) /// -public LagfunFilterGen planes(LagfunFilterGenPlanes planes) => this.SetOption("planes", planes.GetAttribute().Name); +public LagfunFilterGen planes(LagfunFilterGenPlanes planes) => this.SetOption("planes", planes.GetEnumAttribute().Name); } public static class LagfunFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/LenscorrectionFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LenscorrectionFilterGen.g.cs index 77c69549..6745038a 100644 --- a/FFmpegArgs.Filters.Autogen/LenscorrectionFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LenscorrectionFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LenscorrectionFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -33,7 +22,7 @@ public class LenscorrectionFilterGen : ImageToImageFilter,ITimelineSupport,ISlic /// /// set interpolation type (from 0 to 64) (default nearest) /// -public LenscorrectionFilterGen i(LenscorrectionFilterGenI i) => this.SetOption("i", i.GetAttribute().Name); +public LenscorrectionFilterGen i(LenscorrectionFilterGenI i) => this.SetOption("i", i.GetEnumAttribute().Name); /// /// set the color of the unmapped pixels (default "black@0") /// diff --git a/FFmpegArgs.Filters.Autogen/LibvmafFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LibvmafFilterGen.g.cs index 6f906339..3691b13c 100644 --- a/FFmpegArgs.Filters.Autogen/LibvmafFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LibvmafFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LibvmafFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/LifeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LifeFilterGen.g.cs index 02ce449b..fe673f6f 100644 --- a/FFmpegArgs.Filters.Autogen/LifeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LifeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LifeFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/LimiterFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LimiterFilterGen.g.cs index 98959bd5..a973bcc5 100644 --- a/FFmpegArgs.Filters.Autogen/LimiterFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LimiterFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LimiterFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/LoopFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LoopFilterGen.g.cs index be0d1af1..ce2b177f 100644 --- a/FFmpegArgs.Filters.Autogen/LoopFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LoopFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LoopFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/LoudnormFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LoudnormFilterGen.g.cs index 0045d57e..a4a9104b 100644 --- a/FFmpegArgs.Filters.Autogen/LoudnormFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LoudnormFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LoudnormFilterGen : AudioToAudioFilter @@ -81,7 +70,7 @@ public class LoudnormFilterGen : AudioToAudioFilter /// /// set print format for stats (from 0 to 2) (default none) /// -public LoudnormFilterGen print_format(LoudnormFilterGenPrint_format print_format) => this.SetOption("print_format", print_format.GetAttribute().Name); +public LoudnormFilterGen print_format(LoudnormFilterGenPrint_format print_format) => this.SetOption("print_format", print_format.GetEnumAttribute().Name); } public static class LoudnormFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/LowpassFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LowpassFilterGen.g.cs index 774b113e..e56b7898 100644 --- a/FFmpegArgs.Filters.Autogen/LowpassFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LowpassFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LowpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class LowpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set filter-width type (from 1 to 5) (default q) /// -public LowpassFilterGen width_type(LowpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public LowpassFilterGen width_type(LowpassFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public LowpassFilterGen t(LowpassFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public LowpassFilterGen t(LowpassFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set width (from 0 to 99999) (default 0.707) /// @@ -41,7 +30,7 @@ public class LowpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set channels to filter (default 0xffffffffffffffff) /// -public LowpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public LowpassFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -49,19 +38,19 @@ public class LowpassFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThread /// /// set transform type (from 0 to 3) (default di) /// -public LowpassFilterGen transform(LowpassFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public LowpassFilterGen transform(LowpassFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public LowpassFilterGen a(LowpassFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public LowpassFilterGen a(LowpassFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public LowpassFilterGen precision(LowpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public LowpassFilterGen precision(LowpassFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public LowpassFilterGen r(LowpassFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public LowpassFilterGen r(LowpassFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class LowpassFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/LowshelfFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LowshelfFilterGen.g.cs index 34a1668b..a48ed9af 100644 --- a/FFmpegArgs.Filters.Autogen/LowshelfFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LowshelfFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LowshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class LowshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set filter-width type (from 1 to 5) (default q) /// -public LowshelfFilterGen width_type(LowshelfFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public LowshelfFilterGen width_type(LowshelfFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public LowshelfFilterGen t(LowshelfFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public LowshelfFilterGen t(LowshelfFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set shelf transition steep (from 0 to 99999) (default 0.5) /// @@ -45,7 +34,7 @@ public class LowshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set channels to filter (default 0xffffffffffffffff) /// -public LowshelfFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public LowshelfFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -53,19 +42,19 @@ public class LowshelfFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThrea /// /// set transform type (from 0 to 3) (default di) /// -public LowshelfFilterGen transform(LowshelfFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public LowshelfFilterGen transform(LowshelfFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public LowshelfFilterGen a(LowshelfFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public LowshelfFilterGen a(LowshelfFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public LowshelfFilterGen precision(LowshelfFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public LowshelfFilterGen precision(LowshelfFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public LowshelfFilterGen r(LowshelfFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public LowshelfFilterGen r(LowshelfFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class LowshelfFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/LumakeyFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LumakeyFilterGen.g.cs index c01ae424..ac143f37 100644 --- a/FFmpegArgs.Filters.Autogen/LumakeyFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LumakeyFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LumakeyFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Lut1dFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Lut1dFilterGen.g.cs index 9233afe0..486e0c17 100644 --- a/FFmpegArgs.Filters.Autogen/Lut1dFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Lut1dFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Lut1dFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,7 +10,7 @@ public class Lut1dFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// select interpolation mode (from 0 to 4) (default linear) /// -public Lut1dFilterGen interp(Lut1dFilterGenInterp interp) => this.SetOption("interp", interp.GetAttribute().Name); +public Lut1dFilterGen interp(Lut1dFilterGenInterp interp) => this.SetOption("interp", interp.GetEnumAttribute().Name); } public static class Lut1dFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Lut2FilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Lut2FilterGen.g.cs index 73627cf2..e544e28e 100644 --- a/FFmpegArgs.Filters.Autogen/Lut2FilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Lut2FilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Lut2FilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Lut3dFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Lut3dFilterGen.g.cs index f38894a5..e12fcc82 100644 --- a/FFmpegArgs.Filters.Autogen/Lut3dFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Lut3dFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Lut3dFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,7 +10,7 @@ public class Lut3dFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// select interpolation mode (from 0 to 4) (default tetrahedral) /// -public Lut3dFilterGen interp(Lut3dFilterGenInterp interp) => this.SetOption("interp", interp.GetAttribute().Name); +public Lut3dFilterGen interp(Lut3dFilterGenInterp interp) => this.SetOption("interp", interp.GetEnumAttribute().Name); } public static class Lut3dFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/LutFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LutFilterGen.g.cs index 9e9c8632..6ef6eb0f 100644 --- a/FFmpegArgs.Filters.Autogen/LutFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LutFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LutFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/LutrgbFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LutrgbFilterGen.g.cs index 4463924a..ce0aa7fd 100644 --- a/FFmpegArgs.Filters.Autogen/LutrgbFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LutrgbFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LutrgbFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/LutyuvFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/LutyuvFilterGen.g.cs index e32118cb..303cd877 100644 --- a/FFmpegArgs.Filters.Autogen/LutyuvFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/LutyuvFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class LutyuvFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MandelbrotFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MandelbrotFilterGen.g.cs index a86c1e4f..a49e98a6 100644 --- a/FFmpegArgs.Filters.Autogen/MandelbrotFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MandelbrotFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MandelbrotFilterGen : SourceImageFilter @@ -65,11 +54,11 @@ public class MandelbrotFilterGen : SourceImageFilter /// /// set outer coloring mode (from 0 to INT_MAX) (default normalized_iteration_count) /// -public MandelbrotFilterGen outer(MandelbrotFilterGenOuter outer) => this.SetOption("outer", outer.GetAttribute().Name); +public MandelbrotFilterGen outer(MandelbrotFilterGenOuter outer) => this.SetOption("outer", outer.GetEnumAttribute().Name); /// /// set inner coloring mode (from 0 to INT_MAX) (default mincol) /// -public MandelbrotFilterGen inner(MandelbrotFilterGenInner inner) => this.SetOption("inner", inner.GetAttribute().Name); +public MandelbrotFilterGen inner(MandelbrotFilterGenInner inner) => this.SetOption("inner", inner.GetEnumAttribute().Name); } public static class MandelbrotFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/MaskedclampFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MaskedclampFilterGen.g.cs index b1441515..1e47fa8a 100644 --- a/FFmpegArgs.Filters.Autogen/MaskedclampFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MaskedclampFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MaskedclampFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MaskedmaxFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MaskedmaxFilterGen.g.cs index a83b00c9..ea7b1b41 100644 --- a/FFmpegArgs.Filters.Autogen/MaskedmaxFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MaskedmaxFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MaskedmaxFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MaskedmergeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MaskedmergeFilterGen.g.cs index d86138c5..c18a632d 100644 --- a/FFmpegArgs.Filters.Autogen/MaskedmergeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MaskedmergeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MaskedmergeFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MaskedminFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MaskedminFilterGen.g.cs index c1d7abb1..34a61f72 100644 --- a/FFmpegArgs.Filters.Autogen/MaskedminFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MaskedminFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MaskedminFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MaskedthresholdFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MaskedthresholdFilterGen.g.cs index 7ceec221..f90c1964 100644 --- a/FFmpegArgs.Filters.Autogen/MaskedthresholdFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MaskedthresholdFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MaskedthresholdFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MaskfunFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MaskfunFilterGen.g.cs index 09aa6a19..8eddbd85 100644 --- a/FFmpegArgs.Filters.Autogen/MaskfunFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MaskfunFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MaskfunFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/McdeintFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/McdeintFilterGen.g.cs index 1aa9bfc3..9efc7cd3 100644 --- a/FFmpegArgs.Filters.Autogen/McdeintFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/McdeintFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class McdeintFilterGen : ImageToImageFilter @@ -17,11 +6,11 @@ public class McdeintFilterGen : ImageToImageFilter /// /// set mode (from 0 to 3) (default fast) /// -public McdeintFilterGen mode(McdeintFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public McdeintFilterGen mode(McdeintFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set the assumed picture field parity (from -1 to 1) (default bff) /// -public McdeintFilterGen parity(McdeintFilterGenParity parity) => this.SetOption("parity", parity.GetAttribute().Name); +public McdeintFilterGen parity(McdeintFilterGenParity parity) => this.SetOption("parity", parity.GetEnumAttribute().Name); /// /// set qp (from INT_MIN to INT_MAX) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/McompandFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/McompandFilterGen.g.cs index d0a692ef..0dbc3129 100644 --- a/FFmpegArgs.Filters.Autogen/McompandFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/McompandFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class McompandFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/MedianFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MedianFilterGen.g.cs index 0e5cacff..3362f8d3 100644 --- a/FFmpegArgs.Filters.Autogen/MedianFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MedianFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MedianFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MestimateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MestimateFilterGen.g.cs index 3fb71f5b..cf83167a 100644 --- a/FFmpegArgs.Filters.Autogen/MestimateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MestimateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MestimateFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class MestimateFilterGen : ImageToImageFilter /// /// motion estimation method (from 1 to 9) (default esa) /// -public MestimateFilterGen method(MestimateFilterGenMethod method) => this.SetOption("method", method.GetAttribute().Name); +public MestimateFilterGen method(MestimateFilterGenMethod method) => this.SetOption("method", method.GetEnumAttribute().Name); /// /// macroblock size (from 8 to INT_MAX) (default 16) /// diff --git a/FFmpegArgs.Filters.Autogen/MetadataFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MetadataFilterGen.g.cs index 0a2a1b0b..7120177e 100644 --- a/FFmpegArgs.Filters.Autogen/MetadataFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MetadataFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MetadataFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class MetadataFilterGen : ImageToImageFilter,ITimelineSupport /// /// set a mode of operation (from 0 to 4) (default select) /// -public MetadataFilterGen mode(MetadataFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public MetadataFilterGen mode(MetadataFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set metadata key /// @@ -29,7 +18,7 @@ public class MetadataFilterGen : ImageToImageFilter,ITimelineSupport /// /// function for comparing values (from 0 to 6) (default same_str) /// -public MetadataFilterGen function(MetadataFilterGenFunction function) => this.SetOption("function", function.GetAttribute().Name); +public MetadataFilterGen function(MetadataFilterGenFunction function) => this.SetOption("function", function.GetEnumAttribute().Name); /// /// set expression for expr function /// diff --git a/FFmpegArgs.Filters.Autogen/MidequalizerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MidequalizerFilterGen.g.cs index a810b366..b8f16eec 100644 --- a/FFmpegArgs.Filters.Autogen/MidequalizerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MidequalizerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MidequalizerFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/MinterpolateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MinterpolateFilterGen.g.cs index 7181dd14..041de81b 100644 --- a/FFmpegArgs.Filters.Autogen/MinterpolateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MinterpolateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MinterpolateFilterGen : ImageToImageFilter @@ -21,19 +10,19 @@ public class MinterpolateFilterGen : ImageToImageFilter /// /// motion interpolation mode (from 0 to 2) (default mci) /// -public MinterpolateFilterGen mi_mode(MinterpolateFilterGenMi_mode mi_mode) => this.SetOption("mi_mode", mi_mode.GetAttribute().Name); +public MinterpolateFilterGen mi_mode(MinterpolateFilterGenMi_mode mi_mode) => this.SetOption("mi_mode", mi_mode.GetEnumAttribute().Name); /// /// motion compensation mode (from 0 to 1) (default obmc) /// -public MinterpolateFilterGen mc_mode(MinterpolateFilterGenMc_mode mc_mode) => this.SetOption("mc_mode", mc_mode.GetAttribute().Name); +public MinterpolateFilterGen mc_mode(MinterpolateFilterGenMc_mode mc_mode) => this.SetOption("mc_mode", mc_mode.GetEnumAttribute().Name); /// /// motion estimation mode (from 0 to 1) (default bilat) /// -public MinterpolateFilterGen me_mode(MinterpolateFilterGenMe_mode me_mode) => this.SetOption("me_mode", me_mode.GetAttribute().Name); +public MinterpolateFilterGen me_mode(MinterpolateFilterGenMe_mode me_mode) => this.SetOption("me_mode", me_mode.GetEnumAttribute().Name); /// /// motion estimation method (from 1 to 9) (default epzs) /// -public MinterpolateFilterGen me(MinterpolateFilterGenMe me) => this.SetOption("me", me.GetAttribute().Name); +public MinterpolateFilterGen me(MinterpolateFilterGenMe me) => this.SetOption("me", me.GetEnumAttribute().Name); /// /// macroblock size (from 4 to 16) (default 16) /// @@ -49,7 +38,7 @@ public class MinterpolateFilterGen : ImageToImageFilter /// /// scene change detection method (from 0 to 1) (default fdiff) /// -public MinterpolateFilterGen scd(MinterpolateFilterGenScd scd) => this.SetOption("scd", scd.GetAttribute().Name); +public MinterpolateFilterGen scd(MinterpolateFilterGenScd scd) => this.SetOption("scd", scd.GetEnumAttribute().Name); /// /// scene change threshold (from 0 to 100) (default 10) /// diff --git a/FFmpegArgs.Filters.Autogen/MonochromeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MonochromeFilterGen.g.cs index f38af4c2..46d89505 100644 --- a/FFmpegArgs.Filters.Autogen/MonochromeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MonochromeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MonochromeFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/MpdecimateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MpdecimateFilterGen.g.cs index ddebe966..7611fb63 100644 --- a/FFmpegArgs.Filters.Autogen/MpdecimateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MpdecimateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MpdecimateFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/MptestsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MptestsrcFilterGen.g.cs index 13cdef3f..5f4456d0 100644 --- a/FFmpegArgs.Filters.Autogen/MptestsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MptestsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MptestsrcFilterGen : SourceImageFilter @@ -25,7 +14,7 @@ public class MptestsrcFilterGen : SourceImageFilter /// /// set test to perform (from 0 to INT_MAX) (default all) /// -public MptestsrcFilterGen test(MptestsrcFilterGenTest test) => this.SetOption("test", test.GetAttribute().Name); +public MptestsrcFilterGen test(MptestsrcFilterGenTest test) => this.SetOption("test", test.GetEnumAttribute().Name); /// /// Set the maximum number of frames generated for each test (from 1 to I64_MAX) (default 30) /// diff --git a/FFmpegArgs.Filters.Autogen/MsadFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/MsadFilterGen.g.cs index 66e42847..c4e8f82f 100644 --- a/FFmpegArgs.Filters.Autogen/MsadFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/MsadFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class MsadFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/NegateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/NegateFilterGen.g.cs index f8590b25..8c180c11 100644 --- a/FFmpegArgs.Filters.Autogen/NegateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/NegateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class NegateFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/NlmeansFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/NlmeansFilterGen.g.cs index 7d502d69..a79cbf1a 100644 --- a/FFmpegArgs.Filters.Autogen/NlmeansFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/NlmeansFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class NlmeansFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/Nlmeans_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Nlmeans_openclFilterGen.g.cs index e710fab9..261355f8 100644 --- a/FFmpegArgs.Filters.Autogen/Nlmeans_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Nlmeans_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Nlmeans_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/NnediFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/NnediFilterGen.g.cs index 3ad59154..64cdb112 100644 --- a/FFmpegArgs.Filters.Autogen/NnediFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/NnediFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class NnediFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class NnediFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set which frames to deinterlace (from 0 to 1) (default all) /// -public NnediFilterGen deint(NnediFilterGenDeint deint) => this.SetOption("deint", deint.GetAttribute().Name); +public NnediFilterGen deint(NnediFilterGenDeint deint) => this.SetOption("deint", deint.GetEnumAttribute().Name); /// /// set mode of operation (from -2 to 3) (default a) /// -public NnediFilterGen field(NnediFilterGenField field) => this.SetOption("field", field.GetAttribute().Name); +public NnediFilterGen field(NnediFilterGenField field) => this.SetOption("field", field.GetEnumAttribute().Name); /// /// set which planes to process (from 0 to 15) (default 7) /// @@ -33,23 +22,23 @@ public class NnediFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set size of local neighborhood around each pixel, used by the predictor neural network (from 0 to 6) (default s32x4) /// -public NnediFilterGen nsize(NnediFilterGenNsize nsize) => this.SetOption("nsize", nsize.GetAttribute().Name); +public NnediFilterGen nsize(NnediFilterGenNsize nsize) => this.SetOption("nsize", nsize.GetEnumAttribute().Name); /// /// set number of neurons in predictor neural network (from 0 to 4) (default n32) /// -public NnediFilterGen nns(NnediFilterGenNns nns) => this.SetOption("nns", nns.GetAttribute().Name); +public NnediFilterGen nns(NnediFilterGenNns nns) => this.SetOption("nns", nns.GetEnumAttribute().Name); /// /// set quality (from 1 to 2) (default fast) /// -public NnediFilterGen qual(NnediFilterGenQual qual) => this.SetOption("qual", qual.GetAttribute().Name); +public NnediFilterGen qual(NnediFilterGenQual qual) => this.SetOption("qual", qual.GetEnumAttribute().Name); /// /// set which set of weights to use in the predictor (from 0 to 1) (default a) /// -public NnediFilterGen etype(NnediFilterGenEtype etype) => this.SetOption("etype", etype.GetAttribute().Name); +public NnediFilterGen etype(NnediFilterGenEtype etype) => this.SetOption("etype", etype.GetEnumAttribute().Name); /// /// set prescreening (from 0 to 4) (default new) /// -public NnediFilterGen pscrn(NnediFilterGenPscrn pscrn) => this.SetOption("pscrn", pscrn.GetAttribute().Name); +public NnediFilterGen pscrn(NnediFilterGenPscrn pscrn) => this.SetOption("pscrn", pscrn.GetEnumAttribute().Name); } public static class NnediFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/NoformatFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/NoformatFilterGen.g.cs index 63bd57dd..edb77520 100644 --- a/FFmpegArgs.Filters.Autogen/NoformatFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/NoformatFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class NoformatFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/NoiseFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/NoiseFilterGen.g.cs index e59b0e24..1d67f3c8 100644 --- a/FFmpegArgs.Filters.Autogen/NoiseFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/NoiseFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class NoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -29,11 +18,11 @@ public class NoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set component #0 flags (default 0) /// -public NoiseFilterGen all_flags(NoiseFilterGenAll_flags all_flags) => this.SetOption("all_flags", all_flags.GetAttribute().Name); +public NoiseFilterGen all_flags(NoiseFilterGenAll_flags all_flags) => this.SetOption("all_flags", all_flags.GetEnumAttribute().Name); /// /// set component #0 flags (default 0) /// -public NoiseFilterGen allf(NoiseFilterGenAllf allf) => this.SetOption("allf", allf.GetAttribute().Name); +public NoiseFilterGen allf(NoiseFilterGenAllf allf) => this.SetOption("allf", allf.GetEnumAttribute().Name); /// /// set component #0 noise seed (from -1 to INT_MAX) (default -1) /// @@ -49,11 +38,11 @@ public class NoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set component #0 flags (default 0) /// -public NoiseFilterGen c0_flags(NoiseFilterGenC0_flags c0_flags) => this.SetOption("c0_flags", c0_flags.GetAttribute().Name); +public NoiseFilterGen c0_flags(NoiseFilterGenC0_flags c0_flags) => this.SetOption("c0_flags", c0_flags.GetEnumAttribute().Name); /// /// set component #0 flags (default 0) /// -public NoiseFilterGen c0f(NoiseFilterGenC0f c0f) => this.SetOption("c0f", c0f.GetAttribute().Name); +public NoiseFilterGen c0f(NoiseFilterGenC0f c0f) => this.SetOption("c0f", c0f.GetEnumAttribute().Name); /// /// set component #1 noise seed (from -1 to INT_MAX) (default -1) /// @@ -69,11 +58,11 @@ public class NoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set component #1 flags (default 0) /// -public NoiseFilterGen c1_flags(NoiseFilterGenC1_flags c1_flags) => this.SetOption("c1_flags", c1_flags.GetAttribute().Name); +public NoiseFilterGen c1_flags(NoiseFilterGenC1_flags c1_flags) => this.SetOption("c1_flags", c1_flags.GetEnumAttribute().Name); /// /// set component #1 flags (default 0) /// -public NoiseFilterGen c1f(NoiseFilterGenC1f c1f) => this.SetOption("c1f", c1f.GetAttribute().Name); +public NoiseFilterGen c1f(NoiseFilterGenC1f c1f) => this.SetOption("c1f", c1f.GetEnumAttribute().Name); /// /// set component #2 noise seed (from -1 to INT_MAX) (default -1) /// @@ -89,11 +78,11 @@ public class NoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set component #2 flags (default 0) /// -public NoiseFilterGen c2_flags(NoiseFilterGenC2_flags c2_flags) => this.SetOption("c2_flags", c2_flags.GetAttribute().Name); +public NoiseFilterGen c2_flags(NoiseFilterGenC2_flags c2_flags) => this.SetOption("c2_flags", c2_flags.GetEnumAttribute().Name); /// /// set component #2 flags (default 0) /// -public NoiseFilterGen c2f(NoiseFilterGenC2f c2f) => this.SetOption("c2f", c2f.GetAttribute().Name); +public NoiseFilterGen c2f(NoiseFilterGenC2f c2f) => this.SetOption("c2f", c2f.GetEnumAttribute().Name); /// /// set component #3 noise seed (from -1 to INT_MAX) (default -1) /// @@ -109,11 +98,11 @@ public class NoiseFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set component #3 flags (default 0) /// -public NoiseFilterGen c3_flags(NoiseFilterGenC3_flags c3_flags) => this.SetOption("c3_flags", c3_flags.GetAttribute().Name); +public NoiseFilterGen c3_flags(NoiseFilterGenC3_flags c3_flags) => this.SetOption("c3_flags", c3_flags.GetEnumAttribute().Name); /// /// set component #3 flags (default 0) /// -public NoiseFilterGen c3f(NoiseFilterGenC3f c3f) => this.SetOption("c3f", c3f.GetAttribute().Name); +public NoiseFilterGen c3f(NoiseFilterGenC3f c3f) => this.SetOption("c3f", c3f.GetEnumAttribute().Name); } public static class NoiseFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/NormalizeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/NormalizeFilterGen.g.cs index 73123acb..3e100363 100644 --- a/FFmpegArgs.Filters.Autogen/NormalizeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/NormalizeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class NormalizeFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/NullsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/NullsrcFilterGen.g.cs index 4c468a18..44e9fa77 100644 --- a/FFmpegArgs.Filters.Autogen/NullsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/NullsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class NullsrcFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/OpenclsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/OpenclsrcFilterGen.g.cs index 34bd1f5e..bc711552 100644 --- a/FFmpegArgs.Filters.Autogen/OpenclsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/OpenclsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class OpenclsrcFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/OscilloscopeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/OscilloscopeFilterGen.g.cs index c5cac1f3..f4f83de3 100644 --- a/FFmpegArgs.Filters.Autogen/OscilloscopeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/OscilloscopeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class OscilloscopeFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/OverlayFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/OverlayFilterGen.g.cs index 442a7001..8634d740 100644 --- a/FFmpegArgs.Filters.Autogen/OverlayFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/OverlayFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class OverlayFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -25,11 +14,11 @@ public class OverlayFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThread /// /// Action to take when encountering EOF from secondary input (from 0 to 2) (default repeat) /// -public OverlayFilterGen eof_action(OverlayFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetAttribute().Name); +public OverlayFilterGen eof_action(OverlayFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetEnumAttribute().Name); /// /// specify when to evaluate expressions (from 0 to 1) (default frame) /// -public OverlayFilterGen eval(OverlayFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public OverlayFilterGen eval(OverlayFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); /// /// force termination when the shortest input terminates (default false) /// @@ -37,7 +26,7 @@ public class OverlayFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThread /// /// set output format (from 0 to 7) (default yuv420) /// -public OverlayFilterGen format(OverlayFilterGenFormat format) => this.SetOption("format", format.GetAttribute().Name); +public OverlayFilterGen format(OverlayFilterGenFormat format) => this.SetOption("format", format.GetEnumAttribute().Name); /// /// repeat overlay of the last overlay frame (default true) /// @@ -45,7 +34,7 @@ public class OverlayFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThread /// /// alpha format (from 0 to 1) (default straight) /// -public OverlayFilterGen alpha(OverlayFilterGenAlpha alpha) => this.SetOption("alpha", alpha.GetAttribute().Name); +public OverlayFilterGen alpha(OverlayFilterGenAlpha alpha) => this.SetOption("alpha", alpha.GetEnumAttribute().Name); } public static class OverlayFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Overlay_cudaFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Overlay_cudaFilterGen.g.cs index e7ddfe61..6ec4d623 100644 --- a/FFmpegArgs.Filters.Autogen/Overlay_cudaFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Overlay_cudaFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Overlay_cudaFilterGen : ImageToImageFilter @@ -25,7 +14,7 @@ public class Overlay_cudaFilterGen : ImageToImageFilter /// /// Action to take when encountering EOF from secondary input (from 0 to 2) (default repeat) /// -public Overlay_cudaFilterGen eof_action(Overlay_cudaFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetAttribute().Name); +public Overlay_cudaFilterGen eof_action(Overlay_cudaFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetEnumAttribute().Name); /// /// force termination when the shortest input terminates (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/Overlay_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Overlay_openclFilterGen.g.cs index 4a18778c..bd8588d6 100644 --- a/FFmpegArgs.Filters.Autogen/Overlay_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Overlay_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Overlay_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/Overlay_qsvFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Overlay_qsvFilterGen.g.cs index 615be57d..30c45975 100644 --- a/FFmpegArgs.Filters.Autogen/Overlay_qsvFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Overlay_qsvFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Overlay_qsvFilterGen : ImageToImageFilter @@ -37,7 +26,7 @@ public class Overlay_qsvFilterGen : ImageToImageFilter /// /// Action to take when encountering EOF from secondary input (from 0 to 2) (default repeat) /// -public Overlay_qsvFilterGen eof_action(Overlay_qsvFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetAttribute().Name); +public Overlay_qsvFilterGen eof_action(Overlay_qsvFilterGenEof_action eof_action) => this.SetOption("eof_action", eof_action.GetEnumAttribute().Name); /// /// force termination when the shortest input terminates (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/Overlay_vulkanFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Overlay_vulkanFilterGen.g.cs index 8cada654..b74bf42a 100644 --- a/FFmpegArgs.Filters.Autogen/Overlay_vulkanFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Overlay_vulkanFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Overlay_vulkanFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/OwdenoiseFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/OwdenoiseFilterGen.g.cs index 57174848..dada2d56 100644 --- a/FFmpegArgs.Filters.Autogen/OwdenoiseFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/OwdenoiseFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class OwdenoiseFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/PadFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PadFilterGen.g.cs index fffa8bdd..008f9c5d 100644 --- a/FFmpegArgs.Filters.Autogen/PadFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PadFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PadFilterGen : ImageToImageFilter @@ -37,7 +26,7 @@ public class PadFilterGen : ImageToImageFilter /// /// specify when to evaluate expressions (from 0 to 1) (default init) /// -public PadFilterGen eval(PadFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public PadFilterGen eval(PadFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); /// /// pad to fit an aspect instead of a resolution (from 0 to DBL_MAX) (default 0/1) /// diff --git a/FFmpegArgs.Filters.Autogen/Pad_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Pad_openclFilterGen.g.cs index 261971ec..07ca0e1e 100644 --- a/FFmpegArgs.Filters.Autogen/Pad_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Pad_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Pad_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/Pal100barsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Pal100barsFilterGen.g.cs index 907597b8..3d364ea9 100644 --- a/FFmpegArgs.Filters.Autogen/Pal100barsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Pal100barsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Pal100barsFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/Pal75barsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Pal75barsFilterGen.g.cs index 9109175c..af7b7d69 100644 --- a/FFmpegArgs.Filters.Autogen/Pal75barsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Pal75barsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Pal75barsFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/PalettegenFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PalettegenFilterGen.g.cs index 5a5333ce..923883ff 100644 --- a/FFmpegArgs.Filters.Autogen/PalettegenFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PalettegenFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PalettegenFilterGen : ImageToImageFilter @@ -29,7 +18,7 @@ public class PalettegenFilterGen : ImageToImageFilter /// /// set statistics mode (from 0 to 2) (default full) /// -public PalettegenFilterGen stats_mode(PalettegenFilterGenStats_mode stats_mode) => this.SetOption("stats_mode", stats_mode.GetAttribute().Name); +public PalettegenFilterGen stats_mode(PalettegenFilterGenStats_mode stats_mode) => this.SetOption("stats_mode", stats_mode.GetEnumAttribute().Name); } public static class PalettegenFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/PaletteuseFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PaletteuseFilterGen.g.cs index 314a49a1..9fb894cf 100644 --- a/FFmpegArgs.Filters.Autogen/PaletteuseFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PaletteuseFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PaletteuseFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class PaletteuseFilterGen : ImageToImageFilter /// /// select dithering mode (from 0 to 5) (default sierra2_4a) /// -public PaletteuseFilterGen dither(PaletteuseFilterGenDither dither) => this.SetOption("dither", dither.GetAttribute().Name); +public PaletteuseFilterGen dither(PaletteuseFilterGenDither dither) => this.SetOption("dither", dither.GetEnumAttribute().Name); /// /// set scale for bayer dithering (from 0 to 5) (default 2) /// @@ -25,7 +14,7 @@ public class PaletteuseFilterGen : ImageToImageFilter /// /// set frame difference mode (from 0 to 1) (default 0) /// -public PaletteuseFilterGen diff_mode(PaletteuseFilterGenDiff_mode diff_mode) => this.SetOption("diff_mode", diff_mode.GetAttribute().Name); +public PaletteuseFilterGen diff_mode(PaletteuseFilterGenDiff_mode diff_mode) => this.SetOption("diff_mode", diff_mode.GetEnumAttribute().Name); /// /// take new palette for each output frame (default false) /// @@ -41,7 +30,7 @@ public class PaletteuseFilterGen : ImageToImageFilter /// /// set reverse colormap color search method (from 0 to 2) (default nns_iterative) /// -public PaletteuseFilterGen color_search(PaletteuseFilterGenColor_search color_search) => this.SetOption("color_search", color_search.GetAttribute().Name); +public PaletteuseFilterGen color_search(PaletteuseFilterGenColor_search color_search) => this.SetOption("color_search", color_search.GetEnumAttribute().Name); /// /// compute and print mean error (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/PanFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PanFilterGen.g.cs index 190ea549..ec74ea5c 100644 --- a/FFmpegArgs.Filters.Autogen/PanFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PanFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PanFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/PermsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PermsFilterGen.g.cs index b81cca18..79e682b1 100644 --- a/FFmpegArgs.Filters.Autogen/PermsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PermsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PermsFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,7 +6,7 @@ public class PermsFilterGen : ImageToImageFilter,ITimelineSupport /// /// select permissions mode (from 0 to 4) (default none) /// -public PermsFilterGen mode(PermsFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public PermsFilterGen mode(PermsFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set the seed for the random mode (from -1 to UINT32_MAX) (default -1) /// diff --git a/FFmpegArgs.Filters.Autogen/PerspectiveFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PerspectiveFilterGen.g.cs index 1cec176c..a3943dbe 100644 --- a/FFmpegArgs.Filters.Autogen/PerspectiveFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PerspectiveFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PerspectiveFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -49,15 +38,15 @@ public class PerspectiveFilterGen : ImageToImageFilter,ITimelineSupport,ISliceTh /// /// set interpolation (from 0 to 1) (default linear) /// -public PerspectiveFilterGen interpolation(PerspectiveFilterGenInterpolation interpolation) => this.SetOption("interpolation", interpolation.GetAttribute().Name); +public PerspectiveFilterGen interpolation(PerspectiveFilterGenInterpolation interpolation) => this.SetOption("interpolation", interpolation.GetEnumAttribute().Name); /// /// specify the sense of the coordinates (from 0 to 1) (default source) /// -public PerspectiveFilterGen sense(PerspectiveFilterGenSense sense) => this.SetOption("sense", sense.GetAttribute().Name); +public PerspectiveFilterGen sense(PerspectiveFilterGenSense sense) => this.SetOption("sense", sense.GetEnumAttribute().Name); /// /// specify when to evaluate expressions (from 0 to 1) (default init) /// -public PerspectiveFilterGen eval(PerspectiveFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public PerspectiveFilterGen eval(PerspectiveFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); } public static class PerspectiveFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/PhaseFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PhaseFilterGen.g.cs index 31f7069b..ddbf2e1f 100644 --- a/FFmpegArgs.Filters.Autogen/PhaseFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PhaseFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PhaseFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport @@ -17,7 +6,7 @@ public class PhaseFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSuppor /// /// set phase mode (from 0 to 8) (default A) /// -public PhaseFilterGen mode(PhaseFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public PhaseFilterGen mode(PhaseFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class PhaseFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/PhotosensitivityFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PhotosensitivityFilterGen.g.cs index 861ae35f..58b02429 100644 --- a/FFmpegArgs.Filters.Autogen/PhotosensitivityFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PhotosensitivityFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PhotosensitivityFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/PixscopeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PixscopeFilterGen.g.cs index de1aff26..b7c92fac 100644 --- a/FFmpegArgs.Filters.Autogen/PixscopeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PixscopeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PixscopeFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Pp7FilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Pp7FilterGen.g.cs index c2714a8f..eea3d8d3 100644 --- a/FFmpegArgs.Filters.Autogen/Pp7FilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Pp7FilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Pp7FilterGen : ImageToImageFilter,ITimelineSupport @@ -21,7 +10,7 @@ public class Pp7FilterGen : ImageToImageFilter,ITimelineSupport /// /// set thresholding mode (from 0 to 2) (default medium) /// -public Pp7FilterGen mode(Pp7FilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public Pp7FilterGen mode(Pp7FilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class Pp7FilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/PpFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PpFilterGen.g.cs index 86f7b1c7..a1c19ef0 100644 --- a/FFmpegArgs.Filters.Autogen/PpFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PpFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PpFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/PrewittFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PrewittFilterGen.g.cs index c8f0f7e3..50f32d09 100644 --- a/FFmpegArgs.Filters.Autogen/PrewittFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PrewittFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PrewittFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Prewitt_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Prewitt_openclFilterGen.g.cs index 392ae390..5f4b62aa 100644 --- a/FFmpegArgs.Filters.Autogen/Prewitt_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Prewitt_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Prewitt_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/Program_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Program_openclFilterGen.g.cs index 6dbc1f46..e50d56e6 100644 --- a/FFmpegArgs.Filters.Autogen/Program_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Program_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Program_openclFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/PseudocolorFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PseudocolorFilterGen.g.cs index da2d4278..6bf77b34 100644 --- a/FFmpegArgs.Filters.Autogen/PseudocolorFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PseudocolorFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PseudocolorFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -37,7 +26,7 @@ public class PseudocolorFilterGen : ImageToImageFilter,ITimelineSupport,ISliceTh /// /// set preset (from -1 to 9) (default none) /// -public PseudocolorFilterGen preset(PseudocolorFilterGenPreset preset) => this.SetOption("preset", preset.GetAttribute().Name); +public PseudocolorFilterGen preset(PseudocolorFilterGenPreset preset) => this.SetOption("preset", preset.GetEnumAttribute().Name); /// /// set pseudocolor opacity (from 0 to 1) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/PsnrFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PsnrFilterGen.g.cs index ebfcd402..f0c5542c 100644 --- a/FFmpegArgs.Filters.Autogen/PsnrFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PsnrFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PsnrFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/PullupFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/PullupFilterGen.g.cs index 6c16694f..fa89f777 100644 --- a/FFmpegArgs.Filters.Autogen/PullupFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/PullupFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class PullupFilterGen : ImageToImageFilter @@ -37,7 +26,7 @@ public class PullupFilterGen : ImageToImageFilter /// /// set metric plane (from 0 to 2) (default y) /// -public PullupFilterGen mp(PullupFilterGenMp mp) => this.SetOption("mp", mp.GetAttribute().Name); +public PullupFilterGen mp(PullupFilterGenMp mp) => this.SetOption("mp", mp.GetEnumAttribute().Name); } public static class PullupFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/QpFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/QpFilterGen.g.cs index f9a15efe..8ebf1a0e 100644 --- a/FFmpegArgs.Filters.Autogen/QpFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/QpFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class QpFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/RandomFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RandomFilterGen.g.cs index 932eb59e..0b5dc0d9 100644 --- a/FFmpegArgs.Filters.Autogen/RandomFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RandomFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RandomFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/Readeia608FilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Readeia608FilterGen.g.cs index c645a23c..398c7ce6 100644 --- a/FFmpegArgs.Filters.Autogen/Readeia608FilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Readeia608FilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Readeia608FilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/ReadvitcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ReadvitcFilterGen.g.cs index 1fd0721e..1d750a32 100644 --- a/FFmpegArgs.Filters.Autogen/ReadvitcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ReadvitcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ReadvitcFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/RealtimeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RealtimeFilterGen.g.cs index 778835f6..1888f72b 100644 --- a/FFmpegArgs.Filters.Autogen/RealtimeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RealtimeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RealtimeFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/RemapFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RemapFilterGen.g.cs index 13b9e86f..6607ca53 100644 --- a/FFmpegArgs.Filters.Autogen/RemapFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RemapFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RemapFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,7 +6,7 @@ public class RemapFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set output format (from 0 to 1) (default color) /// -public RemapFilterGen format(RemapFilterGenFormat format) => this.SetOption("format", format.GetAttribute().Name); +public RemapFilterGen format(RemapFilterGenFormat format) => this.SetOption("format", format.GetEnumAttribute().Name); /// /// set the color of the unmapped pixels (default "black") /// diff --git a/FFmpegArgs.Filters.Autogen/RemovegrainFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RemovegrainFilterGen.g.cs index 258d5c79..d1fcd6e8 100644 --- a/FFmpegArgs.Filters.Autogen/RemovegrainFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RemovegrainFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RemovegrainFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/RemovelogoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RemovelogoFilterGen.g.cs index 59220606..08e39729 100644 --- a/FFmpegArgs.Filters.Autogen/RemovelogoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RemovelogoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RemovelogoFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/RgbashiftFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RgbashiftFilterGen.g.cs index 9c3d07cf..b9efaa9b 100644 --- a/FFmpegArgs.Filters.Autogen/RgbashiftFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RgbashiftFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RgbashiftFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -49,7 +38,7 @@ public class RgbashiftFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThre /// /// set edge operation (from 0 to 1) (default smear) /// -public RgbashiftFilterGen edge(RgbashiftFilterGenEdge edge) => this.SetOption("edge", edge.GetAttribute().Name); +public RgbashiftFilterGen edge(RgbashiftFilterGenEdge edge) => this.SetOption("edge", edge.GetEnumAttribute().Name); } public static class RgbashiftFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/RgbtestsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RgbtestsrcFilterGen.g.cs index 3a8cd980..98c5c202 100644 --- a/FFmpegArgs.Filters.Autogen/RgbtestsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RgbtestsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RgbtestsrcFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/RobertsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RobertsFilterGen.g.cs index 08618467..423f1672 100644 --- a/FFmpegArgs.Filters.Autogen/RobertsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RobertsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RobertsFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Roberts_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Roberts_openclFilterGen.g.cs index 242c43f4..c3519c88 100644 --- a/FFmpegArgs.Filters.Autogen/Roberts_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Roberts_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Roberts_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/RotateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RotateFilterGen.g.cs index 1b74ce16..c52c522b 100644 --- a/FFmpegArgs.Filters.Autogen/RotateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RotateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RotateFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/RubberbandFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/RubberbandFilterGen.g.cs index 31a5407f..7a80d058 100644 --- a/FFmpegArgs.Filters.Autogen/RubberbandFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/RubberbandFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class RubberbandFilterGen : AudioToAudioFilter,ICommandSupport @@ -25,35 +14,35 @@ public class RubberbandFilterGen : AudioToAudioFilter,ICommandSupport /// /// set transients (from 0 to INT_MAX) (default crisp) /// -public RubberbandFilterGen transients(RubberbandFilterGenTransients transients) => this.SetOption("transients", transients.GetAttribute().Name); +public RubberbandFilterGen transients(RubberbandFilterGenTransients transients) => this.SetOption("transients", transients.GetEnumAttribute().Name); /// /// set detector (from 0 to INT_MAX) (default compound) /// -public RubberbandFilterGen detector(RubberbandFilterGenDetector detector) => this.SetOption("detector", detector.GetAttribute().Name); +public RubberbandFilterGen detector(RubberbandFilterGenDetector detector) => this.SetOption("detector", detector.GetEnumAttribute().Name); /// /// set phase (from 0 to INT_MAX) (default laminar) /// -public RubberbandFilterGen phase(RubberbandFilterGenPhase phase) => this.SetOption("phase", phase.GetAttribute().Name); +public RubberbandFilterGen phase(RubberbandFilterGenPhase phase) => this.SetOption("phase", phase.GetEnumAttribute().Name); /// /// set window (from 0 to INT_MAX) (default standard) /// -public RubberbandFilterGen window(RubberbandFilterGenWindow window) => this.SetOption("window", window.GetAttribute().Name); +public RubberbandFilterGen window(RubberbandFilterGenWindow window) => this.SetOption("window", window.GetEnumAttribute().Name); /// /// set smoothing (from 0 to INT_MAX) (default off) /// -public RubberbandFilterGen smoothing(RubberbandFilterGenSmoothing smoothing) => this.SetOption("smoothing", smoothing.GetAttribute().Name); +public RubberbandFilterGen smoothing(RubberbandFilterGenSmoothing smoothing) => this.SetOption("smoothing", smoothing.GetEnumAttribute().Name); /// /// set formant (from 0 to INT_MAX) (default shifted) /// -public RubberbandFilterGen formant(RubberbandFilterGenFormant formant) => this.SetOption("formant", formant.GetAttribute().Name); +public RubberbandFilterGen formant(RubberbandFilterGenFormant formant) => this.SetOption("formant", formant.GetEnumAttribute().Name); /// /// set pitch quality (from 0 to INT_MAX) (default speed) /// -public RubberbandFilterGen pitchq(RubberbandFilterGenPitchq pitchq) => this.SetOption("pitchq", pitchq.GetAttribute().Name); +public RubberbandFilterGen pitchq(RubberbandFilterGenPitchq pitchq) => this.SetOption("pitchq", pitchq.GetEnumAttribute().Name); /// /// set channels (from 0 to INT_MAX) (default apart) /// -public RubberbandFilterGen channels(RubberbandFilterGenChannels channels) => this.SetOption("channels", channels.GetAttribute().Name); +public RubberbandFilterGen channels(RubberbandFilterGenChannels channels) => this.SetOption("channels", channels.GetEnumAttribute().Name); } public static class RubberbandFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/SabFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SabFilterGen.g.cs index 1e07076d..a94a7036 100644 --- a/FFmpegArgs.Filters.Autogen/SabFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SabFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SabFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/ScaleFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ScaleFilterGen.g.cs index ddc304fe..216cbcf2 100644 --- a/FFmpegArgs.Filters.Autogen/ScaleFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ScaleFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ScaleFilterGen : ImageToImageFilter,ICommandSupport @@ -41,11 +30,11 @@ public class ScaleFilterGen : ImageToImageFilter,ICommandSupport /// /// set input color range (from 0 to 2) (default auto) /// -public ScaleFilterGen in_range(ScaleFilterGenIn_range in_range) => this.SetOption("in_range", in_range.GetAttribute().Name); +public ScaleFilterGen in_range(ScaleFilterGenIn_range in_range) => this.SetOption("in_range", in_range.GetEnumAttribute().Name); /// /// set output color range (from 0 to 2) (default auto) /// -public ScaleFilterGen out_range(ScaleFilterGenOut_range out_range) => this.SetOption("out_range", out_range.GetAttribute().Name); +public ScaleFilterGen out_range(ScaleFilterGenOut_range out_range) => this.SetOption("out_range", out_range.GetEnumAttribute().Name); /// /// input vertical chroma position in luma grid/256 (from -513 to 512) (default -513) /// @@ -65,7 +54,7 @@ public class ScaleFilterGen : ImageToImageFilter,ICommandSupport /// /// decrease or increase w/h if necessary to keep the original AR (from 0 to 2) (default disable) /// -public ScaleFilterGen force_original_aspect_ratio(ScaleFilterGenForce_original_aspect_ratio force_original_aspect_ratio) => this.SetOption("force_original_aspect_ratio", force_original_aspect_ratio.GetAttribute().Name); +public ScaleFilterGen force_original_aspect_ratio(ScaleFilterGenForce_original_aspect_ratio force_original_aspect_ratio) => this.SetOption("force_original_aspect_ratio", force_original_aspect_ratio.GetEnumAttribute().Name); /// /// enforce that the output resolution is divisible by a defined integer when force_original_aspect_ratio is used (from 1 to 256) (default 1) /// @@ -85,7 +74,7 @@ public class ScaleFilterGen : ImageToImageFilter,ICommandSupport /// /// specify when to evaluate expressions (from 0 to 1) (default init) /// -public ScaleFilterGen eval(ScaleFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public ScaleFilterGen eval(ScaleFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); } public static class ScaleFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Scale_qsvFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Scale_qsvFilterGen.g.cs index 7d8ada04..fe997be6 100644 --- a/FFmpegArgs.Filters.Autogen/Scale_qsvFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Scale_qsvFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Scale_qsvFilterGen : ImageToImageFilter @@ -29,7 +18,7 @@ public class Scale_qsvFilterGen : ImageToImageFilter /// /// set scaling mode (from 0 to 2) (default 0) /// -public Scale_qsvFilterGen mode(Scale_qsvFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public Scale_qsvFilterGen mode(Scale_qsvFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class Scale_qsvFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Scale_vulkanFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Scale_vulkanFilterGen.g.cs index e2db9d64..36f14547 100644 --- a/FFmpegArgs.Filters.Autogen/Scale_vulkanFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Scale_vulkanFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Scale_vulkanFilterGen : ImageToImageFilter @@ -25,7 +14,7 @@ public class Scale_vulkanFilterGen : ImageToImageFilter /// /// Scaler function (from 0 to 2) (default bilinear) /// -public Scale_vulkanFilterGen scaler(Scale_vulkanFilterGenScaler scaler) => this.SetOption("scaler", scaler.GetAttribute().Name); +public Scale_vulkanFilterGen scaler(Scale_vulkanFilterGenScaler scaler) => this.SetOption("scaler", scaler.GetEnumAttribute().Name); /// /// Output video format (software format of hardware frames) /// @@ -33,7 +22,7 @@ public class Scale_vulkanFilterGen : ImageToImageFilter /// /// Output colour range (from 0 to 2) (default 0) (from 0 to 2) (default 0) /// -public Scale_vulkanFilterGen out_range(Scale_vulkanFilterGenOut_range out_range) => this.SetOption("out_range", out_range.GetAttribute().Name); +public Scale_vulkanFilterGen out_range(Scale_vulkanFilterGenOut_range out_range) => this.SetOption("out_range", out_range.GetEnumAttribute().Name); } public static class Scale_vulkanFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ScdetFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ScdetFilterGen.g.cs index 16ad31e3..c54526ca 100644 --- a/FFmpegArgs.Filters.Autogen/ScdetFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ScdetFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ScdetFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ScrollFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ScrollFilterGen.g.cs index aa7fbb8e..fe131bb5 100644 --- a/FFmpegArgs.Filters.Autogen/ScrollFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ScrollFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ScrollFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/SelectivecolorFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SelectivecolorFilterGen.g.cs index d2b6cd4c..a4012f8a 100644 --- a/FFmpegArgs.Filters.Autogen/SelectivecolorFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SelectivecolorFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SelectivecolorFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,7 +6,7 @@ public class SelectivecolorFilterGen : ImageToImageFilter,ITimelineSupport,ISlic /// /// select correction method (from 0 to 1) (default absolute) /// -public SelectivecolorFilterGen correction_method(SelectivecolorFilterGenCorrection_method correction_method) => this.SetOption("correction_method", correction_method.GetAttribute().Name); +public SelectivecolorFilterGen correction_method(SelectivecolorFilterGenCorrection_method correction_method) => this.SetOption("correction_method", correction_method.GetEnumAttribute().Name); /// /// adjust red regions /// diff --git a/FFmpegArgs.Filters.Autogen/SendcmdFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SendcmdFilterGen.g.cs index ebbe4977..33a5ac35 100644 --- a/FFmpegArgs.Filters.Autogen/SendcmdFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SendcmdFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SendcmdFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SetdarFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SetdarFilterGen.g.cs index b1ec4f07..5124dcc5 100644 --- a/FFmpegArgs.Filters.Autogen/SetdarFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SetdarFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SetdarFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SetfieldFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SetfieldFilterGen.g.cs index f74fdfac..858a2335 100644 --- a/FFmpegArgs.Filters.Autogen/SetfieldFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SetfieldFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SetfieldFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class SetfieldFilterGen : ImageToImageFilter /// /// select interlace mode (from -1 to 2) (default auto) /// -public SetfieldFilterGen mode(SetfieldFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public SetfieldFilterGen mode(SetfieldFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class SetfieldFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/SetparamsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SetparamsFilterGen.g.cs index d2cab1bd..8c6e8e1b 100644 --- a/FFmpegArgs.Filters.Autogen/SetparamsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SetparamsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SetparamsFilterGen : ImageToImageFilter @@ -17,23 +6,23 @@ public class SetparamsFilterGen : ImageToImageFilter /// /// select interlace mode (from -1 to 2) (default auto) /// -public SetparamsFilterGen field_mode(SetparamsFilterGenField_mode field_mode) => this.SetOption("field_mode", field_mode.GetAttribute().Name); +public SetparamsFilterGen field_mode(SetparamsFilterGenField_mode field_mode) => this.SetOption("field_mode", field_mode.GetEnumAttribute().Name); /// /// select color range (from -1 to 2) (default auto) /// -public SetparamsFilterGen range(SetparamsFilterGenRange range) => this.SetOption("range", range.GetAttribute().Name); +public SetparamsFilterGen range(SetparamsFilterGenRange range) => this.SetOption("range", range.GetEnumAttribute().Name); /// /// select color primaries (from -1 to 22) (default auto) /// -public SetparamsFilterGen color_primaries(SetparamsFilterGenColor_primaries color_primaries) => this.SetOption("color_primaries", color_primaries.GetAttribute().Name); +public SetparamsFilterGen color_primaries(SetparamsFilterGenColor_primaries color_primaries) => this.SetOption("color_primaries", color_primaries.GetEnumAttribute().Name); /// /// select color transfer (from -1 to 18) (default auto) /// -public SetparamsFilterGen color_trc(SetparamsFilterGenColor_trc color_trc) => this.SetOption("color_trc", color_trc.GetAttribute().Name); +public SetparamsFilterGen color_trc(SetparamsFilterGenColor_trc color_trc) => this.SetOption("color_trc", color_trc.GetEnumAttribute().Name); /// /// select colorspace (from -1 to 14) (default auto) /// -public SetparamsFilterGen colorspace(SetparamsFilterGenColorspace colorspace) => this.SetOption("colorspace", colorspace.GetAttribute().Name); +public SetparamsFilterGen colorspace(SetparamsFilterGenColorspace colorspace) => this.SetOption("colorspace", colorspace.GetEnumAttribute().Name); } public static class SetparamsFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/SetptsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SetptsFilterGen.g.cs index 8b005b14..9e38f45e 100644 --- a/FFmpegArgs.Filters.Autogen/SetptsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SetptsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SetptsFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SetrangeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SetrangeFilterGen.g.cs index 9d1f2dc9..17dda55e 100644 --- a/FFmpegArgs.Filters.Autogen/SetrangeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SetrangeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SetrangeFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class SetrangeFilterGen : ImageToImageFilter /// /// select color range (from -1 to 2) (default auto) /// -public SetrangeFilterGen range(SetrangeFilterGenRange range) => this.SetOption("range", range.GetAttribute().Name); +public SetrangeFilterGen range(SetrangeFilterGenRange range) => this.SetOption("range", range.GetEnumAttribute().Name); } public static class SetrangeFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/SetsarFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SetsarFilterGen.g.cs index 62e0700f..e2c98e79 100644 --- a/FFmpegArgs.Filters.Autogen/SetsarFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SetsarFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SetsarFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SettbFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SettbFilterGen.g.cs index 7c9ad5da..6cd233d3 100644 --- a/FFmpegArgs.Filters.Autogen/SettbFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SettbFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SettbFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ShearFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ShearFilterGen.g.cs index 7044a7c9..da47ca00 100644 --- a/FFmpegArgs.Filters.Autogen/ShearFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ShearFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ShearFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -33,7 +22,7 @@ public class ShearFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// set interpolation (from 0 to 1) (default bilinear) /// -public ShearFilterGen interp(ShearFilterGenInterp interp) => this.SetOption("interp", interp.GetAttribute().Name); +public ShearFilterGen interp(ShearFilterGenInterp interp) => this.SetOption("interp", interp.GetEnumAttribute().Name); } public static class ShearFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ShowinfoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ShowinfoFilterGen.g.cs index b10efddf..dad34457 100644 --- a/FFmpegArgs.Filters.Autogen/ShowinfoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ShowinfoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ShowinfoFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ShowpaletteFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ShowpaletteFilterGen.g.cs index 16052e77..8f46c51f 100644 --- a/FFmpegArgs.Filters.Autogen/ShowpaletteFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ShowpaletteFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ShowpaletteFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ShuffleframesFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ShuffleframesFilterGen.g.cs index b0d4599c..00a9bfed 100644 --- a/FFmpegArgs.Filters.Autogen/ShuffleframesFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ShuffleframesFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ShuffleframesFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/ShufflepixelsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ShufflepixelsFilterGen.g.cs index 335ed269..25559e4d 100644 --- a/FFmpegArgs.Filters.Autogen/ShufflepixelsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ShufflepixelsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ShufflepixelsFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,11 +6,11 @@ public class ShufflepixelsFilterGen : ImageToImageFilter,ITimelineSupport,ISlice /// /// set shuffle direction (from 0 to 1) (default forward) /// -public ShufflepixelsFilterGen direction(ShufflepixelsFilterGenDirection direction) => this.SetOption("direction", direction.GetAttribute().Name); +public ShufflepixelsFilterGen direction(ShufflepixelsFilterGenDirection direction) => this.SetOption("direction", direction.GetEnumAttribute().Name); /// /// set shuffle mode (from 0 to 2) (default horizontal) /// -public ShufflepixelsFilterGen mode(ShufflepixelsFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public ShufflepixelsFilterGen mode(ShufflepixelsFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set block width (from 1 to 8000) (default 10) /// diff --git a/FFmpegArgs.Filters.Autogen/ShuffleplanesFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ShuffleplanesFilterGen.g.cs index 81e749c4..8c2452f6 100644 --- a/FFmpegArgs.Filters.Autogen/ShuffleplanesFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ShuffleplanesFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ShuffleplanesFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/SidechaincompressFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SidechaincompressFilterGen.g.cs index 4de901e2..08709e34 100644 --- a/FFmpegArgs.Filters.Autogen/SidechaincompressFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SidechaincompressFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SidechaincompressFilterGen : AudioToAudioFilter,ICommandSupport @@ -21,7 +10,7 @@ public class SidechaincompressFilterGen : AudioToAudioFilter,ICommandSupport /// /// set mode (from 0 to 1) (default downward) /// -public SidechaincompressFilterGen mode(SidechaincompressFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public SidechaincompressFilterGen mode(SidechaincompressFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set threshold (from 0.000976563 to 1) (default 0.125) /// @@ -49,11 +38,11 @@ public class SidechaincompressFilterGen : AudioToAudioFilter,ICommandSupport /// /// set link type (from 0 to 1) (default average) /// -public SidechaincompressFilterGen link(SidechaincompressFilterGenLink link) => this.SetOption("link", link.GetAttribute().Name); +public SidechaincompressFilterGen link(SidechaincompressFilterGenLink link) => this.SetOption("link", link.GetEnumAttribute().Name); /// /// set detection (from 0 to 1) (default rms) /// -public SidechaincompressFilterGen detection(SidechaincompressFilterGenDetection detection) => this.SetOption("detection", detection.GetAttribute().Name); +public SidechaincompressFilterGen detection(SidechaincompressFilterGenDetection detection) => this.SetOption("detection", detection.GetEnumAttribute().Name); /// /// set sidechain gain (from 0.015625 to 64) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/SidechaingateFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SidechaingateFilterGen.g.cs index 8744336e..2596fe60 100644 --- a/FFmpegArgs.Filters.Autogen/SidechaingateFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SidechaingateFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SidechaingateFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport @@ -21,7 +10,7 @@ public class SidechaingateFilterGen : AudioToAudioFilter,ITimelineSupport,IComma /// /// set mode (from 0 to 1) (default downward) /// -public SidechaingateFilterGen mode(SidechaingateFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public SidechaingateFilterGen mode(SidechaingateFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set max gain reduction (from 0 to 1) (default 0.06125) /// @@ -53,11 +42,11 @@ public class SidechaingateFilterGen : AudioToAudioFilter,ITimelineSupport,IComma /// /// set detection (from 0 to 1) (default rms) /// -public SidechaingateFilterGen detection(SidechaingateFilterGenDetection detection) => this.SetOption("detection", detection.GetAttribute().Name); +public SidechaingateFilterGen detection(SidechaingateFilterGenDetection detection) => this.SetOption("detection", detection.GetEnumAttribute().Name); /// /// set link (from 0 to 1) (default average) /// -public SidechaingateFilterGen link(SidechaingateFilterGenLink link) => this.SetOption("link", link.GetAttribute().Name); +public SidechaingateFilterGen link(SidechaingateFilterGenLink link) => this.SetOption("link", link.GetEnumAttribute().Name); /// /// set sidechain gain (from 0.015625 to 64) (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/SidedataFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SidedataFilterGen.g.cs index 56388349..df80b7d0 100644 --- a/FFmpegArgs.Filters.Autogen/SidedataFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SidedataFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SidedataFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,11 +6,11 @@ public class SidedataFilterGen : ImageToImageFilter,ITimelineSupport /// /// set a mode of operation (from 0 to 1) (default select) /// -public SidedataFilterGen mode(SidedataFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public SidedataFilterGen mode(SidedataFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set side data type (from -1 to INT_MAX) (default -1) /// -public SidedataFilterGen type(SidedataFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public SidedataFilterGen type(SidedataFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class SidedataFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/SierpinskiFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SierpinskiFilterGen.g.cs index 8eacea56..a0bc1c1d 100644 --- a/FFmpegArgs.Filters.Autogen/SierpinskiFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SierpinskiFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SierpinskiFilterGen : SourceImageFilter,ISliceThreading @@ -33,7 +22,7 @@ public class SierpinskiFilterGen : SourceImageFilter,ISliceThreading /// /// set fractal type (from 0 to 1) (default carpet) /// -public SierpinskiFilterGen type(SierpinskiFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public SierpinskiFilterGen type(SierpinskiFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class SierpinskiFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/SignalstatsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SignalstatsFilterGen.g.cs index 3709fe00..9fd1e3f3 100644 --- a/FFmpegArgs.Filters.Autogen/SignalstatsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SignalstatsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SignalstatsFilterGen : ImageToImageFilter,ISliceThreading @@ -17,11 +6,11 @@ public class SignalstatsFilterGen : ImageToImageFilter,ISliceThreading /// /// set statistics filters (default 0) /// -public SignalstatsFilterGen stat(SignalstatsFilterGenStat stat) => this.SetOption("stat", stat.GetAttribute().Name); +public SignalstatsFilterGen stat(SignalstatsFilterGenStat stat) => this.SetOption("stat", stat.GetEnumAttribute().Name); /// /// set video filter (from -1 to 2) (default -1) /// -public SignalstatsFilterGen _out(SignalstatsFilterGenOut _out) => this.SetOption("out", _out.GetAttribute().Name); +public SignalstatsFilterGen _out(SignalstatsFilterGenOut _out) => this.SetOption("out", _out.GetEnumAttribute().Name); /// /// set highlight color (default "yellow") /// diff --git a/FFmpegArgs.Filters.Autogen/SilencedetectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SilencedetectFilterGen.g.cs index e5e53e81..98cb5409 100644 --- a/FFmpegArgs.Filters.Autogen/SilencedetectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SilencedetectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SilencedetectFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/SilenceremoveFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SilenceremoveFilterGen.g.cs index ec35984b..11566574 100644 --- a/FFmpegArgs.Filters.Autogen/SilenceremoveFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SilenceremoveFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SilenceremoveFilterGen : AudioToAudioFilter @@ -33,7 +22,7 @@ public class SilenceremoveFilterGen : AudioToAudioFilter /// /// set which channel will trigger trimming from start (from 0 to 1) (default any) /// -public SilenceremoveFilterGen start_mode(SilenceremoveFilterGenStart_mode start_mode) => this.SetOption("start_mode", start_mode.GetAttribute().Name); +public SilenceremoveFilterGen start_mode(SilenceremoveFilterGenStart_mode start_mode) => this.SetOption("start_mode", start_mode.GetEnumAttribute().Name); /// /// (from -9000 to 9000) (default 0) /// @@ -53,11 +42,11 @@ public class SilenceremoveFilterGen : AudioToAudioFilter /// /// set which channel will trigger trimming from end (from 0 to 1) (default any) /// -public SilenceremoveFilterGen stop_mode(SilenceremoveFilterGenStop_mode stop_mode) => this.SetOption("stop_mode", stop_mode.GetAttribute().Name); +public SilenceremoveFilterGen stop_mode(SilenceremoveFilterGenStop_mode stop_mode) => this.SetOption("stop_mode", stop_mode.GetEnumAttribute().Name); /// /// set how silence is detected (from 0 to 1) (default rms) /// -public SilenceremoveFilterGen detection(SilenceremoveFilterGenDetection detection) => this.SetOption("detection", detection.GetAttribute().Name); +public SilenceremoveFilterGen detection(SilenceremoveFilterGenDetection detection) => this.SetOption("detection", detection.GetEnumAttribute().Name); /// /// set duration of window in seconds (from 0 to 10) (default 0.02) /// diff --git a/FFmpegArgs.Filters.Autogen/SincFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SincFilterGen.g.cs index 11d2a8e3..9c76ea99 100644 --- a/FFmpegArgs.Filters.Autogen/SincFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SincFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SincFilterGen : SourceAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/SineFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SineFilterGen.g.cs index 40ee534c..943fe1db 100644 --- a/FFmpegArgs.Filters.Autogen/SineFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SineFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SineFilterGen : SourceAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/SmartblurFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SmartblurFilterGen.g.cs index 2f4868d4..50143839 100644 --- a/FFmpegArgs.Filters.Autogen/SmartblurFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SmartblurFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SmartblurFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/SmptebarsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SmptebarsFilterGen.g.cs index 4ff77e28..f6ef9ea9 100644 --- a/FFmpegArgs.Filters.Autogen/SmptebarsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SmptebarsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SmptebarsFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SmptehdbarsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SmptehdbarsFilterGen.g.cs index 93b4a108..1776b4c9 100644 --- a/FFmpegArgs.Filters.Autogen/SmptehdbarsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SmptehdbarsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SmptehdbarsFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SobelFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SobelFilterGen.g.cs index b3fd7382..a001aefa 100644 --- a/FFmpegArgs.Filters.Autogen/SobelFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SobelFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SobelFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/Sobel_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Sobel_openclFilterGen.g.cs index 1b29acda..cd101863 100644 --- a/FFmpegArgs.Filters.Autogen/Sobel_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Sobel_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Sobel_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SpeechnormFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SpeechnormFilterGen.g.cs index cad5cf5d..3412e771 100644 --- a/FFmpegArgs.Filters.Autogen/SpeechnormFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SpeechnormFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SpeechnormFilterGen : AudioToAudioFilter,ICommandSupport @@ -41,11 +30,11 @@ public class SpeechnormFilterGen : AudioToAudioFilter,ICommandSupport /// /// set channels to filter (default 0xffffffffffffffff) /// -public SpeechnormFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public SpeechnormFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// set channels to filter (default 0xffffffffffffffff) /// -public SpeechnormFilterGen h(ChannelLayout h) => this.SetOption("h",h.GetAttribute().Name); +public SpeechnormFilterGen h(ChannelLayout h) => this.SetOption("h",h.GetEnumAttribute().Name); /// /// set inverted filtering (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/SppFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SppFilterGen.g.cs index 854158e5..6fcf28e5 100644 --- a/FFmpegArgs.Filters.Autogen/SppFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SppFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SppFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport @@ -25,7 +14,7 @@ public class SppFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport /// /// set thresholding mode (from 0 to 1) (default hard) /// -public SppFilterGen mode(SppFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public SppFilterGen mode(SppFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// use B-frames' QP (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/SrFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SrFilterGen.g.cs index b3e6d6bf..93ebfc2f 100644 --- a/FFmpegArgs.Filters.Autogen/SrFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SrFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SrFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class SrFilterGen : ImageToImageFilter /// /// DNN backend used for model execution (from 0 to 1) (default native) /// -public SrFilterGen dnn_backend(SrFilterGenDnn_backend dnn_backend) => this.SetOption("dnn_backend", dnn_backend.GetAttribute().Name); +public SrFilterGen dnn_backend(SrFilterGenDnn_backend dnn_backend) => this.SetOption("dnn_backend", dnn_backend.GetEnumAttribute().Name); /// /// scale factor for SRCNN model (from 2 to 4) (default 2) /// diff --git a/FFmpegArgs.Filters.Autogen/SsimFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SsimFilterGen.g.cs index 28f0a8f0..f9861dc5 100644 --- a/FFmpegArgs.Filters.Autogen/SsimFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SsimFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SsimFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/Stereo3dFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Stereo3dFilterGen.g.cs index e27789cc..e80130f5 100644 --- a/FFmpegArgs.Filters.Autogen/Stereo3dFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Stereo3dFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Stereo3dFilterGen : ImageToImageFilter,ISliceThreading @@ -17,11 +6,11 @@ public class Stereo3dFilterGen : ImageToImageFilter,ISliceThreading /// /// set input format (from 16 to 32) (default sbsl) /// -public Stereo3dFilterGen _in(Stereo3dFilterGenIn _in) => this.SetOption("in", _in.GetAttribute().Name); +public Stereo3dFilterGen _in(Stereo3dFilterGenIn _in) => this.SetOption("in", _in.GetEnumAttribute().Name); /// /// set output format (from 0 to 32) (default arcd) /// -public Stereo3dFilterGen _out(Stereo3dFilterGenOut _out) => this.SetOption("out", _out.GetAttribute().Name); +public Stereo3dFilterGen _out(Stereo3dFilterGenOut _out) => this.SetOption("out", _out.GetEnumAttribute().Name); } public static class Stereo3dFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/StereotoolsFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/StereotoolsFilterGen.g.cs index 20add43a..7d6c7082 100644 --- a/FFmpegArgs.Filters.Autogen/StereotoolsFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/StereotoolsFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class StereotoolsFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport @@ -53,7 +42,7 @@ public class StereotoolsFilterGen : AudioToAudioFilter,ITimelineSupport,ICommand /// /// set stereo mode (from 0 to 10) (default lr>lr) /// -public StereotoolsFilterGen mode(StereotoolsFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public StereotoolsFilterGen mode(StereotoolsFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set side level (from 0.015625 to 64) (default 1) /// @@ -89,11 +78,11 @@ public class StereotoolsFilterGen : AudioToAudioFilter,ITimelineSupport,ICommand /// /// set balance in mode (from 0 to 2) (default balance) /// -public StereotoolsFilterGen bmode_in(StereotoolsFilterGenBmode_in bmode_in) => this.SetOption("bmode_in", bmode_in.GetAttribute().Name); +public StereotoolsFilterGen bmode_in(StereotoolsFilterGenBmode_in bmode_in) => this.SetOption("bmode_in", bmode_in.GetEnumAttribute().Name); /// /// set balance out mode (from 0 to 2) (default balance) /// -public StereotoolsFilterGen bmode_out(StereotoolsFilterGenBmode_out bmode_out) => this.SetOption("bmode_out", bmode_out.GetAttribute().Name); +public StereotoolsFilterGen bmode_out(StereotoolsFilterGenBmode_out bmode_out) => this.SetOption("bmode_out", bmode_out.GetEnumAttribute().Name); } public static class StereotoolsFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/StereowidenFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/StereowidenFilterGen.g.cs index b9c7b34d..807ffba6 100644 --- a/FFmpegArgs.Filters.Autogen/StereowidenFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/StereowidenFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class StereowidenFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/SubtitlesFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SubtitlesFilterGen.g.cs index 5884e8d7..654f54d1 100644 --- a/FFmpegArgs.Filters.Autogen/SubtitlesFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SubtitlesFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SubtitlesFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/SuperequalizerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SuperequalizerFilterGen.g.cs index 0f03c4a6..ce5729bc 100644 --- a/FFmpegArgs.Filters.Autogen/SuperequalizerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SuperequalizerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SuperequalizerFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/SurroundFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SurroundFilterGen.g.cs index 65f7f085..98b4965b 100644 --- a/FFmpegArgs.Filters.Autogen/SurroundFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SurroundFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SurroundFilterGen : AudioToAudioFilter,ISliceThreading @@ -45,7 +34,7 @@ public class SurroundFilterGen : AudioToAudioFilter,ISliceThreading /// /// set LFE channel mode (from 0 to 1) (default add) /// -public SurroundFilterGen lfe_mode(SurroundFilterGenLfe_mode lfe_mode) => this.SetOption("lfe_mode", lfe_mode.GetAttribute().Name); +public SurroundFilterGen lfe_mode(SurroundFilterGenLfe_mode lfe_mode) => this.SetOption("lfe_mode", lfe_mode.GetEnumAttribute().Name); /// /// set soundfield transform angle (from 0 to 360) (default 90) /// @@ -201,7 +190,7 @@ public class SurroundFilterGen : AudioToAudioFilter,ISliceThreading /// /// set window function (from 0 to 19) (default hann) /// -public SurroundFilterGen win_func(SurroundFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetAttribute().Name); +public SurroundFilterGen win_func(SurroundFilterGenWin_func win_func) => this.SetOption("win_func", win_func.GetEnumAttribute().Name); /// /// set window overlap (from 0 to 1) (default 0.5) /// diff --git a/FFmpegArgs.Filters.Autogen/SwaprectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SwaprectFilterGen.g.cs index 2c81e85c..86b3dbb4 100644 --- a/FFmpegArgs.Filters.Autogen/SwaprectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SwaprectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SwaprectFilterGen : ImageToImageFilter,ITimelineSupport,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/SwapuvFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/SwapuvFilterGen.g.cs index cacb72bc..76ffc44e 100644 --- a/FFmpegArgs.Filters.Autogen/SwapuvFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/SwapuvFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class SwapuvFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/TblendFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TblendFilterGen.g.cs index 6b2d6cff..73680eb6 100644 --- a/FFmpegArgs.Filters.Autogen/TblendFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TblendFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TblendFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,23 +6,23 @@ public class TblendFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadi /// /// set component #0 blend mode (from 0 to 32) (default normal) /// -public TblendFilterGen c0_mode(TblendFilterGenC0_mode c0_mode) => this.SetOption("c0_mode", c0_mode.GetAttribute().Name); +public TblendFilterGen c0_mode(TblendFilterGenC0_mode c0_mode) => this.SetOption("c0_mode", c0_mode.GetEnumAttribute().Name); /// /// set component #1 blend mode (from 0 to 32) (default normal) /// -public TblendFilterGen c1_mode(TblendFilterGenC1_mode c1_mode) => this.SetOption("c1_mode", c1_mode.GetAttribute().Name); +public TblendFilterGen c1_mode(TblendFilterGenC1_mode c1_mode) => this.SetOption("c1_mode", c1_mode.GetEnumAttribute().Name); /// /// set component #2 blend mode (from 0 to 32) (default normal) /// -public TblendFilterGen c2_mode(TblendFilterGenC2_mode c2_mode) => this.SetOption("c2_mode", c2_mode.GetAttribute().Name); +public TblendFilterGen c2_mode(TblendFilterGenC2_mode c2_mode) => this.SetOption("c2_mode", c2_mode.GetEnumAttribute().Name); /// /// set component #3 blend mode (from 0 to 32) (default normal) /// -public TblendFilterGen c3_mode(TblendFilterGenC3_mode c3_mode) => this.SetOption("c3_mode", c3_mode.GetAttribute().Name); +public TblendFilterGen c3_mode(TblendFilterGenC3_mode c3_mode) => this.SetOption("c3_mode", c3_mode.GetEnumAttribute().Name); /// /// set blend mode for all components (from -1 to 32) (default -1) /// -public TblendFilterGen all_mode(TblendFilterGenAll_mode all_mode) => this.SetOption("all_mode", all_mode.GetAttribute().Name); +public TblendFilterGen all_mode(TblendFilterGenAll_mode all_mode) => this.SetOption("all_mode", all_mode.GetEnumAttribute().Name); /// /// set color component #0 expression /// diff --git a/FFmpegArgs.Filters.Autogen/TelecineFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TelecineFilterGen.g.cs index f50734e7..0edf894a 100644 --- a/FFmpegArgs.Filters.Autogen/TelecineFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TelecineFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TelecineFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class TelecineFilterGen : ImageToImageFilter /// /// select first field (from 0 to 1) (default top) /// -public TelecineFilterGen first_field(TelecineFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetAttribute().Name); +public TelecineFilterGen first_field(TelecineFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetEnumAttribute().Name); /// /// pattern that describe for how many fields a frame is to be displayed (default "23") /// diff --git a/FFmpegArgs.Filters.Autogen/Testsrc2FilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Testsrc2FilterGen.g.cs index 449a4159..4f603dd9 100644 --- a/FFmpegArgs.Filters.Autogen/Testsrc2FilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Testsrc2FilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Testsrc2FilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/TestsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TestsrcFilterGen.g.cs index b479ecb1..e70a3611 100644 --- a/FFmpegArgs.Filters.Autogen/TestsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TestsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TestsrcFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ThistogramFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ThistogramFilterGen.g.cs index 407fbe1f..ee511ddd 100644 --- a/FFmpegArgs.Filters.Autogen/ThistogramFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ThistogramFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ThistogramFilterGen : ImageToImageFilter @@ -21,15 +10,15 @@ public class ThistogramFilterGen : ImageToImageFilter /// /// set display mode (from 0 to 2) (default stack) /// -public ThistogramFilterGen display_mode(ThistogramFilterGenDisplay_mode display_mode) => this.SetOption("display_mode", display_mode.GetAttribute().Name); +public ThistogramFilterGen display_mode(ThistogramFilterGenDisplay_mode display_mode) => this.SetOption("display_mode", display_mode.GetEnumAttribute().Name); /// /// set levels mode (from 0 to 1) (default linear) /// -public ThistogramFilterGen levels_mode(ThistogramFilterGenLevels_mode levels_mode) => this.SetOption("levels_mode", levels_mode.GetAttribute().Name); +public ThistogramFilterGen levels_mode(ThistogramFilterGenLevels_mode levels_mode) => this.SetOption("levels_mode", levels_mode.GetEnumAttribute().Name); /// /// set levels mode (from 0 to 1) (default linear) /// -public ThistogramFilterGen m(ThistogramFilterGenM m) => this.SetOption("m", m.GetAttribute().Name); +public ThistogramFilterGen m(ThistogramFilterGenM m) => this.SetOption("m", m.GetEnumAttribute().Name); /// /// set color components to display (from 1 to 15) (default 7) /// @@ -49,7 +38,7 @@ public class ThistogramFilterGen : ImageToImageFilter /// /// set slide mode (from 0 to 4) (default replace) /// -public ThistogramFilterGen slide(ThistogramFilterGenSlide slide) => this.SetOption("slide", slide.GetAttribute().Name); +public ThistogramFilterGen slide(ThistogramFilterGenSlide slide) => this.SetOption("slide", slide.GetEnumAttribute().Name); } public static class ThistogramFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/ThresholdFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ThresholdFilterGen.g.cs index c548e4ec..df951345 100644 --- a/FFmpegArgs.Filters.Autogen/ThresholdFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ThresholdFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ThresholdFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/ThumbnailFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ThumbnailFilterGen.g.cs index e4a63df9..49e18a82 100644 --- a/FFmpegArgs.Filters.Autogen/ThumbnailFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ThumbnailFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ThumbnailFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/Thumbnail_cudaFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Thumbnail_cudaFilterGen.g.cs index aebbce0b..e299f0cb 100644 --- a/FFmpegArgs.Filters.Autogen/Thumbnail_cudaFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Thumbnail_cudaFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Thumbnail_cudaFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/TileFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TileFilterGen.g.cs index 362ff3d7..afedaf66 100644 --- a/FFmpegArgs.Filters.Autogen/TileFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TileFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TileFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/TinterlaceFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TinterlaceFilterGen.g.cs index a25f4c17..01055bbd 100644 --- a/FFmpegArgs.Filters.Autogen/TinterlaceFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TinterlaceFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TinterlaceFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class TinterlaceFilterGen : ImageToImageFilter /// /// select interlace mode (from 0 to 7) (default merge) /// -public TinterlaceFilterGen mode(TinterlaceFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public TinterlaceFilterGen mode(TinterlaceFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); } public static class TinterlaceFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Tlut2FilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Tlut2FilterGen.g.cs index 8aaa543d..523b9b43 100644 --- a/FFmpegArgs.Filters.Autogen/Tlut2FilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Tlut2FilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Tlut2FilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/TmedianFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TmedianFilterGen.g.cs index 74374a79..e77204bb 100644 --- a/FFmpegArgs.Filters.Autogen/TmedianFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TmedianFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TmedianFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/TmidequalizerFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TmidequalizerFilterGen.g.cs index 4ae7f157..3cf961c3 100644 --- a/FFmpegArgs.Filters.Autogen/TmidequalizerFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TmidequalizerFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TmidequalizerFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/TmixFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TmixFilterGen.g.cs index dfac3aff..91292405 100644 --- a/FFmpegArgs.Filters.Autogen/TmixFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TmixFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TmixFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/TonemapFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TonemapFilterGen.g.cs index 1c6644f6..d5152f58 100644 --- a/FFmpegArgs.Filters.Autogen/TonemapFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TonemapFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TonemapFilterGen : ImageToImageFilter,ISliceThreading @@ -17,7 +6,7 @@ public class TonemapFilterGen : ImageToImageFilter,ISliceThreading /// /// tonemap algorithm selection (from 0 to 6) (default none) /// -public TonemapFilterGen tonemap(TonemapFilterGenTonemap tonemap) => this.SetOption("tonemap", tonemap.GetAttribute().Name); +public TonemapFilterGen tonemap(TonemapFilterGenTonemap tonemap) => this.SetOption("tonemap", tonemap.GetEnumAttribute().Name); /// /// tonemap parameter (from DBL_MIN to DBL_MAX) (default nan) /// diff --git a/FFmpegArgs.Filters.Autogen/Tonemap_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Tonemap_openclFilterGen.g.cs index 738e1ad4..87dfc56a 100644 --- a/FFmpegArgs.Filters.Autogen/Tonemap_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Tonemap_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Tonemap_openclFilterGen : ImageToImageFilter @@ -17,23 +6,23 @@ public class Tonemap_openclFilterGen : ImageToImageFilter /// /// tonemap algorithm selection (from 0 to 6) (default none) /// -public Tonemap_openclFilterGen tonemap(Tonemap_openclFilterGenTonemap tonemap) => this.SetOption("tonemap", tonemap.GetAttribute().Name); +public Tonemap_openclFilterGen tonemap(Tonemap_openclFilterGenTonemap tonemap) => this.SetOption("tonemap", tonemap.GetEnumAttribute().Name); /// /// set transfer characteristic (from -1 to INT_MAX) (default bt709) /// -public Tonemap_openclFilterGen transfer(Tonemap_openclFilterGenTransfer transfer) => this.SetOption("transfer", transfer.GetAttribute().Name); +public Tonemap_openclFilterGen transfer(Tonemap_openclFilterGenTransfer transfer) => this.SetOption("transfer", transfer.GetEnumAttribute().Name); /// /// set colorspace matrix (from -1 to INT_MAX) (default -1) /// -public Tonemap_openclFilterGen matrix(Tonemap_openclFilterGenMatrix matrix) => this.SetOption("matrix", matrix.GetAttribute().Name); +public Tonemap_openclFilterGen matrix(Tonemap_openclFilterGenMatrix matrix) => this.SetOption("matrix", matrix.GetEnumAttribute().Name); /// /// set color primaries (from -1 to INT_MAX) (default -1) /// -public Tonemap_openclFilterGen primaries(Tonemap_openclFilterGenPrimaries primaries) => this.SetOption("primaries", primaries.GetAttribute().Name); +public Tonemap_openclFilterGen primaries(Tonemap_openclFilterGenPrimaries primaries) => this.SetOption("primaries", primaries.GetEnumAttribute().Name); /// /// set color range (from -1 to INT_MAX) (default -1) /// -public Tonemap_openclFilterGen range(Tonemap_openclFilterGenRange range) => this.SetOption("range", range.GetAttribute().Name); +public Tonemap_openclFilterGen range(Tonemap_openclFilterGenRange range) => this.SetOption("range", range.GetEnumAttribute().Name); /// /// output pixel format (default none) /// diff --git a/FFmpegArgs.Filters.Autogen/TpadFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TpadFilterGen.g.cs index 7887bd3c..e16716bc 100644 --- a/FFmpegArgs.Filters.Autogen/TpadFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TpadFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TpadFilterGen : ImageToImageFilter @@ -25,11 +14,11 @@ public class TpadFilterGen : ImageToImageFilter /// /// set the mode of added frames to start (from 0 to 1) (default add) /// -public TpadFilterGen start_mode(TpadFilterGenStart_mode start_mode) => this.SetOption("start_mode", start_mode.GetAttribute().Name); +public TpadFilterGen start_mode(TpadFilterGenStart_mode start_mode) => this.SetOption("start_mode", start_mode.GetEnumAttribute().Name); /// /// set the mode of added frames to end (from 0 to 1) (default add) /// -public TpadFilterGen stop_mode(TpadFilterGenStop_mode stop_mode) => this.SetOption("stop_mode", stop_mode.GetAttribute().Name); +public TpadFilterGen stop_mode(TpadFilterGenStop_mode stop_mode) => this.SetOption("stop_mode", stop_mode.GetEnumAttribute().Name); /// /// set the duration to delay input (default 0) /// diff --git a/FFmpegArgs.Filters.Autogen/TransposeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TransposeFilterGen.g.cs index 86385cd0..c8183eec 100644 --- a/FFmpegArgs.Filters.Autogen/TransposeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TransposeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TransposeFilterGen : ImageToImageFilter,ISliceThreading @@ -17,11 +6,11 @@ public class TransposeFilterGen : ImageToImageFilter,ISliceThreading /// /// set transpose direction (from 0 to 7) (default cclock_flip) /// -public TransposeFilterGen dir(TransposeFilterGenDir dir) => this.SetOption("dir", dir.GetAttribute().Name); +public TransposeFilterGen dir(TransposeFilterGenDir dir) => this.SetOption("dir", dir.GetEnumAttribute().Name); /// /// do not apply transposition if the input matches the specified geometry (from 0 to INT_MAX) (default none) /// -public TransposeFilterGen passthrough(TransposeFilterGenPassthrough passthrough) => this.SetOption("passthrough", passthrough.GetAttribute().Name); +public TransposeFilterGen passthrough(TransposeFilterGenPassthrough passthrough) => this.SetOption("passthrough", passthrough.GetEnumAttribute().Name); } public static class TransposeFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Transpose_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Transpose_openclFilterGen.g.cs index 0ee1f768..4e0b0c32 100644 --- a/FFmpegArgs.Filters.Autogen/Transpose_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Transpose_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Transpose_openclFilterGen : ImageToImageFilter @@ -17,11 +6,11 @@ public class Transpose_openclFilterGen : ImageToImageFilter /// /// set transpose direction (from 0 to 3) (default cclock_flip) /// -public Transpose_openclFilterGen dir(Transpose_openclFilterGenDir dir) => this.SetOption("dir", dir.GetAttribute().Name); +public Transpose_openclFilterGen dir(Transpose_openclFilterGenDir dir) => this.SetOption("dir", dir.GetEnumAttribute().Name); /// /// do not apply transposition if the input matches the specified geometry (from 0 to INT_MAX) (default none) /// -public Transpose_openclFilterGen passthrough(Transpose_openclFilterGenPassthrough passthrough) => this.SetOption("passthrough", passthrough.GetAttribute().Name); +public Transpose_openclFilterGen passthrough(Transpose_openclFilterGenPassthrough passthrough) => this.SetOption("passthrough", passthrough.GetEnumAttribute().Name); } public static class Transpose_openclFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/TrebleFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TrebleFilterGen.g.cs index 907140a6..3175bbf6 100644 --- a/FFmpegArgs.Filters.Autogen/TrebleFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TrebleFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TrebleFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -21,11 +10,11 @@ public class TrebleFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set filter-width type (from 1 to 5) (default q) /// -public TrebleFilterGen width_type(TrebleFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetAttribute().Name); +public TrebleFilterGen width_type(TrebleFilterGenWidth_type width_type) => this.SetOption("width_type", width_type.GetEnumAttribute().Name); /// /// set filter-width type (from 1 to 5) (default q) /// -public TrebleFilterGen t(TrebleFilterGenT t) => this.SetOption("t", t.GetAttribute().Name); +public TrebleFilterGen t(TrebleFilterGenT t) => this.SetOption("t", t.GetEnumAttribute().Name); /// /// set shelf transition steep (from 0 to 99999) (default 0.5) /// @@ -45,7 +34,7 @@ public class TrebleFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set channels to filter (default 0xffffffffffffffff) /// -public TrebleFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetAttribute().Name); +public TrebleFilterGen channels(ChannelLayout channels) => this.SetOption("channels",channels.GetEnumAttribute().Name); /// /// normalize coefficients (default false) /// @@ -53,19 +42,19 @@ public class TrebleFilterGen : AudioToAudioFilter,ITimelineSupport,ISliceThreadi /// /// set transform type (from 0 to 3) (default di) /// -public TrebleFilterGen transform(TrebleFilterGenTransform transform) => this.SetOption("transform", transform.GetAttribute().Name); +public TrebleFilterGen transform(TrebleFilterGenTransform transform) => this.SetOption("transform", transform.GetEnumAttribute().Name); /// /// set transform type (from 0 to 3) (default di) /// -public TrebleFilterGen a(TrebleFilterGenA a) => this.SetOption("a", a.GetAttribute().Name); +public TrebleFilterGen a(TrebleFilterGenA a) => this.SetOption("a", a.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public TrebleFilterGen precision(TrebleFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public TrebleFilterGen precision(TrebleFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// set filtering precision (from -1 to 3) (default auto) /// -public TrebleFilterGen r(TrebleFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public TrebleFilterGen r(TrebleFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); } public static class TrebleFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/TremoloFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TremoloFilterGen.g.cs index a6b2c6dc..c271b637 100644 --- a/FFmpegArgs.Filters.Autogen/TremoloFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TremoloFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TremoloFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/TrimFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/TrimFilterGen.g.cs index d954c3bd..3cbfaf5d 100644 --- a/FFmpegArgs.Filters.Autogen/TrimFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/TrimFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class TrimFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/UnsharpFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/UnsharpFilterGen.g.cs index 87a12e88..71beefb0 100644 --- a/FFmpegArgs.Filters.Autogen/UnsharpFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/UnsharpFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class UnsharpFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/Unsharp_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Unsharp_openclFilterGen.g.cs index 75b8aea8..c929b630 100644 --- a/FFmpegArgs.Filters.Autogen/Unsharp_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Unsharp_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Unsharp_openclFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/UntileFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/UntileFilterGen.g.cs index 038913e2..183f38a6 100644 --- a/FFmpegArgs.Filters.Autogen/UntileFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/UntileFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class UntileFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/UsppFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/UsppFilterGen.g.cs index a8e2fbf3..d6f4878c 100644 --- a/FFmpegArgs.Filters.Autogen/UsppFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/UsppFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class UsppFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/V360FilterGen.g.cs b/FFmpegArgs.Filters.Autogen/V360FilterGen.g.cs index 33489612..4ce772ba 100644 --- a/FFmpegArgs.Filters.Autogen/V360FilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/V360FilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class V360FilterGen : ImageToImageFilter,ISliceThreading,ICommandSupport @@ -17,15 +6,15 @@ public class V360FilterGen : ImageToImageFilter,ISliceThreading,ICommandSupport /// /// set input projection (from 0 to 23) (default e) /// -public V360FilterGen input(V360FilterGenInput input) => this.SetOption("input", input.GetAttribute().Name); +public V360FilterGen input(V360FilterGenInput input) => this.SetOption("input", input.GetEnumAttribute().Name); /// /// set output projection (from 0 to 23) (default c3x2) /// -public V360FilterGen output(V360FilterGenOutput output) => this.SetOption("output", output.GetAttribute().Name); +public V360FilterGen output(V360FilterGenOutput output) => this.SetOption("output", output.GetEnumAttribute().Name); /// /// set interpolation method (from 0 to 7) (default line) /// -public V360FilterGen interp(V360FilterGenInterp interp) => this.SetOption("interp", interp.GetAttribute().Name); +public V360FilterGen interp(V360FilterGenInterp interp) => this.SetOption("interp", interp.GetEnumAttribute().Name); /// /// output width (from 0 to 32767) (default 0) /// @@ -37,11 +26,11 @@ public class V360FilterGen : ImageToImageFilter,ISliceThreading,ICommandSupport /// /// input stereo format (from 0 to 2) (default 2d) /// -public V360FilterGen in_stereo(V360FilterGenIn_stereo in_stereo) => this.SetOption("in_stereo", in_stereo.GetAttribute().Name); +public V360FilterGen in_stereo(V360FilterGenIn_stereo in_stereo) => this.SetOption("in_stereo", in_stereo.GetEnumAttribute().Name); /// /// output stereo format (from 0 to 2) (default 2d) /// -public V360FilterGen out_stereo(V360FilterGenOut_stereo out_stereo) => this.SetOption("out_stereo", out_stereo.GetAttribute().Name); +public V360FilterGen out_stereo(V360FilterGenOut_stereo out_stereo) => this.SetOption("out_stereo", out_stereo.GetEnumAttribute().Name); /// /// input cubemap face order (default "rludfb") /// diff --git a/FFmpegArgs.Filters.Autogen/VaguedenoiserFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VaguedenoiserFilterGen.g.cs index ca130a15..aab49048 100644 --- a/FFmpegArgs.Filters.Autogen/VaguedenoiserFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VaguedenoiserFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VaguedenoiserFilterGen : ImageToImageFilter,ITimelineSupport @@ -21,7 +10,7 @@ public class VaguedenoiserFilterGen : ImageToImageFilter,ITimelineSupport /// /// set filtering method (from 0 to 2) (default garrote) /// -public VaguedenoiserFilterGen method(VaguedenoiserFilterGenMethod method) => this.SetOption("method", method.GetAttribute().Name); +public VaguedenoiserFilterGen method(VaguedenoiserFilterGenMethod method) => this.SetOption("method", method.GetEnumAttribute().Name); /// /// set number of steps (from 1 to 32) (default 6) /// @@ -37,7 +26,7 @@ public class VaguedenoiserFilterGen : ImageToImageFilter,ITimelineSupport /// /// set threshold type (from 0 to 1) (default universal) /// -public VaguedenoiserFilterGen type(VaguedenoiserFilterGenType type) => this.SetOption("type", type.GetAttribute().Name); +public VaguedenoiserFilterGen type(VaguedenoiserFilterGenType type) => this.SetOption("type", type.GetEnumAttribute().Name); } public static class VaguedenoiserFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/VectorscopeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VectorscopeFilterGen.g.cs index 6d4b7dde..182aa924 100644 --- a/FFmpegArgs.Filters.Autogen/VectorscopeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VectorscopeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VectorscopeFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class VectorscopeFilterGen : ImageToImageFilter /// /// set vectorscope mode (from 0 to 5) (default gray) /// -public VectorscopeFilterGen mode(VectorscopeFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public VectorscopeFilterGen mode(VectorscopeFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set color component on X axis (from 0 to 2) (default 1) /// @@ -33,11 +22,11 @@ public class VectorscopeFilterGen : ImageToImageFilter /// /// set envelope (from 0 to 3) (default none) /// -public VectorscopeFilterGen envelope(VectorscopeFilterGenEnvelope envelope) => this.SetOption("envelope", envelope.GetAttribute().Name); +public VectorscopeFilterGen envelope(VectorscopeFilterGenEnvelope envelope) => this.SetOption("envelope", envelope.GetEnumAttribute().Name); /// /// set graticule (from 0 to 3) (default none) /// -public VectorscopeFilterGen graticule(VectorscopeFilterGenGraticule graticule) => this.SetOption("graticule", graticule.GetAttribute().Name); +public VectorscopeFilterGen graticule(VectorscopeFilterGenGraticule graticule) => this.SetOption("graticule", graticule.GetEnumAttribute().Name); /// /// set graticule opacity (from 0 to 1) (default 0.75) /// @@ -45,7 +34,7 @@ public class VectorscopeFilterGen : ImageToImageFilter /// /// set graticule flags (default name) /// -public VectorscopeFilterGen flags(VectorscopeFilterGenFlags flags) => this.SetOption("flags", flags.GetAttribute().Name); +public VectorscopeFilterGen flags(VectorscopeFilterGenFlags flags) => this.SetOption("flags", flags.GetEnumAttribute().Name); /// /// set background opacity (from 0 to 1) (default 0.3) /// @@ -61,7 +50,7 @@ public class VectorscopeFilterGen : ImageToImageFilter /// /// set colorspace (from 0 to 2) (default auto) /// -public VectorscopeFilterGen colorspace(VectorscopeFilterGenColorspace colorspace) => this.SetOption("colorspace", colorspace.GetAttribute().Name); +public VectorscopeFilterGen colorspace(VectorscopeFilterGenColorspace colorspace) => this.SetOption("colorspace", colorspace.GetEnumAttribute().Name); /// /// set 1st tint (from -1 to 1) (default 0) /// diff --git a/FFmpegArgs.Filters.Autogen/VflipFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VflipFilterGen.g.cs index ed220ee5..4d7ac0f7 100644 --- a/FFmpegArgs.Filters.Autogen/VflipFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VflipFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VflipFilterGen : ImageToImageFilter,ITimelineSupport diff --git a/FFmpegArgs.Filters.Autogen/VibranceFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VibranceFilterGen.g.cs index 23d78017..ae2a5218 100644 --- a/FFmpegArgs.Filters.Autogen/VibranceFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VibranceFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VibranceFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/VibratoFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VibratoFilterGen.g.cs index 145edac2..31c7a8f0 100644 --- a/FFmpegArgs.Filters.Autogen/VibratoFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VibratoFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VibratoFilterGen : AudioToAudioFilter diff --git a/FFmpegArgs.Filters.Autogen/VidstabdetectFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VidstabdetectFilterGen.g.cs index 6078b986..cb89c2b1 100644 --- a/FFmpegArgs.Filters.Autogen/VidstabdetectFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VidstabdetectFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VidstabdetectFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/VidstabtransformFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VidstabtransformFilterGen.g.cs index 3e1f6d8d..6bf799bf 100644 --- a/FFmpegArgs.Filters.Autogen/VidstabtransformFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VidstabtransformFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VidstabtransformFilterGen : ImageToImageFilter @@ -25,7 +14,7 @@ public class VidstabtransformFilterGen : ImageToImageFilter /// /// set camera path optimization algo (from 0 to 2) (default opt) /// -public VidstabtransformFilterGen optalgo(VidstabtransformFilterGenOptalgo optalgo) => this.SetOption("optalgo", optalgo.GetAttribute().Name); +public VidstabtransformFilterGen optalgo(VidstabtransformFilterGenOptalgo optalgo) => this.SetOption("optalgo", optalgo.GetEnumAttribute().Name); /// /// set maximal number of pixels to translate image (from -1 to 500) (default -1) /// @@ -37,7 +26,7 @@ public class VidstabtransformFilterGen : ImageToImageFilter /// /// set cropping mode (from 0 to 1) (default keep) /// -public VidstabtransformFilterGen crop(VidstabtransformFilterGenCrop crop) => this.SetOption("crop", crop.GetAttribute().Name); +public VidstabtransformFilterGen crop(VidstabtransformFilterGenCrop crop) => this.SetOption("crop", crop.GetEnumAttribute().Name); /// /// invert transforms (from 0 to 1) (default 0) /// @@ -61,7 +50,7 @@ public class VidstabtransformFilterGen : ImageToImageFilter /// /// set type of interpolation (from 0 to 3) (default bilinear) /// -public VidstabtransformFilterGen interpol(VidstabtransformFilterGenInterpol interpol) => this.SetOption("interpol", interpol.GetAttribute().Name); +public VidstabtransformFilterGen interpol(VidstabtransformFilterGenInterpol interpol) => this.SetOption("interpol", interpol.GetEnumAttribute().Name); /// /// enable virtual tripod mode (same as relative=0:smoothing=0) (default false) /// diff --git a/FFmpegArgs.Filters.Autogen/VifFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VifFilterGen.g.cs index 57f9bf77..9ecacb76 100644 --- a/FFmpegArgs.Filters.Autogen/VifFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VifFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/VignetteFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VignetteFilterGen.g.cs index c325565c..6ae9dbcf 100644 --- a/FFmpegArgs.Filters.Autogen/VignetteFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VignetteFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VignetteFilterGen : ImageToImageFilter,ITimelineSupport @@ -29,11 +18,11 @@ public class VignetteFilterGen : ImageToImageFilter,ITimelineSupport /// /// set forward/backward mode (from 0 to 1) (default forward) /// -public VignetteFilterGen mode(VignetteFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public VignetteFilterGen mode(VignetteFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// specify when to evaluate expressions (from 0 to 1) (default init) /// -public VignetteFilterGen eval(VignetteFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public VignetteFilterGen eval(VignetteFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); /// /// set dithering (default true) /// diff --git a/FFmpegArgs.Filters.Autogen/VmafmotionFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VmafmotionFilterGen.g.cs index f5e46e5b..15c5cbc4 100644 --- a/FFmpegArgs.Filters.Autogen/VmafmotionFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VmafmotionFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VmafmotionFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/VolumeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/VolumeFilterGen.g.cs index 1cf8ff4f..c08e33b6 100644 --- a/FFmpegArgs.Filters.Autogen/VolumeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/VolumeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class VolumeFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSupport @@ -21,15 +10,15 @@ public class VolumeFilterGen : AudioToAudioFilter,ITimelineSupport,ICommandSuppo /// /// select mathematical precision (from 0 to 2) (default float) /// -public VolumeFilterGen precision(VolumeFilterGenPrecision precision) => this.SetOption("precision", precision.GetAttribute().Name); +public VolumeFilterGen precision(VolumeFilterGenPrecision precision) => this.SetOption("precision", precision.GetEnumAttribute().Name); /// /// specify when to evaluate expressions (from 0 to 1) (default once) /// -public VolumeFilterGen eval(VolumeFilterGenEval eval) => this.SetOption("eval", eval.GetAttribute().Name); +public VolumeFilterGen eval(VolumeFilterGenEval eval) => this.SetOption("eval", eval.GetEnumAttribute().Name); /// /// Apply replaygain side data when present (from 0 to 3) (default drop) /// -public VolumeFilterGen replaygain(VolumeFilterGenReplaygain replaygain) => this.SetOption("replaygain", replaygain.GetAttribute().Name); +public VolumeFilterGen replaygain(VolumeFilterGenReplaygain replaygain) => this.SetOption("replaygain", replaygain.GetEnumAttribute().Name); /// /// Apply replaygain pre-amplification (from -15 to 15) (default 0) /// diff --git a/FFmpegArgs.Filters.Autogen/Vpp_qsvFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Vpp_qsvFilterGen.g.cs index 75a38a08..c8656d4f 100644 --- a/FFmpegArgs.Filters.Autogen/Vpp_qsvFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Vpp_qsvFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Vpp_qsvFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class Vpp_qsvFilterGen : ImageToImageFilter /// /// deinterlace mode: 0=off, 1=bob, 2=advanced (from 0 to 2) (default 0) /// -public Vpp_qsvFilterGen deinterlace(Vpp_qsvFilterGenDeinterlace deinterlace) => this.SetOption("deinterlace", deinterlace.GetAttribute().Name); +public Vpp_qsvFilterGen deinterlace(Vpp_qsvFilterGenDeinterlace deinterlace) => this.SetOption("deinterlace", deinterlace.GetEnumAttribute().Name); /// /// denoise level [0, 100] (from 0 to 100) (default 0) /// @@ -53,7 +42,7 @@ public class Vpp_qsvFilterGen : ImageToImageFilter /// /// set transpose direction (from -1 to 6) (default -1) /// -public Vpp_qsvFilterGen transpose(Vpp_qsvFilterGenTranspose transpose) => this.SetOption("transpose", transpose.GetAttribute().Name); +public Vpp_qsvFilterGen transpose(Vpp_qsvFilterGenTranspose transpose) => this.SetOption("transpose", transpose.GetEnumAttribute().Name); /// /// set the width crop area expression (default "iw") /// diff --git a/FFmpegArgs.Filters.Autogen/W3fdifFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/W3fdifFilterGen.g.cs index c2747235..20a27edd 100644 --- a/FFmpegArgs.Filters.Autogen/W3fdifFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/W3fdifFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class W3fdifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport @@ -17,19 +6,19 @@ public class W3fdifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadi /// /// specify the filter (from 0 to 1) (default complex) /// -public W3fdifFilterGen filter(W3fdifFilterGenFilter filter) => this.SetOption("filter", filter.GetAttribute().Name); +public W3fdifFilterGen filter(W3fdifFilterGenFilter filter) => this.SetOption("filter", filter.GetEnumAttribute().Name); /// /// specify the interlacing mode (from 0 to 1) (default field) /// -public W3fdifFilterGen mode(W3fdifFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public W3fdifFilterGen mode(W3fdifFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// specify the assumed picture field parity (from -1 to 1) (default auto) /// -public W3fdifFilterGen parity(W3fdifFilterGenParity parity) => this.SetOption("parity", parity.GetAttribute().Name); +public W3fdifFilterGen parity(W3fdifFilterGenParity parity) => this.SetOption("parity", parity.GetEnumAttribute().Name); /// /// specify which frames to deinterlace (from 0 to 1) (default all) /// -public W3fdifFilterGen deint(W3fdifFilterGenDeint deint) => this.SetOption("deint", deint.GetAttribute().Name); +public W3fdifFilterGen deint(W3fdifFilterGenDeint deint) => this.SetOption("deint", deint.GetEnumAttribute().Name); } public static class W3fdifFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/WaveformFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/WaveformFilterGen.g.cs index c49db7c5..aadb415b 100644 --- a/FFmpegArgs.Filters.Autogen/WaveformFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/WaveformFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class WaveformFilterGen : ImageToImageFilter,ISliceThreading @@ -17,7 +6,7 @@ public class WaveformFilterGen : ImageToImageFilter,ISliceThreading /// /// set mode (from 0 to 1) (default column) /// -public WaveformFilterGen mode(WaveformFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public WaveformFilterGen mode(WaveformFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// set intensity (from 0 to 1) (default 0.04) /// @@ -33,7 +22,7 @@ public class WaveformFilterGen : ImageToImageFilter,ISliceThreading /// /// set display mode (from 0 to 2) (default stack) /// -public WaveformFilterGen display(WaveformFilterGenDisplay display) => this.SetOption("display", display.GetAttribute().Name); +public WaveformFilterGen display(WaveformFilterGenDisplay display) => this.SetOption("display", display.GetEnumAttribute().Name); /// /// set components to display (from 1 to 15) (default 1) /// @@ -41,15 +30,15 @@ public class WaveformFilterGen : ImageToImageFilter,ISliceThreading /// /// set envelope to display (from 0 to 3) (default none) /// -public WaveformFilterGen envelope(WaveformFilterGenEnvelope envelope) => this.SetOption("envelope", envelope.GetAttribute().Name); +public WaveformFilterGen envelope(WaveformFilterGenEnvelope envelope) => this.SetOption("envelope", envelope.GetEnumAttribute().Name); /// /// set filter (from 0 to 7) (default lowpass) /// -public WaveformFilterGen filter(WaveformFilterGenFilter filter) => this.SetOption("filter", filter.GetAttribute().Name); +public WaveformFilterGen filter(WaveformFilterGenFilter filter) => this.SetOption("filter", filter.GetEnumAttribute().Name); /// /// set graticule (from 0 to 3) (default none) /// -public WaveformFilterGen graticule(WaveformFilterGenGraticule graticule) => this.SetOption("graticule", graticule.GetAttribute().Name); +public WaveformFilterGen graticule(WaveformFilterGenGraticule graticule) => this.SetOption("graticule", graticule.GetEnumAttribute().Name); /// /// set graticule opacity (from 0 to 1) (default 0.75) /// @@ -57,11 +46,11 @@ public class WaveformFilterGen : ImageToImageFilter,ISliceThreading /// /// set graticule flags (default numbers) /// -public WaveformFilterGen flags(WaveformFilterGenFlags flags) => this.SetOption("flags", flags.GetAttribute().Name); +public WaveformFilterGen flags(WaveformFilterGenFlags flags) => this.SetOption("flags", flags.GetEnumAttribute().Name); /// /// set scale (from 0 to 2) (default digital) /// -public WaveformFilterGen scale(WaveformFilterGenScale scale) => this.SetOption("scale", scale.GetAttribute().Name); +public WaveformFilterGen scale(WaveformFilterGenScale scale) => this.SetOption("scale", scale.GetEnumAttribute().Name); /// /// set background opacity (from 0 to 1) (default 0.75) /// diff --git a/FFmpegArgs.Filters.Autogen/WeaveFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/WeaveFilterGen.g.cs index 3bc2cd9b..ed949c70 100644 --- a/FFmpegArgs.Filters.Autogen/WeaveFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/WeaveFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class WeaveFilterGen : ImageToImageFilter,ISliceThreading @@ -17,7 +6,7 @@ public class WeaveFilterGen : ImageToImageFilter,ISliceThreading /// /// set first field (from 0 to 1) (default top) /// -public WeaveFilterGen first_field(WeaveFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetAttribute().Name); +public WeaveFilterGen first_field(WeaveFilterGenFirst_field first_field) => this.SetOption("first_field", first_field.GetEnumAttribute().Name); } public static class WeaveFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/XbrFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/XbrFilterGen.g.cs index da5c4ad7..a9edefc7 100644 --- a/FFmpegArgs.Filters.Autogen/XbrFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/XbrFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class XbrFilterGen : ImageToImageFilter,ISliceThreading diff --git a/FFmpegArgs.Filters.Autogen/XfadeFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/XfadeFilterGen.g.cs index 79432399..2ad68fc3 100644 --- a/FFmpegArgs.Filters.Autogen/XfadeFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/XfadeFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class XfadeFilterGen : ImageToImageFilter,ISliceThreading @@ -17,7 +6,7 @@ public class XfadeFilterGen : ImageToImageFilter,ISliceThreading /// /// set cross fade transition (from -1 to 42) (default fade) /// -public XfadeFilterGen transition(XfadeFilterGenTransition transition) => this.SetOption("transition", transition.GetAttribute().Name); +public XfadeFilterGen transition(XfadeFilterGenTransition transition) => this.SetOption("transition", transition.GetEnumAttribute().Name); /// /// set cross fade duration (default 1) /// diff --git a/FFmpegArgs.Filters.Autogen/Xfade_openclFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Xfade_openclFilterGen.g.cs index f9ebb8af..fbf4f5d6 100644 --- a/FFmpegArgs.Filters.Autogen/Xfade_openclFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Xfade_openclFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Xfade_openclFilterGen : ImageToImageFilter @@ -17,7 +6,7 @@ public class Xfade_openclFilterGen : ImageToImageFilter /// /// set cross fade transition (from 0 to 9) (default fade) /// -public Xfade_openclFilterGen transition(Xfade_openclFilterGenTransition transition) => this.SetOption("transition", transition.GetAttribute().Name); +public Xfade_openclFilterGen transition(Xfade_openclFilterGenTransition transition) => this.SetOption("transition", transition.GetEnumAttribute().Name); /// /// set OpenCL program source file for custom transition /// diff --git a/FFmpegArgs.Filters.Autogen/YadifFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/YadifFilterGen.g.cs index 85a136e4..5972b5d8 100644 --- a/FFmpegArgs.Filters.Autogen/YadifFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/YadifFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class YadifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading @@ -17,15 +6,15 @@ public class YadifFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreadin /// /// specify the interlacing mode (from 0 to 3) (default send_frame) /// -public YadifFilterGen mode(YadifFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public YadifFilterGen mode(YadifFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// specify the assumed picture field parity (from -1 to 1) (default auto) /// -public YadifFilterGen parity(YadifFilterGenParity parity) => this.SetOption("parity", parity.GetAttribute().Name); +public YadifFilterGen parity(YadifFilterGenParity parity) => this.SetOption("parity", parity.GetEnumAttribute().Name); /// /// specify which frames to deinterlace (from 0 to 1) (default all) /// -public YadifFilterGen deint(YadifFilterGenDeint deint) => this.SetOption("deint", deint.GetAttribute().Name); +public YadifFilterGen deint(YadifFilterGenDeint deint) => this.SetOption("deint", deint.GetEnumAttribute().Name); } public static class YadifFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/Yadif_cudaFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/Yadif_cudaFilterGen.g.cs index 7e462ca9..1b3a5a24 100644 --- a/FFmpegArgs.Filters.Autogen/Yadif_cudaFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/Yadif_cudaFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class Yadif_cudaFilterGen : ImageToImageFilter,ITimelineSupport @@ -17,15 +6,15 @@ public class Yadif_cudaFilterGen : ImageToImageFilter,ITimelineSupport /// /// specify the interlacing mode (from 0 to 3) (default send_frame) /// -public Yadif_cudaFilterGen mode(Yadif_cudaFilterGenMode mode) => this.SetOption("mode", mode.GetAttribute().Name); +public Yadif_cudaFilterGen mode(Yadif_cudaFilterGenMode mode) => this.SetOption("mode", mode.GetEnumAttribute().Name); /// /// specify the assumed picture field parity (from -1 to 1) (default auto) /// -public Yadif_cudaFilterGen parity(Yadif_cudaFilterGenParity parity) => this.SetOption("parity", parity.GetAttribute().Name); +public Yadif_cudaFilterGen parity(Yadif_cudaFilterGenParity parity) => this.SetOption("parity", parity.GetEnumAttribute().Name); /// /// specify which frames to deinterlace (from 0 to 1) (default all) /// -public Yadif_cudaFilterGen deint(Yadif_cudaFilterGenDeint deint) => this.SetOption("deint", deint.GetAttribute().Name); +public Yadif_cudaFilterGen deint(Yadif_cudaFilterGenDeint deint) => this.SetOption("deint", deint.GetEnumAttribute().Name); } public static class Yadif_cudaFilterGenExtensions { diff --git a/FFmpegArgs.Filters.Autogen/YaepblurFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/YaepblurFilterGen.g.cs index 839103af..42198998 100644 --- a/FFmpegArgs.Filters.Autogen/YaepblurFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/YaepblurFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class YaepblurFilterGen : ImageToImageFilter,ITimelineSupport,ISliceThreading,ICommandSupport diff --git a/FFmpegArgs.Filters.Autogen/YuvtestsrcFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/YuvtestsrcFilterGen.g.cs index cddac7d9..03dd9e7f 100644 --- a/FFmpegArgs.Filters.Autogen/YuvtestsrcFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/YuvtestsrcFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class YuvtestsrcFilterGen : SourceImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ZoompanFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ZoompanFilterGen.g.cs index efc38cdb..3ee3b113 100644 --- a/FFmpegArgs.Filters.Autogen/ZoompanFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ZoompanFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ZoompanFilterGen : ImageToImageFilter diff --git a/FFmpegArgs.Filters.Autogen/ZscaleFilterGen.g.cs b/FFmpegArgs.Filters.Autogen/ZscaleFilterGen.g.cs index fffc162c..2bf6525f 100644 --- a/FFmpegArgs.Filters.Autogen/ZscaleFilterGen.g.cs +++ b/FFmpegArgs.Filters.Autogen/ZscaleFilterGen.g.cs @@ -1,14 +1,3 @@ -using System; -using System.Linq; -using System.Drawing; -using System.Collections.Generic; -using FFmpegArgs; -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; namespace FFmpegArgs.Filters.Autogens { public class ZscaleFilterGen : ImageToImageFilter,ICommandSupport @@ -29,83 +18,83 @@ public class ZscaleFilterGen : ImageToImageFilter,ICommandSupport /// /// set dither type (from 0 to 3) (default none) /// -public ZscaleFilterGen dither(ZscaleFilterGenDither dither) => this.SetOption("dither", dither.GetAttribute().Name); +public ZscaleFilterGen dither(ZscaleFilterGenDither dither) => this.SetOption("dither", dither.GetEnumAttribute().Name); /// /// set filter type (from 0 to 5) (default bilinear) /// -public ZscaleFilterGen filter(ZscaleFilterGenFilter filter) => this.SetOption("filter", filter.GetAttribute().Name); +public ZscaleFilterGen filter(ZscaleFilterGenFilter filter) => this.SetOption("filter", filter.GetEnumAttribute().Name); /// /// set color range (from -1 to 1) (default input) /// -public ZscaleFilterGen out_range(ZscaleFilterGenOut_range out_range) => this.SetOption("out_range", out_range.GetAttribute().Name); +public ZscaleFilterGen out_range(ZscaleFilterGenOut_range out_range) => this.SetOption("out_range", out_range.GetEnumAttribute().Name); /// /// set color range (from -1 to 1) (default input) /// -public ZscaleFilterGen range(ZscaleFilterGenRange range) => this.SetOption("range", range.GetAttribute().Name); +public ZscaleFilterGen range(ZscaleFilterGenRange range) => this.SetOption("range", range.GetEnumAttribute().Name); /// /// set color range (from -1 to 1) (default input) /// -public ZscaleFilterGen r(ZscaleFilterGenR r) => this.SetOption("r", r.GetAttribute().Name); +public ZscaleFilterGen r(ZscaleFilterGenR r) => this.SetOption("r", r.GetEnumAttribute().Name); /// /// set color primaries (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen primaries(ZscaleFilterGenPrimaries primaries) => this.SetOption("primaries", primaries.GetAttribute().Name); +public ZscaleFilterGen primaries(ZscaleFilterGenPrimaries primaries) => this.SetOption("primaries", primaries.GetEnumAttribute().Name); /// /// set transfer characteristic (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen transfer(ZscaleFilterGenTransfer transfer) => this.SetOption("transfer", transfer.GetAttribute().Name); +public ZscaleFilterGen transfer(ZscaleFilterGenTransfer transfer) => this.SetOption("transfer", transfer.GetEnumAttribute().Name); /// /// set colorspace matrix (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen matrix(ZscaleFilterGenMatrix matrix) => this.SetOption("matrix", matrix.GetAttribute().Name); +public ZscaleFilterGen matrix(ZscaleFilterGenMatrix matrix) => this.SetOption("matrix", matrix.GetEnumAttribute().Name); /// /// set input color range (from -1 to 1) (default input) /// -public ZscaleFilterGen in_range(ZscaleFilterGenIn_range in_range) => this.SetOption("in_range", in_range.GetAttribute().Name); +public ZscaleFilterGen in_range(ZscaleFilterGenIn_range in_range) => this.SetOption("in_range", in_range.GetEnumAttribute().Name); /// /// set input color range (from -1 to 1) (default input) /// -public ZscaleFilterGen rangein(ZscaleFilterGenRangein rangein) => this.SetOption("rangein", rangein.GetAttribute().Name); +public ZscaleFilterGen rangein(ZscaleFilterGenRangein rangein) => this.SetOption("rangein", rangein.GetEnumAttribute().Name); /// /// set input color range (from -1 to 1) (default input) /// -public ZscaleFilterGen rin(ZscaleFilterGenRin rin) => this.SetOption("rin", rin.GetAttribute().Name); +public ZscaleFilterGen rin(ZscaleFilterGenRin rin) => this.SetOption("rin", rin.GetEnumAttribute().Name); /// /// set input color primaries (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen primariesin(ZscaleFilterGenPrimariesin primariesin) => this.SetOption("primariesin", primariesin.GetAttribute().Name); +public ZscaleFilterGen primariesin(ZscaleFilterGenPrimariesin primariesin) => this.SetOption("primariesin", primariesin.GetEnumAttribute().Name); /// /// set input color primaries (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen pin(ZscaleFilterGenPin pin) => this.SetOption("pin", pin.GetAttribute().Name); +public ZscaleFilterGen pin(ZscaleFilterGenPin pin) => this.SetOption("pin", pin.GetEnumAttribute().Name); /// /// set input transfer characteristic (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen transferin(ZscaleFilterGenTransferin transferin) => this.SetOption("transferin", transferin.GetAttribute().Name); +public ZscaleFilterGen transferin(ZscaleFilterGenTransferin transferin) => this.SetOption("transferin", transferin.GetEnumAttribute().Name); /// /// set input transfer characteristic (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen tin(ZscaleFilterGenTin tin) => this.SetOption("tin", tin.GetAttribute().Name); +public ZscaleFilterGen tin(ZscaleFilterGenTin tin) => this.SetOption("tin", tin.GetEnumAttribute().Name); /// /// set input colorspace matrix (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen matrixin(ZscaleFilterGenMatrixin matrixin) => this.SetOption("matrixin", matrixin.GetAttribute().Name); +public ZscaleFilterGen matrixin(ZscaleFilterGenMatrixin matrixin) => this.SetOption("matrixin", matrixin.GetEnumAttribute().Name); /// /// set input colorspace matrix (from -1 to INT_MAX) (default input) /// -public ZscaleFilterGen min(ZscaleFilterGenMin min) => this.SetOption("min", min.GetAttribute().Name); +public ZscaleFilterGen min(ZscaleFilterGenMin min) => this.SetOption("min", min.GetEnumAttribute().Name); /// /// set output chroma location (from -1 to 5) (default input) /// -public ZscaleFilterGen chromal(ZscaleFilterGenChromal chromal) => this.SetOption("chromal", chromal.GetAttribute().Name); +public ZscaleFilterGen chromal(ZscaleFilterGenChromal chromal) => this.SetOption("chromal", chromal.GetEnumAttribute().Name); /// /// set input chroma location (from -1 to 5) (default input) /// -public ZscaleFilterGen chromalin(ZscaleFilterGenChromalin chromalin) => this.SetOption("chromalin", chromalin.GetAttribute().Name); +public ZscaleFilterGen chromalin(ZscaleFilterGenChromalin chromalin) => this.SetOption("chromalin", chromalin.GetEnumAttribute().Name); /// /// set input chroma location (from -1 to 5) (default input) /// -public ZscaleFilterGen cin(ZscaleFilterGenCin cin) => this.SetOption("cin", cin.GetAttribute().Name); +public ZscaleFilterGen cin(ZscaleFilterGenCin cin) => this.SetOption("cin", cin.GetEnumAttribute().Name); /// /// set nominal peak luminance (from 0 to DBL_MAX) (default nan) /// diff --git a/FFmpegArgs/Filters/AudioToAudioFilter.cs b/FFmpegArgs.Filters.Common/AudioToAudioFilter.cs similarity index 54% rename from FFmpegArgs/Filters/AudioToAudioFilter.cs rename to FFmpegArgs.Filters.Common/AudioToAudioFilter.cs index 631c9a38..d1675ca4 100644 --- a/FFmpegArgs/Filters/AudioToAudioFilter.cs +++ b/FFmpegArgs.Filters.Common/AudioToAudioFilter.cs @@ -1,19 +1,33 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { + /// + /// + /// public abstract class AudioToAudioFilter : BaseFilter { + /// + /// + /// + /// + /// protected AudioToAudioFilter(string filterName, params AudioMap[] mapsIn) : base(filterName, mapsIn) { - } - + /// + /// + /// protected void AddMapOut() => _mapsOut.Add(new AudioMap(FilterGraph, $"f_{FilterIndex}")); + /// + /// + /// + /// protected void AddMapOut(int index) => _mapsOut.Add(new AudioMap(FilterGraph, $"f_{FilterIndex}_{index}")); + /// + /// + /// + /// protected void AddMultiMapOut(int count) { for (int i = 0; i < count; i++) AddMapOut(i); diff --git a/FFmpegArgs.Filters.Common/FFmpegArgs.Executes.nuspec b/FFmpegArgs.Filters.Common/FFmpegArgs.Executes.nuspec new file mode 100644 index 00000000..ccea6bfe --- /dev/null +++ b/FFmpegArgs.Filters.Common/FFmpegArgs.Executes.nuspec @@ -0,0 +1,37 @@ + + + + + FFmpegArgs.Filters.Common + 1.2.0$build$ + Filters Common for FFmpegArgs + tqk2811 + https://github.com/tqk2811/FFmpegArgs + ffmpeg ffmpeg-command ffmpeg-script + docs\README.MD + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/FFmpegArgs.Filters.Common/FFmpegArgs.Filters.Common.csproj b/FFmpegArgs.Filters.Common/FFmpegArgs.Filters.Common.csproj new file mode 100644 index 00000000..be8f35ad --- /dev/null +++ b/FFmpegArgs.Filters.Common/FFmpegArgs.Filters.Common.csproj @@ -0,0 +1,17 @@ + + + + + 1.1.0.0 + $(MSBuildProjectName.Replace(" ", "_").Replace(".Common","")) + + + + + + + + + + + diff --git a/FFmpegArgs/Filters/FilterExtensions.cs b/FFmpegArgs.Filters.Common/FilterExtensions.cs similarity index 51% rename from FFmpegArgs/Filters/FilterExtensions.cs rename to FFmpegArgs.Filters.Common/FilterExtensions.cs index b2210069..f52dd667 100644 --- a/FFmpegArgs/Filters/FilterExtensions.cs +++ b/FFmpegArgs.Filters.Common/FilterExtensions.cs @@ -1,49 +1,60 @@ -using FFmpegArgs.Expressions; -using System; -using System.Drawing; -using System.Linq; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { + /// + /// + /// public static class FilterExtensions { + /// + /// + /// + /// + /// public static string ToFFmpegFlag(this bool flag) { return flag ? "1" : "0"; } + /// + /// + /// + /// + /// + /// public static int EnsureOdd(this int input) { if (input % 2 == 0) throw new InvalidOperationException("required input odd"); return input; } + /// + /// + /// + /// + /// + /// public static int EnsureEven(this int input) { if (input % 2 != 0) throw new InvalidOperationException("required input even"); return input; } + /// + /// + /// + /// + /// public static string ToHexStringRGB(this Color color) { return $"0x{color.R.ToString("X2")}{color.G.ToString("X2")}{color.B.ToString("X2")}"; } + /// + /// + /// + /// + /// public static string ToHexStringRGBA(this Color color) { return $"0x{color.R.ToString("X2")}{color.G.ToString("X2")}{color.B.ToString("X2")}{color.A.ToString("X2")}"; } - public static FFmpegExpression Run(this Action action, FFmpegExpression expression) - { - action?.Invoke(expression); - return expression; - } - - public static Action Expression(this string str) - => new Action(_e => _e.Check(str)); - public static TAttribute GetAttribute(this Enum value) where TAttribute : Attribute - { - var enumType = value.GetType(); - var name = Enum.GetName(enumType, value); - return enumType.GetField(name)?.GetCustomAttributes(false).OfType().SingleOrDefault(); - } } } diff --git a/FFmpegArgs/Filters/FloatRangeAttribute.cs b/FFmpegArgs.Filters.Common/FloatRangeAttribute.cs similarity index 50% rename from FFmpegArgs/Filters/FloatRangeAttribute.cs rename to FFmpegArgs.Filters.Common/FloatRangeAttribute.cs index a3b86880..9c1cf75b 100644 --- a/FFmpegArgs/Filters/FloatRangeAttribute.cs +++ b/FFmpegArgs.Filters.Common/FloatRangeAttribute.cs @@ -1,16 +1,28 @@ -using System; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { + /// + /// + /// [AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field)] public class FloatRangeAttribute : Attribute { + /// + /// + /// + /// + /// public FloatRangeAttribute(float min, float max) { this.Min = min; this.Max = max; } + /// + /// + /// public float Min { get; } + /// + /// + /// public float Max { get; } } } diff --git a/FFmpegArgs.Filters.Common/GlobalUsing.cs b/FFmpegArgs.Filters.Common/GlobalUsing.cs new file mode 100644 index 00000000..2be32991 --- /dev/null +++ b/FFmpegArgs.Filters.Common/GlobalUsing.cs @@ -0,0 +1,13 @@ +global using System; +global using System.Drawing; +global using System.Linq; +global using System.Collections; +global using System.Collections.Generic; +global using FFmpegArgs; +global using FFmpegArgs.Enums; +global using FFmpegArgs.Expressions; +global using FFmpegArgs.Attributes; +global using FFmpegArgs.Exceptions; +global using FFmpegArgs.Cores.Inputs; +global using FFmpegArgs.Cores.Filters; +global using FFmpegArgs.Cores.Maps; \ No newline at end of file diff --git a/FFmpegArgs/Filters/ICommandSupport.cs b/FFmpegArgs.Filters.Common/ICommandSupport.cs similarity index 89% rename from FFmpegArgs/Filters/ICommandSupport.cs rename to FFmpegArgs.Filters.Common/ICommandSupport.cs index 8ff442a6..bb3576d9 100644 --- a/FFmpegArgs/Filters/ICommandSupport.cs +++ b/FFmpegArgs.Filters.Common/ICommandSupport.cs @@ -1,10 +1,11 @@ namespace FFmpegArgs.Filters { + /// + /// + /// public interface ICommandSupport { - } - /// /// https://ffmpeg.org/ffmpeg-filters.html#sendcmd_002c-asendcmd
///
https://stackoverflow.com/a/49600924/5034139
@@ -12,6 +13,5 @@ public interface ICommandSupport ///
public static class CommandSupportExtension { - } } diff --git a/FFmpegArgs/Filters/IFramesync.cs b/FFmpegArgs.Filters.Common/IFramesync.cs similarity index 95% rename from FFmpegArgs/Filters/IFramesync.cs rename to FFmpegArgs.Filters.Common/IFramesync.cs index ca0d97a5..65f708c0 100644 --- a/FFmpegArgs/Filters/IFramesync.cs +++ b/FFmpegArgs.Filters.Common/IFramesync.cs @@ -1,12 +1,14 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { + /// + /// + /// public interface IFramesync { } - + /// + /// + /// public static class FramesyncExtension { /// @@ -20,7 +22,6 @@ public static class FramesyncExtension public static T EofAction(this T filter, EofAction action) where T : BaseOption, IFilter, IFramesync => filter.SetOption("eof_action", action.ToString().ToLower()); - /// /// If set to 1, force the output to terminate when the shortest input terminates. Default value is 0. /// @@ -31,7 +32,6 @@ public static T EofAction(this T filter, EofAction action) public static T Shortest(this T filter, bool flag) where T : BaseOption, IFilter, IFramesync => filter.SetOption("shortest", flag.ToFFmpegFlag()); - /// /// If set to 1, force the filter to extend the last frame of secondary streams until the end of the primary stream. A value of 0 disables this behavior. Default value is 1. /// @@ -43,7 +43,6 @@ public static T Repeatlast(this T filter, bool flag) where T : BaseOption, IFilter, IFramesync => filter.SetOption("repeatlast", flag.ToFFmpegFlag()); } - /// /// https://ffmpeg.org/ffmpeg-filters.html#framesync

/// The action to take when EOF is encountered on the secondary input; it accepts one of the following values: @@ -54,12 +53,10 @@ public enum EofAction /// Repeat the last frame (the default). ///
Repeat, - /// /// End both streams. /// EndAll, - /// /// Pass the main input through. /// diff --git a/FFmpegArgs/Filters/IResamplerOptions.cs b/FFmpegArgs.Filters.Common/IResamplerOptions.cs similarity index 56% rename from FFmpegArgs/Filters/IResamplerOptions.cs rename to FFmpegArgs.Filters.Common/IResamplerOptions.cs index 7ab03db6..354d7d00 100644 --- a/FFmpegArgs/Filters/IResamplerOptions.cs +++ b/FFmpegArgs.Filters.Common/IResamplerOptions.cs @@ -1,434 +1,201 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { /// /// https://ffmpeg.org/ffmpeg-resampler.html#Resampler-Options /// public interface IResamplerOptions : IFilter { - - } - public class ResamplerOptionsConfig - { - /// - /// Set the number of input channels. Default value is 0. Setting this value is not mandatory if the corresponding channel layout in_channel_layout is set. - /// - public int? InChannelCount { get; set; } - - /// - /// Set the number of output channels. Default value is 0. Setting this value is not mandatory if the corresponding channel layout out_channel_layout is set. - /// - public int? OutChannelCount { get; set; } - - /// - /// Set the number of used input channels. Default value is 0. This option is only used for special remapping. - /// - public int? UsedChannelCount { get; set; } - - /// - /// Set the input sample rate. Default value is 0. - /// - public int? InSampleRate { get; set; } - - /// - /// Set the output sample rate. Default value is 0. - /// - public int? OutSampleRate { get; set; } - - /// - /// Specify the input sample format. It is set by default to none. - /// - public string InSampleFmt { get; set; } - - /// - /// Specify the output sample format. It is set by default to none. - /// - public string OutSampleFmt { get; set; } - - /// - /// Set the internal sample format. Default value is none. This will automatically be chosen when it is not explicitly set. - /// - public string InternalSampleFmt { get; set; } - /// - /// Set the input/output channel layout. - /// - public ChannelLayout? InChannelLayout { get; set; } - /// - /// Set the input/output channel layout. - /// - public ChannelLayout? OutChannelLayout { get; set; } - /// - /// Set the center mix level. It is a value expressed in deciBel, and must be in the interval [-32,32]. - /// - public int? CenterMixLevel { get; set; } - /// - /// Set the surround mix level. It is a value expressed in deciBel, and must be in the interval [-32,32]. - /// - public int? SurroundMixLevel { get; set; } - /// - /// Set LFE mix into non LFE level. It is used when there is a LFE input but no LFE output. It is a value expressed in deciBel, and must be in the interval [-32,32]. - /// - public int? LfeMixLevel { get; set; } - /// - /// Set rematrix volume. Default value is 1.0. - /// - public double? RematrixVolume { get; set; } - /// - /// Set maximum output value for rematrixing. This can be used to prevent clipping vs. preventing volume reduction. A value of 1.0 prevents clipping. - /// - public double? RematrixMaxval { get; set; } - /// - /// Set flags used by the converter. Default value is 0. - /// - public ResamplerOptionsSwrFlag? SwrFlags { get; set; } - /// - /// Set the number of input channels. Default value is 0. Setting this value is not mandatory if the corresponding channel layout in_channel_layout is set. - /// - public bool? DitherScale { get; set; } - /// - /// Set dither method. Default value is 0. - /// - public ResamplerOptionsDitherMethod? DitherMethod { get; set; } - /// - /// Set resampling engine. Default value is swr. - /// - public ResamplerOptionsResampler? Resampler { get; set; } - /// - /// For swr only, set resampling filter size, default value is 32. - /// - public double? FilterSize { get; set; } - /// - /// For swr only, set resampling phase shift, default value is 10, and must be in the interval [0,30]. - /// - public bool? LinearInterp { get; set; } - /// - /// For swr only, when enabled, try to use exact phase_count based on input and output sample rate. However, if it is larger than 1 << phase_shift, the phase_count will be 1 << phase_shift as fallback. Default is enabled. - /// - public bool? ExactRational { get; set; } - /// - /// Set cutoff frequency (swr: 6dB point; soxr: 0dB point) ratio; must be a float value between 0 and 1. Default value is 0.97 with swr, and 0.91 with soxr (which, with a sample-rate of 44100, preserves the entire audio band to 20kHz). - /// - public float? Cutoff { get; set; } - /// - /// For soxr only, the precision in bits to which the resampled signal will be calculated. The default value of 20 (which, with suitable dithering, is appropriate for a destination bit-depth of 16) gives SoX’s ’High Quality’; a value of 28 gives SoX’s ’Very High Quality’. - /// - public double? Precision { get; set; } - /// - /// For soxr only, selects passband rolloff none (Chebyshev) & higher-precision approximation for ’irrational’ ratios. Default value is 0. - /// - public double? Cheby { get; set; } - /// - /// For swr only, simple 1 parameter audio sync to timestamps using stretching, squeezing, filling and trimming. Setting this to 1 will enable filling and trimming, larger values represent the maximum amount in samples that the data may be stretched or squeezed for each second. Default value is 0, thus no compensation is applied to make the samples match the audio timestamps. - /// - public int? Async { get; set; } - /// - /// For swr only, assume the first pts should be this value. The time unit is 1 / sample rate. This allows for padding/trimming at the start of stream. By default, no assumption is made about the first frame’s expected pts, so no padding or trimming is done. For example, this could be set to 0 to pad the beginning with silence if an audio stream starts after the video stream or to trim any samples with a negative pts due to encoder delay. - /// - public double? FirstPts { get; set; } - /// - /// For swr only, set the minimum difference between timestamps and audio data (in seconds) to trigger stretching/squeezing/filling or trimming of the data to make it match the timestamps. The default is that stretching/squeezing/filling and trimming is disabled (min_comp = FLT_MAX). - /// - public double? MinComp { get; set; } - /// - /// For swr only, set the minimum difference between timestamps and audio data (in seconds) to trigger adding/dropping samples to make it match the timestamps. This option effectively is a threshold to select between hard (trim/fill) and soft (squeeze/stretch) compensation. Note that all compensation is by default disabled through min_comp. The default is 0.1. - /// - public double? MinHardComp { get; set; } - /// - /// For swr only, set duration (in seconds) over which data is stretched/squeezed to make it match the timestamps. Must be a non-negative double float value, default value is 1.0. - /// - public double? CompDuration { get; set; } - /// - /// For swr only, set maximum factor by which data is stretched/squeezed to make it match the timestamps. Must be a non-negative double float value, default value is 0. - /// - public double? MaxSoftComp { get; set; } - /// - /// Select matrixed stereo encoding. - /// - public ResamplerOptionsMatrixEncoding? MatrixEncoding { get; set; } - /// - /// For swr only, select resampling filter type. This only affects resampling operations. - /// - public ResamplerOptionsFilterType? FilterType { get; set; } - /// - /// For swr only, set Kaiser window beta value. Must be a double float value in the interval [2,16], default value is 9. - /// - public double? KaiserBeta { get; set; } - /// - /// For swr only, set number of used output sample bits for dithering. Must be an integer in the interval [0,64], default value is 0, which means it’s not used. - /// - public int? OutputSampleBits { get; set; } } - - + /// + /// + /// public static class ResamplerOptionsExtension { - public static T ResamplerOptionsFilter(this T t, ResamplerOptionsConfig config) where T : BaseOption, IResamplerOptions - { - if (config?.Async != null) t.Async(config.Async.Value); - if (config?.CenterMixLevel != null) t.CenterMixLevel(config.CenterMixLevel.Value); - if (config?.Cheby != null) t.Cheby(config.Cheby.Value); - if (config?.CompDuration != null) t.CompDuration(config.CompDuration.Value); - if (config?.Cutoff != null) t.Cutoff(config.Cutoff.Value); - if (config?.DitherMethod != null) t.DitherMethod(config.DitherMethod.Value); - if (config?.DitherScale != null) t.DitherScale(config.DitherScale.Value); - if (config?.ExactRational != null) t.ExactRational(config.ExactRational.Value); - if (config?.FilterSize != null) t.FilterSize(config.FilterSize.Value); - if (config?.FilterType != null) t.FilterType(config.FilterType.Value); - if (config?.FirstPts != null) t.FirstPts(config.FirstPts.Value); - if (config?.InChannelCount != null) t.InChannelCount(config.InChannelCount.Value); - if (config?.InChannelLayout != null) t.InChannelLayout(config.InChannelLayout.Value); - if (!string.IsNullOrWhiteSpace(config?.InSampleFmt)) t.InSampleFmt(config.InSampleFmt); - if (config?.InSampleRate != null) t.InSampleRate(config.InSampleRate.Value); - if (!string.IsNullOrWhiteSpace(config?.InternalSampleFmt)) t.InternalSampleFmt(config.InternalSampleFmt); - if (config?.KaiserBeta != null) t.KaiserBeta(config.KaiserBeta.Value); - if (config?.LfeMixLevel != null) t.LfeMixLevel(config.LfeMixLevel.Value); - if (config?.LinearInterp != null) t.LinearInterp(config.LinearInterp.Value); - if (config?.MatrixEncoding != null) t.MatrixEncoding(config.MatrixEncoding.Value); - if (config?.MaxSoftComp != null) t.MaxSoftComp(config.MaxSoftComp.Value); - if (config?.MinComp != null) t.MinComp(config.MinComp.Value); - if (config?.MinHardComp != null) t.MinHardComp(config.MinHardComp.Value); - if (config?.OutChannelCount != null) t.OutChannelCount(config.OutChannelCount.Value); - if (config?.OutChannelLayout != null) t.OutChannelLayout(config.OutChannelLayout.Value); - if (config?.OutputSampleBits != null) t.OutputSampleBits(config.OutputSampleBits.Value); - if (!string.IsNullOrWhiteSpace(config?.OutSampleFmt)) t.OutSampleFmt(config.OutSampleFmt); - if (config?.OutSampleRate != null) t.OutSampleRate(config.OutSampleRate.Value); - if (config?.Precision != null) t.Precision(config.Precision.Value); - if (config?.RematrixMaxval != null) t.RematrixMaxval(config.RematrixMaxval.Value); - if (config?.RematrixVolume != null) t.RematrixVolume(config.RematrixVolume.Value); - if (config?.Resampler != null) t.Resampler(config.Resampler.Value); - if (config?.SurroundMixLevel != null) t.SurroundMixLevel(config.SurroundMixLevel.Value); - if (config?.SwrFlags != null) t.SwrFlags(config.SwrFlags.Value); - if (config?.UsedChannelCount != null) t.UsedChannelCount(config.UsedChannelCount.Value); - return t; - } - - /// /// Set the number of input channels. Default value is 0. Setting this value is not mandatory if the corresponding channel layout in_channel_layout is set. /// public static T InChannelCount(this T t, int ich) where T : BaseOption, IResamplerOptions => t.SetOptionRange("ich", ich, 0, int.MaxValue); - /// /// Set the number of output channels. Default value is 0. Setting this value is not mandatory if the corresponding channel layout out_channel_layout is set. /// public static T OutChannelCount(this T t, int och) where T : BaseOption, IResamplerOptions => t.SetOptionRange("och", och, 0, int.MaxValue); - /// /// Set the number of used input channels. Default value is 0. This option is only used for special remapping. /// public static T UsedChannelCount(this T t, int uch) where T : BaseOption, IResamplerOptions => t.SetOptionRange("uch", uch, 0, int.MaxValue); - /// /// Set the input sample rate. Default value is 0. /// public static T InSampleRate(this T t, int isr) where T : BaseOption, IResamplerOptions => t.SetOptionRange("isr", isr, 0, int.MaxValue); - /// /// Set the output sample rate. Default value is 0. /// public static T OutSampleRate(this T t, int osr) where T : BaseOption, IResamplerOptions => t.SetOptionRange("osr", osr, 0, int.MaxValue); - /// /// Specify the input sample format. It is set by default to none. /// public static T InSampleFmt(this T t, string isf) where T : BaseOption, IResamplerOptions => t.SetOption("isf", isf); - /// /// Specify the output sample format. It is set by default to none. /// public static T OutSampleFmt(this T t, string osf) where T : BaseOption, IResamplerOptions => t.SetOption("osf", osf); - /// /// Set the internal sample format. Default value is none. This will automatically be chosen when it is not explicitly set. /// public static T InternalSampleFmt(this T t, string tsf) where T : BaseOption, IResamplerOptions => t.SetOption("tsf", tsf); - /// /// Set the input/output channel layout. /// public static T InChannelLayout(this T t, ChannelLayout icl) where T : BaseOption, IResamplerOptions - => t.SetOption("icl", icl.GetAttribute().Name); - + => t.SetOption("icl", icl.GetEnumAttribute().Name); /// /// Set the input/output channel layout. /// public static T OutChannelLayout(this T t, ChannelLayout ocl) where T : BaseOption, IResamplerOptions - => t.SetOption("ocl", ocl.GetAttribute().Name); - + => t.SetOption("ocl", ocl.GetEnumAttribute().Name); /// /// Set the center mix level. It is a value expressed in deciBel, and must be in the interval [-32,32]. /// public static T CenterMixLevel(this T t, int clev) where T : BaseOption, IResamplerOptions => t.SetOptionRange("clev", clev, -32, 32); - /// /// Set the surround mix level. It is a value expressed in deciBel, and must be in the interval [-32,32]. /// public static T SurroundMixLevel(this T t, int slev) where T : BaseOption, IResamplerOptions => t.SetOptionRange("slev", slev, -32, 32); - /// /// Set LFE mix into non LFE level. It is used when there is a LFE input but no LFE output. It is a value expressed in deciBel, and must be in the interval [-32,32]. /// public static T LfeMixLevel(this T t, int lfe_mix_level) where T : BaseOption, IResamplerOptions => t.SetOptionRange("lfe_mix_level", lfe_mix_level, -32, 32); - /// /// Set rematrix volume. Default value is 1.0. /// public static T RematrixVolume(this T t, double rmvol) where T : BaseOption, IResamplerOptions => t.SetOptionRange("rmvol", rmvol, double.MinValue, double.MaxValue); - /// /// Set maximum output value for rematrixing. This can be used to prevent clipping vs. preventing volume reduction. A value of 1.0 prevents clipping. /// public static T RematrixMaxval(this T t, double rematrix_maxval) where T : BaseOption, IResamplerOptions => t.SetOptionRange("rematrix_maxval", rematrix_maxval, double.MinValue, double.MaxValue); - /// /// Set flags used by the converter. Default value is 0. /// public static T SwrFlags(this T t, ResamplerOptionsSwrFlag flags) where T : BaseOption, IResamplerOptions => t.SetOption("flags", flags); - /// /// Set the number of input channels. Default value is 0. Setting this value is not mandatory if the corresponding channel layout in_channel_layout is set. /// public static T DitherScale(this T t, bool flag) where T : BaseOption, IResamplerOptions => t.SetOption("dither_scale", flag.ToFFmpegFlag()); - /// /// Set dither method. Default value is 0. /// public static T DitherMethod(this T t, ResamplerOptionsDitherMethod dither_method) where T : BaseOption, IResamplerOptions => t.SetOption("dither_method", dither_method); - /// /// Set resampling engine. Default value is swr. /// public static T Resampler(this T t, ResamplerOptionsResampler resampler) where T : BaseOption, IResamplerOptions => t.SetOption("resampler", resampler); - /// /// For swr only, set resampling filter size, default value is 32. /// public static T FilterSize(this T t, double filter_size) where T : BaseOption, IResamplerOptions => t.SetOptionRange("filter_size", filter_size, double.MinValue, int.MaxValue); - /// /// For swr only, set resampling phase shift, default value is 10, and must be in the interval [0,30]. /// public static T PhaseShift(this T t, double phase_shift) where T : BaseOption, IResamplerOptions => t.SetOptionRange("phase_shift", phase_shift, 0, 30); - /// /// Use linear interpolation when enabled (the default). Disable it if you want to preserve speed instead of quality when exact_rational fails. /// public static T LinearInterp(this T t, bool linear_interp) where T : BaseOption, IResamplerOptions => t.SetOption("linear_interp", linear_interp.ToFFmpegFlag()); - /// /// For swr only, when enabled, try to use exact phase_count based on input and output sample rate. However, if it is larger than 1 << phase_shift, the phase_count will be 1 << phase_shift as fallback. Default is enabled. /// public static T ExactRational(this T t, bool exact_rational) where T : BaseOption, IResamplerOptions => t.SetOption("exact_rational", exact_rational.ToFFmpegFlag()); - /// /// Set cutoff frequency (swr: 6dB point; soxr: 0dB point) ratio; must be a float value between 0 and 1. Default value is 0.97 with swr, and 0.91 with soxr (which, with a sample-rate of 44100, preserves the entire audio band to 20kHz). /// public static T Cutoff(this T t, float cutoff) where T : BaseOption, IResamplerOptions => t.SetOptionRange("cutoff", cutoff, 0, 1); - /// /// For soxr only, the precision in bits to which the resampled signal will be calculated. The default value of 20 (which, with suitable dithering, is appropriate for a destination bit-depth of 16) gives SoX’s ’High Quality’; a value of 28 gives SoX’s ’Very High Quality’. /// public static T Precision(this T t, double precision) where T : BaseOption, IResamplerOptions => t.SetOptionRange("precision", precision, double.MinValue, double.MaxValue); - /// /// For soxr only, selects passband rolloff none (Chebyshev) & higher-precision approximation for ’irrational’ ratios. Default value is 0. /// public static T Cheby(this T t, double cheby) where T : BaseOption, IResamplerOptions => t.SetOptionRange("cheby", cheby, double.MinValue, double.MaxValue); - /// /// For swr only, simple 1 parameter audio sync to timestamps using stretching, squeezing, filling and trimming. Setting this to 1 will enable filling and trimming, larger values represent the maximum amount in samples that the data may be stretched or squeezed for each second. Default value is 0, thus no compensation is applied to make the samples match the audio timestamps. /// public static T Async(this T t, int async) where T : BaseOption, IResamplerOptions => t.SetOptionRange("async", async, 0, int.MaxValue); - /// /// For swr only, assume the first pts should be this value. The time unit is 1 / sample rate. This allows for padding/trimming at the start of stream. By default, no assumption is made about the first frame’s expected pts, so no padding or trimming is done. For example, this could be set to 0 to pad the beginning with silence if an audio stream starts after the video stream or to trim any samples with a negative pts due to encoder delay. /// public static T FirstPts(this T t, double first_pts) where T : BaseOption, IResamplerOptions => t.SetOptionRange("first_pts", first_pts, 0, double.MaxValue); - /// /// For swr only, set the minimum difference between timestamps and audio data (in seconds) to trigger stretching/squeezing/filling or trimming of the data to make it match the timestamps. The default is that stretching/squeezing/filling and trimming is disabled (min_comp = FLT_MAX). /// public static T MinComp(this T t, double min_comp) where T : BaseOption, IResamplerOptions => t.SetOptionRange("min_comp", min_comp, 0, double.MaxValue); - /// /// For swr only, set the minimum difference between timestamps and audio data (in seconds) to trigger adding/dropping samples to make it match the timestamps. This option effectively is a threshold to select between hard (trim/fill) and soft (squeeze/stretch) compensation. Note that all compensation is by default disabled through min_comp. The default is 0.1. /// public static T MinHardComp(this T t, double min_hard_comp) where T : BaseOption, IResamplerOptions => t.SetOptionRange("min_hard_comp", min_hard_comp, 0, double.MaxValue); - /// /// For swr only, set duration (in seconds) over which data is stretched/squeezed to make it match the timestamps. Must be a non-negative double float value, default value is 1.0. /// public static T CompDuration(this T t, double comp_duration) where T : BaseOption, IResamplerOptions => t.SetOptionRange("comp_duration", comp_duration, 0, double.MaxValue); - /// /// For swr only, set maximum factor by which data is stretched/squeezed to make it match the timestamps. Must be a non-negative double float value, default value is 0. /// public static T MaxSoftComp(this T t, double max_soft_comp) where T : BaseOption, IResamplerOptions => t.SetOptionRange("max_soft_comp", max_soft_comp, 0, double.MaxValue); - /// /// Select matrixed stereo encoding. /// public static T MatrixEncoding(this T t, ResamplerOptionsMatrixEncoding matrix_encoding) where T : BaseOption, IResamplerOptions => t.SetOption("matrix_encoding", matrix_encoding); - /// /// For swr only, select resampling filter type. This only affects resampling operations. /// public static T FilterType(this T t, ResamplerOptionsFilterType filter_type) where T : BaseOption, IResamplerOptions => t.SetOption("filter_type", filter_type); - /// /// For swr only, set Kaiser window beta value. Must be a double float value in the interval [2,16], default value is 9. /// public static T KaiserBeta(this T t, double kaiser_beta) where T : BaseOption, IResamplerOptions => t.SetOptionRange("kaiser_beta", kaiser_beta, 2, 16); - /// /// For swr only, set number of used output sample bits for dithering. Must be an integer in the interval [0,64], default value is 0, which means it’s not used. /// public static T OutputSampleBits(this T t, int output_sample_bits) where T : BaseOption, IResamplerOptions => t.SetOptionRange("output_sample_bits", output_sample_bits, 0, 64); } - + /// + /// + /// public enum ResamplerOptionsSwrFlag { /// @@ -436,7 +203,9 @@ public enum ResamplerOptionsSwrFlag /// res } - + /// + /// + /// public enum ResamplerOptionsDitherMethod { /// @@ -480,7 +249,9 @@ public enum ResamplerOptionsDitherMethod /// improved_e_weighted } - + /// + /// + /// public enum ResamplerOptionsResampler { /// @@ -492,7 +263,9 @@ public enum ResamplerOptionsResampler /// soxr, } - + /// + /// + /// public enum ResamplerOptionsMatrixEncoding { /// @@ -508,7 +281,9 @@ public enum ResamplerOptionsMatrixEncoding /// dplii } - + /// + /// + /// public enum ResamplerOptionsFilterType { /// diff --git a/FFmpegArgs/Filters/ISliceThreading.cs b/FFmpegArgs.Filters.Common/ISliceThreading.cs similarity index 88% rename from FFmpegArgs/Filters/ISliceThreading.cs rename to FFmpegArgs.Filters.Common/ISliceThreading.cs index 0e539d0d..bd492890 100644 --- a/FFmpegArgs/Filters/ISliceThreading.cs +++ b/FFmpegArgs.Filters.Common/ISliceThreading.cs @@ -1,16 +1,11 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { /// /// /// public interface ISliceThreading { - } - /// /// /// diff --git a/FFmpegArgs/Filters/ITimelineSupport.cs b/FFmpegArgs.Filters.Common/ITimelineSupport.cs similarity index 60% rename from FFmpegArgs/Filters/ITimelineSupport.cs rename to FFmpegArgs.Filters.Common/ITimelineSupport.cs index 46a4b638..2a9a4294 100644 --- a/FFmpegArgs/Filters/ITimelineSupport.cs +++ b/FFmpegArgs.Filters.Common/ITimelineSupport.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { /// /// https://ffmpeg.org/ffmpeg-filters.html#Timeline-editing @@ -11,12 +6,29 @@ namespace FFmpegArgs.Filters public interface ITimelineSupport { } + + /// + /// + /// public interface ITimelineSupportConfig { + /// + /// + /// string TimelineSupport { get; set; } } + /// + /// + /// public static class TimelineSupportExtension { + /// + /// + /// + /// + /// + /// + /// public static T Enable(this T timelineSupport, Action timelineExpression) where T : BaseOption, IFilter, ITimelineSupport { @@ -25,6 +37,13 @@ public static T Enable(this T timelineSupport, Action + /// + /// + /// + /// + /// + /// public static T Enable(this T timelineSupport, string timelineExpression) where T : BaseOption, IFilter, ITimelineSupport => timelineSupport.Enable(timelineExpression.Expression()); diff --git a/FFmpegArgs/Filters/ImageToImageFilter.cs b/FFmpegArgs.Filters.Common/ImageToImageFilter.cs similarity index 55% rename from FFmpegArgs/Filters/ImageToImageFilter.cs rename to FFmpegArgs.Filters.Common/ImageToImageFilter.cs index 9ba7a450..10912f5b 100644 --- a/FFmpegArgs/Filters/ImageToImageFilter.cs +++ b/FFmpegArgs.Filters.Common/ImageToImageFilter.cs @@ -1,19 +1,35 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { + /// + /// + /// public abstract class ImageToImageFilter : BaseFilter { + /// + /// + /// + /// + /// protected ImageToImageFilter(string filterName, params ImageMap[] mapsIn) : base(filterName, mapsIn) { - } - + /// + /// + /// protected void AddMapOut() => _mapsOut.Add(new ImageMap(FilterGraph, $"f_{FilterIndex}")); + + /// + /// + /// + /// protected void AddMapOut(int index) => _mapsOut.Add(new ImageMap(FilterGraph, $"f_{FilterIndex}_{index}")); + + /// + /// + /// + /// protected void AddMultiMapOut(int count) { for (int i = 0; i < count; i++) AddMapOut(i); diff --git a/FFmpegArgs.Filters.Common/Nuget.ps1 b/FFmpegArgs.Filters.Common/Nuget.ps1 new file mode 100644 index 00000000..01b0ea67 --- /dev/null +++ b/FFmpegArgs.Filters.Common/Nuget.ps1 @@ -0,0 +1,78 @@ +$dirInfo= New-Object -Typename System.IO.DirectoryInfo -ArgumentList ([System.IO.Directory]::GetCurrentDirectory()) +$projectName= $dirInfo.Name; +$key=$env:nugetKey +$buildDay=[DateTime]::Now.ToString("yyMMdd") +$p="build=-build$($buildDay)".Trim() + +function RunCommand +{ + $numOfArgs = $args.Length + for ($i=0; $i -lt $numOfArgs; $i++) + { + iex $args[$i] + if($LASTEXITCODE -eq 0 -or $i -eq 0) { + Write-Host "$($args[$i]) success" + } + else{ + Write-Host "$($args[$i]) failed" + return 0 + } + } + return 1 +} + +function NugetPack +{ + $numOfArgs = $args.Length + for ($i=0; $i -lt $numOfArgs; $i++) + { + Write-Host "NugetPack $($args[$i])" + + $result = RunCommand "Remove-Item -Recurse -Force .\bin\Release\**" ` + "dotnet build $($args[$i]).csproj -c Release" ` + "nuget pack $($args[$i]).nuspec -OutputDirectory .\bin\Release -p '$($p)'" + + if($result) { + Write-Host "$($args[$i]) success" + } + else{ + Write-Host "$($args[$i]) failed" + return 0 + } + } + return 1 +} + +function NugetPush +{ + $numOfArgs = $args.Length + for ($i=0; $i -lt $numOfArgs; $i++) + { + Write-Host "NugetPush $($args[$i])" + + iex "dotnet nuget push .\bin\Release\*.nupkg --api-key $($key) --source https://api.nuget.org/v3/index.json" + } +} + +$result = NugetPack $projectName +if($result) +{ + if([string]::IsNullOrEmpty($key)) + { + Write-Host "Build & pack success" + } + else + { + Write-Host "enter to push nuget" + pause + Write-Host "enter to confirm" + pause + + NugetPush $projectName + } +} +else +{ + echo "Build & pack error" +} +pause \ No newline at end of file diff --git a/FFmpegArgs/Filters/SourceAudioFilter.cs b/FFmpegArgs.Filters.Common/SourceAudioFilter.cs similarity index 56% rename from FFmpegArgs/Filters/SourceAudioFilter.cs rename to FFmpegArgs.Filters.Common/SourceAudioFilter.cs index ff41284d..70f3dd00 100644 --- a/FFmpegArgs/Filters/SourceAudioFilter.cs +++ b/FFmpegArgs.Filters.Common/SourceAudioFilter.cs @@ -1,20 +1,34 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { + /// + /// + /// public abstract class SourceAudioFilter : BaseFilter { + /// + /// + /// + /// + /// protected SourceAudioFilter(string filterName, FilterGraph filterGraph) : base(filterName, new AudioMap(filterGraph, string.Empty)) { - } - + /// + /// + /// protected void AddMapOut() => _mapsOut.Add(new AudioMap(FilterGraph, $"f_{FilterIndex}")); + /// + /// + /// + /// protected void AddMapOut(int index) => _mapsOut.Add(new AudioMap(FilterGraph, $"f_{FilterIndex}_{index}")); + /// + /// + /// + /// protected void AddMultiMapOut(int count) { for (int i = 0; i < count; i++) AddMapOut(i); diff --git a/FFmpegArgs/Filters/SourceImageFilter.cs b/FFmpegArgs.Filters.Common/SourceImageFilter.cs similarity index 56% rename from FFmpegArgs/Filters/SourceImageFilter.cs rename to FFmpegArgs.Filters.Common/SourceImageFilter.cs index 0c07cc87..8b05e791 100644 --- a/FFmpegArgs/Filters/SourceImageFilter.cs +++ b/FFmpegArgs.Filters.Common/SourceImageFilter.cs @@ -1,20 +1,34 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Filters { + /// + /// + /// public abstract class SourceImageFilter : BaseFilter { + /// + /// + /// + /// + /// protected SourceImageFilter(string filterName, FilterGraph filterGraph) : base(filterName, new ImageMap(filterGraph, string.Empty)) { - } - + /// + /// + /// protected void AddMapOut() => _mapsOut.Add(new ImageMap(FilterGraph, $"f_{FilterIndex}")); + /// + /// + /// + /// protected void AddMapOut(int index) => _mapsOut.Add(new ImageMap(FilterGraph, $"f_{FilterIndex}_{index}")); + /// + /// + /// + /// protected void AddMultiMapOut(int count) { for (int i = 0; i < count; i++) AddMapOut(i); diff --git a/FFmpegArgs.Filters.Common/VideoToVideoFilter.cs b/FFmpegArgs.Filters.Common/VideoToVideoFilter.cs new file mode 100644 index 00000000..bf7c4330 --- /dev/null +++ b/FFmpegArgs.Filters.Common/VideoToVideoFilter.cs @@ -0,0 +1,17 @@ +namespace FFmpegArgs.Filters +{ + /// + /// + /// + public abstract class VideoToVideoFilter : BaseFilter + { + /// + /// + /// + /// + /// + protected VideoToVideoFilter(string filterName, params BaseMap[] baseMaps) : base(filterName, baseMaps) + { + } + } +} diff --git a/FFmpegArgs.Filters/AudioFilters/AcompressorFilter.cs b/FFmpegArgs.Filters/AudioFilters/AcompressorFilter.cs index 42cf13a4..3c48eab4 100644 --- a/FFmpegArgs.Filters/AudioFilters/AcompressorFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AcompressorFilter.cs @@ -19,8 +19,6 @@ rms 1 ..F.A....T. level_sc ..F.A....T. set sidechain gain (from 0.015625 to 64) (default 1) mix ..F.A....T. set mix (from 0 to 1) (default 1) */ -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -33,7 +31,6 @@ internal AcompressorFilter(AudioMap audioMap) : base("acompressor", audioMap) { AddMapOut(); } - /// /// Set input gain. Default is 1. Range is between 0.015625 and 64. /// @@ -41,7 +38,6 @@ internal AcompressorFilter(AudioMap audioMap) : base("acompressor", audioMap) /// public AcompressorFilter LevelIn(double level_in) => this.SetOptionRange("level_in", level_in, 0.015625, 64); - /// /// Set mode of compressor operation /// @@ -49,7 +45,6 @@ public AcompressorFilter LevelIn(double level_in) /// public AcompressorFilter Mode(AcompressorMode mode) => this.SetOption("mode", mode.ToString().ToLower()); - /// /// If a signal of stream rises above this level it will affect the gain reduction.

/// By default it is 0.125. Range is between 0.00097563 and 1. @@ -58,7 +53,6 @@ public AcompressorFilter Mode(AcompressorMode mode) /// public AcompressorFilter Threshold(double threshold) => this.SetOptionRange("threshold", threshold, 0.00097563, 1); - /// /// Set a ratio by which the signal is reduced. 1:2 means that if the level rose 4dB above the threshold,

/// it will be only 2dB above after the reduction.

@@ -68,8 +62,6 @@ public AcompressorFilter Threshold(double threshold) /// public AcompressorFilter Ratio(double ratio) => this.SetOptionRange("ratio", ratio, 1, 20); - - /// /// Amount of milliseconds the signal has to rise above the threshold before gain reduction starts.

/// Default is 20. Range is between 0.01 and 2000. @@ -78,7 +70,6 @@ public AcompressorFilter Ratio(double ratio) /// public AcompressorFilter Attack(double attack) => this.SetOptionRange("attack", attack, 0.01f, 2000); - /// /// Amount of milliseconds the signal has to fall below the threshold before reduction is decreased again.
///
Default is 250. Range is between 0.01 and 9000. @@ -87,7 +78,6 @@ public AcompressorFilter Attack(double attack) /// public AcompressorFilter Release(double release) => this.SetOptionRange("release", release, 0.01f, 9000); - /// /// Set the amount by how much signal will be amplified after processing.
///
Default is 1. Range is from 1 to 64. @@ -96,7 +86,6 @@ public AcompressorFilter Release(double release) /// public AcompressorFilter Makeup(double makeup) => this.SetOptionRange("makeup", makeup, 1, 64); - /// /// Curve the sharp knee around the threshold to enter gain reduction more softly.
///
Default is 2.82843. Range is between 1 and 8. @@ -105,7 +94,6 @@ public AcompressorFilter Makeup(double makeup) /// public AcompressorFilter Knee(double knee) => this.SetOptionRange("knee", knee, 1, 8); - /// /// Choose if the average level between all channels of input stream
///
or the louder(maximum) channel of input stream affects the reduction.
@@ -115,7 +103,6 @@ public AcompressorFilter Knee(double knee) /// public AcompressorFilter Link(AcompressorLink link) => this.SetOption("link", link.ToString().ToLower()); - /// /// Should the exact signal be taken in case of peak or an RMS one in case of rms.
///
Default is rms which is mostly smoother. @@ -124,7 +111,6 @@ public AcompressorFilter Link(AcompressorLink link) /// public AcompressorFilter Detection(AcompressorDetection detection) => this.SetOption("detection", detection.ToString().ToLower()); - /// /// How much to use compressed signal in output.
///
Default is 1. Range is between 0 and 1. @@ -133,7 +119,6 @@ public AcompressorFilter Detection(AcompressorDetection detection) /// public AcompressorFilter Mix(double mix) => this.SetOptionRange("mix", mix, 0, 1); - /// /// set sidechain gain (from 0.015625 to 64) (default 1) /// @@ -141,8 +126,6 @@ public AcompressorFilter Mix(double mix) public AcompressorFilter LevelSc(double level_sc) => this.SetOptionRange("level_sc", level_sc, 0.015625, 64); } - - public static class AcompressorFilterExtension { /// @@ -153,7 +136,6 @@ public static class AcompressorFilterExtension /// public static AcompressorFilter AcompressorFilter(this AudioMap audioMap) => new AcompressorFilter(audioMap); } - public enum AcompressorMode { Upward, diff --git a/FFmpegArgs.Filters/AudioFilters/AcontrastFilter.cs b/FFmpegArgs.Filters/AudioFilters/AcontrastFilter.cs index f59e8e42..34548fb9 100644 --- a/FFmpegArgs.Filters/AudioFilters/AcontrastFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AcontrastFilter.cs @@ -2,8 +2,6 @@ acontrast AVOptions: contrast ..F.A...... set contrast (from 0 to 100) (default 33) */ -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -16,7 +14,6 @@ internal AcontrastFilter(AudioMap audioMap) : base("acontrast", audioMap) { AddMapOut(); } - /// /// Set contrast. Default is 33. Allowed range is between 0 and 100. /// @@ -25,7 +22,6 @@ internal AcontrastFilter(AudioMap audioMap) : base("acontrast", audioMap) public AcontrastFilter Contrast(float contrast) => this.SetOptionRange("contrast", contrast, 0, 100); } - public static class AcontrastFilterExtension { /// diff --git a/FFmpegArgs.Filters/AudioFilters/AcopyFilter.cs b/FFmpegArgs.Filters/AudioFilters/AcopyFilter.cs index e48ac9d5..17dbe256 100644 --- a/FFmpegArgs.Filters/AudioFilters/AcopyFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AcopyFilter.cs @@ -1,5 +1,4 @@ //using FFmpegArgs.Cores.Maps; - //namespace FFmpegArgs.Filters.AudioFilters //{ // /// @@ -13,7 +12,6 @@ // AddMapOut(); // } // } - // public static class AcopyFilterExtension // { // /// diff --git a/FFmpegArgs.Filters/AudioFilters/AcrossfadeFilter.cs b/FFmpegArgs.Filters/AudioFilters/AcrossfadeFilter.cs index 67cdf115..6c15095f 100644 --- a/FFmpegArgs.Filters/AudioFilters/AcrossfadeFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AcrossfadeFilter.cs @@ -91,10 +91,6 @@ losi 16 ..F.A...... logistic sigmoid sinc 17 ..F.A...... sine cardinal function isinc 18 ..F.A...... inverted sine cardinal function */ - -using FFmpegArgs.Cores.Maps; -using System; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -107,7 +103,6 @@ internal AcrossfadeFilter(params AudioMap[] audioMaps) : base("acrossfade", audi { AddMapOut(); } - /// /// Specify the number of samples for which the cross fade effect has to last.
///
At the end of the cross fade effect the first input audio will be completely silent.
@@ -117,7 +112,6 @@ internal AcrossfadeFilter(params AudioMap[] audioMaps) : base("acrossfade", audi /// public AcrossfadeFilter NbSamples(int ns) => this.SetOptionRange("ns", ns, 1, 2.14748e+08); - /// /// Specify the duration of the cross fade effect.
///
By default the duration is determined by nb_samples.
@@ -127,7 +121,6 @@ public AcrossfadeFilter NbSamples(int ns) /// public AcrossfadeFilter Duration(TimeSpan d) => this.SetOptionRange("d", d, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Should first stream end overlap with second stream start. Default is enabled. /// @@ -135,24 +128,24 @@ public AcrossfadeFilter Duration(TimeSpan d) /// public AcrossfadeFilter Overlap(bool overlap) => this.SetOption("o", overlap.ToFFmpegFlag()); - /// /// Set curve for cross fade transition for first stream. /// - /// + /// /// public AcrossfadeFilter Curve1(AcrossfadeCurve curve) => this.SetOption("c1", curve.ToString()); - /// /// Set curve for cross fade transition for second stream. /// - /// + /// /// public AcrossfadeFilter Curve2(AcrossfadeCurve curve) => this.SetOption("c2", curve.ToString()); } - + /// + /// + /// public static class AcrossfadeFilterExtension { /// @@ -163,7 +156,9 @@ public static class AcrossfadeFilterExtension public static AcrossfadeFilter AcrossfadeFilter(this AudioMap first, AudioMap second) => new AcrossfadeFilter(first, second); } - + /// + /// + /// public enum AcrossfadeCurve { /// diff --git a/FFmpegArgs.Filters/AudioFilters/AcrossoverFilter.cs b/FFmpegArgs.Filters/AudioFilters/AcrossoverFilter.cs index 1393d512..2c1d663d 100644 --- a/FFmpegArgs.Filters/AudioFilters/AcrossoverFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AcrossoverFilter.cs @@ -15,10 +15,6 @@ 20th 9 ..F.A...... 20th order (120 dB/8ve) level ..F.A...... set input gain (from 0 to 1) (default 1) gain ..F.A...... set output bands gain (default "1.f") */ -using FFmpegArgs.Cores.Maps; -using System; -using System.Linq; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -32,7 +28,6 @@ internal AcrossoverFilter(int[] hzSplit, AudioMap audioMap) : base("acrossover", this.SetOption("split", string.Join(" ", hzSplit)); AddMultiMapOut(hzSplit.Length + 1); } - /// /// Set filter order for each band split. This controls filter roll-off or steepness of filter transfer function /// @@ -40,7 +35,6 @@ internal AcrossoverFilter(int[] hzSplit, AudioMap audioMap) : base("acrossover", /// public AcrossoverFilter Order(AcrossoverOrder order) => this.SetOption("order", order.ToString().Substring(1)); - /// /// Set input gain level. Allowed range is from 0 to 1. Default value is 1. /// @@ -48,7 +42,6 @@ public AcrossoverFilter Order(AcrossoverOrder order) /// public AcrossoverFilter Level(float level) => this.SetOptionRange("level", level, 0, 1); - /// /// set output bands gain (default "1.f") /// @@ -57,7 +50,9 @@ public AcrossoverFilter Level(float level) public AcrossoverFilter Gains(string gains) => this.SetOption("gains", gains); } - + /// + /// + /// public static class AcrossoverFilterExtension { /// @@ -74,54 +69,47 @@ public static AcrossoverFilter AcrossoverFilter(this AudioMap audioMap, params i return new AcrossoverFilter(hzSplit, audioMap); } } - + /// + /// + /// public enum AcrossoverOrder { /// /// 12 dB per octave. /// _2nd, - /// /// 24 dB per octave. /// _4th, - /// /// 36 dB per octave. /// _6th, - /// /// 48 dB per octave. /// _8th, - /// /// 60 dB per octave. /// _10th, - /// /// 72 dB per octave. /// _12th, - /// /// 84 dB per octave. /// _14th, - /// /// 96 dB per octave. /// _16th, - /// /// 108 dB per octave. /// _18th, - /// /// 120 dB per octave. /// diff --git a/FFmpegArgs.Filters/AudioFilters/AcrusherFilter.cs b/FFmpegArgs.Filters/AudioFilters/AcrusherFilter.cs index d181544f..a48388f4 100644 --- a/FFmpegArgs.Filters/AudioFilters/AcrusherFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AcrusherFilter.cs @@ -14,8 +14,6 @@ log 1 ..F.A....T. logarithmic lforange ..F.A....T. set LFO depth (from 1 to 250) (default 20) lforate ..F.A....T. set LFO rate (from 0.01 to 200) (default 0.3) */ -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -28,7 +26,6 @@ internal AcrusherFilter(AudioMap audioMap) : base("acrusher", audioMap) { AddMapOut(); } - /// /// Set level in. (from 0.015625 to 64) (default 1) /// @@ -36,7 +33,6 @@ internal AcrusherFilter(AudioMap audioMap) : base("acrusher", audioMap) /// public AcrusherFilter LevelIn(double level_in) => this.SetOptionRange("level_in", level_in, 0.015625, 64); - /// /// Set level out. (from 0.015625 to 64) (default 1) /// @@ -44,7 +40,6 @@ public AcrusherFilter LevelIn(double level_in) /// public AcrusherFilter LevelOut(double level_out) => this.SetOptionRange("level_out", level_out, 0.015625, 64); - /// /// Set bit reduction. (from 1 to 64) (default 8) /// @@ -52,7 +47,6 @@ public AcrusherFilter LevelOut(double level_out) /// public AcrusherFilter Bits(double bits) => this.SetOptionRange("bits", bits, 1, 64); - /// /// Set mixing amount. (from 0 to 1) (default 0.5) /// @@ -60,7 +54,6 @@ public AcrusherFilter Bits(double bits) /// public AcrusherFilter Mix(double mix) => this.SetOptionRange("mix", mix, 0, 1); - /// /// Can be linear: lin or logarithmic: log. /// @@ -68,7 +61,6 @@ public AcrusherFilter Mix(double mix) /// public AcrusherFilter Mode(AcrusherMode mode) => this.SetOption("mode", mode); - /// /// Set DC. (from 0.25 to 4) (default 1) /// @@ -76,7 +68,6 @@ public AcrusherFilter Mode(AcrusherMode mode) /// public AcrusherFilter DC(double dc) => this.SetOptionRange("dc", dc, 0.25, 4); - /// /// Set anti-aliasing. (from 0 to 1) (default 0.5) /// @@ -84,7 +75,6 @@ public AcrusherFilter DC(double dc) /// public AcrusherFilter AA(double aa) => this.SetOptionRange("aa", aa, 0, 1); - /// /// Set sample reduction. (from 1 to 250) (default 1) /// @@ -92,7 +82,6 @@ public AcrusherFilter AA(double aa) /// public AcrusherFilter Samples(double lforange) => this.SetOptionRange("samples", lforange, 1, 250); - /// /// Enable LFO. By default disabled. /// @@ -100,7 +89,6 @@ public AcrusherFilter Samples(double lforange) /// public AcrusherFilter Lfo(bool lfo) => this.SetOption("lfo", lfo.ToFFmpegFlag()); - /// /// Set LFO depth. (from 1 to 250) (default 20) /// @@ -108,7 +96,6 @@ public AcrusherFilter Lfo(bool lfo) /// public AcrusherFilter LfoRange(double lforange) => this.SetOptionRange("lforange", lforange, 1, 250); - /// /// Set LFO rate. /// @@ -117,7 +104,6 @@ public AcrusherFilter LfoRange(double lforange) public AcrusherFilter LfoRate(double lforate) => this.SetOptionRange("lforate", lforate, 0.01, 200); } - /// /// /// @@ -133,7 +119,6 @@ public static class AcrusherFilterExtension public static AcrusherFilter AcrusherFilter(this AudioMap audioMap) => new AcrusherFilter(audioMap); } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AcueFilter.cs b/FFmpegArgs.Filters/AudioFilters/AcueFilter.cs index 0cbeb7f0..0864f69b 100644 --- a/FFmpegArgs.Filters/AudioFilters/AcueFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AcueFilter.cs @@ -4,9 +4,6 @@ preroll ..FVA...... preroll duration in seconds (default 0) buffer ..FVA...... buffer duration in seconds (default 0) */ -using FFmpegArgs.Cores.Maps; -using System; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -19,7 +16,6 @@ internal AcueFilter(AudioMap audioMap) : base("acue", audioMap) { AddMapOut(); } - /// /// The cue timestamp expressed in a UNIX timestamp in microseconds. Default is 0. /// @@ -27,7 +23,6 @@ internal AcueFilter(AudioMap audioMap) : base("acue", audioMap) /// public AcueFilter Cue(long cue) => this.SetOptionRange("cue", cue, 0, I64_MAX); - /// /// The duration of content to pass on as preroll expressed in seconds. Default is 0. /// @@ -35,7 +30,6 @@ public AcueFilter Cue(long cue) /// public AcueFilter Preroll(TimeSpan preroll) => this.SetOptionRange("preroll", preroll, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// The maximum duration of content to buffer before waiting for the cue expressed in seconds. Default is 0. /// @@ -44,7 +38,6 @@ public AcueFilter Preroll(TimeSpan preroll) public AcueFilter Buffer(TimeSpan buffer) => this.SetOptionRange("buffer", buffer, TimeSpan.Zero, TimeSpan.MaxValue); } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AdeclickFilter.cs b/FFmpegArgs.Filters/AudioFilters/AdeclickFilter.cs index 1e61aa72..fb1dfaad 100644 --- a/FFmpegArgs.Filters/AudioFilters/AdeclickFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AdeclickFilter.cs @@ -21,8 +21,6 @@ a 0 ..F.A...... overlap-add save 1 ..F.A...... overlap-save s 1 ..F.A...... overlap-save */ -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -35,7 +33,6 @@ internal AdeclickFilter(AudioMap audioMap) : base("adeclick", audioMap) { AddMapOut(); } - /// /// Set window size, in milliseconds. Allowed range is from 10 to 100. Default value is 55 milliseconds.
///
This sets size of window which will be processed at once. (from 10 to 100) (default 55) @@ -44,7 +41,6 @@ internal AdeclickFilter(AudioMap audioMap) : base("adeclick", audioMap) /// public AdeclickFilter Window(double window) => this.SetOptionRange("w", window, 10, 100); - /// /// Set window overlap, in percentage of window size. Allowed range is from 50 to 95. Default value is 75 percent.
///
Setting this to a very high value increases impulsive noise removal but makes whole process much slower. (from 50 to 95) (default 75) @@ -53,7 +49,6 @@ public AdeclickFilter Window(double window) /// public AdeclickFilter Overlap(double overlap) => this.SetOptionRange("o", overlap, 50, 95); - /// /// Set autoregression order, in percentage of window size.
///
Allowed range is from 0 to 25. Default value is 2 percent.
@@ -64,7 +59,6 @@ public AdeclickFilter Overlap(double overlap) /// public AdeclickFilter ArOrder(double arorder) => this.SetOptionRange("a", arorder, 0, 25); - /// /// Set threshold value. Allowed range is from 1 to 100.
///
Default value is 2. This controls the strength of impulsive noise which is going to be removed.
@@ -75,7 +69,6 @@ public AdeclickFilter ArOrder(double arorder) /// public AdeclickFilter Threshold(double threshold) => this.SetOptionRange("t", threshold, 1, 100); - /// /// Set burst fusion, in percentage of window size. Allowed range is 0 to 10. Default value is 2.
///
If any two samples detected as noise are spaced less than this value then any sample between those two samples will be also detected as noise.
@@ -85,7 +78,6 @@ public AdeclickFilter Threshold(double threshold) /// public AdeclickFilter Burst(double burst) => this.SetOptionRange("b", burst, 0, 10); - /// /// Set overlap method. /// @@ -94,7 +86,6 @@ public AdeclickFilter Burst(double burst) public AdeclickFilter Method(AdeclickMethod method) => this.SetOption("m", method.ToString().ToLower()); } - /// /// /// @@ -107,7 +98,6 @@ public static class AdeclickFilterExtension /// public static AdeclickFilter AdeclickFilter(this AudioMap audioMap) => new AdeclickFilter(audioMap); } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AdeclipFilter.cs b/FFmpegArgs.Filters/AudioFilters/AdeclipFilter.cs index c0f45655..ad80d583 100644 --- a/FFmpegArgs.Filters/AudioFilters/AdeclipFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AdeclipFilter.cs @@ -21,15 +21,6 @@ a 0 ..F.A...... overlap-add save 1 ..F.A...... overlap-save s 1 ..F.A...... overlap-save */ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -42,8 +33,6 @@ internal AdeclipFilter(AudioMap audioMap) : base("adeclip", audioMap) { AddMapOut(); } - - /// /// Set window size, in milliseconds. Allowed range is from 10 to 100. Default value is 55 milliseconds. This sets size of window which will be processed at once. ///

(from 10 to 100) (default 55) @@ -52,7 +41,6 @@ internal AdeclipFilter(AudioMap audioMap) : base("adeclip", audioMap) /// public AdeclipFilter Window(double window) => this.SetOptionRange("w", window, 10, 100); - /// /// Set window overlap, in percentage of window size. Allowed range is from 50 to 95. Default value is 75 percent. ///

(from 50 to 95) (default 75) @@ -61,7 +49,6 @@ public AdeclipFilter Window(double window) /// public AdeclipFilter Overlap(double overlap) => this.SetOptionRange("o", overlap, 50, 95); - /// /// Set autoregression order, in percentage of window size. Allowed range is from 0 to 25. Default value is 8 percent. This option also controls quality of interpolated samples using neighbour good samples.
///
(from 0 to 25) (default 2) @@ -70,7 +57,6 @@ public AdeclipFilter Overlap(double overlap) /// public AdeclipFilter ArOrder(double arorder) => this.SetOptionRange("a", arorder, 0, 25); - /// /// Set threshold value. Allowed range is from 1 to 100. Default value is 10. Higher values make clip detection less aggressive.
///
(from 1 to 100) (default 10) @@ -79,7 +65,6 @@ public AdeclipFilter ArOrder(double arorder) /// public AdeclipFilter Threshold(double threshold) => this.SetOptionRange("t", threshold, 1, 100); - /// /// Set size of histogram used to detect clips. Allowed range is from 100 to 9999. Default value is 1000. Higher values make clip detection less aggressive.
///
(from 100 to 9999) (default 1000) @@ -88,7 +73,6 @@ public AdeclipFilter Threshold(double threshold) /// public AdeclipFilter Hsize(int burst) => this.SetOptionRange("n", burst, 0, 10); - /// /// Set overlap method. /// @@ -97,7 +81,6 @@ public AdeclipFilter Hsize(int burst) public AdeclipFilter Method(AdeclipMethod method) => this.SetOption("m", method.ToString().ToLower()); } - /// /// /// @@ -109,7 +92,6 @@ public static class AdeclipFilterExtensions ///
public static AdeclipFilter AdeclipFilter(this AudioMap audioMap) => new AdeclipFilter(audioMap); } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AevalFilter.cs b/FFmpegArgs.Filters/AudioFilters/AevalFilter.cs index 79415e25..42ba4b25 100644 --- a/FFmpegArgs.Filters/AudioFilters/AevalFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AevalFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System.Linq; -using System; -using System.Collections; -using System.Collections.Generic; + //aeval AVOptions: // exprs ..F.A...... set the '|' - separated list of channels expressions // channel_layout ..F.A...... set channel layout @@ -35,7 +30,6 @@ internal AevalFilter(AudioMap audioMap) : base("aeval", audioMap) /// public AevalFilter Exprs(params Action[] exprs) => this.SetOption("exprs", string.Join("|", exprs.Select(x => x.Run(expression)))); - /// /// Set the ’|’-separated expressions list for each separate channel.
///
If the number of input channels is greater than the number of expressions, the last specified expression is used for the remaining output channels. @@ -44,7 +38,6 @@ public AevalFilter Exprs(params Action[] exprs) /// public AevalFilter Exprs(params string[] exprs) => Exprs(exprs.Select(x => x.Expression()).ToArray()); - /// /// Set output channel layout.
///
If not specified, the channel layout is specified by the number of expressions.
@@ -54,10 +47,7 @@ public AevalFilter Exprs(params string[] exprs) /// public AevalFilter ChannelLayout(string c) => this.SetOption("c", c); - - } - public static class AevalFilterExtensions { /// diff --git a/FFmpegArgs.Filters/AudioFilters/AexciterFilter.cs b/FFmpegArgs.Filters/AudioFilters/AexciterFilter.cs index 1c945f8c..56ead4fd 100644 --- a/FFmpegArgs.Filters/AudioFilters/AexciterFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AexciterFilter.cs @@ -9,15 +9,6 @@ ceil ..F.A....T. set ceiling (from 9999 to 20000) (default 9999) listen ..F.A....T. enable listen mode (default false) */ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -30,7 +21,6 @@ internal AexciterFilter(AudioMap audioMap) : base("aexciter", audioMap) { AddMapOut(); } - /// /// Set input level prior processing of signal. (from 0 to 64) (default 1) /// @@ -38,7 +28,6 @@ internal AexciterFilter(AudioMap audioMap) : base("aexciter", audioMap) /// public AexciterFilter LevelIn(double levelIn) => this.SetOptionRange("level_in", levelIn, 0, 64); - /// /// Set output level after processing of signal. (from 0 to 64) (default 1) /// @@ -46,7 +35,6 @@ public AexciterFilter LevelIn(double levelIn) /// public AexciterFilter LevelOut(double levelOut) => this.SetOptionRange("level_out", levelOut, 0, 64); - /// /// Set the amount of harmonics added to original signal (from 0 to 64) (default 1) /// @@ -54,7 +42,6 @@ public AexciterFilter LevelOut(double levelOut) /// public AexciterFilter Amount(double amount) => this.SetOptionRange("amount", amount, 0, 64); - /// /// Set the amount of newly created harmonics (from 0.1 to 10) (default 8.5) /// @@ -62,7 +49,6 @@ public AexciterFilter Amount(double amount) /// public AexciterFilter Drive(double drive) => this.SetOptionRange("drive", drive, 0.1, 10); - /// /// Set the octave of newly created harmonics (from -10 to 10) (default 0) /// @@ -70,7 +56,6 @@ public AexciterFilter Drive(double drive) /// public AexciterFilter Blend(double blend) => this.SetOptionRange("blend", blend, -10, 10); - /// /// Set the lower frequency limit of producing harmonics in Hz (from 2000 to 12000) (default 7500) /// @@ -78,7 +63,6 @@ public AexciterFilter Blend(double blend) /// public AexciterFilter Freq(double freq) => this.SetOptionRange("freq", freq, 2000, 12000); - /// /// Set the upper frequency limit of producing harmonics (from 9999 to 20000) (default 9999) /// @@ -86,7 +70,6 @@ public AexciterFilter Freq(double freq) /// public AexciterFilter Ceil(double ceil) => this.SetOptionRange("ceil", ceil, 9999, 20000); - /// /// Mute the original signal and output only added harmonics (default false) /// @@ -94,9 +77,7 @@ public AexciterFilter Ceil(double ceil) /// public AexciterFilter Listen(bool listen) => this.SetOption("listen", listen.ToFFmpegFlag()); - } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AfadeFilter.cs b/FFmpegArgs.Filters/AudioFilters/AfadeFilter.cs index 4b6cd2e3..e4388be2 100644 --- a/FFmpegArgs.Filters/AudioFilters/AfadeFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AfadeFilter.cs @@ -57,9 +57,6 @@ losi 16 ..F.A....T. logistic sigmoid sinc 17 ..F.A....T. sine cardinal function isinc 18 ..F.A....T. inverted sine cardinal function */ -using FFmpegArgs.Cores.Maps; -using System; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -72,7 +69,6 @@ internal AfadeFilter(AudioMap audioMap) : base("afade", audioMap) { AddMapOut(); } - /// /// Specify the effect type, can be either in for fade-in, or out for a fade-out effect. Default is in. /// @@ -80,7 +76,6 @@ internal AfadeFilter(AudioMap audioMap) : base("afade", audioMap) /// public AfadeFilter Type(AfadeType type) => this.SetOption("t", type.ToString().ToLower()); - /// /// Specify the number of the start sample for starting to apply the fade effect. Default is 0. /// @@ -88,7 +83,6 @@ public AfadeFilter Type(AfadeType type) /// public AfadeFilter StartSample(long start_sample) => this.SetOptionRange("ss", start_sample, 0, long.MaxValue); - /// /// Specify the number of samples for which the fade effect has to last.
///
At the end of the fade-in effect the output audio will have the same volume as the input audio, at the end of the fade-out transition the output audio will be silence.
@@ -98,7 +92,6 @@ public AfadeFilter StartSample(long start_sample) /// public AfadeFilter NbSamples(int nb_samples) => this.SetOptionRange("ns", nb_samples, 1, int.MaxValue); - /// /// Specify the start time of the fade effect. Default is 0. The value must be specified as a time duration.
///
If set this option is used instead of start_sample. @@ -107,7 +100,6 @@ public AfadeFilter NbSamples(int nb_samples) /// public AfadeFilter StartTime(TimeSpan st) => this.SetOptionRange("st", st, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Specify the duration of the fade effect.
///
At the end of the fade-in effect the output audio will have the same volume as the input audio, at the end of the fade-out transition the output audio will be silence.
@@ -117,7 +109,6 @@ public AfadeFilter StartTime(TimeSpan st) /// public AfadeFilter Duration(TimeSpan duration) => this.SetOptionRange("d", duration, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Set curve for fade transition. /// @@ -126,7 +117,6 @@ public AfadeFilter Duration(TimeSpan duration) public AfadeFilter Curve(AfadeCurve curve) => this.SetOption("curve", curve.ToString()); } - /// /// /// @@ -140,7 +130,6 @@ public static class AfadeFilterExtension public static AfadeFilter AfadeFilter(this AudioMap audioMap) => new AfadeFilter(audioMap); } - /// /// /// @@ -155,7 +144,6 @@ public enum AfadeType ///
Out } - /// /// /// @@ -165,97 +153,78 @@ public enum AfadeCurve /// select triangular, linear slope (default) ///
tri, - /// /// select quarter of sine wave /// qsin, - /// /// select half of sine wave /// hsin, - /// /// select exponential sine wave /// esin, - /// /// select logarithmic /// log, - /// /// select inverted parabola /// ipar, - /// /// select quadratic /// qua, - /// /// select cubic /// cub, - /// /// select square root /// squ, - /// /// select cubic root /// cbr, - /// /// select parabola /// par, - /// /// select exponential /// exp, - /// /// select inverted quarter of sine wave /// iqsin, - /// /// select inverted half of sine wave /// ihsin, - /// /// select double-exponential seat /// dese, - /// /// select double-exponential sigmoid /// desi, - /// /// select logistic sigmoid /// losi, - /// /// select sine cardinal function /// sinc, - /// /// select inverted sine cardinal function /// isinc, - /// /// no fade applied /// diff --git a/FFmpegArgs.Filters/AudioFilters/AfftdnFilter.cs b/FFmpegArgs.Filters/AudioFilters/AfftdnFilter.cs index 09799d11..20e7b57e 100644 --- a/FFmpegArgs.Filters/AudioFilters/AfftdnFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AfftdnFilter.cs @@ -16,8 +16,6 @@ i 0 ..F.A....T. input o 1 ..F.A....T. output n 2 ..F.A....T. noise */ -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -30,7 +28,6 @@ internal AfftdnFilter(AudioMap audioMap) : base("afftdn", audioMap) { AddMapOut(); } - /// /// Set the noise reduction in dB, allowed range is 0.01 to 97. Default value is 12 dB. /// @@ -38,7 +35,6 @@ internal AfftdnFilter(AudioMap audioMap) : base("afftdn", audioMap) /// public AfftdnFilter NR(float nr) => this.SetOptionRange("nr", nr, 0.01f, 97); - /// /// Set the noise floor in dB, allowed range is -80 to -20. Default value is -50 dB. /// @@ -46,7 +42,6 @@ public AfftdnFilter NR(float nr) /// public AfftdnFilter NF(float nf) => this.SetOptionRange("nf", nf, -80, -20); - /// /// Set the noise type /// @@ -54,7 +49,6 @@ public AfftdnFilter NF(float nf) /// public AfftdnFilter NT(AfftdnNoiseType nt) => this.SetOption("nt", nt); - /// /// Set custom band noise for every one of 15 bands. /// @@ -62,7 +56,6 @@ public AfftdnFilter NT(AfftdnNoiseType nt) /// public AfftdnFilter BN(params int[] bands) => this.SetOption("bn", string.Join(" ", bands)); - /// /// Set the residual floor in dB, allowed range is -80 to -20. Default value is -38 dB. /// @@ -70,7 +63,6 @@ public AfftdnFilter BN(params int[] bands) /// public AfftdnFilter RF(float rf) => this.SetOptionRange("rf", rf, -80, -20); - /// /// Enable noise tracking. By default is disabled. With this enabled, noise floor is automatically adjusted. /// @@ -78,7 +70,6 @@ public AfftdnFilter RF(float rf) /// public AfftdnFilter TN(bool flag) => this.SetOption("tn", flag.ToFFmpegFlag()); - /// /// Enable residual tracking. By default is disabled. /// @@ -86,7 +77,6 @@ public AfftdnFilter TN(bool flag) /// public AfftdnFilter TR(bool flag) => this.SetOption("tr", flag.ToFFmpegFlag()); - /// /// Set the output mode. /// @@ -94,12 +84,8 @@ public AfftdnFilter TR(bool flag) /// public AfftdnFilter OM(AfftdnOutputMode om) => this.SetOption("om", om); - - - //https://ffmpeg.org/ffmpeg-filters.html#Commands-6 } - /// /// /// @@ -113,7 +99,6 @@ public static class AfftdnFilterExtension public static AfftdnFilter AfftdnFilter(this AudioMap audioMap) => new AfftdnFilter(audioMap); } - /// /// /// @@ -136,7 +121,6 @@ public enum AfftdnNoiseType /// c } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AfftfiltFilter.cs b/FFmpegArgs.Filters/AudioFilters/AfftfiltFilter.cs index b3e525fd..c14bc13e 100644 --- a/FFmpegArgs.Filters/AudioFilters/AfftfiltFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AfftfiltFilter.cs @@ -27,11 +27,6 @@ poisson 18 ..F.A...... Poisson bohman 19 ..F.A...... Bohman overlap ..F.A...... set window overlap (from 0 to 1) (default 0.75) */ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -61,7 +56,6 @@ internal AfftfiltFilter(AudioMap audioMap) : base("afftfilt", audioMap) { AddMapOut(); } - /// /// Set frequency domain real expression for each separate channel separated by ’|’. Default is "re".
///
If the number of input channels is greater than the number of expressions, the last specified expression is used for the remaining output channels. @@ -70,7 +64,6 @@ internal AfftfiltFilter(AudioMap audioMap) : base("afftfilt", audioMap) /// public AfftfiltFilter Real(Action real) => this.SetOption("real", real.Run(expression)); - /// /// Set frequency domain real expression for each separate channel separated by ’|’. Default is "re".
///
If the number of input channels is greater than the number of expressions, the last specified expression is used for the remaining output channels. @@ -79,8 +72,6 @@ public AfftfiltFilter Real(Action real) /// public AfftfiltFilter Real(string real) => this.SetOption("real", real.Expression().Run(expression)); - - /// /// Set frequency domain imaginary expression for each separate channel separated by ’|’. Default is "im". /// @@ -88,7 +79,6 @@ public AfftfiltFilter Real(string real) /// public AfftfiltFilter Imag(Action imag) => this.SetOption("imag", imag.Run(expression)); - /// /// Set frequency domain imaginary expression for each separate channel separated by ’|’. Default is "im". /// @@ -96,7 +86,6 @@ public AfftfiltFilter Imag(Action imag) /// public AfftfiltFilter Imag(string imag) => this.SetOption("imag", imag.Expression().Run(expression)); - /// /// Set window size. Allowed range is from 16 to 131072. Default is 4096 /// @@ -104,7 +93,6 @@ public AfftfiltFilter Imag(string imag) /// public AfftfiltFilter WinSize(int win_size) => this.SetOptionRange("win_size", win_size, 16, 131072); - /// /// Set window function. /// @@ -112,7 +100,6 @@ public AfftfiltFilter WinSize(int win_size) /// public AfftfiltFilter WinFunc(AfftfiltWinFunc win_func) => this.SetOption("win_func", win_func); - /// /// Set window overlap. If set to 1, the recommended overlap for selected window function will be picked. (from 0 to 1) (default 0.75) /// @@ -121,7 +108,6 @@ public AfftfiltFilter WinFunc(AfftfiltWinFunc win_func) public AfftfiltFilter Overlap(float overlap) => this.SetOptionRange("overlap", overlap, 0, 1); } - /// /// /// @@ -135,7 +121,6 @@ public static class AfftfiltFilterExtension public static AfftfiltFilter AfftfiltFilter(this AudioMap audioMap) => new AfftfiltFilter(audioMap); } - /// /// set window function /// diff --git a/FFmpegArgs.Filters/AudioFilters/AfirFilter.cs b/FFmpegArgs.Filters/AudioFilters/AfirFilter.cs index 61e37a34..39c8a73d 100644 --- a/FFmpegArgs.Filters/AudioFilters/AfirFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AfirFilter.cs @@ -22,9 +22,6 @@ input 1 ..F.A...... same as input nbirs ..F.A...... set number of input IRs (from 1 to 32) (default 1) ir ..F.A....T. select IR (from 0 to 31) (default 0) */ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -37,7 +34,6 @@ internal AfirFilter(AudioMap audioMap) : base("afir", audioMap) { AddMapOut(); } - /// /// Set dry gain. This sets input gain. (from 0 to 10) (default 1) /// @@ -45,7 +41,6 @@ internal AfirFilter(AudioMap audioMap) : base("afir", audioMap) /// public AfirFilter Dry(float dry) => this.SetOptionRange("dry", dry, 0, 10); - /// /// Set wet gain. This sets final output gain. (from 0 to 10) (default 1) /// @@ -53,7 +48,6 @@ public AfirFilter Dry(float dry) /// public AfirFilter Wet(float wet) => this.SetOptionRange("wet", wet, 0, 10); - /// /// Set Impulse Response filter length. Default is 1, which means whole IR is processed. (from 0 to 1) (default 1) /// @@ -61,7 +55,6 @@ public AfirFilter Wet(float wet) /// public AfirFilter Length(float length) => this.SetOptionRange("length", length, 0, 1); - /// /// Enable applying gain measured from power of IR.

/// Set which approach to use for auto gain measurement. @@ -70,7 +63,6 @@ public AfirFilter Length(float length) /// public AfirFilter Gtype(AfirGtype gtype) => this.SetOption("gtype", gtype); - /// /// Set gain to be applied to IR coefficients before filtering.
///
Allowed range is 0 to 1. This gain is applied after any gain applied with gtype option. (from 0 to 1) (default 1) @@ -79,7 +71,6 @@ public AfirFilter Gtype(AfirGtype gtype) /// public AfirFilter IrGain(float irgain) => this.SetOptionRange("irgain", irgain, 0, 1); - /// /// Set format of IR stream. Can be mono or input. Default is input. /// @@ -87,7 +78,6 @@ public AfirFilter IrGain(float irgain) /// public AfirFilter Irfmt(AfirIrfmt irfmt) => this.SetOption("irfmt", irfmt); - /// /// Set max allowed Impulse Response filter duration in seconds. Default is 30 seconds. Allowed range is 0.1 to 60 seconds. /// @@ -95,7 +85,6 @@ public AfirFilter Irfmt(AfirIrfmt irfmt) /// public AfirFilter MaxIr(float maxir) => this.SetOptionRange("maxir", maxir, 0.1, 60); - /// /// Show IR frequency response, magnitude(magenta), phase(green) and group delay(yellow) in additional video stream. By default it is disabled. /// @@ -103,7 +92,6 @@ public AfirFilter MaxIr(float maxir) /// public AfirFilter Response(bool flag) => this.SetOption("response", flag.ToFFmpegFlag()); - /// /// Set for which IR channel to display frequency response. By default is first channel displayed. This option is used only when response is enabled. ///

(from 0 to 1024) (default 0) @@ -112,7 +100,6 @@ public AfirFilter Response(bool flag) /// public AfirFilter Channel(int channel) => this.SetOptionRange("channel", channel, 0, 1024); - /// /// Set video stream size. This option is used only when response is enabled. /// @@ -120,7 +107,6 @@ public AfirFilter Channel(int channel) /// public AfirFilter Size(Size size) => this.SetOption("size", $"{size.Width}x{size.Height}"); - /// /// Set video stream frame rate. This option is used only when response is enabled. /// @@ -128,7 +114,6 @@ public AfirFilter Size(Size size) /// public AfirFilter Rate(Rational rate) => this.SetOption("rate", rate.Check(0, double.MaxValue)); - /// /// Set minimal partition size used for convolution. Default is 8192. Allowed range is from 1 to 32768.
///
Lower values decreases latency at cost of higher CPU usage. @@ -137,7 +122,6 @@ public AfirFilter Rate(Rational rate) /// public AfirFilter Minp(int minp) => this.SetOptionRange("minp", minp, 1, 32768); - /// /// Set maximal partition size used for convolution. Default is 8192. Allowed range is from 8 to 32768.
///
Lower values may increase CPU usage. @@ -146,7 +130,6 @@ public AfirFilter Minp(int minp) /// public AfirFilter Maxp(int maxp) => this.SetOptionRange("maxp", maxp, 8, 32768); - /// /// Set number of input impulse responses streams which will be switchable at runtime.
///
Allowed range is from 1 to 32. Default is 1. @@ -155,7 +138,6 @@ public AfirFilter Maxp(int maxp) /// public AfirFilter Nbirs(int nbirs) => this.SetOptionRange("nbirs", nbirs, 1, 32); - /// /// Set IR stream which will be used for convolution, starting from 0, should always be lower than supplied value by nbirs option.
///
Default is 0. This option can be changed at runtime via commands. @@ -204,7 +186,6 @@ public enum AfirGtype ///
gn } - /// /// /// @@ -219,5 +200,4 @@ public enum AfirIrfmt ///
input } - } diff --git a/FFmpegArgs.Filters/AudioFilters/AformatFilter.cs b/FFmpegArgs.Filters/AudioFilters/AformatFilter.cs index 16e1c31d..33d49418 100644 --- a/FFmpegArgs.Filters/AudioFilters/AformatFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AformatFilter.cs @@ -7,10 +7,6 @@ channel_layouts ..F.A...... A '|'-separated list of channel layouts. cl ..F.A...... A '|'-separated list of channel layouts. */ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System.Linq; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -23,15 +19,13 @@ internal AformatFilter(AudioMap audioMap) : base("aformat", audioMap) { AddMapOut(); } - /// /// A ’|’-separated list of requested sample formats. /// /// /// public AformatFilter SampleFmts(params AVSampleFormat[] fmts) - => this.SetOption("f", string.Join("|", fmts.Select(x => x.GetAttribute().Name))); - + => this.SetOption("f", string.Join("|", fmts.Select(x => x.GetEnumAttribute().Name))); /// /// list of requested sample rates. /// @@ -39,7 +33,6 @@ public AformatFilter SampleFmts(params AVSampleFormat[] fmts) /// public AformatFilter SampleRates(params int[] r) => this.SetOption("r", string.Join("|", r)); - /// /// A ’|’-separated list of requested channel layouts.
///
https://ffmpeg.org/ffmpeg-utils.html#channel-layout-syntax @@ -47,9 +40,8 @@ public AformatFilter SampleRates(params int[] r) /// /// public AformatFilter ChannelLayouts(params ChannelLayout[] cls) - => this.SetOption("cl", string.Join("|", cls.Select(x => x.GetAttribute().Name))); + => this.SetOption("cl", string.Join("|", cls.Select(x => x.GetEnumAttribute().Name))); } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AfreqshiftFilter.cs b/FFmpegArgs.Filters/AudioFilters/AfreqshiftFilter.cs index ea583274..d0742be0 100644 --- a/FFmpegArgs.Filters/AudioFilters/AfreqshiftFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AfreqshiftFilter.cs @@ -3,10 +3,6 @@ shift ..F.A....T. set frequency shift (from -2.14748e+09 to INT_MAX) (default 0) level ..F.A....T. set output level (from 0 to 1) (default 1) */ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -19,7 +15,6 @@ internal AfreqshiftFilter(AudioMap audioMap) : base("afreqshift", audioMap) { AddMapOut(); } - /// /// Specify frequency shift. (from -2.14748e+09 to INT_MAX) (default 0) /// @@ -27,7 +22,6 @@ internal AfreqshiftFilter(AudioMap audioMap) : base("afreqshift", audioMap) /// public AfreqshiftFilter Shift(double shift) => this.SetOptionRange("shift", shift, -2.14748e+09, INT_MAX); - /// /// Set output gain applied to final output. Allowed range is from 0.0 to 1.0. Default value is 1.0. /// @@ -35,7 +29,6 @@ public AfreqshiftFilter Shift(double shift) /// public AfreqshiftFilter Level(double level) => this.SetOptionRange("level", level, 0.0, 1.0); - /// /// Set filter order used for filtering. Allowed range is from 1 to 16. Default value is 8. /// @@ -44,7 +37,6 @@ public AfreqshiftFilter Level(double level) //public AfreqshiftFilter Order(int order) // => this.SetOptionRange("order", order, 1, 16); } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AfwtdnFilter.cs b/FFmpegArgs.Filters/AudioFilters/AfwtdnFilter.cs index 9f6f2ed4..3a8c72d7 100644 --- a/FFmpegArgs.Filters/AudioFilters/AfwtdnFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AfwtdnFilter.cs @@ -1,15 +1,14 @@ ///* - // */ //using FFmpegArgs.Cores.Filters; //using FFmpegArgs.Cores.Maps; -//using FFmpegArgs.Filters.Enums; +//using FFmpegArgs.Attributes; +//using FFmpegArgs.Enums; //using System; //using System.Collections.Generic; //using System.Drawing; //using System.Linq; //using System.Text; - //namespace FFmpegArgs.Filters.AudioFilters //{ // /// @@ -22,11 +21,7 @@ // { // AddMapOut(); // } - - - // } - // /// // /// // /// diff --git a/FFmpegArgs.Filters/AudioFilters/AgateFilter.cs b/FFmpegArgs.Filters/AudioFilters/AgateFilter.cs index 745579c6..659b1b67 100644 --- a/FFmpegArgs.Filters/AudioFilters/AgateFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AgateFilter.cs @@ -19,15 +19,6 @@ average 0 ..F.A....T. maximum 1 ..F.A....T. level_sc ..F.A....T. set sidechain gain (from 0.015625 to 64) (default 1) */ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -40,7 +31,6 @@ internal AgateFilter(AudioMap audioMap) : base("agate", audioMap) { AddMapOut(); } - /// /// Set input level before filtering. Default is 1. Allowed range is from 0.015625 to 64. /// @@ -48,7 +38,6 @@ internal AgateFilter(AudioMap audioMap) : base("agate", audioMap) /// public AgateFilter LevelIn(double level_in) => this.SetOptionRange("level_in", level_in, 0.015625, 64); - /// /// Set the mode of operation. Can be upward or downward. Default is downward. If set to upward mode, higher parts of signal will be amplified, expanding dynamic range in upward direction. Otherwise, in case of downward lower parts of signal will be reduced. /// @@ -56,7 +45,6 @@ public AgateFilter LevelIn(double level_in) /// public AgateFilter Mode(AgateMode mode) => this.SetOption("mode", mode); - /// /// Set the level of gain reduction when the signal is below the threshold. Default is 0.06125. Allowed range is from 0 to 1. Setting this to 0 disables reduction and then filter behaves like expander.
///
(from 0 to 1) (default 0.06125) @@ -65,7 +53,6 @@ public AgateFilter Mode(AgateMode mode) /// public AgateFilter Range(double range) => this.SetOptionRange("range", range, 0, 1); - /// /// If a signal rises above this level the gain reduction is released. Default is 0.125. Allowed range is from 0 to 1.
///
(from 0 to 1) (default 0.125) @@ -74,7 +61,6 @@ public AgateFilter Range(double range) /// public AgateFilter Threshold(double threshold) => this.SetOptionRange("threshold", threshold, 0, 1); - /// /// Set a ratio by which the signal is reduced. Default is 2. Allowed range is from 1 to 9000.
///
(from 1 to 9000) (default 2) @@ -83,7 +69,6 @@ public AgateFilter Threshold(double threshold) /// public AgateFilter Ratio(double ratio) => this.SetOptionRange("ratio", ratio, 1, 9000); - /// /// Amount of milliseconds the signal has to rise above the threshold before gain reduction stops. Default is 20 milliseconds. Allowed range is from 0.01 to 9000.
///
(from 0.01 to 9000) (default 20) @@ -92,7 +77,6 @@ public AgateFilter Ratio(double ratio) /// public AgateFilter Attack(double attack) => this.SetOptionRange("attack", attack, 0.01, 9000); - /// /// Amount of milliseconds the signal has to fall below the threshold before the reduction is increased again. Default is 250 milliseconds. Allowed range is from 0.01 to 9000.
///
(from 0.01 to 9000) (default 250) @@ -101,7 +85,6 @@ public AgateFilter Attack(double attack) /// public AgateFilter Release(double release) => this.SetOptionRange("release", release, 0.01, 9000); - /// /// Set amount of amplification of signal after processing. Default is 1. Allowed range is from 1 to 64.
///
(from 1 to 64) (default 1) @@ -110,7 +93,6 @@ public AgateFilter Release(double release) /// public AgateFilter MakeUp(double makeup) => this.SetOptionRange("makeup", makeup, 1, 64); - /// /// Curve the sharp knee around the threshold to enter gain reduction more softly. Default is 2.828427125. Allowed range is from 1 to 8.
///
(from 1 to 8) (default 2.82843) @@ -119,7 +101,6 @@ public AgateFilter MakeUp(double makeup) /// public AgateFilter Knee(double knee) => this.SetOptionRange("knee", knee, 1, 8); - /// /// Choose if exact signal should be taken for detection or an RMS like one. Default is rms. Can be peak or rms.
///
@@ -128,7 +109,6 @@ public AgateFilter Knee(double knee) /// public AgateFilter Detection(AgateDetection detection) => this.SetOption("detection", detection); - /// /// Choose if the average level between all channels or the louder channel affects the reduction. Default is average. Can be average or maximum. /// @@ -136,7 +116,6 @@ public AgateFilter Detection(AgateDetection detection) /// public AgateFilter Link(AgateLink link) => this.SetOption("link", link); - /// /// set sidechain gain (from 0.015625 to 64) (default 1) /// @@ -144,9 +123,7 @@ public AgateFilter Link(AgateLink link) /// public AgateFilter LevelSc(double level_sc) => this.SetOptionRange("level_sc", level_sc, 0.015625, 64); - } - /// /// /// @@ -160,7 +137,6 @@ public static class AgateFilterExtensions public static AgateFilter AgateFilter(this AudioMap audioMap) => new AgateFilter(audioMap); } - /// /// /// @@ -189,7 +165,6 @@ public enum AgateDetection ///
rms } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AloopFilter.cs b/FFmpegArgs.Filters/AudioFilters/AloopFilter.cs index c76d95ad..da27257f 100644 --- a/FFmpegArgs.Filters/AudioFilters/AloopFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AloopFilter.cs @@ -4,15 +4,6 @@ size ..F.A...... max number of samples to loop (from 0 to INT_MAX) (default 0) start ..F.A...... set the loop start sample (from 0 to I64_MAX) (default 0) */ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -25,30 +16,25 @@ internal AloopFilter(AudioMap audioMap) : base("aloop", audioMap) { AddMapOut(); } - /// /// Set the number of loops. Setting this value to -1 will result in infinite loops. (from -1 to INT_MAX) (default 0) /// /// /// public AloopFilter Loop(int loop) => this.SetOptionRange("loop", loop, -1, INT_MAX); - /// /// Set maximal number of samples. (from 0 to INT_MAX) (default 0) /// /// /// public AloopFilter Size(long size) => this.SetOptionRange("size", size, 0, INT_MAX); - /// /// Set first sample of loop. (from 0 to I64_MAX) (default 0) /// /// /// public AloopFilter Start(long start) => this.SetOptionRange("start", start, 0, I64_MAX); - } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/AmergeFilter.cs b/FFmpegArgs.Filters/AudioFilters/AmergeFilter.cs index 45c7c90e..e4c0f768 100644 --- a/FFmpegArgs.Filters/AudioFilters/AmergeFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AmergeFilter.cs @@ -1,11 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace FFmpegArgs.Filters.AudioFilters +namespace FFmpegArgs.Filters.AudioFilters { /// /// ... amerge N->A Merge two or more audio streams into a single multi-channel stream.
@@ -13,13 +6,12 @@ namespace FFmpegArgs.Filters.AudioFilters ///
public class AmergeFilter : AudioToAudioFilter { - internal AmergeFilter(params AudioMap[] audioMaps) : base("amerge",audioMaps) + internal AmergeFilter(params AudioMap[] audioMaps) : base("amerge", audioMaps) { if (audioMaps.Length < 2) throw new ArgumentException($"audioMaps as least 2 items"); this.SetOption("inputs", audioMaps.Length); } } - public static class AmergeFilterExtensions { /// @@ -39,8 +31,6 @@ public static AmergeFilter AmergeFilter(this AudioMap audioMap0, params AudioMap audioMapsList.AddRange(audioMaps); return new AmergeFilter(audioMapsList.ToArray()); } - - /// /// Merge two or more audio streams into a single multi-channel stream.
///
If the channel layouts of the inputs are disjoint, and therefore compatible, the channel layout of the output will be set accordingly and the channels will be reordered as necessary. If the channel layouts of the inputs are not disjoint, the output will have all the channels of the first input then all the channels of the second input, in that order, and the channel layout of the output will be the default value corresponding to the total number of channels.
@@ -53,7 +43,6 @@ public static AmergeFilter AmergeFilter(this AudioMap audioMap0, params AudioMap /// public static AmergeFilter AmergeFilter(this IEnumerable audioMaps) => new AmergeFilter(audioMaps.ToArray()); - /// /// Merge two or more audio streams into a single multi-channel stream.
///
If the channel layouts of the inputs are disjoint, and therefore compatible, the channel layout of the output will be set accordingly and the channels will be reordered as necessary. If the channel layouts of the inputs are not disjoint, the output will have all the channels of the first input then all the channels of the second input, in that order, and the channel layout of the output will be the default value corresponding to the total number of channels.
diff --git a/FFmpegArgs.Filters/AudioFilters/AmixFilter.cs b/FFmpegArgs.Filters/AudioFilters/AmixFilter.cs index f3581361..41a0cb4f 100644 --- a/FFmpegArgs.Filters/AudioFilters/AmixFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AmixFilter.cs @@ -9,13 +9,6 @@ first 2 ..F.A...... Duration of first input. weights ..F.A....T. Set weight for each input. (default "1 1") normalize ..F.A....T. Scale inputs (default true) */ -using FFmpegArgs.Cores.Maps; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace FFmpegArgs.Filters.AudioFilters { /// @@ -24,13 +17,12 @@ namespace FFmpegArgs.Filters.AudioFilters /// public class AmixFilter : AudioToAudioFilter, ICommandSupport { - internal AmixFilter(params AudioMap[] audioMaps) : base("amix",audioMaps) + internal AmixFilter(params AudioMap[] audioMaps) : base("amix", audioMaps) { if (audioMaps.Length < 2) throw new ArgumentException($"audioMaps as least 2 items"); AddMapOut(); this.SetOption("inputs", audioMaps.Length); } - /// /// How to determine the end-of-stream. /// @@ -38,7 +30,6 @@ internal AmixFilter(params AudioMap[] audioMaps) : base("amix",audioMaps) /// public AmixFilter Duration(AmixDuration duration) => this.SetOption("duration", duration); - /// /// Transition time, in seconds, for volume renormalization when an input stream ends. (from 0 to INT_MAX) (default 2) /// @@ -46,7 +37,6 @@ public AmixFilter Duration(AmixDuration duration) /// public AmixFilter DropoutTransition(float dropout_transition) => this.SetOptionRange("dropout_transition", dropout_transition, 0, INT_MAX); - /// /// Specify weight of each input audio stream as sequence. Each weight is separated by space. By default all inputs have same weight.
///
Set weight for each input. (default "1 1") @@ -55,7 +45,6 @@ public AmixFilter DropoutTransition(float dropout_transition) /// public AmixFilter Weights(string weights) => this.SetOption("weights", weights); - /// /// Always scale inputs instead of only doing summation of samples. Beware of heavy clipping if inputs are not normalized prior or after filtering by this filter if this option is disabled. By default is enabled. /// @@ -64,7 +53,6 @@ public AmixFilter Weights(string weights) public AmixFilter Normalize(bool flag) => this.SetOption("normalize", flag.ToFFmpegFlag()); } - /// /// /// @@ -83,8 +71,6 @@ public static AmixFilter AmixFilter(this AudioMap audioMap0, params AudioMap[] a audioMapsList.AddRange(audioMaps); return new AmixFilter(audioMapsList.ToArray()); } - - /// /// Mixes multiple audio inputs into a single output.
///
Note that this filter only supports float samples(the amerge and pan audio filters support many formats). If the amix input has integer samples then aresample will be automatically inserted to perform the conversion to float samples. @@ -93,7 +79,6 @@ public static AmixFilter AmixFilter(this AudioMap audioMap0, params AudioMap[] a /// public static AmixFilter AmixFilter(this IEnumerable audioMaps) => new AmixFilter(audioMaps.ToArray()); - /// /// Mixes multiple audio inputs into a single output.
///
Note that this filter only supports float samples(the amerge and pan audio filters support many formats). If the amix input has integer samples then aresample will be automatically inserted to perform the conversion to float samples. @@ -103,7 +88,6 @@ public static AmixFilter AmixFilter(this IEnumerable audioMaps) public static AmixFilter AmixFilter(this AudioMap[] audioMaps) => new AmixFilter(audioMaps); } - /// /// /// diff --git a/FFmpegArgs.Filters/AudioFilters/Aresample.cs b/FFmpegArgs.Filters/AudioFilters/Aresample.cs index b4196bfa..afb9780d 100644 --- a/FFmpegArgs.Filters/AudioFilters/Aresample.cs +++ b/FFmpegArgs.Filters/AudioFilters/Aresample.cs @@ -1,12 +1,4 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - + namespace FFmpegArgs.Filters.AudioFilters { /// @@ -20,7 +12,9 @@ internal AresampleFilter(AudioMap audioMap) : base("aresample", audioMap) AddMapOut(); } } - + /// + /// + /// public static class AresampleFilterExtensions { /// diff --git a/FFmpegArgs.Filters/AudioFilters/AsetrateFilter.cs b/FFmpegArgs.Filters/AudioFilters/AsetrateFilter.cs index 836a68b8..501ba270 100644 --- a/FFmpegArgs.Filters/AudioFilters/AsetrateFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AsetrateFilter.cs @@ -1,12 +1,4 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - + namespace FFmpegArgs.Filters.AudioFilters { /// @@ -19,7 +11,6 @@ internal AsetrateFilter(AudioMap audioMap) : base("asetrate", audioMap) { AddMapOut(); } - /// /// Set the output sample rate. Default is 44100 Hz. /// @@ -27,9 +18,10 @@ internal AsetrateFilter(AudioMap audioMap) : base("asetrate", audioMap) /// public AsetrateFilter SampleRate(int r) => this.SetOptionRange("r", r, 0, INT_MAX); - } - + /// + /// + /// public static class AsetrateFilterExtensions { /// @@ -37,6 +29,5 @@ public static class AsetrateFilterExtensions /// public static AsetrateFilter AsetrateFilter(this AudioMap audioMap) => new AsetrateFilter(audioMap); - } } diff --git a/FFmpegArgs.Filters/AudioFilters/AtrimFilter.cs b/FFmpegArgs.Filters/AudioFilters/AtrimFilter.cs index a99b3ca5..eeb97d21 100644 --- a/FFmpegArgs.Filters/AudioFilters/AtrimFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/AtrimFilter.cs @@ -1,12 +1,4 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - + namespace FFmpegArgs.Filters.AudioFilters { /// @@ -19,7 +11,6 @@ internal AtrimFilter(AudioMap audioMap) : base("atrim", audioMap) { AddMapOut(); } - /// /// Timestamp (in seconds) of the start of the section to keep. I.e. the audio sample with the timestamp start will be the first sample in the output. /// @@ -27,7 +18,6 @@ internal AtrimFilter(AudioMap audioMap) : base("atrim", audioMap) /// public AtrimFilter Start(TimeSpan start) => this.SetOptionRange("start", start, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Specify time of the first audio sample that will be dropped, i.e. the audio sample immediately preceding the one with the timestamp end will be the last sample in the output. /// @@ -35,7 +25,6 @@ public AtrimFilter Start(TimeSpan start) /// public AtrimFilter End(TimeSpan end) => this.SetOptionRange("end", end, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Same as start, except this option sets the start timestamp in samples instead of seconds. /// @@ -43,7 +32,6 @@ public AtrimFilter End(TimeSpan end) /// public AtrimFilter StartPts(long start_pts) => this.SetOptionRange("start_pts", start_pts, I64_MIN, I64_MAX); - /// /// Same as end, except this option sets the end timestamp in samples instead of seconds. /// @@ -51,7 +39,6 @@ public AtrimFilter StartPts(long start_pts) /// public AtrimFilter EndPts(long end_pts) => this.SetOptionRange("end_pts", end_pts, I64_MIN, I64_MAX); - /// /// The maximum duration of the output in seconds. /// @@ -59,7 +46,6 @@ public AtrimFilter EndPts(long end_pts) /// public AtrimFilter Duration(TimeSpan duration) => this.SetOptionRange("duration", duration, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// The number of the first sample that should be output. /// @@ -67,7 +53,6 @@ public AtrimFilter Duration(TimeSpan duration) /// public AtrimFilter StartSample(long start_sample) => this.SetOptionRange("start_sample", start_sample, -1, I64_MAX); - /// /// The number of the first sample that should be dropped /// @@ -76,7 +61,9 @@ public AtrimFilter StartSample(long start_sample) public AtrimFilter EndSample(long end_sample) => this.SetOptionRange("end_sample", end_sample, 0, I64_MAX); } - + /// + /// + /// public static class AtrimFilterExtensions { /// diff --git a/FFmpegArgs.Filters/AudioFilters/VolumeFilter.cs b/FFmpegArgs.Filters/AudioFilters/VolumeFilter.cs index 146d7ef6..2c65ef65 100644 --- a/FFmpegArgs.Filters/AudioFilters/VolumeFilter.cs +++ b/FFmpegArgs.Filters/AudioFilters/VolumeFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.AudioFilters +namespace FFmpegArgs.Filters.AudioFilters { /// /// T.C volume A->A Change input volume.

@@ -31,7 +26,6 @@ internal VolumeFilter(AudioMap audioMap) : base("volume", audioMap) { AddMapOut(); } - /// /// Set audio volume expression.

/// Output values are clipped to the maximum value.

@@ -65,7 +59,6 @@ public VolumeFilter Volume(Action volume) /// public VolumeFilter Volume(float volume) => this.SetOptionRange("volume", volume, 0, float.MaxValue); - /// /// This parameter represents the mathematical precision.
///
It determines which input sample formats will be allowed, which affects the precision of the volume scaling. @@ -74,7 +67,6 @@ public VolumeFilter Volume(float volume) /// public VolumeFilter Precision(VolumeNumberPrecision precision) => this.SetOption("precision", precision.ToString().ToLower()); - /// /// Choose the behaviour on encountering ReplayGain side data in input frames. /// @@ -82,7 +74,6 @@ public VolumeFilter Precision(VolumeNumberPrecision precision) /// public VolumeFilter ReplayGain(VolumeReplayGain replayGain) => this.SetOption("replaygain", replayGain.ToString().ToLower()); - /// /// Set when the volume expression is evaluated. /// @@ -90,7 +81,6 @@ public VolumeFilter ReplayGain(VolumeReplayGain replayGain) /// public VolumeFilter Eval(VolumeEval eval) => this.SetOption("eval", eval.ToString().ToLower()); - /// /// Pre-amplification gain in dB to apply to the selected replaygain gain.

/// Default value for replaygain_preamp is 0.0.
@@ -100,7 +90,6 @@ public VolumeFilter Eval(VolumeEval eval) /// public VolumeFilter ReplaygainPreamp(double replaygain_preamp) => this.SetOptionRange("replaygain_preamp", replaygain_preamp, -15, 15); - /// /// Prevent clipping by limiting the gain applied.

/// Default value for replaygain_noclip is 1. @@ -110,7 +99,6 @@ public VolumeFilter ReplaygainPreamp(double replaygain_preamp) public VolumeFilter ReplaygainNoclip(bool replaygain_noclip) => this.SetOption("replaygain_noclip", replaygain_noclip.ToFFmpegFlag()); } - public static class VolumeFilterExtension { /// @@ -120,7 +108,6 @@ public static class VolumeFilterExtension /// public static VolumeFilter VolumeFilter(this AudioMap audioMap) => new VolumeFilter(audioMap); - /// /// Adjust the input audio volume. /// @@ -129,7 +116,6 @@ public static VolumeFilter VolumeFilter(this AudioMap audioMap) /// public static VolumeFilter VolumeFilter(this AudioMap audioMap, Action volume) => new VolumeFilter(audioMap).Volume(volume); - /// /// Adjust the input audio volume. /// @@ -139,8 +125,6 @@ public static VolumeFilter VolumeFilter(this AudioMap audioMap, Action new VolumeFilter(audioMap).Volume(volume); } - - /// /// Set when the volume expression is evaluated. /// @@ -150,7 +134,6 @@ public enum VolumeEval /// only evaluate expression once during the filter initialization, or when the ‘volume’ command is sent /// Once, - /// /// evaluate expression for each incoming frame /// @@ -162,12 +145,10 @@ public enum VolumeNumberPrecision /// 8-bit fixed-point; this limits input sample format to U8, S16, and S32. ///
Fixed, - /// /// 32-bit floating-point; this limits input sample format to FLT. (default) /// Float, - /// /// 64-bit floating-point; this limits input sample format to DBL. /// @@ -179,17 +160,14 @@ public enum VolumeReplayGain /// Remove ReplayGain side data, ignoring its contents (the default). ///
drop, - /// /// Ignore ReplayGain side data, but leave it in the frame. /// ignore, - /// /// Prefer the track gain, if present. /// track, - /// /// Prefer the album gain, if present. /// diff --git a/FFmpegArgs.Filters/AudioSinks/AbuffersinkFilter.cs b/FFmpegArgs.Filters/AudioSinks/AbuffersinkFilter.cs index b70af722..9f5d4517 100644 --- a/FFmpegArgs.Filters/AudioSinks/AbuffersinkFilter.cs +++ b/FFmpegArgs.Filters/AudioSinks/AbuffersinkFilter.cs @@ -10,12 +10,9 @@ //{ // internal AbuffersinkFilter() // { - // } //} - //public static class AbuffersinkFilterExtensions //{ - //} } diff --git a/FFmpegArgs.Filters/AudioSinks/AnullsinkFilter.cs b/FFmpegArgs.Filters/AudioSinks/AnullsinkFilter.cs index 9e0b249f..f1710c12 100644 --- a/FFmpegArgs.Filters/AudioSinks/AnullsinkFilter.cs +++ b/FFmpegArgs.Filters/AudioSinks/AnullsinkFilter.cs @@ -10,12 +10,9 @@ //{ // internal AnullsinkFilter() // { - // } //} - //public static class AnullsinkFilterExtensions //{ - //} } diff --git a/FFmpegArgs.Filters/AudioSources/AbufferFilter.cs b/FFmpegArgs.Filters/AudioSources/AbufferFilter.cs index e10c476b..397c2d6a 100644 --- a/FFmpegArgs.Filters/AudioSources/AbufferFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/AbufferFilter.cs @@ -6,8 +6,6 @@ channel_layout ..F.A...... channels ..F.A...... (from 0 to INT_MAX) (default 0) */ -using FFmpegArgs.Filters.Enums; - namespace FFmpegArgs.Filters.AudioSources { /// @@ -20,7 +18,6 @@ internal AbufferFilter(FilterGraph filterGraph) : base("abuffer", filterGraph) { AddMapOut(); } - /// /// The timebase which will be used for timestamps of submitted frames. It must be either a floating-point number or in numerator/denominator form. /// @@ -28,7 +25,6 @@ internal AbufferFilter(FilterGraph filterGraph) : base("abuffer", filterGraph) /// public AbufferFilter TimeBase(Rational time_base) => this.SetOption("time_base", time_base.Check(0, INT_MAX)); - /// /// The sample rate of the incoming audio buffers. /// @@ -36,7 +32,6 @@ public AbufferFilter TimeBase(Rational time_base) /// public AbufferFilter SampleRate(int sample_rate) => this.SetOptionRange("sample_rate", sample_rate, 0, INT_MAX); - /// /// The sample format of the incoming audio buffers.
///
Either a sample format name or its corresponding integer representation from the enum AVSampleFormat in libavutil/samplefmt.h @@ -44,8 +39,7 @@ public AbufferFilter SampleRate(int sample_rate) /// /// public AbufferFilter SampleFmt(AVSampleFormat sample_fmt) - => this.SetOption("sample_fmt", sample_fmt.GetAttribute().Name); - + => this.SetOption("sample_fmt", sample_fmt.GetEnumAttribute().Name); /// /// The channel layout of the incoming audio buffers.
///
Either a channel layout name from channel_layout_map in libavutil/channel_layout.c or its corresponding integer representation from the AV_CH_LAYOUT_* macros in libavutil/channel_layout.h @@ -53,8 +47,7 @@ public AbufferFilter SampleFmt(AVSampleFormat sample_fmt) /// /// public AbufferFilter ChannelLayout(ChannelLayout channel_layout) - => this.SetOption("channel_layout", channel_layout.GetAttribute().Name); - + => this.SetOption("channel_layout", channel_layout.GetEnumAttribute().Name); /// /// The number of channels of the incoming audio buffers. If both channels and channel_layout are specified, then they must be consistent. /// @@ -63,7 +56,9 @@ public AbufferFilter ChannelLayout(ChannelLayout channel_layout) public AbufferFilter Channels(int channels) => this.SetOptionRange("channels", channels, 0, int.MaxValue); } - + /// + /// + /// public static class AbufferFilterExtensions { /// diff --git a/FFmpegArgs.Filters/AudioSources/AevalsrcFilter.cs b/FFmpegArgs.Filters/AudioSources/AevalsrcFilter.cs index 5cc402f5..ffd33ed4 100644 --- a/FFmpegArgs.Filters/AudioSources/AevalsrcFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/AevalsrcFilter.cs @@ -10,11 +10,6 @@ channel_layout ..F.A...... set channel layout c ..F.A...... set channel layout */ -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; -using System.Linq; - namespace FFmpegArgs.Filters.AudioSources { /// @@ -32,7 +27,6 @@ internal AevalsrcFilter(FilterGraph filterGraph) : base("aevalsrc", filterGraph) { AddMapOut(); } - /// /// Set the ’|’-separated expressions list for each separate channel. In case the channel_layout option is not specified, the selected channel layout depends on the number of provided expressions. Otherwise the last specified expression is applied to the remaining output channels. /// @@ -40,7 +34,6 @@ internal AevalsrcFilter(FilterGraph filterGraph) : base("aevalsrc", filterGraph) /// public AevalsrcFilter Exprs(params string[] exprs) => this.SetOption("exprs", string.Join("|", exprs.Select(x => x.Expression().Run(expression).ToString()))); - /// /// Set the ’|’-separated expressions list for each separate channel. In case the channel_layout option is not specified, the selected channel layout depends on the number of provided expressions. Otherwise the last specified expression is applied to the remaining output channels. /// @@ -48,7 +41,6 @@ public AevalsrcFilter Exprs(params string[] exprs) /// public AevalsrcFilter Exprs(params Action[] exprs) => this.SetOption("exprs", string.Join("|", exprs.Select(x => x.Run(expression).ToString()))); - // #NeedMoreInfo /// /// Set the channel layout. The number of channels in the specified layout must be equal to the number of specified expressions. @@ -58,7 +50,6 @@ public AevalsrcFilter Exprs(params Action[] exprs) /// public AevalsrcFilter ChannelLayout(string c) => this.SetOption("c", c); - /// /// Set the minimum duration of the sourced audio.
///
Note that the resulting duration may be greater than the specified duration, as the generated audio is always cut at the end of a complete frame. @@ -68,7 +59,6 @@ public AevalsrcFilter ChannelLayout(string c) /// public AevalsrcFilter Duration(TimeSpan duration) => this.SetOptionRange("d", duration, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Set the number of samples per channel per each output frame, default to 1024. /// @@ -76,7 +66,6 @@ public AevalsrcFilter Duration(TimeSpan duration) /// public AevalsrcFilter NbSamples(int n) => this.SetOptionRange("n", n, 0, INT_MAX); - /// /// Specify the sample rate, default to 44100. /// @@ -85,7 +74,6 @@ public AevalsrcFilter NbSamples(int n) public AevalsrcFilter SampleRate(int s) => this.SetOptionRange("s", s, 0, INT_MAX); } - public static class AevalsrcFilterExtensions { /// diff --git a/FFmpegArgs.Filters/AudioSources/AfirsrcFilter.cs b/FFmpegArgs.Filters/AudioSources/AfirsrcFilter.cs index e2cc35eb..7c858818 100644 --- a/FFmpegArgs.Filters/AudioSources/AfirsrcFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/AfirsrcFilter.cs @@ -55,7 +55,6 @@ parzen 17 ..F.A...... Parzen poisson 18 ..F.A...... Poisson bohman 19 ..F.A...... Bohman */ -using FFmpegArgs.Filters.AudioFilters; namespace FFmpegArgs.Filters.AudioSources { /// @@ -68,7 +67,6 @@ internal AfirsrcFilter(FilterGraph filterGraph) : base("afirsrc", filterGraph) { AddMapOut(); } - /// /// Set number of filter coefficents in output audio stream. (from 9 to 65535) (default 1025) /// @@ -76,7 +74,6 @@ internal AfirsrcFilter(FilterGraph filterGraph) : base("afirsrc", filterGraph) /// public AfirsrcFilter Taps(int t) => this.SetOptionRange("t", t, 9, 65535); - /// /// Set frequency points from where magnitude and phase are set.
///
This must be in non decreasing order, and first element must be 0, while last element must be 1. Elements are separated by white spaces. @@ -86,7 +83,6 @@ public AfirsrcFilter Taps(int t) /// public AfirsrcFilter Frequency(params int[] f) => this.SetOption("f", string.Join(" ", f)); - /// /// set magnitude values (default "1 1") /// @@ -94,8 +90,6 @@ public AfirsrcFilter Frequency(params int[] f) /// public AfirsrcFilter Magnitude(params int[] f) => this.SetOption("m", string.Join(" ", f)); - - /// /// Set phase value for every frequency point set by frequency.
///
Number of values must be same as number of frequency points.
@@ -105,7 +99,6 @@ public AfirsrcFilter Magnitude(params int[] f) /// public AfirsrcFilter Phase(params int[] p) => this.SetOption("p", string.Join(" ", p)); - /// /// Set sample rate, (from 1 to INT_MAX) (default 44100) /// @@ -113,7 +106,6 @@ public AfirsrcFilter Phase(params int[] p) /// public AfirsrcFilter SampleRate(int sample_rate) => this.SetOptionRange("r", sample_rate, 1, INT_MAX); - /// /// Set number of samples per each frame. (from 1 to INT_MAX) (default 1024) /// @@ -121,7 +113,6 @@ public AfirsrcFilter SampleRate(int sample_rate) /// public AfirsrcFilter NbSamples(int nb_samples) => this.SetOptionRange("n", nb_samples, 1, INT_MAX); - /// /// Set window function. Default is blackman. /// @@ -130,7 +121,6 @@ public AfirsrcFilter NbSamples(int nb_samples) public AfirsrcFilter WinFunc(AfirsrcWinfunc win_func) => this.SetOption("w", win_func); } - public static class AfirsrcFilterExtensions { /// @@ -141,7 +131,6 @@ public static class AfirsrcFilterExtensions public static AfirsrcFilter AfirsrcFilter(this FilterGraph filterGraph) => new AfirsrcFilter(filterGraph); } - public enum AfirsrcWinfunc { /// diff --git a/FFmpegArgs.Filters/AudioSources/AnoisesrcFilter.cs b/FFmpegArgs.Filters/AudioSources/AnoisesrcFilter.cs index e459c6fd..23029c49 100644 --- a/FFmpegArgs.Filters/AudioSources/AnoisesrcFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/AnoisesrcFilter.cs @@ -32,8 +32,6 @@ velvet 5 ..F.A...... nb_samples ..F.A...... set the number of samples per requested frame (from 1 to INT_MAX) (default 1024) n ..F.A...... set the number of samples per requested frame (from 1 to INT_MAX) (default 1024) */ -using System; - namespace FFmpegArgs.Filters.AudioSources { /// @@ -46,7 +44,6 @@ internal AnoisesrcFilter(FilterGraph filterGraph) : base("anoisesrc", filterGrap { AddMapOut(); } - /// /// Specify the sample rate. (from 15 to INT_MAX) (default 48000) /// @@ -54,7 +51,6 @@ internal AnoisesrcFilter(FilterGraph filterGraph) : base("anoisesrc", filterGrap /// public AnoisesrcFilter SampleRate(int r) => this.SetOptionRange("r", r, 15, INT_MAX); - /// /// Specify the amplitude of the generated audio stream. (from 0 to 1) (default 1) /// @@ -62,7 +58,6 @@ public AnoisesrcFilter SampleRate(int r) /// public AnoisesrcFilter Amplitude(double a) => this.SetOptionRange("a", a, 0.0, 1.0); - /// /// Specify the duration of the generated audio stream. Not specifying this option results in noise with an infinite length. /// @@ -70,7 +65,6 @@ public AnoisesrcFilter Amplitude(double a) /// public AnoisesrcFilter Duration(TimeSpan d) => this.SetOptionRange("d", d, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Specify the color of noise. Available noise colors are white, pink, brown, blue, violet and velvet. Default color is white. /// @@ -78,7 +72,6 @@ public AnoisesrcFilter Duration(TimeSpan d) /// public AnoisesrcFilter Color(AnoisesrcColor c) => this.SetOption("c", c); - /// /// Specify a value used to seed the PRNG. (from -1 to UINT32_MAX) (default -1) /// @@ -86,7 +79,6 @@ public AnoisesrcFilter Color(AnoisesrcColor c) /// public AnoisesrcFilter Seed(long s) => this.SetOptionRange("s", s, -1, UINT32_MAX); - /// /// Set the number of samples per each output frame, (from 1 to INT_MAX) (default 1024) /// @@ -95,7 +87,6 @@ public AnoisesrcFilter Seed(long s) public AnoisesrcFilter NbSamples(int n) => this.SetOptionRange("n", n, 1, INT_MAX); } - public static class AnoisesrcFilterExtensions { /// @@ -106,7 +97,6 @@ public static class AnoisesrcFilterExtensions public static AnoisesrcFilter AnoisesrcFilter(this FilterGraph filterGraph) => new AnoisesrcFilter(filterGraph); } - public enum AnoisesrcColor { white, diff --git a/FFmpegArgs.Filters/AudioSources/AnullsrcFilter.cs b/FFmpegArgs.Filters/AudioSources/AnullsrcFilter.cs index 3cecace7..d6e38862 100644 --- a/FFmpegArgs.Filters/AudioSources/AnullsrcFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/AnullsrcFilter.cs @@ -9,9 +9,6 @@ duration ..F.A...... set the audio duration (default -0.000001) d ..F.A...... set the audio duration (default -0.000001) */ -using FFmpegArgs.Filters.Enums; -using System; - namespace FFmpegArgs.Filters.AudioSources { /// @@ -24,7 +21,6 @@ internal AnullsrcFilter(FilterGraph filterGraph) : base("anullsrc", filterGraph) { AddMapOut(); } - /// /// Specifies the channel layout, and can be either an integer or a string representing a channel layout. The default value of channel_layout is "stereo". /// Check the channel_layout_map definition in libavutil/channel_layout.c for the mapping between strings and channel layout values. @@ -32,8 +28,7 @@ internal AnullsrcFilter(FilterGraph filterGraph) : base("anullsrc", filterGraph) /// /// public AnullsrcFilter ChannelLayout(ChannelLayout channel_layout) - => this.SetOption("cl", channel_layout.GetAttribute().Name); - + => this.SetOption("cl", channel_layout.GetEnumAttribute().Name); /// /// Specifies the sample rate, and defaults to 44100. /// @@ -41,7 +36,6 @@ public AnullsrcFilter ChannelLayout(ChannelLayout channel_layout) /// public AnullsrcFilter SampleRate(int r) => this.SetOptionRange("r", r, 0, int.MaxValue); - /// /// Set the number of samples per requested frames. (from 1 to 65535) (default 1024) /// @@ -49,7 +43,6 @@ public AnullsrcFilter SampleRate(int r) /// public AnullsrcFilter NbSamples(int n) => this.SetOptionRange("n", n, 1, 65535); - /// /// Set the duration of the sourced audio

/// If not specified, or the expressed duration is negative, the audio is supposed to be generated forever. @@ -60,7 +53,6 @@ public AnullsrcFilter NbSamples(int n) public AnullsrcFilter Duration(TimeSpan d) => this.SetOptionRange("d", d, TimeSpan.MinValue, TimeSpan.MaxValue); } - public static class AnullsrcFilterExtensions { /// @@ -71,6 +63,5 @@ public static class AnullsrcFilterExtensions /// public static AnullsrcFilter AnullsrcFilter(this FilterGraph filterGraph) => new AnullsrcFilter(filterGraph); - } } diff --git a/FFmpegArgs.Filters/AudioSources/FliteFilter.cs b/FFmpegArgs.Filters/AudioSources/FliteFilter.cs index 72cef848..35a47e21 100644 --- a/FFmpegArgs.Filters/AudioSources/FliteFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/FliteFilter.cs @@ -1,5 +1,4 @@ /* - */ namespace FFmpegArgs.Filters.AudioSources { @@ -13,7 +12,6 @@ internal FliteFilter(FilterGraph filterGraph) : base("flite", filterGraph) { AddMapOut(); } - /// /// If set to 1, list the names of the available voices and exit immediately. Default value is 0. /// @@ -21,7 +19,6 @@ internal FliteFilter(FilterGraph filterGraph) : base("flite", filterGraph) /// public FliteFilter ListVoices(bool flag) => this.SetOption("list_voices", flag.ToFFmpegFlag()); - /// /// Set the maximum number of samples per frame. Default value is 512. /// @@ -29,7 +26,6 @@ public FliteFilter ListVoices(bool flag) /// public FliteFilter NbSamples(int n) => this.SetOptionRange("n", n, 0, int.MaxValue); - /// /// Set the filename containing the text to speak. /// @@ -37,7 +33,6 @@ public FliteFilter NbSamples(int n) /// public FliteFilter TextFile(string textFilePath) => this.SetOption("textfile", textFilePath); - /// /// Set the text to speak. /// @@ -45,7 +40,6 @@ public FliteFilter TextFile(string textFilePath) /// public FliteFilter Text(string text) => this.SetOption("text", text); - /// /// Set the voice to use for the speech synthesis. Default value is kal. See also the list_voices option. /// @@ -54,7 +48,6 @@ public FliteFilter Text(string text) public FliteFilter Voice(string v) => this.SetOption("v", v); } - public static class FliteFilterExtensions { /// diff --git a/FFmpegArgs.Filters/AudioSources/HilbertFilter.cs b/FFmpegArgs.Filters/AudioSources/HilbertFilter.cs index 2d35ac4a..45837336 100644 --- a/FFmpegArgs.Filters/AudioSources/HilbertFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/HilbertFilter.cs @@ -49,7 +49,6 @@ parzen 17 ..F.A...... Parzen poisson 18 ..F.A...... Poisson bohman 19 ..F.A...... Bohman */ -using FFmpegArgs.Filters.AudioFilters; namespace FFmpegArgs.Filters.AudioSources { /// @@ -62,7 +61,6 @@ internal HilbertFilter(FilterGraph filterGraph) : base("hilbert", filterGraph) { AddMapOut(); } - /// /// Set sample rate, (from 1 to INT_MAX) (default 44100) /// @@ -70,7 +68,6 @@ internal HilbertFilter(FilterGraph filterGraph) : base("hilbert", filterGraph) /// public HilbertFilter SampleRate(int r) => this.SetOptionRange("r", r, 1, INT_MAX); - /// /// Set length of FIR filter, (from 11 to 65535) (default 22051) /// @@ -78,7 +75,6 @@ public HilbertFilter SampleRate(int r) /// public HilbertFilter Taps(int t) => this.SetOptionRange("t", t, 11, 65535); - /// /// Set number of samples per each frame. (from 1 to INT_MAX) (default 1024) /// @@ -86,7 +82,6 @@ public HilbertFilter Taps(int t) /// public HilbertFilter NbSamples(int n) => this.SetOptionRange("n", n, 1, INT_MAX); - /// /// Set window function to be used when generating FIR coefficients. /// @@ -95,7 +90,6 @@ public HilbertFilter NbSamples(int n) public HilbertFilter WinFunc(HilbertWinFunc winFunc) => this.SetOption("w", winFunc); } - public static class HilbertFilterExtensions { /// @@ -108,8 +102,6 @@ public static class HilbertFilterExtensions public static HilbertFilter HilbertFilter(this FilterGraph filterGraph) => new HilbertFilter(filterGraph); } - - public enum HilbertWinFunc { /// diff --git a/FFmpegArgs.Filters/AudioSources/SincFilter.cs b/FFmpegArgs.Filters/AudioSources/SincFilter.cs index 41b7478e..a2db7714 100644 --- a/FFmpegArgs.Filters/AudioSources/SincFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/SincFilter.cs @@ -13,7 +13,6 @@ hptaps ..F.A...... set number of taps for high-pass filter (from 0 to 32768) (default 0) lptaps ..F.A...... set number of taps for low-pass filter (from 0 to 32768) (default 0) */ -using FFmpegArgs.Filters.AudioFilters; namespace FFmpegArgs.Filters.AudioSources { /// @@ -26,7 +25,6 @@ internal SincFilter(FilterGraph filterGraph) : base("sinc", filterGraph) { AddMapOut(); } - /// /// Set sample rate, (from 1 to INT_MAX) (default 44100) /// @@ -34,7 +32,6 @@ internal SincFilter(FilterGraph filterGraph) : base("sinc", filterGraph) /// public SincFilter SampleRate(int r) => this.SetOptionRange("r", r, 1, INT_MAX); - /// /// Set number of samples per each frame. (from 1 to INT_MAX) (default 1024) /// @@ -42,7 +39,6 @@ public SincFilter SampleRate(int r) /// public SincFilter NbSamples(int n) => this.SetOptionRange("n", n, 1, INT_MAX); - /// /// Set high-pass frequency. (from 0 to INT_MAX) (default 0) /// @@ -50,7 +46,6 @@ public SincFilter NbSamples(int n) /// public SincFilter HighPass(float hp) => this.SetOptionRange("hp", hp, 0, INT_MAX); - /// /// Set low-pass frequency. (from 0 to INT_MAX) (default 0)
///
If high-pass frequency is lower than low-pass frequency and low-pass frequency is higher than 0 then filter will create band-pass filter coefficients, otherwise band-reject filter coefficients. @@ -59,7 +54,6 @@ public SincFilter HighPass(float hp) /// public SincFilter LowPass(float lp) => this.SetOptionRange("lp", lp, 0, INT_MAX); - /// /// Set filter phase response. (from 0 to 100) (default 50) /// @@ -67,7 +61,6 @@ public SincFilter LowPass(float lp) /// public SincFilter Phase(float phase) => this.SetOptionRange("phase", phase, 0, 100); - /// /// Set Kaiser window beta. (from -1 to 256) (default -1) /// @@ -75,7 +68,6 @@ public SincFilter Phase(float phase) /// public SincFilter Beta(float beta) => this.SetOptionRange("beta", beta, -1, 256); - /// /// Set stop-band attenuation. Default is 120dB, allowed range is from 40 to 180 dB. /// @@ -83,7 +75,6 @@ public SincFilter Beta(float beta) /// public SincFilter Att(float att) => this.SetOptionRange("att", att, 40, 180); - /// /// Enable rounding, by default is disabled. /// @@ -91,7 +82,6 @@ public SincFilter Att(float att) /// public SincFilter Round(bool flag) => this.SetOption("round", flag.ToFFmpegFlag()); - /// /// Set number of taps for high-pass filter. (from 0 to 32768) (default 0) /// @@ -99,7 +89,6 @@ public SincFilter Round(bool flag) /// public SincFilter HpTaps(int phase) => this.SetOptionRange("hptaps", phase, 0, 32768); - /// /// Set number of taps for low-pass filter. (from 0 to 32768) (default 0) /// @@ -108,7 +97,6 @@ public SincFilter HpTaps(int phase) public SincFilter LpTaps(int phase) => this.SetOptionRange("lptaps", phase, 0, 32768); } - public static class SincFilterExtensions { /// diff --git a/FFmpegArgs.Filters/AudioSources/SineFilter.cs b/FFmpegArgs.Filters/AudioSources/SineFilter.cs index b831eb49..c571f1c6 100644 --- a/FFmpegArgs.Filters/AudioSources/SineFilter.cs +++ b/FFmpegArgs.Filters/AudioSources/SineFilter.cs @@ -10,10 +10,6 @@ d ..F.A...... set the audio duration (default 0) samples_per_frame ..F.A...... set the number of samples per frame (default "1024") */ -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - namespace FFmpegArgs.Filters.AudioSources { /// @@ -31,7 +27,6 @@ internal SineFilter(FilterGraph filterGraph) : base("sine", filterGraph) { AddMapOut(); } - /// /// Set the carrier frequency. Default is 440 Hz. (from 0 to DBL_MAX) (default 440) /// @@ -39,7 +34,6 @@ internal SineFilter(FilterGraph filterGraph) : base("sine", filterGraph) /// public SineFilter Frequency(double f) => this.SetOptionRange("f", f, 0, DBL_MAX); - /// /// Enable a periodic beep every second with frequency beep_factor times the carrier frequency. Default is 0, meaning the beep is disabled. ///

(from 0 to DBL_MAX) (default 0) @@ -48,7 +42,6 @@ public SineFilter Frequency(double f) /// public SineFilter BeepFactor(double b) => this.SetOptionRange("b", b, 0, DBL_MAX); - /// /// Specify the sample rate, (from 1 to INT_MAX) (default 44100) /// @@ -56,7 +49,6 @@ public SineFilter BeepFactor(double b) /// public SineFilter SampleRate(int r) => this.SetOptionRange("r", r, 1, INT_MAX); - /// /// Specify the duration of the generated audio stream. (default 0) /// @@ -64,16 +56,14 @@ public SineFilter SampleRate(int r) /// public SineFilter Duration(TimeSpan d) => this.SetOptionRange("d", d, TimeSpan.MinValue, TimeSpan.MaxValue); - /// /// Set the number of samples per output frame. /// /// Default is 1024. /// public SineFilter SamplesPerFrame(params int[] samples_per_frame) - => this.SetOption("samples_per_frame", string.Join(" ",samples_per_frame)); + => this.SetOption("samples_per_frame", string.Join(" ", samples_per_frame)); } - public static class SineFilterExtensions { /// diff --git a/FFmpegArgs.Filters/FFmpegArgs.Filters.csproj b/FFmpegArgs.Filters/FFmpegArgs.Filters.csproj index 1c3cef20..b4705933 100644 --- a/FFmpegArgs.Filters/FFmpegArgs.Filters.csproj +++ b/FFmpegArgs.Filters/FFmpegArgs.Filters.csproj @@ -6,6 +6,7 @@ + diff --git a/FFmpegArgs.Filters/FFmpegArgs.Filters.nuspec b/FFmpegArgs.Filters/FFmpegArgs.Filters.nuspec index 25634cb5..1e922b20 100644 --- a/FFmpegArgs.Filters/FFmpegArgs.Filters.nuspec +++ b/FFmpegArgs.Filters/FFmpegArgs.Filters.nuspec @@ -3,7 +3,7 @@ FFmpegArgs.Filters - 1.1.2$build$ + 1.2.0$build$ Filters for FFmpegArgs tqk2811 https://github.com/tqk2811/FFmpegArgs @@ -12,7 +12,8 @@ - + + diff --git a/FFmpegArgs.Filters/GlobalUsing.cs b/FFmpegArgs.Filters/GlobalUsing.cs new file mode 100644 index 00000000..4ac9cd01 --- /dev/null +++ b/FFmpegArgs.Filters/GlobalUsing.cs @@ -0,0 +1,10 @@ +global using FFmpegArgs.Attributes; +global using FFmpegArgs.Cores.Maps; +global using FFmpegArgs.Enums; +global using FFmpegArgs.Exceptions; +global using FFmpegArgs.Expressions; +global using FFmpegArgs.Utils; +global using System; +global using System.Collections.Generic; +global using System.Drawing; +global using System.Linq; diff --git a/FFmpegArgs.Filters/MultimediaFilters/ASelectFilter.cs b/FFmpegArgs.Filters/MultimediaFilters/ASelectFilter.cs index e5280164..b79da37b 100644 --- a/FFmpegArgs.Filters/MultimediaFilters/ASelectFilter.cs +++ b/FFmpegArgs.Filters/MultimediaFilters/ASelectFilter.cs @@ -1,10 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Exceptions; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.MultimediaFilters +namespace FFmpegArgs.Filters.MultimediaFilters { /// /// ... aselect A->N Select audio frames to pass in output.

@@ -31,7 +25,6 @@ internal ASelectFilter(Action e, int n, AudioMap audioMap) : b this.SetOption("n", n); } } - public static class ASelectFilterExtension { /// @@ -43,7 +36,6 @@ public static class ASelectFilterExtension /// public static ASelectFilter ASelectFilter(this AudioMap audioMap, Action e, int n) => new ASelectFilter(e, n, audioMap); - /// /// Select frames to pass in output. /// diff --git a/FFmpegArgs.Filters/MultimediaFilters/ASplitFilter.cs b/FFmpegArgs.Filters/MultimediaFilters/ASplitFilter.cs index 374b2633..523ff2e5 100644 --- a/FFmpegArgs.Filters/MultimediaFilters/ASplitFilter.cs +++ b/FFmpegArgs.Filters/MultimediaFilters/ASplitFilter.cs @@ -1,8 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Exceptions; -using System; - -namespace FFmpegArgs.Filters.MultimediaFilters +namespace FFmpegArgs.Filters.MultimediaFilters { /// /// ... asplit A->N Pass on the audio input to N audio outputs.

@@ -17,7 +13,6 @@ internal ASplitFilter(int number, AudioMap audioMap) : base("asplit", audioMap) this.SetOption("outputs", number);//libavfilter/split.c } } - public static class ASplitFilterExtension { /// diff --git a/FFmpegArgs.Filters/MultimediaFilters/ConcatFilter.cs b/FFmpegArgs.Filters/MultimediaFilters/ConcatFilter.cs index 6b9bc87b..24ef6c1c 100644 --- a/FFmpegArgs.Filters/MultimediaFilters/ConcatFilter.cs +++ b/FFmpegArgs.Filters/MultimediaFilters/ConcatFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Filters.MultimediaFilters +namespace FFmpegArgs.Filters.MultimediaFilters { /// /// ..C concat N->N Concatenate audio and video streams.

@@ -13,10 +8,8 @@ public class ConcatFilter : VideoToVideoFilter, ICommandSupport { readonly List _imageMapsOut = new List(); readonly List _audioMapsOut = new List(); - public IEnumerable ImageMapsOut { get { return _imageMapsOut; } } public IEnumerable AudioMapsOut { get { return _audioMapsOut; } } - /// /// Concatenate audio and video streams, joining them together one after the other.
///
The filter works on segments of synchronized video and audio streams.All segments must have the same number of streams of each type, and that will also be the number of streams at output. @@ -25,7 +18,6 @@ public class ConcatFilter : VideoToVideoFilter, ICommandSupport public ConcatFilter(IEnumerable concatGroups) : this(concatGroups.ToArray()) { } - /// /// Concatenate audio and video streams, joining them together one after the other.
///
The filter works on segments of synchronized video and audio streams.All segments must have the same number of streams of each type, and that will also be the number of streams at output. @@ -38,10 +30,8 @@ public ConcatFilter(params ConcatGroup[] concatGroups) //check input are same; var video_counts = concatGroups.GroupBy(x => x.ImageMaps.Count); if (video_counts.Count() != 1) throw new ArgumentException("Number of image per group are not same"); - var audio_counts = concatGroups.GroupBy(x => x.AudioMaps.Count); if (audio_counts.Count() != 1) throw new ArgumentException("Number of audio per group are not same"); - int index = 0; foreach (var img in concatGroups.First().ImageMaps) { @@ -56,13 +46,11 @@ public ConcatFilter(params ConcatGroup[] concatGroups) _mapsOut.Add(audioMap); _audioMapsOut.Add(audioMap); } - this.SetOption("n", concatGroups.Length); this.SetOption("v", concatGroups.First().ImageMaps.Count); this.SetOption("a", concatGroups.First().AudioMaps.Count); } } - public class ConcatGroup { public ConcatGroup() { } @@ -84,7 +72,6 @@ public ConcatGroup(params AudioMap[] audioMaps) { AudioMaps.AddRange(audioMaps ?? throw new ArgumentNullException(nameof(audioMaps))); } - public List ImageMaps { get; } = new List(); public List AudioMaps { get; } = new List(); internal IEnumerable AllMaps { get { return ImageMaps.Cast().Concat(AudioMaps); } } diff --git a/FFmpegArgs.Filters/MultimediaFilters/SelectFilter.cs b/FFmpegArgs.Filters/MultimediaFilters/SelectFilter.cs index e813ae36..5ac23c51 100644 --- a/FFmpegArgs.Filters/MultimediaFilters/SelectFilter.cs +++ b/FFmpegArgs.Filters/MultimediaFilters/SelectFilter.cs @@ -1,10 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Exceptions; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.MultimediaFilters +namespace FFmpegArgs.Filters.MultimediaFilters { /// /// ... select V->N Select video frames to pass in output.

@@ -31,7 +25,6 @@ internal SelectFilter(Action e, int n, ImageMap imageMap) : ba this.SetOption("n", n); } } - public static class SelectFilterExtension { /// @@ -45,7 +38,6 @@ public static SelectFilter SelectFilter(this ImageMap imageMap, Action /// Select frames to pass in output. /// diff --git a/FFmpegArgs.Filters/MultimediaFilters/SetAPtsFilter.cs b/FFmpegArgs.Filters/MultimediaFilters/SetAPtsFilter.cs index 60253c24..ba83e2a3 100644 --- a/FFmpegArgs.Filters/MultimediaFilters/SetAPtsFilter.cs +++ b/FFmpegArgs.Filters/MultimediaFilters/SetAPtsFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.MultimediaFilters +namespace FFmpegArgs.Filters.MultimediaFilters { /// /// ... setapts V->V Set PTS for the output audio frame.

@@ -51,7 +46,6 @@ public static SetAPtsFilter SetAPtsFilter(this AudioMap audioMap, Action /// Change the PTS (presentation timestamp) of the input frames. ///
diff --git a/FFmpegArgs.Filters/MultimediaFilters/SetPtsFilter.cs b/FFmpegArgs.Filters/MultimediaFilters/SetPtsFilter.cs index f731ae6a..ce8d9874 100644 --- a/FFmpegArgs.Filters/MultimediaFilters/SetPtsFilter.cs +++ b/FFmpegArgs.Filters/MultimediaFilters/SetPtsFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.MultimediaFilters +namespace FFmpegArgs.Filters.MultimediaFilters { /// /// ... setpts V->V Set PTS for the output video frame.

@@ -39,8 +34,6 @@ internal SetPtsFilter(Action expr, ImageMap imageMap) : base(" this.SetOption("expr", expr.Run(expression)); } } - - public static class SetPtsFilterExtension { /// @@ -53,7 +46,6 @@ public static SetPtsFilter SetPtsFilter(this ImageMap imageMap, Action /// Change the PTS (presentation timestamp) of the input frames. /// diff --git a/FFmpegArgs.Filters/MultimediaFilters/SplitFilter.cs b/FFmpegArgs.Filters/MultimediaFilters/SplitFilter.cs index ae26d686..fd299133 100644 --- a/FFmpegArgs.Filters/MultimediaFilters/SplitFilter.cs +++ b/FFmpegArgs.Filters/MultimediaFilters/SplitFilter.cs @@ -1,8 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Exceptions; -using System; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... split V->N Pass on the input to N video outputs.

@@ -17,7 +13,6 @@ internal SplitFilter(int number, ImageMap imageMap) : base("split", imageMap) this.SetOption("outputs", number);//libavfilter/split.c } } - public static class SplitFilterExtension { /// diff --git a/FFmpegArgs.Filters/MultimediaSources/AmovieFilter.cs b/FFmpegArgs.Filters/MultimediaSources/AmovieFilter.cs index f9b73320..7645b645 100644 --- a/FFmpegArgs.Filters/MultimediaSources/AmovieFilter.cs +++ b/FFmpegArgs.Filters/MultimediaSources/AmovieFilter.cs @@ -10,11 +10,7 @@ // { // AddMapOut(); // } - - - //} - //public static class AmovieFilterExtensions //{ // /// diff --git a/FFmpegArgs.Filters/MultimediaSources/MovieFilter.cs b/FFmpegArgs.Filters/MultimediaSources/MovieFilter.cs index 9c63e8f4..5cd58ba0 100644 --- a/FFmpegArgs.Filters/MultimediaSources/MovieFilter.cs +++ b/FFmpegArgs.Filters/MultimediaSources/MovieFilter.cs @@ -10,11 +10,7 @@ // { // AddMapOut(); // } - - - //} - //public static class MovieFilterExtensions //{ // /// diff --git a/FFmpegArgs.Filters/OpenCLVideoFilters/Avgblur_openclFilter.cs b/FFmpegArgs.Filters/OpenCLVideoFilters/Avgblur_openclFilter.cs index 7b2bd435..28c5ccef 100644 --- a/FFmpegArgs.Filters/OpenCLVideoFilters/Avgblur_openclFilter.cs +++ b/FFmpegArgs.Filters/OpenCLVideoFilters/Avgblur_openclFilter.cs @@ -10,11 +10,7 @@ // { // AddMapOut(); // } - - - //} - //public static class Avgblur_openclFilterExtensions //{ // /// diff --git a/FFmpegArgs.Filters/VAAPIVideoFilters/TonemapVaapiFilter.cs b/FFmpegArgs.Filters/VAAPIVideoFilters/TonemapVaapiFilter.cs index 4890d339..ff64745e 100644 --- a/FFmpegArgs.Filters/VAAPIVideoFilters/TonemapVaapiFilter.cs +++ b/FFmpegArgs.Filters/VAAPIVideoFilters/TonemapVaapiFilter.cs @@ -9,9 +9,7 @@ //public class TonemapVaapiFilter //{ //} - //public static class TonemapVaapiFilterExtension //{ - //} } diff --git a/FFmpegArgs.Filters/VideoFilters/AddroiFilter.cs b/FFmpegArgs.Filters/VideoFilters/AddroiFilter.cs index 17089710..a5e3c865 100644 --- a/FFmpegArgs.Filters/VideoFilters/AddroiFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/AddroiFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... addroi V->V Add region of interest to frame.
@@ -26,43 +21,36 @@ internal AddroiFilter(ImageMap imageMap) : base("addroi", imageMap) /// Region distance in pixels from the left edge of the frame. /// public AddroiFilter X(string x) => this.SetOption("x", x.Expression().Run(expression)); - /// /// /// /// Region distance in pixels from the top edge of the frame. /// public AddroiFilter Y(string y) => this.SetOption("y", y.Expression().Run(expression)); - /// /// /// /// Region distance in pixels from the left edge of the frame. /// public AddroiFilter X(Action x) => this.SetOption("x", x.Run(expression)); - /// /// /// /// Region distance in pixels from the top edge of the frame. /// public AddroiFilter Y(Action y) => this.SetOption("y", y.Run(expression)); - - /// /// /// /// Region width in pixels. /// public AddroiFilter W(string w) => this.SetOption("w", w.Expression().Run(expression)); - /// /// /// /// Region height in pixels. /// public AddroiFilter H(string h) => this.SetOption("h", h.Expression().Run(expression)); - /// /// /// @@ -70,7 +58,6 @@ internal AddroiFilter(ImageMap imageMap) : base("addroi", imageMap) /// Region height in pixels. /// public AddroiFilter W(Action w) => this.SetOption("w", w.Run(expression)); - /// /// /// @@ -78,7 +65,6 @@ internal AddroiFilter(ImageMap imageMap) : base("addroi", imageMap) /// Region height in pixels. /// public AddroiFilter H(Action h) => this.SetOption("h", h.Run(expression)); - /// /// Quantisation offset to apply within the region.

/// This must be a real value in the range -1 to +1. A value of zero indicates no quality change.A negative value asks for better quality (less quantisation), while a positive value asks for worse quality (greater quantisation).

@@ -89,7 +75,6 @@ internal AddroiFilter(ImageMap imageMap) : base("addroi", imageMap) /// public AddroiFilter Qoffset(Rational qoffset) => this.SetOption("qoffset", qoffset.Check(-1, 1)); - /// /// If set to true, remove any existing regions of interest marked on the frame before adding the new one. /// @@ -98,7 +83,9 @@ public AddroiFilter Qoffset(Rational qoffset) public AddroiFilter Clear(bool flag) => this.SetOption("clear", flag.ToFFmpegFlag()); } - + /// + /// + /// public static class AddroiFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/AlphaextractFilter.cs b/FFmpegArgs.Filters/VideoFilters/AlphaextractFilter.cs index 38211891..e20d8e46 100644 --- a/FFmpegArgs.Filters/VideoFilters/AlphaextractFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/AlphaextractFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... alphaextract V->N Extract an alpha channel as a grayscale image component.

@@ -13,7 +11,6 @@ internal AlphaextractFilter(ImageMap imageMap) : base("alphaextract", imageMap) AddMapOut(); } } - public static class AlphaextractFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/AlphamergeFilter.cs b/FFmpegArgs.Filters/VideoFilters/AlphamergeFilter.cs index f29e6812..4b35e717 100644 --- a/FFmpegArgs.Filters/VideoFilters/AlphamergeFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/AlphamergeFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.. alphamerge VV->V Copy the luma value of the second input into the alpha channel of the first input.

@@ -13,7 +11,6 @@ internal AlphamergeFilter(params ImageMap[] imageMap) : base("alphamerge", image AddMapOut(); } } - public static class AlphamergeFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/AmplifyFilter.cs b/FFmpegArgs.Filters/VideoFilters/AmplifyFilter.cs index 0185c466..d1d6fd3a 100644 --- a/FFmpegArgs.Filters/VideoFilters/AmplifyFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/AmplifyFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC amplify V->V Amplify changes between successive video frames.
@@ -12,7 +10,6 @@ internal AmplifyFilter(ImageMap imageMap) : base("amplify", imageMap) { AddMapOut(); } - /// /// Set frame radius. Default is 2. Allowed range is from 1 to 63.
///
For example radius of 3 will instruct filter to calculate average of 7 frames. @@ -21,7 +18,6 @@ internal AmplifyFilter(ImageMap imageMap) : base("amplify", imageMap) /// public AmplifyFilter Radius(int radius) => this.SetOptionRange("radius", radius, 1, 63); - /// /// Set factor to amplify difference. Default is 2. Allowed range is from 0 to 65535. /// @@ -29,7 +25,6 @@ public AmplifyFilter Radius(int radius) /// public AmplifyFilter Factor(int factor) => this.SetOptionRange("factor", factor, 0, 65535); - /// /// Set threshold for difference amplification. Any difference greater or equal to this value will not alter source pixel.
///
Default is 10. Allowed range is from 0 to 65535. @@ -38,7 +33,6 @@ public AmplifyFilter Factor(int factor) /// public AmplifyFilter Threshold(int threshold) => this.SetOptionRange("threshold", threshold, 0, 65535); - /// /// Set tolerance for difference amplification. Any difference lower to this value will not alter source pixel.
///
Default is 0. Allowed range is from 0 to 65535. @@ -47,7 +41,6 @@ public AmplifyFilter Threshold(int threshold) /// public AmplifyFilter Tolerance(int tolerance) => this.SetOptionRange("tolerance", tolerance, 0, 65535); - /// /// Set lower limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
///
This option controls maximum possible value that will decrease source pixel value. @@ -56,7 +49,6 @@ public AmplifyFilter Tolerance(int tolerance) /// public AmplifyFilter Low(int low) => this.SetOptionRange("low", low, 0, 65535); - /// /// Set high limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
///
This option controls maximum possible value that will increase source pixel value. @@ -65,7 +57,6 @@ public AmplifyFilter Low(int low) /// public AmplifyFilter High(int high) => this.SetOptionRange("high", high, 0, 65535); - /// /// Set which planes to filter. Default is all. Allowed range is from 0 to 15.
///
flags ..FV.....T. set what planes to filter (default 7) @@ -75,7 +66,6 @@ public AmplifyFilter High(int high) public AmplifyFilter Planes(string planes) => this.SetOption("planes", planes); } - public static class AmplifyFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/AssFilter.cs b/FFmpegArgs.Filters/VideoFilters/AssFilter.cs index 298685c0..aa86d2bf 100644 --- a/FFmpegArgs.Filters/VideoFilters/AssFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/AssFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... ass V->V Render ASS subtitles onto input video using the libass library.
@@ -11,9 +8,7 @@ public class AssFilter : BaseSubtitlesFilter { internal AssFilter(ImageMap imageMap) : base("ass", imageMap) { - } - /// /// Set the shaping engine /// @@ -22,7 +17,6 @@ internal AssFilter(ImageMap imageMap) : base("ass", imageMap) public AssFilter Shaping(AssFilterShaping shaping) => this.SetOption("shaping", shaping); } - public static class AssFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/AtadenoiseFilter.cs b/FFmpegArgs.Filters/VideoFilters/AtadenoiseFilter.cs index a16d65d0..d2fe4fc2 100644 --- a/FFmpegArgs.Filters/VideoFilters/AtadenoiseFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/AtadenoiseFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC atadenoise V->V Apply an Adaptive Temporal Averaging Denoiser.
@@ -12,7 +10,6 @@ internal AtadenoiseFilter(ImageMap imageMap) : base("atadenoise", imageMap) { AddMapOut(); } - /// /// Set threshold A for 1,2,3 plane. Default is 0.02. Valid range is 0 to 0.3. /// @@ -21,7 +18,6 @@ internal AtadenoiseFilter(ImageMap imageMap) : base("atadenoise", imageMap) /// public AtadenoiseFilter ThressholdA(AtadenoiseThresholdA a, float val) => this.SetOptionRange(a.ToString().Substring(1), val, 0, 0.3); - /// /// Set threshold B for 1,2,3 plane. Default is 0.04. Valid range is 0 to 5. /// @@ -30,7 +26,6 @@ public AtadenoiseFilter ThressholdA(AtadenoiseThresholdA a, float val) /// public AtadenoiseFilter ThressholdB(AtadenoiseThresholdB b, float val) => this.SetOptionRange(b.ToString().Substring(1), val, 0, 5); - /// /// Set number of frames filter will use for averaging.
///
Default is 9. Must be odd number in range [5, 129]. @@ -39,7 +34,6 @@ public AtadenoiseFilter ThressholdB(AtadenoiseThresholdB b, float val) /// public AtadenoiseFilter NumberOfFrames(int s) => this.SetOptionRange("s", s.EnsureOdd(), 5, 129); - /// /// Set what planes of frame filter will use for averaging. Default is all. /// @@ -47,7 +41,6 @@ public AtadenoiseFilter NumberOfFrames(int s) /// public AtadenoiseFilter Planes(string planes) => this.SetOption("p", planes); - /// /// Set what variant of algorithm filter will use for averaging. Default is p parallel. Alternatively can be set to s serial.

/// Parallel can be faster then serial, while other way around is never true. Parallel will abort early on first change being greater then thresholds, while serial will continue processing other side of frames if they are equal or below thresholds. @@ -56,8 +49,6 @@ public AtadenoiseFilter Planes(string planes) /// public AtadenoiseFilter VariantOfAlgorithm(AtadenoiseVariantOfAlgorithm voa) => this.SetOption("a", voa.ToString()); - - /// /// Set sigma for 1st plane, 2nd plane or 3rd plane.
///
Default is 32767. Valid range is from 0 to 32767. This options controls weight for each pixel in radius defined by size.
@@ -69,13 +60,11 @@ public AtadenoiseFilter VariantOfAlgorithm(AtadenoiseVariantOfAlgorithm voa) public AtadenoiseFilter Sigma(AtadenoiseSigma sigma, int val) => this.SetOptionRange(sigma.ToString().Substring(1), val, 0, 32767); } - public static class AtadenoiseFilterExtensions { public static AtadenoiseFilter AtadenoiseFilter(this ImageMap imageMap) => new AtadenoiseFilter(imageMap); } - public enum AtadenoiseThresholdA { /// @@ -106,14 +95,12 @@ public enum AtadenoiseThresholdB /// _2b, } - public enum AtadenoiseSigma { _0s, _1s, _2s } - public enum AtadenoiseVariantOfAlgorithm { /// diff --git a/FFmpegArgs.Filters/VideoFilters/AvgblurFilter.cs b/FFmpegArgs.Filters/VideoFilters/AvgblurFilter.cs index c8a51777..d80d7450 100644 --- a/FFmpegArgs.Filters/VideoFilters/AvgblurFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/AvgblurFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC avgblur V->V Apply Average Blur filter.
@@ -12,7 +10,6 @@ internal AvgblurFilter(ImageMap imageMap) : base("avgblur", imageMap) { AddMapOut(); } - /// /// Set horizontal radius size.
///
(from 1 to 1024) (default 1) @@ -21,7 +18,6 @@ internal AvgblurFilter(ImageMap imageMap) : base("avgblur", imageMap) /// public AvgblurFilter SizeX(int sizeX) => this.SetOptionRange("sizeX", sizeX, 1, 1024); - /// /// Set which planes to filter. By default all planes are filtered.
///
(from 0 to 15) (default 15) @@ -30,8 +26,6 @@ public AvgblurFilter SizeX(int sizeX) /// public AvgblurFilter Planes(int planes) => this.SetOptionRange("planes", planes, 0, 15); - - /// /// Set vertical radius size, if zero it will be same as sizeX.
///
(from 0 to 1024) (default 0) @@ -41,7 +35,6 @@ public AvgblurFilter Planes(int planes) public AvgblurFilter SizeY(int sizeY) => this.SetOptionRange("sizeY", sizeY, 0, 1024); } - public static class AvgblurFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/BboxFilter.cs b/FFmpegArgs.Filters/VideoFilters/BboxFilter.cs index 3c46ec5e..062d7fb2 100644 --- a/FFmpegArgs.Filters/VideoFilters/BboxFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BboxFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.C bbox V->V Compute bounding box for each frame.

@@ -12,7 +10,6 @@ internal BboxFilter(ImageMap imageMap) : base("bbox", imageMap) { AddMapOut(); } - /// /// Set the minimal luminance value. (from 0 to 65535) Default is 16. /// @@ -21,7 +18,6 @@ internal BboxFilter(ImageMap imageMap) : base("bbox", imageMap) public BboxFilter MinVal(int min_val) => this.SetOptionRange("min_val", min_val, 0, 65535); } - public static class BboxFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/BilateralFilter.cs b/FFmpegArgs.Filters/VideoFilters/BilateralFilter.cs index 9271ef67..3ed85d46 100644 --- a/FFmpegArgs.Filters/VideoFilters/BilateralFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BilateralFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.C bilateral V->V Apply Bilateral filter.

@@ -12,7 +10,6 @@ internal BilateralFilter(ImageMap imageMap) : base("bilateral", imageMap) { AddMapOut(); } - /// /// Set sigma of gaussian function to calculate spatial weight. Allowed range is 0 to 512. Default is 0.1. /// @@ -20,7 +17,6 @@ internal BilateralFilter(ImageMap imageMap) : base("bilateral", imageMap) /// public BilateralFilter SigmaS(float sigmaS) => this.SetOptionRange("sigmaS", sigmaS, 0, 512); - /// /// Set sigma of gaussian function to calculate range weight. Allowed range is 0 to 1. Default is 0.1. /// @@ -28,7 +24,6 @@ public BilateralFilter SigmaS(float sigmaS) /// public BilateralFilter SigmaR(float sigmaR) => this.SetOptionRange("sigmaR", sigmaR, 0, 1); - /// /// Set planes to filter. Default is first only.

/// ..FV.....T. set planes to filter (from 0 to 15) (default 1) @@ -38,7 +33,6 @@ public BilateralFilter SigmaR(float sigmaR) public BilateralFilter Planes(int planes) => this.SetOptionRange("planes", planes, 0, 15); } - public static class BilateralFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/BitplanenoiseFilter.cs b/FFmpegArgs.Filters/VideoFilters/BitplanenoiseFilter.cs index d5d15a47..2e16a44b 100644 --- a/FFmpegArgs.Filters/VideoFilters/BitplanenoiseFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BitplanenoiseFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.. bitplanenoise V->V Measure bit plane noise.

@@ -12,7 +10,6 @@ internal BitplanenoiseFilter(ImageMap imageMap) : base("bitplanenoise", imageMap { AddMapOut(); } - /// /// Set which plane to analyze. Default is 1.
///
..FV....... set bit plane to use for measuring noise (from 1 to 16) (default 1) @@ -21,7 +18,6 @@ internal BitplanenoiseFilter(ImageMap imageMap) : base("bitplanenoise", imageMap /// public BitplanenoiseFilter Bitplane(int bitplane) => this.SetOptionRange("bitplane", bitplane, 0, 16); - /// /// Filter out noisy pixels from bitplane set above. Default is disabled. /// @@ -30,7 +26,6 @@ public BitplanenoiseFilter Bitplane(int bitplane) public BitplanenoiseFilter filter(bool flag) => this.SetOption("filter", flag.ToFFmpegFlag()); } - public static class BitplanenoiseFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/BlackdetectFilter.cs b/FFmpegArgs.Filters/VideoFilters/BlackdetectFilter.cs index 7d1162f2..2c6df1f4 100644 --- a/FFmpegArgs.Filters/VideoFilters/BlackdetectFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BlackdetectFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// .S. blackdetect V->V Detect video intervals that are (almost) black.

@@ -13,7 +10,6 @@ internal BlackdetectFilter(ImageMap imageMap) : base("blackdetect", imageMap) { AddMapOut(); } - /// /// Set the minimum detected black duration expressed in seconds. It must be a non-negative floating point number.

/// Default value is 2.0. @@ -22,7 +18,6 @@ internal BlackdetectFilter(ImageMap imageMap) : base("blackdetect", imageMap) /// public BlackdetectFilter BlackMinDuration(TimeSpan duration) => this.SetOptionRange("d", duration, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Set the threshold for considering a picture "black". Express the minimum value for the ratio: nb_black_pixels / nb_pixels

/// for which a picture is considered black. Default value is 0.98. @@ -31,7 +26,6 @@ public BlackdetectFilter BlackMinDuration(TimeSpan duration) /// public BlackdetectFilter PictureBlackRatioTh(double pic_th) => this.SetOptionRange("pic_th", pic_th, 0, 1); - /// /// Set the threshold for considering a pixel "black".

/// The threshold expresses the maximum pixel luminance value for which a pixel is considered "black". The provided value is scaled according to the following equation:

@@ -44,7 +38,6 @@ public BlackdetectFilter PictureBlackRatioTh(double pic_th) public BlackdetectFilter PixelBlackTh(double pix_th) => this.SetOptionRange("pix_th", pix_th, 0, 1); } - public static class BlackdetectFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/BlackframeFilter.cs b/FFmpegArgs.Filters/VideoFilters/BlackframeFilter.cs index d1fa90d0..d4ff76c0 100644 --- a/FFmpegArgs.Filters/VideoFilters/BlackframeFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BlackframeFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... blackframe V->V Detect frames that are (almost) black.

@@ -12,7 +10,6 @@ internal BlackframeFilter(ImageMap imageMap) : base("blackframe", imageMap) { AddMapOut(); } - /// /// The percentage of the pixels that have to be below the threshold; it defaults to 98. /// @@ -20,7 +17,6 @@ internal BlackframeFilter(ImageMap imageMap) : base("blackframe", imageMap) /// public BlackframeFilter Amount(int amount) => this.SetOptionRange("amount", amount, 0, 100); - /// /// The threshold below which a pixel value is considered black; it defaults to 32. /// @@ -29,7 +25,6 @@ public BlackframeFilter Amount(int amount) public BlackframeFilter Threshold(int thresh) => this.SetOptionRange("thresh", thresh, 0, 255); } - public static class BlackframeFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/BlendFilter.cs b/FFmpegArgs.Filters/VideoFilters/BlendFilter.cs index 5e914da8..c819b1b2 100644 --- a/FFmpegArgs.Filters/VideoFilters/BlendFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BlendFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TS. blend VV->V Blend two video frames into each other.

@@ -26,7 +21,6 @@ internal BlendFilter(ImageMap top, ImageMap bottom) : base("blend", top, bottom) { AddMapOut(); } - /// /// Set blend mode for specific pixel component or all pixel components in case of all_mode. Default value is normal. /// @@ -62,9 +56,6 @@ public BlendFilter C3_Mode(BlendMode blendMode) /// public BlendFilter All_Mode(BlendMode blendMode) => this.SetOption("all_mode", blendMode); - - - /// /// Set blend opacity for specific pixel component or all pixel components in case of all_opacity. Only used in combination with pixel component blend modes. /// @@ -104,8 +95,6 @@ public BlendFilter C3_Opacity(double opacity) /// public BlendFilter All_Opacity(double opacity) => this.SetOptionRange("all_opacity", opacity, 0, 1); - - /// /// Set blend expression for specific pixel component or all pixel components in case of all_expr. Note that related mode options will be ignored if those are set. /// @@ -177,9 +166,6 @@ public BlendFilter All_Expr(Action expr) public BlendFilter All_Expr(string expr) => All_Expr(expr.Expression()); } - - - public static class BlendFilterExtension { /// @@ -195,7 +181,6 @@ public static BlendFilter BlendFilterOn(this ImageMap top, ImageMap bottom) return new BlendFilter(top, bottom); } } - public enum BlendMode { addition, diff --git a/FFmpegArgs.Filters/VideoFilters/Bm3dFilter.cs b/FFmpegArgs.Filters/VideoFilters/Bm3dFilter.cs index 976fb472..a54f5196 100644 --- a/FFmpegArgs.Filters/VideoFilters/Bm3dFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/Bm3dFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TS. bm3d N->V Block-Matching 3D denoiser.

@@ -12,7 +10,6 @@ internal Bm3dFilter(ImageMap imageMap) : base("bm3d", imageMap) { AddMapOut(); } - /// /// Set denoising strength. Default value is 1. Allowed range is from 0 to 999.9.
///
The denoising algorithm is very sensitive to sigma, so adjust it according to the source. @@ -21,7 +18,6 @@ internal Bm3dFilter(ImageMap imageMap) : base("bm3d", imageMap) /// public Bm3dFilter Sigma(float sigma) => this.SetOptionRange("sigma", sigma, 0, 999.9f); - /// /// Set local patch size. This sets dimensions in 2D.
///
..FV....... set log2(size) of local patch (from 4 to 6) (default 4) @@ -30,7 +26,6 @@ public Bm3dFilter Sigma(float sigma) /// public Bm3dFilter Block(int block) => this.SetOptionRange("block", block, 4, 6); - /// /// Set sliding step for processing blocks. Default value is 4. Allowed range is from 1 to 64.
///
Smaller values allows processing more reference blocks and is slower. @@ -39,7 +34,6 @@ public Bm3dFilter Block(int block) /// public Bm3dFilter Bstep(int bstep) => this.SetOptionRange("bstep", bstep, 1, 64); - /// /// Set maximal number of similar blocks for 3rd dimension. Default value is 1. When set to 1, no block matching is done.
///
Larger values allows more blocks in single group. Allowed range is from 1 to 256. @@ -48,7 +42,6 @@ public Bm3dFilter Bstep(int bstep) /// public Bm3dFilter Group(int group) => this.SetOptionRange("group", group, 1, 256); - /// /// Set radius for search block matching. Default is 9. Allowed range is from 1 to INT32_MAX. /// @@ -56,7 +49,6 @@ public Bm3dFilter Group(int group) /// public Bm3dFilter Range(int range) => this.SetOptionRange("range", range, 1, int.MaxValue); - /// /// Set step between two search locations for block matching. Default is 1. Allowed range is from 1 to 64. Smaller is slower. /// @@ -64,7 +56,6 @@ public Bm3dFilter Range(int range) /// public Bm3dFilter Mstep(int mstep) => this.SetOptionRange("mstep", mstep, 1, 64); - /// /// Set threshold of mean square error for block matching. Valid range is 0 to INT32_MAX. /// @@ -72,7 +63,6 @@ public Bm3dFilter Mstep(int mstep) /// public Bm3dFilter Thmse(float thmse) => this.SetOptionRange("thmse", thmse, 0, int.MaxValue); - /// /// Set thresholding parameter for hard thresholding in 3D transformed domain.
///
Larger values results in stronger hard-thresholding filtering in frequency domain. @@ -81,7 +71,6 @@ public Bm3dFilter Thmse(float thmse) /// public Bm3dFilter HdThr(float hdthr) => this.SetOptionRange("hdthr", hdthr, 0, int.MaxValue); - /// /// Set filtering estimation mode. Can be basic or final. Default is basic. /// @@ -89,7 +78,6 @@ public Bm3dFilter HdThr(float hdthr) /// public Bm3dFilter Estim(Bm3dEstim estim) => this.SetOption("estim", estim); - /// /// If enabled, filter will use 2nd stream for block matching.
///
Default is disabled for basic value of estim option, and always enabled if value of estim is final. @@ -98,7 +86,6 @@ public Bm3dFilter Estim(Bm3dEstim estim) /// public Bm3dFilter Ref(bool flag) => this.SetOption("ref", flag.ToFFmpegFlag()); - /// /// Set planes to filter. Default is all available except alpha.
///
..FV....... set planes to filter (from 0 to 15) (default 7) @@ -108,7 +95,6 @@ public Bm3dFilter Ref(bool flag) public Bm3dFilter Planes(int planes) => this.SetOptionRange("planes", planes, 0, int.MaxValue); } - public static class Bm3dFilterExtensions { /// @@ -117,7 +103,6 @@ public static class Bm3dFilterExtensions public static Bm3dFilter Bm3dFilter(this ImageMap imageMap) => new Bm3dFilter(imageMap); } - public enum Bm3dEstim { basic, diff --git a/FFmpegArgs.Filters/VideoFilters/BoxBlurFilter.cs b/FFmpegArgs.Filters/VideoFilters/BoxBlurFilter.cs index bf3e6c78..85597502 100644 --- a/FFmpegArgs.Filters/VideoFilters/BoxBlurFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BoxBlurFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.. boxblur V->V Blur the input.

@@ -22,7 +17,6 @@ internal BoxBlurFilter(ImageMap imageMap) : base("boxblur", imageMap) { AddMapOut(); } - /// /// Set an expression for the box radius in pixels used for blurring the corresponding input plane.

/// The radius value must be a non-negative number, and must not be greater than the value of the expression min(w, h)/2 for the luma and alpha planes, and of min(cw, ch)/2 for the chroma planes.

@@ -41,7 +35,6 @@ public BoxBlurFilter LumaRadius(Action lr) /// public BoxBlurFilter LumaRadius(string lr) => LumaRadius(lr.Expression()); - /// /// Set an expression for the box radius in pixels used for blurring the corresponding input plane.

/// The radius value must be a non-negative number, and must not be greater than the value of the expression min(w, h)/2 for the luma and alpha planes, and of min(cw, ch)/2 for the chroma planes.

@@ -60,7 +53,6 @@ public BoxBlurFilter ChromaRadius(Action cr) /// public BoxBlurFilter ChromaRadius(string cr) => ChromaRadius(cr.Expression()); - /// /// Set an expression for the box radius in pixels used for blurring the corresponding input plane.

/// The radius value must be a non-negative number, and must not be greater than the value of the expression min(w, h)/2 for the luma and alpha planes, and of min(cw, ch)/2 for the chroma planes.

@@ -79,7 +71,6 @@ public BoxBlurFilter AlphaRadius(Action ar) /// public BoxBlurFilter AlphaRadius(string ar) => AlphaRadius(ar.Expression()); - /// /// Specify how many times the boxblur filter is applied to the corresponding plane.

/// Default value for luma_power is 2. If not specified, chroma_power and alpha_power default to the corresponding value set for luma_power.

@@ -110,9 +101,7 @@ public BoxBlurFilter ChromaPower(int cp) /// public BoxBlurFilter AlphaPower(int ap) => this.SetOptionRange("ap", ap, -1, int.MaxValue); - } - public static class BoxBlurFilterExtension { /// diff --git a/FFmpegArgs.Filters/VideoFilters/BwdifFilter.cs b/FFmpegArgs.Filters/VideoFilters/BwdifFilter.cs index 8f7b175e..615a19f9 100644 --- a/FFmpegArgs.Filters/VideoFilters/BwdifFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/BwdifFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TS. bwdif V->V Deinterlace the input image.

@@ -12,7 +10,6 @@ internal BwdifFilter(ImageMap imageMap) : base("bwdif", imageMap) { AddMapOut(); } - /// /// The interlacing mode to adopt. The default value is send_field. /// @@ -20,7 +17,6 @@ internal BwdifFilter(ImageMap imageMap) : base("bwdif", imageMap) /// public BwdifFilter Mode(BwdifMode mode) => this.SetOption("mode", mode); - /// /// The picture field parity assumed for the input interlaced video.
///
The default value is auto. If the interlacing is unknown or the decoder does not export this information, top field first will be assumed. @@ -29,7 +25,6 @@ public BwdifFilter Mode(BwdifMode mode) /// public BwdifFilter Parity(BwdifParity parity) => this.SetOption("parity", parity); - /// /// Specify which frames to deinterlace.
///
The default value is all. @@ -38,9 +33,7 @@ public BwdifFilter Parity(BwdifParity parity) /// public BwdifFilter Deint(BwdifDeint deint) => this.SetOption("deint", deint); - } - public static class BwdifFilterExtensions { /// @@ -50,7 +43,6 @@ public static class BwdifFilterExtensions public static BwdifFilter BwdifFilter(this ImageMap imageMap) => new BwdifFilter(imageMap); } - public enum BwdifMode { /// @@ -62,7 +54,6 @@ public enum BwdifMode /// send_field = 1 } - public enum BwdifParity { /// @@ -78,7 +69,6 @@ public enum BwdifParity /// auto = -1 } - public enum BwdifDeint { /// diff --git a/FFmpegArgs.Filters/VideoFilters/CasFilter.cs b/FFmpegArgs.Filters/VideoFilters/CasFilter.cs index 04e64fdb..5c29199f 100644 --- a/FFmpegArgs.Filters/VideoFilters/CasFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CasFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC cas V->V Contrast Adaptive Sharpen.

@@ -12,7 +10,6 @@ internal CasFilter(ImageMap imageMap) : base("cas", imageMap) { AddMapOut(); } - /// /// Set the sharpening strength. Default value is 0. /// @@ -20,7 +17,6 @@ internal CasFilter(ImageMap imageMap) : base("cas", imageMap) /// public CasFilter Strength(double strength) => this.SetOptionRange("strength", strength, 0, double.MaxValue); - /// /// Set planes to filter. Default value is to filter all planes except alpha plane.
///
flags ..FV.....T. set what planes to filter (default 7) @@ -30,7 +26,6 @@ public CasFilter Strength(double strength) public CasFilter Planes(string planes) => this.SetOption("planes", planes); } - public static class CasFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ChromaholdFilter.cs b/FFmpegArgs.Filters/VideoFilters/ChromaholdFilter.cs index 562a5548..3dd73353 100644 --- a/FFmpegArgs.Filters/VideoFilters/ChromaholdFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ChromaholdFilter.cs @@ -5,9 +5,6 @@ blend ..FV.....T. set the chromahold blend value (from 0 to 1) (default 0) yuv ..FV.....T. color parameter is in yuv instead of rgb (default false) */ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -20,7 +17,6 @@ internal ChromaholdFilter(ImageMap imageMap) : base("chromahold", imageMap) { AddMapOut(); } - /// /// The color which will not be replaced with neutral chroma. /// @@ -28,7 +24,6 @@ internal ChromaholdFilter(ImageMap imageMap) : base("chromahold", imageMap) /// public ChromaholdFilter Color(Color color) => this.SetOption("color", color.ToHexStringRGBA()); - /// /// Similarity percentage with the above color. 0.01 matches only the exact key color, while 1.0 matches everything. /// @@ -36,7 +31,6 @@ public ChromaholdFilter Color(Color color) /// public ChromaholdFilter Similarity(float similarity) => this.SetOptionRange("similarity", similarity, 0.01f, 1); - /// /// Blend percentage. 0.0 makes pixels either fully gray, or not gray at all. Higher values result in more preserved color. /// @@ -44,7 +38,6 @@ public ChromaholdFilter Similarity(float similarity) /// public ChromaholdFilter Blend(float blend) => this.SetOptionRange("blend", blend, 0, 1); - /// /// Signals that the color passed is already in YUV instead of RGB.

/// Literal colors like "green" or "red" don’t make sense with this enabled anymore.This can be used to pass exact YUV values as hexadecimal numbers. @@ -54,7 +47,6 @@ public ChromaholdFilter Blend(float blend) public ChromaholdFilter YUV(bool yuv) => this.SetOption("yuv", yuv.ToFFmpegFlag()); } - public static class ChromaholdFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ChromakeyFilter.cs b/FFmpegArgs.Filters/VideoFilters/ChromakeyFilter.cs index 1a53a080..a13fe29f 100644 --- a/FFmpegArgs.Filters/VideoFilters/ChromakeyFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ChromakeyFilter.cs @@ -5,9 +5,6 @@ blend ..FV.....T. set the chromakey key blend value (from 0 to 1) (default 0) yuv ..FV.....T. color parameter is in yuv instead of rgb (default false) */ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -20,15 +17,12 @@ internal ChromakeyFilter(ImageMap imageMap) : base("chromakey", imageMap) { AddMapOut(); } - /// /// The color which will be replaced with transparency. /// /// /// public ChromakeyFilter Color(Color color) => this.SetOption("color", color.ToHexStringRGBA()); - - /// /// Similarity percentage with the key color.

/// 0.01 matches only the exact key color, while 1.0 matches everything.

@@ -37,7 +31,6 @@ internal ChromakeyFilter(ImageMap imageMap) : base("chromakey", imageMap) /// /// public ChromakeyFilter Similarity(float similarity) => this.SetOptionRange("similarity", similarity, 0.01f, 1); - /// /// Blend percentage.

/// 0.0 makes pixels either fully transparent, or not transparent at all.

@@ -47,7 +40,6 @@ internal ChromakeyFilter(ImageMap imageMap) : base("chromakey", imageMap) /// /// public ChromakeyFilter Blend(float blend) => this.SetOptionRange("blend", blend, 0, 1); - /// /// Signals that the color passed is already in YUV instead of RGB.

/// Literal colors like "green" or "red" don’t make sense with this enabled anymore.This can be used to pass exact YUV values as hexadecimal numbers. @@ -56,7 +48,6 @@ internal ChromakeyFilter(ImageMap imageMap) : base("chromakey", imageMap) /// public ChromakeyFilter YUV(bool yuv) => this.SetOption("yuv", yuv.ToFFmpegFlag()); } - public static class ChromakeyFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ChromanrFilter.cs b/FFmpegArgs.Filters/VideoFilters/ChromanrFilter.cs index f582a72c..15151333 100644 --- a/FFmpegArgs.Filters/VideoFilters/ChromanrFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ChromanrFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC chromanr V->V Reduce chrominance noise.

@@ -12,7 +10,6 @@ internal ChromanrFilter(ImageMap imageMap) : base("chromanr", imageMap) { AddMapOut(); } - /// /// Set threshold for averaging chrominance values.
///
Sum of absolute difference of Y, U and V pixel components of current pixel and neighbour pixels lower than this threshold will be used in averaging.
@@ -22,7 +19,6 @@ internal ChromanrFilter(ImageMap imageMap) : base("chromanr", imageMap) /// public ChromanrFilter Thres(float thres) => this.SetOptionRange("thres", thres, 1, 200); - /// /// Set horizontal radius of rectangle used for averaging. Allowed range is from 1 to 100. Default value is 5. /// @@ -78,7 +74,6 @@ public ChromanrFilter ThreU(float threu) /// public ChromanrFilter ThreV(float threv) => this.SetOptionRange("threv", threv, 1, 200); - /// /// Set distance type used in calculations.

/// Default distance type is manhattan. @@ -88,7 +83,6 @@ public ChromanrFilter ThreV(float threv) public ChromanrFilter Distance(ChromanrDistance distance) => this.SetOption("distance", distance); } - public static class ChromanrFilterExtensions { /// @@ -97,7 +91,6 @@ public static class ChromanrFilterExtensions public static ChromanrFilter chromanrFilter(this ImageMap imageMap) => new ChromanrFilter(imageMap); } - public enum ChromanrDistance { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ChromashiftFilter.cs b/FFmpegArgs.Filters/VideoFilters/ChromashiftFilter.cs index b3ff6bc7..f6296285 100644 --- a/FFmpegArgs.Filters/VideoFilters/ChromashiftFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ChromashiftFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC chromashift V->V Shift chroma.

@@ -44,7 +42,6 @@ public ChromashiftFilter Crh(int crh) /// public ChromashiftFilter Crv(int crv) => this.SetOptionRange("crv", crv, -255, 255); - /// /// Set edge mode, can be smear, default, or warp. /// @@ -53,7 +50,6 @@ public ChromashiftFilter Crv(int crv) public ChromashiftFilter Edge(ChromashiftEdgeMode mode) => this.SetOption("edge", mode.ToString().Substring(1)); } - public static class ChromashiftFilterExtensions { /// @@ -62,7 +58,6 @@ public static class ChromashiftFilterExtensions public static ChromashiftFilter chromashiftFilter(this ImageMap imageMap) => new ChromashiftFilter(imageMap); } - public enum ChromashiftEdgeMode { _smear, diff --git a/FFmpegArgs.Filters/VideoFilters/CiescopeFilter.cs b/FFmpegArgs.Filters/VideoFilters/CiescopeFilter.cs index e9800260..5ebd2f73 100644 --- a/FFmpegArgs.Filters/VideoFilters/CiescopeFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CiescopeFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... ciescope V->V Video CIE scope.

@@ -12,7 +10,6 @@ internal CiescopeFilter(ImageMap imageMap) : base("ciescope", imageMap) { AddMapOut(); } - /// /// Set color system. /// @@ -20,7 +17,6 @@ internal CiescopeFilter(ImageMap imageMap) : base("ciescope", imageMap) /// public CiescopeFilter System(CiescopeColorSystem system) => this.SetOption("system", system.ToString().Substring(1)); - /// /// Set CIE system. /// @@ -28,7 +24,6 @@ public CiescopeFilter System(CiescopeColorSystem system) /// public CiescopeFilter Cie(CiescopeCieSystem cie) => this.SetOption("cie", cie); - /// /// Set what gamuts to draw. /// @@ -36,7 +31,6 @@ public CiescopeFilter Cie(CiescopeCieSystem cie) /// public CiescopeFilter Gamuts(CiescopeColorSystem gamuts) => this.SetOption("gamuts", gamuts.ToString().Substring(1)); - /// /// Set ciescope size, by default set to 512. (from 256 to 8192) (default 512) /// @@ -44,7 +38,6 @@ public CiescopeFilter Gamuts(CiescopeColorSystem gamuts) /// public CiescopeFilter Size(int s) => this.SetOptionRange("s", s, 256, 8192); - /// /// Set intensity used to map input pixel values to CIE diagram. (from 0 to 1) (default 0.001) /// @@ -52,7 +45,6 @@ public CiescopeFilter Size(int s) /// public CiescopeFilter Intensity(float i) => this.SetOptionRange("i", i, 0, 1); - /// /// Set contrast used to draw tongue colors that are out of active color system gamut. (from 0 to 1) (default 0.75) /// @@ -60,7 +52,6 @@ public CiescopeFilter Intensity(float i) /// public CiescopeFilter Contrast(float contrast) => this.SetOptionRange("contrast", contrast, 0, 1); - /// /// Correct gamma displayed on scope, by default enabled. /// @@ -68,7 +59,6 @@ public CiescopeFilter Contrast(float contrast) /// public CiescopeFilter Corrgamma(bool corrgamma) => this.SetOption("corrgamma", corrgamma.ToFFmpegFlag()); - /// /// Show white point on CIE diagram, by default disabled. /// @@ -76,7 +66,6 @@ public CiescopeFilter Corrgamma(bool corrgamma) /// public CiescopeFilter Showwhite(bool showwhite) => this.SetOption("showwhite", showwhite.ToFFmpegFlag()); - /// /// Set input gamma. Used only with XYZ input color space. (from 0.1 to 6) (default 2.6) /// @@ -85,7 +74,6 @@ public CiescopeFilter Showwhite(bool showwhite) public CiescopeFilter Gamma(double gamma) => this.SetOptionRange("gamma", gamma, 0.1, 6); } - public static class CiescopeFilterExtensions { /// @@ -94,7 +82,6 @@ public static class CiescopeFilterExtensions public static CiescopeFilter CiescopeFilter(this ImageMap imageMap) => new CiescopeFilter(imageMap); } - public enum CiescopeColorSystem { _ntsc, @@ -112,7 +99,6 @@ public enum CiescopeColorSystem _rec2020, _dcip3 } - public enum CiescopeCieSystem { xyy, diff --git a/FFmpegArgs.Filters/VideoFilters/CodecviewFilter.cs b/FFmpegArgs.Filters/VideoFilters/CodecviewFilter.cs index 2a87028f..16e1d6d9 100644 --- a/FFmpegArgs.Filters/VideoFilters/CodecviewFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CodecviewFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.. codecview V->V Visualize information about some codecs.

@@ -12,7 +10,6 @@ internal CodecviewFilter(ImageMap imageMap) : base("codecview", imageMap) { AddMapOut(); } - /// /// Set motion vectors to visualize. /// @@ -20,7 +17,6 @@ internal CodecviewFilter(ImageMap imageMap) : base("codecview", imageMap) /// public CodecviewFilter MV(CodecviewMotionVector motionVector) => this.SetOption("mf", motionVector); - /// /// Display quantization parameters using the chroma planes.(default false) /// @@ -28,7 +24,6 @@ public CodecviewFilter MV(CodecviewMotionVector motionVector) /// public CodecviewFilter QP(bool qp) => this.SetOption("qp", qp.ToFFmpegFlag()); - /// /// Set motion vectors type to visualize. Includes MVs from all frames unless specified by frame_type option. /// @@ -36,7 +31,6 @@ public CodecviewFilter QP(bool qp) /// public CodecviewFilter MvType(CodecviewMotionVectorType type) => this.SetOption("mvt", type); - /// /// Set frame type to visualize motion vectors of. /// @@ -45,7 +39,6 @@ public CodecviewFilter MvType(CodecviewMotionVectorType type) public CodecviewFilter FrameType(CodecviewFrameType type) => this.SetOption("ft", type); } - public static class CodecviewFilterExtensions { /// @@ -55,7 +48,6 @@ public static class CodecviewFilterExtensions public static CodecviewFilter CodecviewFilter(this ImageMap imageMap) => new CodecviewFilter(imageMap); } - public enum CodecviewMotionVector { /// @@ -71,7 +63,6 @@ public enum CodecviewMotionVector /// bb } - public enum CodecviewMotionVectorType { /// @@ -83,7 +74,6 @@ public enum CodecviewMotionVectorType /// bp } - public enum CodecviewFrameType { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColorKeyFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorKeyFilter.cs index e463a5e1..583a9df9 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorKeyFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorKeyFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC colorkey V->V Turns a certain color into transparency. Operates on RGB colors.

@@ -13,7 +10,6 @@ internal ColorKeyFilter(ImageMap imageMap) : base("colorkey", imageMap) { AddMapOut(); } - /// /// Set the color for which alpha will be set to 0 (full transparency). /// @@ -21,8 +17,6 @@ internal ColorKeyFilter(ImageMap imageMap) : base("colorkey", imageMap) /// public ColorKeyFilter Color(Color color) => this.SetOption("color", color.ToHexStringRGBA()); - - /// /// Similarity percentage with the key color.

/// 0.01 matches only the exact key color, while 1.0 matches everything. (from 0.01 to 1) (default 0.01) @@ -31,7 +25,6 @@ public ColorKeyFilter Color(Color color) /// public ColorKeyFilter Similarity(float similarity) => this.SetOptionRange("similarity", similarity, 0.01, 1); - /// /// Blend percentage.
///
0.0 makes pixels either fully transparent, or not transparent at all.
@@ -42,7 +35,6 @@ public ColorKeyFilter Similarity(float similarity) public ColorKeyFilter Blend(float blend) => this.SetOptionRange("blend", blend, 0, 1); } - public static class ColorKeyFilterExtension { /// @@ -53,7 +45,6 @@ public static class ColorKeyFilterExtension /// public static ColorKeyFilter ColorKeyFilter(this ImageMap parent, Color color) => new ColorKeyFilter(parent).Color(color); - /// /// RGB colorspace color keying. /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColorbalanceFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorbalanceFilter.cs index a1f0bd9c..edb653d3 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorbalanceFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorbalanceFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC colorbalance V->V Adjust the color balance

@@ -12,7 +10,6 @@ internal ColorbalanceFilter(ImageMap imageMap) : base("colorbalance", imageMap) { AddMapOut(); } - /// /// Allowed ranges for options are [-1.0, 1.0]. Defaults are 0. /// @@ -21,7 +18,6 @@ internal ColorbalanceFilter(ImageMap imageMap) : base("colorbalance", imageMap) /// public ColorbalanceFilter AdjustType(ColorbalanceType type, float val) => this.SetOptionRange(type.ToString(), val, -1.0f, 1.0f); - /// /// Preserve lightness when changing color balance. Default is disabled. /// @@ -30,7 +26,6 @@ public ColorbalanceFilter AdjustType(ColorbalanceType type, float val) public ColorbalanceFilter PreserveLightness(bool flag) => this.SetOption("pl", flag.ToFFmpegFlag()); } - public static class ColorbalanceFilterExtensions { /// @@ -41,7 +36,6 @@ public static class ColorbalanceFilterExtensions public static ColorbalanceFilter ColorbalanceFilter(this ImageMap imageMap) => new ColorbalanceFilter(imageMap); } - public enum ColorbalanceType { /// @@ -56,8 +50,6 @@ public enum ColorbalanceType /// Adjust blue shadows (darkest pixels). /// bs, - - /// /// Adjust red midtones (medium pixels). /// @@ -70,8 +62,6 @@ public enum ColorbalanceType /// Adjust blue midtones (medium pixels). /// bm, - - /// /// Adjust red highlights (brightest pixels). /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColorchannelmixerFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorchannelmixerFilter.cs index 8b5d5ed4..b6171526 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorchannelmixerFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorchannelmixerFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC colorchannelmixer V->V Adjust colors by mixing color channels.

@@ -12,7 +10,6 @@ internal ColorchannelmixerFilter(ImageMap imageMap) : base("colorchannelmixer", { AddMapOut(); } - /// /// Allowed ranges for options are [-2.0, 2.0]. /// @@ -21,7 +18,6 @@ internal ColorchannelmixerFilter(ImageMap imageMap) : base("colorchannelmixer", /// public ColorchannelmixerFilter AdjustContribution(ColorchannelmixerContribution contribution, double val) => this.SetOptionRange(contribution.ToString(), val, -2.0, 2.0); - /// /// Set preserve color mode. /// @@ -29,7 +25,6 @@ public ColorchannelmixerFilter AdjustContribution(ColorchannelmixerContribution /// public ColorchannelmixerFilter PreserveColorMode(ColorchannelmixerPreserveColorMode pc) => this.SetOption("pc", pc); - /// /// Set the preserve color amount when changing colors. Allowed range is from [0.0, 1.0].
///
Default is 0.0, thus disabled. @@ -39,7 +34,6 @@ public ColorchannelmixerFilter PreserveColorMode(ColorchannelmixerPreserveColorM public ColorchannelmixerFilter PreserveColorAmount(float pa) => this.SetOptionRange("pa", pa, 0.0f, 1.0f); } - public static class ColorchannelmixerFilterExtensions { /// @@ -50,7 +44,6 @@ public static class ColorchannelmixerFilterExtensions public static ColorchannelmixerFilter ColorchannelmixerFilter(this ImageMap imageMap) => new ColorchannelmixerFilter(imageMap); } - public enum ColorchannelmixerContribution { /// @@ -69,7 +62,6 @@ public enum ColorchannelmixerContribution /// Adjust contribution of input red, green, blue and alpha channels for output red channel. Default is 1 for rr, and 0 for rg, rb and ra. /// ra, - /// /// Adjust contribution of input red, green, blue and alpha channels for output green channel. Default is 1 for gg, and 0 for gr, gb and ga. /// @@ -86,7 +78,6 @@ public enum ColorchannelmixerContribution /// Adjust contribution of input red, green, blue and alpha channels for output green channel. Default is 1 for gg, and 0 for gr, gb and ga. /// ga, - /// /// Adjust contribution of input red, green, blue and alpha channels for output blue channel. Default is 1 for bb, and 0 for br, bg and ba. /// @@ -103,7 +94,6 @@ public enum ColorchannelmixerContribution /// Adjust contribution of input red, green, blue and alpha channels for output blue channel. Default is 1 for bb, and 0 for br, bg and ba. ///
ba, - /// /// Adjust contribution of input red, green, blue and alpha channels for output alpha channel. Default is 1 for aa, and 0 for ar, ag and ab. /// @@ -121,7 +111,6 @@ public enum ColorchannelmixerContribution ///
aa } - public enum ColorchannelmixerPreserveColorMode { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColorcontrastFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorcontrastFilter.cs index 48af80f0..a875e73d 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorcontrastFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorcontrastFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC colorcontrast V->V Adjust color contrast between RGB components.

@@ -12,7 +10,6 @@ internal ColorcontrastFilter(ImageMap imageMap) : base("colorcontrast", imageMap { AddMapOut(); } - /// /// Set the red-cyan contrast. Defaults is 0.0. Allowed range is from -1.0 to 1.0. /// @@ -20,7 +17,6 @@ internal ColorcontrastFilter(ImageMap imageMap) : base("colorcontrast", imageMap /// public ColorcontrastFilter RedCyan(float rc) => this.SetOptionRange("rc", rc, -1.0f, 1.0f); - /// /// Set the green-magenta contrast. Defaults is 0.0. Allowed range is from -1.0 to 1.0. /// @@ -28,7 +24,6 @@ public ColorcontrastFilter RedCyan(float rc) /// public ColorcontrastFilter GreenMagenta(float gm) => this.SetOptionRange("gm", gm, -1.0f, 1.0f); - /// /// Set the blue-yellow contrast. Defaults is 0.0. Allowed range is from -1.0 to 1.0. /// @@ -36,7 +31,6 @@ public ColorcontrastFilter GreenMagenta(float gm) /// public ColorcontrastFilter BlueYellow(float by) => this.SetOptionRange("by", by, -1.0f, 1.0f); - /// /// Set the weight of option value. Default value is 0.0. Allowed range is from 0.0 to 1.0. If all weights are 0.0 filtering is disabled. /// @@ -44,7 +38,6 @@ public ColorcontrastFilter BlueYellow(float by) /// public ColorcontrastFilter RedCyanWeight(float rcw) => this.SetOptionRange("rcw", rcw, 0.0f, 1.0f); - /// /// Set the weight of by option value. Default value is 0.0. Allowed range is from 0.0 to 1.0. If all weights are 0.0 filtering is disabled. /// @@ -52,7 +45,6 @@ public ColorcontrastFilter RedCyanWeight(float rcw) /// public ColorcontrastFilter GreenMagentaWeight(float gmw) => this.SetOptionRange("gmw", gmw, 0.0f, 1.0f); - /// /// Set the weight of by option value. Default value is 0.0. Allowed range is from 0.0 to 1.0. If all weights are 0.0 filtering is disabled. /// @@ -60,7 +52,6 @@ public ColorcontrastFilter GreenMagentaWeight(float gmw) /// public ColorcontrastFilter BlueYellowWeight(float byw) => this.SetOptionRange("byw", byw, 0.0f, 1.0f); - /// /// Set the amount of preserving lightness. Default value is 0.0. Allowed range is from 0.0 to 1.0. /// @@ -69,7 +60,6 @@ public ColorcontrastFilter BlueYellowWeight(float byw) public ColorcontrastFilter PreservingLightness(float pl) => this.SetOptionRange("pl", pl, 0.0f, 1.0f); } - public static class ColorcontrastFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColorcorrectFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorcorrectFilter.cs index bfef469c..6e6f1932 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorcorrectFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorcorrectFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC colorcorrect V->V Adjust color white balance selectively for blacks and whites.

@@ -12,7 +10,6 @@ internal ColorcorrectFilter(ImageMap imageMap) : base("colorcorrect", imageMap) { AddMapOut(); } - /// /// Set the red shadow spot. Allowed range is from -1.0 to 1.0. Default value is 0. /// @@ -20,7 +17,6 @@ internal ColorcorrectFilter(ImageMap imageMap) : base("colorcorrect", imageMap) /// public ColorcorrectFilter RL(float rl) => this.SetOptionRange("rl", rl, -1.0f, 1.0f); - /// /// Set the blue shadow spot. Allowed range is from -1.0 to 1.0. Default value is 0. /// @@ -28,7 +24,6 @@ public ColorcorrectFilter RL(float rl) /// public ColorcorrectFilter BL(float bl) => this.SetOptionRange("bl", bl, -1.0f, 1.0f); - /// /// Set the red highlight spot. Allowed range is from -1.0 to 1.0. Default value is 0. /// @@ -36,7 +31,6 @@ public ColorcorrectFilter BL(float bl) /// public ColorcorrectFilter RH(float rh) => this.SetOptionRange("rh", rh, -1.0f, 1.0f); - /// /// Set the red highlight spot. Allowed range is from -1.0 to 1.0. Default value is 0. /// @@ -44,7 +38,6 @@ public ColorcorrectFilter RH(float rh) /// public ColorcorrectFilter BH(float bh) => this.SetOptionRange("bh", bh, -1.0f, 1.0f); - /// /// Set the amount of saturation. Allowed range is from -3.0 to 3.0. Default value is 1. /// @@ -52,7 +45,6 @@ public ColorcorrectFilter BH(float bh) /// public ColorcorrectFilter Saturation(float saturation) => this.SetOptionRange("saturation", saturation, -3.0f, 3.0f); - /// /// If set to anything other than manual it will analyze every frame and use derived parameters for filtering output frame.

/// Default value is manual. @@ -62,7 +54,6 @@ public ColorcorrectFilter Saturation(float saturation) public ColorcorrectFilter Analyze(ColorcorrectAnalyze analyze) => this.SetOption("analyze", analyze); } - public static class ColorcorrectFilterExtensions { /// @@ -71,7 +62,6 @@ public static class ColorcorrectFilterExtensions public static ColorcorrectFilter ColorcorrectFilter(this ImageMap imageMap) => new ColorcorrectFilter(imageMap); } - public enum ColorcorrectAnalyze { manual, diff --git a/FFmpegArgs.Filters/VideoFilters/ColorholdFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorholdFilter.cs index 35d8eb36..f446a9fd 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorholdFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorholdFilter.cs @@ -4,9 +4,6 @@ similarity ..FV.....T. set the colorhold similarity value (from 0.01 to 1) (default 0.01) blend ..FV.....T. set the colorhold blend value (from 0 to 1) (default 0) */ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -19,14 +16,12 @@ internal ColorholdFilter(ImageMap imageMap) : base("colorhold", imageMap) { AddMapOut(); } - /// /// The color which will not be replaced with neutral gray. /// /// /// public ColorholdFilter Color(Color color) => this.SetOption("color", color.ToHexStringRGBA()); - /// /// Similarity percentage with the key color.

/// 0.01 matches only the exact key color, while 1.0 matches everything. (from 0.01 to 1) (default 0.01) @@ -35,7 +30,6 @@ internal ColorholdFilter(ImageMap imageMap) : base("colorhold", imageMap) /// public ColorholdFilter Similarity(float similarity) => this.SetOptionRange("similarity", similarity, 0.01f, 1); - /// /// Blend percentage.
///
0.0 makes pixels fully gray.
@@ -45,9 +39,7 @@ public ColorholdFilter Similarity(float similarity) /// public ColorholdFilter Blend(float blend) => this.SetOptionRange("blend", blend, 0, 1); - } - public static class ColorholdFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColorizeFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorizeFilter.cs index afff76fc..7426e610 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorizeFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorizeFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC colorize V->V Overlay a solid color on the video stream.

@@ -12,7 +10,6 @@ internal ColorizeFilter(ImageMap imageMap) : base("colorize", imageMap) { AddMapOut(); } - /// /// Set the color hue. Allowed range is from 0 to 360. Default value is 0. /// @@ -20,7 +17,6 @@ internal ColorizeFilter(ImageMap imageMap) : base("colorize", imageMap) /// public ColorizeFilter Hue(float hue) => this.SetOptionRange("hue", hue, 0, 360); - /// /// Set the color saturation. Allowed range is from 0 to 1. Default value is 0.5. /// @@ -28,7 +24,6 @@ public ColorizeFilter Hue(float hue) /// public ColorizeFilter Saturation(float saturation) => this.SetOptionRange("saturation", saturation, 0, 1); - /// /// Set the color lightness. Allowed range is from 0 to 1. Default value is 0.5. /// @@ -36,7 +31,6 @@ public ColorizeFilter Saturation(float saturation) /// public ColorizeFilter Lightness(float lightness) => this.SetOptionRange("lightness", lightness, 0, 1); - /// /// Set the mix of source lightness. By default is set to 1.0. Allowed range is from 0.0 to 1.0. /// @@ -45,7 +39,6 @@ public ColorizeFilter Lightness(float lightness) public ColorizeFilter Mix(float mix) => this.SetOptionRange("mix", mix, 0, 1); } - public static class ColorizeFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColorlevelsFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorlevelsFilter.cs index 00dfdfe7..2c7fa8dd 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorlevelsFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorlevelsFilter.cs @@ -1,5 +1,4 @@ -using FFmpegArgs.Cores.Maps; - + namespace FFmpegArgs.Filters.VideoFilters { /// @@ -12,10 +11,15 @@ internal ColorlevelsFilter(ImageMap imageMap) : base("colorlevels", imageMap) { AddMapOut(); } - + /// + /// + /// + /// + /// + /// public ColorlevelsFilter Adjust(ColorlevelsAdjustName adjust, double val) { - FloatRangeAttribute range = adjust.GetAttribute(); + FloatRangeAttribute range = adjust.GetEnumAttribute(); return this.SetOptionRange(adjust.ToString(), val, range.Min, range.Max); } /// @@ -26,7 +30,9 @@ public ColorlevelsFilter Adjust(ColorlevelsAdjustName adjust, double val) public ColorlevelsFilter Preserve(ColorlevelsPreserve preserve) => this.SetOption("preserve", preserve); } - + /// + /// + /// public static class ColorlevelsFilterExtensions { /// @@ -35,7 +41,9 @@ public static class ColorlevelsFilterExtensions public static ColorlevelsFilter ColorlevelsFilter(this ImageMap imageMap) => new ColorlevelsFilter(imageMap); } - + /// + /// + /// public enum ColorlevelsAdjustName { /// @@ -54,9 +62,6 @@ public enum ColorlevelsAdjustName /// Adjust red, green, blue and alpha input black point. Allowed ranges for options are [-1.0, 1.0]. Defaults are 0. /// [FloatRange(-1, 1)] aimin, - - - /// /// Adjust red, green, blue and alpha input white point. Allowed ranges for options are [-1.0, 1.0]. Defaults are 1.

/// Input levels are used to lighten highlights (bright tones), darken shadows (dark tones), change the balance of bright and dark tones. @@ -77,9 +82,6 @@ public enum ColorlevelsAdjustName /// Input levels are used to lighten highlights (bright tones), darken shadows (dark tones), change the balance of bright and dark tones. ///
[FloatRange(-1, 1)] aimax, - - - /// /// Adjust red, green, blue and alpha output black point. Allowed ranges for options are [0, 1.0]. Defaults are 0. /// @@ -96,9 +98,6 @@ public enum ColorlevelsAdjustName /// Adjust red, green, blue and alpha output black point. Allowed ranges for options are [0, 1.0]. Defaults are 0. ///
[FloatRange(0, 1)] aomin, - - - /// /// Adjust red, green, blue and alpha output white point. Allowed ranges for options are [0, 1.0]. Defaults are 1.

/// Output levels allows manual selection of a constrained output level range. @@ -120,7 +119,9 @@ public enum ColorlevelsAdjustName ///
[FloatRange(0, 1)] aomax } - + /// + /// + /// public enum ColorlevelsPreserve { /// @@ -151,6 +152,5 @@ public enum ColorlevelsPreserve /// Preserve power value of RGB triplet. /// pwr, - } } diff --git a/FFmpegArgs.Filters/VideoFilters/ColormatrixFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColormatrixFilter.cs index 9507c901..23aecc16 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColormatrixFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColormatrixFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TS. colormatrix V->V Convert color matrix.

@@ -15,7 +13,6 @@ internal ColormatrixFilter(ColormatrixType src, ColormatrixType dst, ImageMap im this.SetOption("dst", dst); } } - public static class ColormatrixFilterExtensions { /// @@ -24,7 +21,6 @@ public static class ColormatrixFilterExtensions public static ColormatrixFilter ColormatrixFilter(this ImageMap imageMap, ColormatrixType src, ColormatrixType dst) => new ColormatrixFilter(src, dst, imageMap); } - public enum ColormatrixType { bt709, diff --git a/FFmpegArgs.Filters/VideoFilters/ColorspaceFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColorspaceFilter.cs index 2ec4b239..52c63407 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColorspaceFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColorspaceFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TS. colorspace V->V Convert between colorspaces.

@@ -12,15 +10,13 @@ internal ColorspaceFilter(ImageMap imageMap) : base("colorspace", imageMap) { AddMapOut(); } - /// /// Specify all color properties at once. /// /// /// public ColorspaceFilter All(ColorspaceColorProperties all) - => this.SetOption("all", all.GetAttribute().Name); - + => this.SetOption("all", all.GetEnumAttribute().Name); /// /// Specify output colorspace. /// @@ -28,23 +24,20 @@ public ColorspaceFilter All(ColorspaceColorProperties all) /// public ColorspaceFilter Space(ColorspaceSpace space) => this.SetOption("space", space); - /// /// Specify output transfer characteristics. /// /// /// public ColorspaceFilter Trc(ColorspaceTrc trc) - => this.SetOption("str", trc.GetAttribute().Name); - + => this.SetOption("str", trc.GetEnumAttribute().Name); /// /// Specify output color primaries. /// /// /// public ColorspaceFilter Primaries(ColorspacePrimaries primaries) - => this.SetOption("primaries", primaries.GetAttribute().Name); - + => this.SetOption("primaries", primaries.GetEnumAttribute().Name); /// /// Specify output color range. /// @@ -52,7 +45,6 @@ public ColorspaceFilter Primaries(ColorspacePrimaries primaries) /// public ColorspaceFilter Range(ColorspaceRange range) => this.SetOption("range", range); - /// /// Specify output color format. /// @@ -60,7 +52,6 @@ public ColorspaceFilter Range(ColorspaceRange range) /// public ColorspaceFilter Format(ColorspaceFormat format) => this.SetOption("format", format); - /// /// Do a fast conversion, which skips gamma/primary correction.
///
This will take significantly less CPU, but will be mathematically incorrect.
@@ -70,14 +61,12 @@ public ColorspaceFilter Format(ColorspaceFormat format) /// public ColorspaceFilter Fast(bool flag) => this.SetOption("fast", flag.ToFFmpegFlag()); - /// /// Specify dithering mode. /// /// public ColorspaceFilter Dither(ColorspaceDither dither) => this.SetOption("dither", dither); - /// /// Whitepoint adaptation mode. /// @@ -85,15 +74,13 @@ public ColorspaceFilter Dither(ColorspaceDither dither) /// public ColorspaceFilter Wpadapt(ColorspaceWpadapt wpadapt) => this.SetOption("wpadapt", wpadapt); - /// /// Override all input properties at once /// /// /// public ColorspaceFilter IAll(ColorspaceColorProperties iall) - => this.SetOption("iall", iall.GetAttribute().Name); - + => this.SetOption("iall", iall.GetEnumAttribute().Name); /// /// Override input colorspace. /// @@ -101,23 +88,20 @@ public ColorspaceFilter IAll(ColorspaceColorProperties iall) /// public ColorspaceFilter ISpace(ColorspaceSpace ispace) => this.SetOption("ispace", ispace); - /// /// Override input color primaries /// /// /// public ColorspaceFilter IPrimaries(ColorspacePrimaries iprimaries) - => this.SetOption("iprimaries", iprimaries.GetAttribute().Name); - + => this.SetOption("iprimaries", iprimaries.GetEnumAttribute().Name); /// /// Override input transfer characteristics. /// /// /// public ColorspaceFilter ITrc(ColorspaceTrc itrc) - => this.SetOption("itrc", itrc.GetAttribute().Name); - + => this.SetOption("itrc", itrc.GetEnumAttribute().Name); /// /// Override input color range. /// @@ -126,7 +110,9 @@ public ColorspaceFilter ITrc(ColorspaceTrc itrc) public ColorspaceFilter IRange(ColorspaceRange irange) => this.SetOption("irange", irange); } - + /// + /// + /// public static class ColorspaceFilterExtensions { /// @@ -136,7 +122,9 @@ public static class ColorspaceFilterExtensions public static ColorspaceFilter ColorspaceFilter(this ImageMap imageMap) => new ColorspaceFilter(imageMap); } - + /// + /// + /// public enum ColorspaceColorProperties { /// @@ -172,7 +160,9 @@ public enum ColorspaceColorProperties /// [Name("bt2020")] bt2020 } - + /// + /// + /// public enum ColorspaceSpace { /// @@ -204,7 +194,9 @@ public enum ColorspaceSpace /// bt2020ncl } - + /// + /// + /// public enum ColorspaceTrc { /// @@ -260,7 +252,9 @@ public enum ColorspaceTrc /// [Name("bt2020-12")] bt2020_12 } - + /// + /// + /// public enum ColorspacePrimaries { /// @@ -304,7 +298,9 @@ public enum ColorspacePrimaries /// [Name("jedec-p22")] jedec_p22 } - + /// + /// + /// public enum ColorspaceRange { /// @@ -324,7 +320,9 @@ public enum ColorspaceRange /// jpeg } - + /// + /// + /// public enum ColorspaceFormat { /// @@ -364,7 +362,9 @@ public enum ColorspaceFormat /// yuv444p12 } - + /// + /// + /// public enum ColorspaceDither { /// @@ -376,7 +376,9 @@ public enum ColorspaceDither /// fsb } - + /// + /// + /// public enum ColorspaceWpadapt { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ColortemperatureFilter.cs b/FFmpegArgs.Filters/VideoFilters/ColortemperatureFilter.cs index 3b4ac5b1..d7dbbd73 100644 --- a/FFmpegArgs.Filters/VideoFilters/ColortemperatureFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ColortemperatureFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC colortemperature V->V Adjust color temperature of video.

@@ -12,7 +10,6 @@ internal ColortemperatureFilter(ImageMap imageMap) : base("colortemperature", im { AddMapOut(); } - /// /// Set the temperature in Kelvin. Allowed range is from 1000 to 40000. Default value is 6500 K. /// @@ -20,7 +17,6 @@ internal ColortemperatureFilter(ImageMap imageMap) : base("colortemperature", im /// public ColortemperatureFilter Temperature(float temperature) => this.SetOptionRange("temperature", temperature, 1000, 40000); - /// /// Set mixing with filtered output. Allowed range is from 0 to 1. Default value is 1. /// @@ -28,7 +24,6 @@ public ColortemperatureFilter Temperature(float temperature) /// public ColortemperatureFilter Mix(float mix) => this.SetOptionRange("mix", mix, 0, 1); - /// /// Set the amount of preserving lightness. Allowed range is from 0 to 1. Default value is 0. /// @@ -36,9 +31,7 @@ public ColortemperatureFilter Mix(float mix) /// public ColortemperatureFilter Pl(float pl) => this.SetOptionRange("pl", pl, 0, 1); - } - public static class ColortemperatureFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ConvolutionFilter.cs b/FFmpegArgs.Filters/VideoFilters/ConvolutionFilter.cs index c169dd44..90968ea7 100644 --- a/FFmpegArgs.Filters/VideoFilters/ConvolutionFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ConvolutionFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC convolution V->V Apply convolution filter.

@@ -14,7 +11,6 @@ internal ConvolutionFilter(ImageMap imageMap) : base("convolution", imageMap) { AddMapOut(); } - /// /// Set matrix for each plane. Matrix is sequence of 9, 25 or 49 signed integers in square mode, and from 1 to 49 odd number of signed integers in row mode.
///
(default "0 0 0 0 1 0 0 0 0") @@ -24,7 +20,6 @@ internal ConvolutionFilter(ImageMap imageMap) : base("convolution", imageMap) /// public ConvolutionFilter Matrix(ConvolutionPlane plane, params int[] vals) => this.SetOption($"{plane.ToString().Substring(1)}m", string.Join(" ", vals)); - /// /// Set multiplier for calculated value for each plane. If unset or 0, it will be sum of all matrix elements. /// @@ -33,7 +28,6 @@ public ConvolutionFilter Matrix(ConvolutionPlane plane, params int[] vals) /// public ConvolutionFilter Multiplier(ConvolutionPlane plane, float val) => this.SetOptionRange($"{plane.ToString().Substring(1)}rdiv", val, 0, int.MaxValue); - /// /// Set bias for each plane. This value is added to the result of the multiplication. Useful for making the overall image brighter or darker.
///
Default is 0.0. @@ -43,7 +37,6 @@ public ConvolutionFilter Multiplier(ConvolutionPlane plane, float val) /// public ConvolutionFilter Bias(ConvolutionPlane plane, float val) => this.SetOptionRange($"{plane.ToString().Substring(1)}bias", val, 0, int.MaxValue); - /// /// Set matrix mode for each plane. Can be square, row or column. Default is square. /// @@ -52,9 +45,7 @@ public ConvolutionFilter Bias(ConvolutionPlane plane, float val) /// public ConvolutionFilter MatrixMode(ConvolutionPlane plane, ConvolutionMatrixMode mode) => this.SetOption($"{plane.ToString().Substring(1)}mode", mode); - } - public static class ConvolutionFilterExtensions { /// @@ -63,7 +54,6 @@ public static class ConvolutionFilterExtensions public static ConvolutionFilter ConvolutionFilter(this ImageMap imageMap) => new ConvolutionFilter(imageMap); } - public enum ConvolutionPlane { _0, @@ -71,7 +61,6 @@ public enum ConvolutionPlane _2, _3, } - public enum ConvolutionMatrixMode { square, diff --git a/FFmpegArgs.Filters/VideoFilters/ConvolveFilter.cs b/FFmpegArgs.Filters/VideoFilters/ConvolveFilter.cs index 1b49e143..19dfe6a6 100644 --- a/FFmpegArgs.Filters/VideoFilters/ConvolveFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ConvolveFilter.cs @@ -6,8 +6,6 @@ all 1 ..FV....... process all impulses noise ..FV....... set noise (from 0 to 1) (default 1e-07) */ -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -20,14 +18,12 @@ internal ConvolveFilter(ImageMap imageMap) : base("convolve", imageMap) { AddMapOut(); } - /// /// Set planes to convolve (from 0 to 15) (default 7) /// /// /// public ConvolveFilter Planes(int planes) => this.SetOptionRange("planes", planes, 0, 15); - /// /// Set which impulse video frames will be processed, can be first or all. Default is all. /// @@ -35,7 +31,6 @@ internal ConvolveFilter(ImageMap imageMap) : base("convolve", imageMap) /// public ConvolveFilter Impulse(ConvolveImpulse impulse) => this.SetOption("impulse", impulse); - /// /// set noise (from 0 to 1) (default 1e-07) /// @@ -43,9 +38,7 @@ public ConvolveFilter Impulse(ConvolveImpulse impulse) /// public ConvolveFilter Noise(float noise) => this.SetOptionRange("noise", noise, 0, 1); - } - public static class ConvolveFilterExtensions { /// @@ -53,7 +46,6 @@ public static class ConvolveFilterExtensions /// public static ConvolveFilter ConvolveFilter(this ImageMap imageMap) => new ConvolveFilter(imageMap); } - public enum ConvolveImpulse { /// diff --git a/FFmpegArgs.Filters/VideoFilters/CopyFilter.cs b/FFmpegArgs.Filters/VideoFilters/CopyFilter.cs index 3c99d887..4b071ca3 100644 --- a/FFmpegArgs.Filters/VideoFilters/CopyFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CopyFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... copy V->V Copy the input video unchanged to the output.

@@ -13,7 +11,6 @@ internal CopyFilter(ImageMap imageMap) : base("copy", imageMap) AddMapOut(); } } - public static class CopyFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/CoreimageFilter.cs b/FFmpegArgs.Filters/VideoFilters/CoreimageFilter.cs index ccf3e238..15c8a729 100644 --- a/FFmpegArgs.Filters/VideoFilters/CoreimageFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CoreimageFilter.cs @@ -11,7 +11,6 @@ // AddMapOut(); // } //} - //public static class CoreimageFilterExtensions //{ // /// diff --git a/FFmpegArgs.Filters/VideoFilters/Cover_rectFilter.cs b/FFmpegArgs.Filters/VideoFilters/Cover_rectFilter.cs index 99ad976f..b380d266 100644 --- a/FFmpegArgs.Filters/VideoFilters/Cover_rectFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/Cover_rectFilter.cs @@ -5,8 +5,6 @@ cover 0 ..FV....... cover area with bitmap blur 1 ..FV....... blur area */ -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -19,14 +17,12 @@ internal Cover_rectFilter(ImageMap imageMap) : base("cover_rect", imageMap) { AddMapOut(); } - /// /// Filepath of the optional cover image, needs to be in yuv420. /// /// /// public Cover_rectFilter Cover(string filePathOrName) => this.SetOption("cover", filePathOrName); - /// /// Set covering mode.

/// Default value is blur. @@ -35,7 +31,6 @@ internal Cover_rectFilter(ImageMap imageMap) : base("cover_rect", imageMap) /// public Cover_rectFilter Mode(Cover_rectMode mode) => this.SetOption("mode", mode); } - public static class Cover_rectFilterExtensions { /// @@ -43,7 +38,6 @@ public static class Cover_rectFilterExtensions /// public static Cover_rectFilter Cover_rectFilter(this ImageMap imageMap) => new Cover_rectFilter(imageMap); } - public enum Cover_rectMode { cover, diff --git a/FFmpegArgs.Filters/VideoFilters/CropFilter.cs b/FFmpegArgs.Filters/VideoFilters/CropFilter.cs index d4ff5400..1ec40cfd 100644 --- a/FFmpegArgs.Filters/VideoFilters/CropFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CropFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ..C crop V->V Crop the input video.

@@ -20,12 +15,10 @@ public class CropFilter : ImageToImageFilter, ICommandSupport "n", "pos", "t" }; readonly FFmpegExpression expression = new FFmpegExpression(_variables); - internal CropFilter(ImageMap imageMap) : base("crop", imageMap) { AddMapOut(); } - internal CropFilter(ImageMap imageMap, Action x, Action y, Action w, Action h) : this(imageMap) @@ -35,7 +28,6 @@ internal CropFilter(ImageMap imageMap, this.SetOption("w", w.Run(expression)); this.SetOption("h", h.Run(expression)); } - /// /// The horizontal position, in the input video, of the left edge of the output video. It defaults to (in_w-out_w)/2. This expression is evaluated per-frame. /// @@ -48,7 +40,6 @@ internal CropFilter(ImageMap imageMap, /// /// public CropFilter X(string x) => X(x.Expression()); - /// /// The vertical position, in the input video, of the top edge of the output video. It defaults to (in_h-out_h)/2. This expression is evaluated per-frame. /// @@ -61,7 +52,6 @@ internal CropFilter(ImageMap imageMap, /// /// public CropFilter Y(string y) => Y(y.Expression()); - /// /// The width of the output video. It defaults to iw. This expression is evaluated only once during the filter configuration, or when the ‘w’ or ‘out_w’ command is sent. /// @@ -74,7 +64,6 @@ internal CropFilter(ImageMap imageMap, /// /// public CropFilter W(string w) => W(w.Expression()); - /// /// The height of the output video. It defaults to ih. This expression is evaluated only once during the filter configuration, or when the ‘h’ or ‘out_h’ command is sent. /// @@ -87,14 +76,12 @@ internal CropFilter(ImageMap imageMap, /// /// public CropFilter H(string h) => H(h.Expression()); - /// /// If set to 1 will force the output display aspect ratio to be the same of the input, by changing the output sample aspect ratio. It defaults to 0. /// /// /// public CropFilter KeepAspect(bool flag) => this.SetOption("keep_aspect", flag.ToFFmpegFlag()); - /// /// Enable exact cropping. If enabled, subsampled videos will be cropped at exact width/height/x/y as specified and will not be rounded to nearest smaller value. It defaults to 0. /// @@ -102,7 +89,6 @@ internal CropFilter(ImageMap imageMap, /// public CropFilter Exact(bool flag) => this.SetOption("exact", flag.ToFFmpegFlag()); } - public static class CropFilterExtension { /// diff --git a/FFmpegArgs.Filters/VideoFilters/CropdetectFilter.cs b/FFmpegArgs.Filters/VideoFilters/CropdetectFilter.cs index d48c1f98..dac388e0 100644 --- a/FFmpegArgs.Filters/VideoFilters/CropdetectFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CropdetectFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.. cropdetect V->V Auto-detect crop size.

@@ -12,7 +10,6 @@ internal CropdetectFilter(ImageMap imageMap) : base("cropdetect", imageMap) { AddMapOut(); } - /// /// Set higher black value threshold, An intensity value greater to the set value is considered non-black

/// You can also specify a value between 0.0 and 1.0 which will be scaled depending on the bitdepth of the pixel format.
@@ -22,7 +19,6 @@ internal CropdetectFilter(ImageMap imageMap) : base("cropdetect", imageMap) /// public CropdetectFilter Limit(float limit) => this.SetOptionRange("limit", limit, 0, 65535); - /// /// The value which the width/height should be divisible by. It defaults to 16. The offset is automatically adjusted to center the video.
///
Use 2 to get only even dimensions (needed for 4:2:2 video). 16 is best when encoding to most video codecs. @@ -31,7 +27,6 @@ public CropdetectFilter Limit(float limit) /// public CropdetectFilter Round(int round) => this.SetOptionRange("round", round, 0, int.MaxValue); - /// /// Recalculate the crop area after this many frames (from 0 to INT_MAX) (default 0) /// @@ -39,8 +34,6 @@ public CropdetectFilter Round(int round) /// public CropdetectFilter Reset(int reset) => this.SetOptionRange("reset", reset, 0, int.MaxValue); - - /// /// Set the number of initial frames for which evaluation is skipped. Default is 2. Range is 0 to INT_MAX. /// @@ -48,7 +41,6 @@ public CropdetectFilter Reset(int reset) /// public CropdetectFilter Skip(int skip) => this.SetOptionRange("skip", skip, 0, int.MaxValue); - /// /// Set the counter that determines after how many frames cropdetect will reset the previously detected largest video area and start over to detect the current optimal crop area.
///
Default value is 0.
@@ -59,7 +51,6 @@ public CropdetectFilter Skip(int skip) public CropdetectFilter ResetCount(int reset) => this.SetOptionRange("reset", reset, 0, int.MaxValue); } - public static class CropdetectFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/CueFilter.cs b/FFmpegArgs.Filters/VideoFilters/CueFilter.cs index 50cc7ade..42a6495e 100644 --- a/FFmpegArgs.Filters/VideoFilters/CueFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CueFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... cue V->V Delay filtering to match a cue.

@@ -13,7 +10,6 @@ internal CueFilter(ImageMap imageMap) : base("cue", imageMap) { AddMapOut(); } - /// /// The cue timestamp expressed in a UNIX timestamp in microseconds. Default is 0. /// @@ -21,7 +17,6 @@ internal CueFilter(ImageMap imageMap) : base("cue", imageMap) /// public CueFilter Cue(long cue) => this.SetOptionRange("cue", cue, 0, long.MaxValue); - /// /// The duration of content to pass on as preroll expressed in seconds. Default is 0. /// @@ -29,7 +24,6 @@ public CueFilter Cue(long cue) /// public CueFilter Preroll(TimeSpan preroll) => this.SetOptionRange("preroll", preroll, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// The maximum duration of content to buffer before waiting for the cue expressed in seconds. Default is 0. /// @@ -38,7 +32,6 @@ public CueFilter Preroll(TimeSpan preroll) public CueFilter Buffer(TimeSpan buffer) => this.SetOptionRange("buffer", buffer, TimeSpan.Zero, TimeSpan.MaxValue); } - public static class CueFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/CurvesFilter.cs b/FFmpegArgs.Filters/VideoFilters/CurvesFilter.cs index 58907713..f7fd340a 100644 --- a/FFmpegArgs.Filters/VideoFilters/CurvesFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/CurvesFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC curves V->V Adjust components curves.

@@ -12,7 +10,6 @@ internal CurvesFilter(ImageMap imageMap) : base("curves", imageMap) { AddMapOut(); } - /// /// Select one of the available color presets. This option can be used in addition to the r, g, b parameters; in this case, the later options takes priority on the preset values. /// @@ -20,8 +17,6 @@ internal CurvesFilter(ImageMap imageMap) : base("curves", imageMap) /// public CurvesFilter Preset(CurvesPreset preset) => this.SetOption("preset", preset); - - /// /// Set the master key points. These points will define a second pass mapping. It is sometimes called a "luminance" or "value" mapping. It can be used with r, g, b or all since it acts like a post-processing LUT.

/// To avoid some filtergraph syntax conflicts, each key points list need to be defined using the following syntax: x0/y0 x1/y1 x2/y2 .... @@ -30,8 +25,6 @@ public CurvesFilter Preset(CurvesPreset preset) /// public CurvesFilter Master(string master) => this.SetOption("m", master); - - /// /// Set the key points for the red component.

/// To avoid some filtergraph syntax conflicts, each key points list need to be defined using the following syntax: x0/y0 x1/y1 x2/y2 .... @@ -40,8 +33,6 @@ public CurvesFilter Master(string master) /// public CurvesFilter Red(string r) => this.SetOption("r", r); - - /// /// Set the key points for the green component.

/// To avoid some filtergraph syntax conflicts, each key points list need to be defined using the following syntax: x0/y0 x1/y1 x2/y2 .... @@ -50,7 +41,6 @@ public CurvesFilter Red(string r) /// public CurvesFilter Green(string g) => this.SetOption("g", g); - /// /// Set the key points for the blue component.

/// To avoid some filtergraph syntax conflicts, each key points list need to be defined using the following syntax: x0/y0 x1/y1 x2/y2 .... @@ -59,7 +49,6 @@ public CurvesFilter Green(string g) /// public CurvesFilter Blue(string b) => this.SetOption("b", b); - /// /// Set the key points for all components (not including master). Can be used in addition to the other key points component options. In this case, the unset component(s) will fallback on this all setting.

/// To avoid some filtergraph syntax conflicts, each key points list need to be defined using the following syntax: x0/y0 x1/y1 x2/y2 .... @@ -68,7 +57,6 @@ public CurvesFilter Blue(string b) /// public CurvesFilter All(string all) => this.SetOption("all", all); - /// /// Specify a Photoshop curves file (.acv) to import the settings from. /// @@ -76,7 +64,6 @@ public CurvesFilter All(string all) /// public CurvesFilter PsFile(string psfile) => this.SetOption("psfile", psfile); - /// /// Save Gnuplot script of the curves in specified file. /// @@ -85,7 +72,6 @@ public CurvesFilter PsFile(string psfile) public CurvesFilter Plot(string file) => this.SetOption("plot", file); } - public static class CurvesFilterExtensions { /// @@ -97,7 +83,6 @@ public static class CurvesFilterExtensions public static CurvesFilter CurvesFilter(this ImageMap imageMap) => new CurvesFilter(imageMap); } - public enum CurvesPreset { none, diff --git a/FFmpegArgs.Filters/VideoFilters/DatascopeFilter.cs b/FFmpegArgs.Filters/VideoFilters/DatascopeFilter.cs index b6a80039..262f51e9 100644 --- a/FFmpegArgs.Filters/VideoFilters/DatascopeFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DatascopeFilter.cs @@ -15,9 +15,6 @@ hex 0 ..FV.....T. dec 1 ..FV.....T. components ..FV.....T. set components to display (from 1 to 15) (default 15) */ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -30,59 +27,48 @@ internal DatascopeFilter(ImageMap imageMap) : base("datascope", imageMap) { AddMapOut(); } - - /// /// Set output video size. /// /// /// public DatascopeFilter Mode(Size size) => this.SetOption("s", $"{size.Width}x{size.Height}"); - - /// /// Set x offset from where to pick pixels.(from 0 to INT_MAX) (default 0) /// /// /// public DatascopeFilter X(int x) => this.SetOptionRange("x", x, 0, INT_MAX); - /// /// Set y offset from where to pick pixels.(from 0 to INT_MAX) (default 0) /// /// /// public DatascopeFilter Y(int y) => this.SetOptionRange("y", y, 0, INT_MAX); - /// /// Set scope mode /// /// /// public DatascopeFilter Mode(DatascopeMode mode) => this.SetOption("mode", mode); - - /// /// Draw rows and columns numbers on left and top of video. /// /// /// public DatascopeFilter Axis(bool axis) => this.SetOption("axis", axis.ToFFmpegFlag()); - /// /// Set background opacity. /// /// /// public DatascopeFilter Opacity(float opacity) => this.SetOptionRange("opacity", opacity, 0, 1); - /// /// Set display number format. Can be hex, or dec. Default is hex. /// /// /// public DatascopeFilter Format(DatascopeFormat format) => this.SetOption("format", format); - /// /// Set pixel components to display. By default all pixel components are displayed.
///
set components to display (from 1 to 15) (default 15) @@ -91,7 +77,6 @@ internal DatascopeFilter(ImageMap imageMap) : base("datascope", imageMap) /// public DatascopeFilter Components(int components) => this.SetOptionRange("components", components, 1, 15); } - public static class DatascopeFilterExtensions { /// @@ -101,7 +86,6 @@ public static class DatascopeFilterExtensions /// public static DatascopeFilter DatascopeFilter(this ImageMap imageMap) => new DatascopeFilter(imageMap); } - public enum DatascopeMode { /// @@ -117,7 +101,6 @@ public enum DatascopeMode /// color2 } - public enum DatascopeFormat { hex, diff --git a/FFmpegArgs.Filters/VideoFilters/DblurFilter.cs b/FFmpegArgs.Filters/VideoFilters/DblurFilter.cs index 9222ce67..67a94e7e 100644 --- a/FFmpegArgs.Filters/VideoFilters/DblurFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DblurFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.C dblur V->V Apply Directional Blur filter.

@@ -12,7 +10,6 @@ internal DblurFilter(ImageMap imageMap) : base("dblur", imageMap) { AddMapOut(); } - /// /// Set angle of directional blur (from 0 to 360) (default 45) /// @@ -20,7 +17,6 @@ internal DblurFilter(ImageMap imageMap) : base("dblur", imageMap) /// public DblurFilter Angle(float angle) => this.SetOptionRange("angle", angle, 0, 360); - /// /// Set radius of directional blur (from 1 to 8192) (default 5) /// @@ -28,7 +24,6 @@ public DblurFilter Angle(float angle) /// public DblurFilter Radius(float radius) => this.SetOptionRange("radius", radius, 1, 8192); - /// /// Set which planes to filter. By default all planes are filtered. (from 0 to 15) (default 15) /// @@ -36,9 +31,7 @@ public DblurFilter Radius(float radius) /// public DblurFilter Planes(int planes) => this.SetOptionRange("planes", planes, 0, 15); - } - public static class DblurFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/DctdnoizFilter.cs b/FFmpegArgs.Filters/VideoFilters/DctdnoizFilter.cs index a344f38a..5bbdae39 100644 --- a/FFmpegArgs.Filters/VideoFilters/DctdnoizFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DctdnoizFilter.cs @@ -1,8 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TS. dctdnoiz V->V Denoise frames using 2D DCT.

@@ -15,7 +11,6 @@ internal DctdnoizFilter(ImageMap imageMap) : base("dctdnoiz", imageMap) { AddMapOut(); } - /// /// Set the noise sigma constant.
///
This sigma defines a hard threshold of 3 * sigma; every DCT coefficient(absolute value) below this threshold with be dropped.
@@ -26,7 +21,6 @@ internal DctdnoizFilter(ImageMap imageMap) : base("dctdnoiz", imageMap) /// public DctdnoizFilter Sigma(float s) => this.SetOptionRange("s", s, 0, 999); - /// /// Set number overlapping pixels for each block. Since the filter can be slow, you may want to reduce this value, at the cost of a less effective filter and the risk of various artefacts.
///
If the overlapping value doesn’t permit processing the whole input width or height, a warning will be displayed and according borders won’t be denoised.
@@ -36,8 +30,6 @@ public DctdnoizFilter Sigma(float s) /// public DctdnoizFilter Overlap(int overlap) => this.SetOptionRange("overlap", overlap, -1, 15); - - /// /// Set the coefficient factor expression.
///
For each coefficient of a DCT block, this expression will be evaluated as a multiplier value for the coefficient.
@@ -48,7 +40,6 @@ public DctdnoizFilter Overlap(int overlap) /// public DctdnoizFilter Expr(string e) => Expr(e.Expression()); - /// /// Set the coefficient factor expression.
///
For each coefficient of a DCT block, this expression will be evaluated as a multiplier value for the coefficient.
@@ -59,7 +50,6 @@ public DctdnoizFilter Expr(string e) /// public DctdnoizFilter Expr(Action e) => this.SetOption("e", e.Run(expression)); - /// /// Set the blocksize using the number of bits. 1<<n defines the blocksize, which is the width and height of the processed blocks.
///
The default value is 3 (8x8) and can be raised to 4 for a blocksize of 16x16.Note that changing this setting has huge consequences on the speed processing. Also, a larger block size does not necessarily means a better de-noising.
@@ -69,9 +59,7 @@ public DctdnoizFilter Expr(Action e) /// public DctdnoizFilter Blocksize(int n) => this.SetOptionRange("n", n, 3, 4); - } - public static class DctdnoizFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/DebandFilter.cs b/FFmpegArgs.Filters/VideoFilters/DebandFilter.cs index c6aaa230..dbbd8366 100644 --- a/FFmpegArgs.Filters/VideoFilters/DebandFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DebandFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC deband V->V Debands video.

@@ -14,7 +11,6 @@ internal DebandFilter(ImageMap imageMap) : base("deband", imageMap) { AddMapOut(); } - /// /// Set banding detection threshold for each plane. Default is 0.02. Valid range is 0.00003 to 0.5. If difference between current pixel and reference pixel is less than threshold, it will be considered as banded. /// @@ -23,7 +19,6 @@ internal DebandFilter(ImageMap imageMap) : base("deband", imageMap) /// public DebandFilter BandingDetectionThreshold(DebandPlane plane, float val) => this.SetOptionRange(plane.ToString().Substring(1), val, 0.00003, 0.5); - /// /// Banding detection range in pixels. Default is 16. If positive, random number in range 0 to set value will be used. If negative, exact absolute value will be used. The range defines square of four pixels around current pixel. /// @@ -31,7 +26,6 @@ public DebandFilter BandingDetectionThreshold(DebandPlane plane, float val) /// public DebandFilter Range(int range) => this.SetOptionRange("range", range, int.MinValue, int.MaxValue); - /// /// Set direction in radians from which four pixel will be compared. If positive, random direction from 0 to set direction will be picked. If negative, exact of absolute value will be picked. For example direction 0, -PI or -2*PI radians will pick only pixels on same row and -PI/2 will pick only pixels on same column. /// @@ -39,14 +33,12 @@ public DebandFilter Range(int range) /// public DebandFilter Direction(float d) => this.SetOptionRange("d", d, -6.28319, 6.28319); - /// /// If enabled, current pixel is compared with average value of all four surrounding pixels. The default is enabled. If disabled current pixel is compared with all four surrounding pixels. The pixel is considered banded if only all four differences with surrounding pixels are less than threshold. /// /// public DebandFilter Blur(bool flag) => this.SetOption("b", flag.ToFFmpegFlag()); - /// /// If enabled, current pixel is changed if and only if all pixel components are banded, e.g. banding detection threshold is triggered for all color components. The default is disabled. /// @@ -54,9 +46,7 @@ public DebandFilter Blur(bool flag) /// public DebandFilter Coupling(bool flag) => this.SetOption("c", flag.ToFFmpegFlag()); - } - public static class DebandFilterExtensions { /// @@ -65,7 +55,6 @@ public static class DebandFilterExtensions public static DebandFilter DebandFilter(this ImageMap imageMap) => new DebandFilter(imageMap); } - public enum DebandPlane { _1thr, diff --git a/FFmpegArgs.Filters/VideoFilters/DeblockFilter.cs b/FFmpegArgs.Filters/VideoFilters/DeblockFilter.cs index 1fc03ba2..f1791822 100644 --- a/FFmpegArgs.Filters/VideoFilters/DeblockFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DeblockFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.C deblock V->V Deblock video

@@ -12,7 +10,6 @@ internal DeblockFilter(ImageMap imageMap) : base("deblock", imageMap) { AddMapOut(); } - /// /// Set filter type, can be weak or strong. Default is strong. This controls what kind of deblocking is applied. /// @@ -20,7 +17,6 @@ internal DeblockFilter(ImageMap imageMap) : base("deblock", imageMap) /// public DeblockFilter Filter(DeblockFilterType type) => this.SetOption("filter", type); - /// /// Set size of block, allowed range is from 4 to 512. Default is 8. /// @@ -28,7 +24,6 @@ public DeblockFilter Filter(DeblockFilterType type) /// public DeblockFilter Block(int block) => this.SetOptionRange("block", block, 4, 512); - /// /// Set blocking detection thresholds. Allowed range is 0 to 1. Defaults are: 0.098 for alpha and 0.05 for the rest. Using higher threshold gives more deblocking strength. Setting alpha controls threshold detection at exact edge of block. Remaining options controls threshold detection near the edge. Each one for below/above or left/right. Setting any of those to 0 disables deblocking. /// @@ -37,7 +32,6 @@ public DeblockFilter Block(int block) /// public DeblockFilter BlockingDetectionThresholds(DeblockName name, float val) => this.SetOptionRange(name.ToString(), val, 0, 1); - /// /// Set planes to filter. Default is to filter all available planes. (from 0 to 15) (default 15) /// @@ -46,7 +40,6 @@ public DeblockFilter BlockingDetectionThresholds(DeblockName name, float val) public DeblockFilter Planes(int planes) => this.SetOptionRange("planes", planes, 0, 15); } - public static class DeblockFilterExtensions { /// @@ -55,13 +48,11 @@ public static class DeblockFilterExtensions public static DeblockFilter DeblockFilter(this ImageMap imageMap) => new DeblockFilter(imageMap); } - public enum DeblockFilterType { weak, strong } - public enum DeblockName { alpha, diff --git a/FFmpegArgs.Filters/VideoFilters/DecimateFilter.cs b/FFmpegArgs.Filters/VideoFilters/DecimateFilter.cs index 6d514e1a..0cf361ff 100644 --- a/FFmpegArgs.Filters/VideoFilters/DecimateFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DecimateFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... decimate N->V Decimate frames (post field matching filter).

@@ -12,7 +10,6 @@ internal DecimateFilter(ImageMap imageMap) : base("decimate", imageMap) { AddMapOut(); } - /// /// Set the number of frames from which one will be dropped. Setting this to N means one frame in every batch of N frames will be dropped. (from 2 to 25) (default 5) /// @@ -20,7 +17,6 @@ internal DecimateFilter(ImageMap imageMap) : base("decimate", imageMap) /// public DecimateFilter Cycle(int cycle) => this.SetOptionRange("cycle", cycle, 2, 25); - /// /// Set the threshold for duplicate detection. If the difference metric for a frame is less than or equal to this value, then it is declared as duplicate. (from 0 to 100) (default 1.1) /// @@ -28,7 +24,6 @@ public DecimateFilter Cycle(int cycle) /// public DecimateFilter Dupthresh(double dupthresh) => this.SetOptionRange("dupthresh", dupthresh, 0, 100); - /// /// Set scene change threshold. (from 0 to 100) (default 1.1) /// @@ -36,7 +31,6 @@ public DecimateFilter Dupthresh(double dupthresh) /// public DecimateFilter Scthresh(double scthresh) => this.SetOptionRange("scthresh", scthresh, 0, 100); - /// /// Set the size of the x and y-axis blocks used during metric calculations. Larger blocks give better noise suppression, but also give worse detection of small movements. Must be a power of two. Default is 32. /// @@ -44,7 +38,6 @@ public DecimateFilter Scthresh(double scthresh) /// public DecimateFilter Blockx(int blockx) => this.SetOptionRange("blockx", blockx.EnsureEven(), 0, int.MaxValue); - /// /// Set the size of the x and y-axis blocks used during metric calculations. Larger blocks give better noise suppression, but also give worse detection of small movements. Must be a power of two. Default is 32. /// @@ -52,7 +45,6 @@ public DecimateFilter Blockx(int blockx) /// public DecimateFilter Blocky(int blocky) => this.SetOptionRange("blocky", blocky.EnsureEven(), 0, int.MaxValue); - /// /// Mark main input as a pre-processed input and activate clean source input stream. This allows the input to be pre-processed with various filters to help the metrics calculation while keeping the frame selection lossless. When set to 1, the first stream is for the pre-processed input, and the second stream is the clean source from where the kept frames are chosen. Default is 0. /// @@ -60,7 +52,6 @@ public DecimateFilter Blocky(int blocky) /// public DecimateFilter Ppsrc(bool ppsrc) => this.SetOption("ppsrc", ppsrc.ToFFmpegFlag()); - /// /// Set whether or not chroma is considered in the metric calculations. Default is 1. /// @@ -69,7 +60,6 @@ public DecimateFilter Ppsrc(bool ppsrc) public DecimateFilter Chroma(bool chroma) => this.SetOption("chroma", chroma.ToFFmpegFlag()); } - public static class DecimateFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/DeconvolveFilter.cs b/FFmpegArgs.Filters/VideoFilters/DeconvolveFilter.cs index 5cd51348..36b324d6 100644 --- a/FFmpegArgs.Filters/VideoFilters/DeconvolveFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DeconvolveFilter.cs @@ -6,9 +6,6 @@ all 1 ..FV....... process all impulses noise ..FV....... set noise (from 0 to 1) (default 1e-07) */ - -using FFmpegArgs.Cores.Maps; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -21,22 +18,18 @@ internal DeconvolveFilter(ImageMap imageMap) : base("deconvolve", imageMap) { AddMapOut(); } - /// /// Set planes to deconvolve (from 0 to 15) (default 7) /// /// /// - public DeconvolveFilter Planes(int planes) => this.SetOptionRange("planes", planes,0,15); - - + public DeconvolveFilter Planes(int planes) => this.SetOptionRange("planes", planes, 0, 15); /// /// Set which impulse video frames will be processed, can be first or all. Default is all. /// /// /// public DeconvolveFilter Impulse(DeconvolveImpulse impulse) => this.SetOption("impulse", impulse); - /// /// Set noise when doing divisions.
///
Default is 0.0000001. Useful when width and height are not same and not power of 2 or if stream prior to convolving had noise.
@@ -46,9 +39,7 @@ internal DeconvolveFilter(ImageMap imageMap) : base("deconvolve", imageMap) /// public DeconvolveFilter Noise(float noise) => this.SetOptionRange("noise", noise, 0, 1); - } - public static class DeconvolveFilterExtensions { /// @@ -56,7 +47,6 @@ public static class DeconvolveFilterExtensions /// public static DeconvolveFilter DeconvolveFilter(this ImageMap imageMap) => new DeconvolveFilter(imageMap); } - public enum DeconvolveImpulse { first, diff --git a/FFmpegArgs.Filters/VideoFilters/DedotFilter.cs b/FFmpegArgs.Filters/VideoFilters/DedotFilter.cs index 84af63f3..2e262d20 100644 --- a/FFmpegArgs.Filters/VideoFilters/DedotFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DedotFilter.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TS. dedot V->V Reduce cross-luminance and cross-color.

@@ -12,7 +10,6 @@ internal DedotFilter(ImageMap imageMap) : base("dedot", imageMap) { AddMapOut(); } - /// /// Set mode of operation. Can be combination of dotcrawl for cross-luminance reduction and/or rainbows for cross-color reduction. /// @@ -20,7 +17,6 @@ internal DedotFilter(ImageMap imageMap) : base("dedot", imageMap) /// public DedotFilter M(DedotFilteringMode mode) => this.SetOption("m", mode); - /// /// Set spatial luma threshold. Lower values increases reduction of cross-luminance. (from 0 to 1) (default 0.079) /// @@ -28,7 +24,6 @@ public DedotFilter M(DedotFilteringMode mode) /// public DedotFilter Lt(float val) => this.SetOptionRange("lt", val, 0, 1); - /// /// Set tolerance for temporal luma.Higher values increases reduction of cross-luminance. (from 0 to 1) (default 0.079) /// @@ -36,7 +31,6 @@ public DedotFilter Lt(float val) /// public DedotFilter Tl(float val) => this.SetOptionRange("tl", val, 0, 1); - /// /// Set tolerance for chroma temporal variation. Higher values increases reduction of cross-color. (from 0 to 1) (default 0.058) /// @@ -44,7 +38,6 @@ public DedotFilter Tl(float val) /// public DedotFilter Tc(float val) => this.SetOptionRange("tc", val, 0, 1); - /// /// Set temporal chroma threshold. Lower values increases reduction of cross-color. (from 0 to 1) (default 0.019) /// @@ -52,9 +45,7 @@ public DedotFilter Tc(float val) /// public DedotFilter Ct(float val) => this.SetOptionRange("ct", val, 0, 1); - } - public static class DedotFilterExtensions { /// @@ -63,7 +54,6 @@ public static class DedotFilterExtensions public static DedotFilter DedotFilter(this ImageMap imageMap) => new DedotFilter(imageMap); } - public enum DedotFilteringMode { dotcrawl, diff --git a/FFmpegArgs.Filters/VideoFilters/DrawBoxFilter.cs b/FFmpegArgs.Filters/VideoFilters/DrawBoxFilter.cs index 3000dbab..5f1f9dc9 100644 --- a/FFmpegArgs.Filters/VideoFilters/DrawBoxFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DrawBoxFilter.cs @@ -1,10 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.C drawbox V->V Draw a colored box on the input video.

@@ -23,13 +17,11 @@ public class DrawBoxFilter : ImageToImageFilter, ITimelineSupport, ICommandSuppo "w", "h", "t" }; - readonly FFmpegExpression expression = new FFmpegExpression(_variables); internal DrawBoxFilter(ImageMap imageMap) : base("drawbox", imageMap) { AddMapOut(); } - /// /// The expressions which specify the top left corner coordinates of the box. It defaults to 0. /// @@ -70,7 +62,6 @@ public DrawBoxFilter H(string h) ///
public DrawBoxFilter H(Action h) => this.SetOption("h", h.Run(expression)); - /// /// Specify the color of the box to write. If the special value invert is used, the box edge color is the same as the video with inverted luma. /// @@ -78,32 +69,27 @@ public DrawBoxFilter H(Action h) /// public DrawBoxFilter Color(Color color) => this.SetOption("c", color.ToHexStringRGBA()); - /// /// The expression which sets the thickness of the box edge. A value of fill will create a filled box. Default value is 3. /// public DrawBoxFilter ThicknessFill() => this.SetOption("t", "fill"); - /// /// The expression which sets the thickness of the box edge. A value of fill will create a filled box. Default value is 3. /// public DrawBoxFilter Thickness(Action t) => this.SetOption("t", t.Run(expression)); - /// /// The expression which sets the thickness of the box edge. A value of fill will create a filled box. Default value is 3. /// public DrawBoxFilter Thickness(string t) => Thickness(_t => _t.Check(t)); - /// /// Applicable if the input has alpha. With value 1, the pixels of the painted box will overwrite the video’s color and alpha pixels. Default is 0, which composites the box onto the input, leaving the video’s alpha intact. /// public DrawBoxFilter Replace(bool replace) => this.SetOption("replace", replace.ToFFmpegFlag()); } - public static class DrawBoxFilterExtension { /// diff --git a/FFmpegArgs.Filters/VideoFilters/DrawTextFilter.cs b/FFmpegArgs.Filters/VideoFilters/DrawTextFilter.cs index 4b77446d..594824f0 100644 --- a/FFmpegArgs.Filters/VideoFilters/DrawTextFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/DrawTextFilter.cs @@ -1,10 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// T.C drawtext V->V Draw text on top of video frames using libfreetype library.

@@ -31,13 +25,11 @@ public class DrawTextFilter : ImageToImageFilter, ITimelineSupport, ICommandSupp "pkt_duration", "pkt_size" }; - readonly FFmpegExpression expression = new FFmpegExpression(_variables); internal DrawTextFilter(ImageMap imageMap) : base("drawtext", imageMap) { AddMapOut(); } - /// /// The text string to be drawn. The text must be a sequence of UTF-8 encoded characters. This parameter is mandatory if no file is specified with the parameter textfile. /// @@ -45,8 +37,6 @@ internal DrawTextFilter(ImageMap imageMap) : base("drawtext", imageMap) /// public DrawTextFilter Text(string text) => this.SetOption("text", text); - - /// /// A text file containing text to be drawn. The text must be a sequence of UTF-8 encoded characters.
///
This parameter is mandatory if no text string is specified with the parameter text.
@@ -56,8 +46,6 @@ public DrawTextFilter Text(string text) /// public DrawTextFilter TextFile(string textFile) => this.SetOption("textfile", textFile); - - /// /// Used to draw a box around text using the background color. The value must be either 1 (enable) or 0 (disable). The default value of box is 0. /// @@ -65,7 +53,6 @@ public DrawTextFilter TextFile(string textFile) /// public DrawTextFilter Box(bool flag) => this.SetOption("box", flag.ToFFmpegFlag()); - /// /// Set the width of the border to be drawn around the box using boxcolor. (from INT_MIN to INT_MAX) (default 0) /// @@ -73,7 +60,6 @@ public DrawTextFilter Box(bool flag) /// public DrawTextFilter Boxborderw(int boxborderw) => this.SetOption("boxborderw", boxborderw); - /// /// /he color to be used for drawing box around text /// @@ -81,7 +67,6 @@ public DrawTextFilter Boxborderw(int boxborderw) /// public DrawTextFilter Boxcolor(Color boxcolor) => this.SetOption("boxcolor", boxcolor.ToHexStringRGBA()); - /// /// Set the line spacing in pixels of the border to be drawn around the box using box. (from INT_MIN to INT_MAX) (default 0) /// @@ -89,7 +74,6 @@ public DrawTextFilter Boxcolor(Color boxcolor) /// public DrawTextFilter LineSpacing(int line_spacing) => this.SetOption("line_spacing", line_spacing); - /// /// Set the width of the border to be drawn around the text using bordercolor. (from INT_MIN to INT_MAX) (default 0) /// @@ -97,7 +81,6 @@ public DrawTextFilter LineSpacing(int line_spacing) /// public DrawTextFilter Borderw(int borderw) => this.SetOption("borderw", borderw); - /// /// Set the color to be used for drawing border around text. /// @@ -105,7 +88,6 @@ public DrawTextFilter Borderw(int borderw) /// public DrawTextFilter Bordercolor(Color bordercolor) => this.SetOption("bordercolor", bordercolor.ToHexStringRGBA()); - /// /// Select how the text is expanded. Can be either none, strftime (deprecated) or normal (default). See the Text expansion section below for details. /// @@ -113,7 +95,6 @@ public DrawTextFilter Bordercolor(Color bordercolor) /// public DrawTextFilter Expansion(DrawTextExpansion expansion) => this.SetOption("expansion", expansion); - /// /// Set a start time for the count. Value is in microseconds. Only applied in the deprecated strftime expansion mode. To emulate in normal expansion mode use the pts function, supplying the start time (in seconds) as the second argument.
///
(from I64_MIN to I64_MAX) (default I64_MIN) @@ -122,7 +103,6 @@ public DrawTextFilter Expansion(DrawTextExpansion expansion) /// public DrawTextFilter Basetime(long basetime) => this.SetOptionRange("basetime", basetime, long.MinValue, long.MaxValue); - /// /// If true, check and fix text coords to avoid clipping. /// @@ -130,7 +110,6 @@ public DrawTextFilter Basetime(long basetime) /// public DrawTextFilter FixBounds(bool flag) => this.SetOption("fix_bounds", flag.ToFFmpegFlag()); - /// /// The color to be used for drawing fonts /// @@ -138,7 +117,6 @@ public DrawTextFilter FixBounds(bool flag) /// public DrawTextFilter FontColor(Color color) => this.SetOption("fontcolor", color.ToHexStringRGB()); - /// /// String which is expanded the same way as text to obtain dynamic fontcolor value. By default this option has empty value and is not processed. When this option is set, it overrides fontcolor option. /// @@ -146,7 +124,6 @@ public DrawTextFilter FontColor(Color color) /// public DrawTextFilter FontColorExpr(string color) => FontColorExpr(color.Expression()); - /// /// String which is expanded the same way as text to obtain dynamic fontcolor value. By default this option has empty value and is not processed. When this option is set, it overrides fontcolor option. /// @@ -154,7 +131,6 @@ public DrawTextFilter FontColorExpr(string color) /// public DrawTextFilter FontColorExpr(Action color) => this.SetOption("fontcolor_expr", color.Run(expression)); - /// /// The font family to be used for drawing text. By default Sans. /// @@ -162,7 +138,6 @@ public DrawTextFilter FontColorExpr(Action color) /// public DrawTextFilter Font(string name) => this.SetOption("font", name); - /// /// The font file to be used for drawing text. The path must be included. This parameter is mandatory if the fontconfig support is disabled. /// @@ -170,7 +145,6 @@ public DrawTextFilter Font(string name) /// public DrawTextFilter FontFile(string path) => this.SetOption("fontfile", path); - /// /// Draw the text applying alpha blending. The value can be a number between 0.0 and 1.0. The expression accepts the same variables x, y as well. The default value is 1. Please see fontcolor_expr. /// @@ -178,7 +152,6 @@ public DrawTextFilter FontFile(string path) /// public DrawTextFilter Alpha(string alpha) => this.SetOption("alpha", alpha); - /// /// The font size to be used for drawing text. The default value of fontsize is 16. /// @@ -186,7 +159,6 @@ public DrawTextFilter Alpha(string alpha) /// public DrawTextFilter FontSize(string size) => this.SetOption("fontsize", size); - /// /// If set to 1, attempt to shape the text (for example, reverse the order of right-to-left text and join Arabic characters) before drawing it. Otherwise, just draw the text exactly as given. By default 1 (if supported). /// @@ -194,7 +166,6 @@ public DrawTextFilter FontSize(string size) /// public DrawTextFilter TextShaping(bool flag) => this.SetOption("text_shaping", flag.ToFFmpegFlag()); - /// /// The flags to be used for loading the fonts.
///
The flags map the corresponding flags supported by libfreetype @@ -202,8 +173,7 @@ public DrawTextFilter TextShaping(bool flag) /// /// public DrawTextFilter FtLoadFlags(DrawTextFtLoadFlags flag) - => this.SetOption("ft_load_flags", flag.GetAttribute().Name); - + => this.SetOption("ft_load_flags", flag.GetEnumAttribute().Name); /// /// The color to be used for drawing a shadow behind the drawn text. /// @@ -211,19 +181,16 @@ public DrawTextFilter FtLoadFlags(DrawTextFtLoadFlags flag) /// public DrawTextFilter Shadowcolor(Color color) => this.SetOption("shadowcolor", color.ToHexStringRGB()); - /// /// The x and y offsets for the text shadow position with respect to the position of the text. They can be either positive or negative values. The default value for both is "0". (from INT_MIN to INT_MAX) (default 0) /// public DrawTextFilter ShadowX(int x) => this.SetOptionRange("x", x, INT_MIN, INT_MAX); - /// /// The x and y offsets for the text shadow position with respect to the position of the text. They can be either positive or negative values. The default value for both is "0". (from INT_MIN to INT_MAX) (default 0) /// public DrawTextFilter ShadowY(int y) => this.SetOptionRange("y", y, INT_MIN, INT_MAX); - /// /// The starting frame number for the n/frame_num variable. (from 0 to INT_MAX) (default 0) /// @@ -231,22 +198,19 @@ public DrawTextFilter ShadowY(int y) /// public DrawTextFilter StartNumber(int start_number) => this.SetOptionRange("start_number", start_number, 0, INT_MAX); - /// /// The size in number of spaces to use for rendering the tab. (from 0 to INT_MAX) (default 4) /// /// public DrawTextFilter TabSize(int tabsize) => this.SetOptionRange("tabsize", tabsize, 0, INT_MAX); - /// /// Set the initial timecode representation in "hh:mm:ss[:;.]ff" format. It can be used with or without text parameter. timecode_rate option must be specified. /// - /// + /// /// public DrawTextFilter TimeCode(string timeCode) => this.SetOption("timecode", timeCode); - /// /// Set the timecode frame rate (timecode only). Value will be rounded to nearest integer. Minimum value is "1". Drop-frame timecode is supported for frame rates 30 & 60. /// @@ -254,7 +218,6 @@ public DrawTextFilter TimeCode(string timeCode) /// public DrawTextFilter TimeCodeRate(Rational rational) => this.SetOption("timecode_rate", rational.Check(0, INT_MAX)); - /// /// If set to 1, the output of the timecode option will wrap around at 24 hours. Default is 0 (disabled). /// @@ -262,35 +225,30 @@ public DrawTextFilter TimeCodeRate(Rational rational) /// public DrawTextFilter Tc24hMax(bool flag) => this.SetOption("tc24hmax", flag.ToFFmpegFlag()); - /// /// The expressions which specify the offsets where text will be drawn within the video frame. They are relative to the top/left border of the output image.
///
The default value of x and y is "0". ///
public DrawTextFilter X(string x) => this.X(x.Expression()); - /// /// The expressions which specify the offsets where text will be drawn within the video frame. They are relative to the top/left border of the output image.
///
The default value of x and y is "0". ///
public DrawTextFilter X(Action x) => this.SetOption("x", x.Run(expression)); - /// /// The expressions which specify the offsets where text will be drawn within the video frame. They are relative to the top/left border of the output image.
///
The default value of x and y is "0". ///
public DrawTextFilter Y(string y) => this.Y(y.Expression()); - /// /// The expressions which specify the offsets where text will be drawn within the video frame. They are relative to the top/left border of the output image.
///
The default value of x and y is "0". ///
public DrawTextFilter Y(Action y) => this.SetOption("y", y.Run(expression)); - /// /// If set to 1, the textfile will be reloaded before each frame. Be sure to update it atomically, or it may be read partially, or even fail. /// @@ -299,7 +257,6 @@ public DrawTextFilter Y(Action y) public DrawTextFilter Reload(bool reload) => this.SetOption("reload", reload.ToFFmpegFlag()); } - public static class DrawTextFilterExtension { /// @@ -318,7 +275,6 @@ public enum DrawTextExpansion strftime, normal } - public enum DrawTextFtLoadFlags { [Name("default")] _default, diff --git a/FFmpegArgs.Filters/VideoFilters/FadeFilter.cs b/FFmpegArgs.Filters/VideoFilters/FadeFilter.cs index 677df36d..8ae9d3ad 100644 --- a/FFmpegArgs.Filters/VideoFilters/FadeFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/FadeFilter.cs @@ -18,10 +18,6 @@ out 1 ..FV....... fade-out color ..FV....... set color (default "black") c ..FV....... set color (default "black") */ -using FFmpegArgs.Cores.Maps; -using System; -using System.Drawing; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -34,7 +30,6 @@ internal FadeFilter(ImageMap imageMap) : base("fade", imageMap) { AddMapOut(); } - /// /// The effect type can be either "in" for a fade-in, or "out" for a fade-out effect. Default is in. /// @@ -42,7 +37,6 @@ internal FadeFilter(ImageMap imageMap) : base("fade", imageMap) /// public FadeFilter Type(FadeType t) => this.SetOption("t", t.ToString().ToLower()); - /// /// Specify the number of the frame to start applying the fade effect at. (from 0 to INT_MAX) (default 0) /// @@ -50,7 +44,6 @@ public FadeFilter Type(FadeType t) /// public FadeFilter StartFrame(int s) => this.SetOptionRange("s", s, 0, int.MaxValue); - /// /// The number of frames that the fade effect lasts. At the end of the fade-in effect, the output video will have the same intensity as the input video.
///
At the end of the fade-out transition, the output video will be filled with the selected color.
@@ -60,7 +53,6 @@ public FadeFilter StartFrame(int s) /// public FadeFilter NbFrames(int n) => this.SetOptionRange("n", n, 1, int.MaxValue); - /// /// If set to 1, fade only alpha channel, if one exists on the input. Default value is 0. /// @@ -68,7 +60,6 @@ public FadeFilter NbFrames(int n) /// public FadeFilter Alpha(bool alpha) => this.SetOption("alpha", alpha.ToFFmpegFlag()); - /// /// Specify the timestamp (in seconds) of the frame to start to apply the fade effect.
///
If both start_frame and start_time are specified, the fade will start at whichever comes last. Default is 0. @@ -77,7 +68,6 @@ public FadeFilter Alpha(bool alpha) /// public FadeFilter StartTime(TimeSpan st) => this.SetOptionRange("st", st, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// The number of seconds for which the fade effect has to last.
///
At the end of the fade-in effect the output video will have the same intensity as the input video, at the end of the fade-out transition the output video will be filled with the selected color.
@@ -87,7 +77,6 @@ public FadeFilter StartTime(TimeSpan st) /// public FadeFilter Duration(TimeSpan duration) => this.SetOptionRange("d", duration, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Specify the color of the fade. Default is "black". /// @@ -96,7 +85,6 @@ public FadeFilter Duration(TimeSpan duration) public FadeFilter Color(Color c) => this.SetOption("c", c.ToHexStringRGBA()); } - public static class FadeFilterExtensions { /// @@ -106,8 +94,6 @@ public static class FadeFilterExtensions /// public static FadeFilter FadeFilter(this ImageMap imageMap) => new FadeFilter(imageMap); } - - public enum FadeType { In, diff --git a/FFmpegArgs.Filters/VideoFilters/FormatFilter.cs b/FFmpegArgs.Filters/VideoFilters/FormatFilter.cs index 52bb7bc9..f30dad9c 100644 --- a/FFmpegArgs.Filters/VideoFilters/FormatFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/FormatFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Exceptions; -using FFmpegArgs.Filters.Enums; -using System.Collections.Generic; -using System.Linq; - + namespace FFmpegArgs.Filters.VideoFilters { /// @@ -19,7 +14,9 @@ internal FormatFilter(IEnumerable pixFmts, ImageMap imageMap) : base("fo this.SetOption("pix_fmts", string.Join("|", pixFmts)); } } - + /// + /// + /// public static class FormatFilterExtension { /// @@ -32,7 +29,6 @@ public static FormatFilter FormatFilter(this ImageMap imageMap, params PixFmt[] { return new FormatFilter(pixFmts.Select(x => x.ToString()), imageMap); } - /// /// Convert the input video to one of the specified pixel formats. Libavfilter will try to pick one that is suitable as input to the next filter. /// diff --git a/FFmpegArgs.Filters/VideoFilters/FpsFilter.cs b/FFmpegArgs.Filters/VideoFilters/FpsFilter.cs index 758bbbc9..a91276f4 100644 --- a/FFmpegArgs.Filters/VideoFilters/FpsFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/FpsFilter.cs @@ -12,7 +12,6 @@ near 5 ..FV....... round to nearest round 0 ..FV....... round similar to other frames pass 1 ..FV....... pass through last frame */ -using FFmpegArgs.Cores.Maps; namespace FFmpegArgs.Filters.VideoFilters { /// @@ -25,35 +24,30 @@ internal FpsFilter(ImageMap imageMap) : base("fps", imageMap) { AddMapOut(); } - /// /// The desired output frame rate. /// /// /// - public FpsFilter Fps(Rational fps) => this.SetOption("fps", fps.Check(0,double.MaxValue)); - + public FpsFilter Fps(Rational fps) => this.SetOption("fps", fps.Check(0, double.MaxValue)); /// /// The desired output frame rate. /// /// /// public FpsFilter Fps(FpsConstants fps) => this.SetOption("fps", fps); - /// /// Assume the first PTS should be the given value, in seconds. This allows for padding/trimming at the start of stream. By default, no assumption is made about the first frame’s expected PTS, so no padding or trimming is done. For example, this could be set to 0 to pad the beginning with duplicates of the first frame if a video stream starts after the audio stream or to trim any frames with a negative PTS. /// /// /// public FpsFilter StartTime(double startTime) => this.SetOption("start_time", startTime); - /// /// Timestamp (PTS) rounding method. /// /// /// public FpsFilter Round(FpsRound fpsRound) => this.SetOption("round", fpsRound); - /// /// Action performed when reading the last frame. /// @@ -61,7 +55,6 @@ internal FpsFilter(ImageMap imageMap) : base("fps", imageMap) /// public FpsFilter EofAction(FpsEofAction fpsEofAction) => this.SetOption("round", fpsEofAction); } - public static class FpsFilterExtension { /// @@ -71,7 +64,6 @@ public static class FpsFilterExtension /// public static FpsFilter FpsFilter(this ImageMap imageMap) => new FpsFilter(imageMap); } - public enum FpsRound { /// @@ -95,7 +87,6 @@ public enum FpsRound /// near, } - public enum FpsEofAction { /// diff --git a/FFmpegArgs.Filters/VideoFilters/GeqFilter.cs b/FFmpegArgs.Filters/VideoFilters/GeqFilter.cs index 2db23b23..7a6fcf36 100644 --- a/FFmpegArgs.Filters/VideoFilters/GeqFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/GeqFilter.cs @@ -1,12 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { public class GeqFilter : ImageToImageFilter { @@ -25,7 +17,6 @@ public class GeqFilter : ImageToImageFilter new ShuntingYardFunction("g","g_2"), new ShuntingYardFunction("b","b_2"), new ShuntingYardFunction("alpha","alpha_2"), - new ShuntingYardFunction("psum","psum_2"), new ShuntingYardFunction("lumsum","lumsum_2"), new ShuntingYardFunction("cbsum","cbsum_2"), @@ -40,7 +31,6 @@ internal GeqFilter(ImageMap imageMap) : base("geq", imageMap) { AddMapOut(); } - /// /// Set the luminance expression. /// @@ -48,7 +38,6 @@ internal GeqFilter(ImageMap imageMap) : base("geq", imageMap) /// public GeqFilter Lum(string lum) => this.SetOption("lum", lum.Expression().Run(fFmpegExpression)); - /// /// Set the chrominance blue expression. /// @@ -56,7 +45,6 @@ public GeqFilter Lum(string lum) /// public GeqFilter Cb(string cb) => this.SetOption("cb", cb.Expression().Run(fFmpegExpression)); - /// /// Set the chrominance red expression. /// @@ -64,7 +52,6 @@ public GeqFilter Cb(string cb) /// public GeqFilter Cr(string cr) => this.SetOption("cr", cr.Expression().Run(fFmpegExpression)); - /// /// Set the alpha expression. /// @@ -72,7 +59,6 @@ public GeqFilter Cr(string cr) /// public GeqFilter A(string a) => this.SetOption("a", a.Expression().Run(fFmpegExpression)); - /// /// Set the red expression. /// @@ -80,7 +66,6 @@ public GeqFilter A(string a) /// public GeqFilter R(string r) => this.SetOption("r", r.Expression().Run(fFmpegExpression)); - /// /// Set the green expression. /// @@ -88,7 +73,6 @@ public GeqFilter R(string r) /// public GeqFilter G(string g) => this.SetOption("g", g.Expression().Run(fFmpegExpression)); - /// /// Set the blue expression. /// @@ -97,7 +81,6 @@ public GeqFilter G(string g) public GeqFilter B(string b) => this.SetOption("b", b.Expression().Run(fFmpegExpression)); } - public static class GeqFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/LoopFilter.cs b/FFmpegArgs.Filters/VideoFilters/LoopFilter.cs index 02cec11b..948a20de 100644 --- a/FFmpegArgs.Filters/VideoFilters/LoopFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/LoopFilter.cs @@ -4,15 +4,6 @@ size ..FV....... max number of frames to loop (from 0 to 32767) (default 0) start ..FV....... set the loop start frame (from 0 to I64_MAX) (default 0) */ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -25,30 +16,25 @@ internal LoopFilter(ImageMap imageMap) : base("loop", imageMap) { AddMapOut(); } - /// /// Set the number of loops. Setting this value to -1 will result in infinite loops. (from -1 to INT_MAX) (default 0) /// /// /// public LoopFilter Loop(int loop) => this.SetOptionRange("loop", loop, -1, INT_MAX); - /// /// Set maximal size in number of frames. (from 0 to 32767) (default 0) /// /// /// public LoopFilter Size(long size) => this.SetOptionRange("size", size, 0, 32767); - /// /// Set first frame of loop. (from 0 to I64_MAX) (default 0) /// /// /// public LoopFilter Start(long start) => this.SetOptionRange("start", start, 0, I64_MAX); - } - /// /// /// diff --git a/FFmpegArgs.Filters/VideoFilters/OverLayFilter.cs b/FFmpegArgs.Filters/VideoFilters/OverLayFilter.cs index 15bb487e..b3f3379d 100644 --- a/FFmpegArgs.Filters/VideoFilters/OverLayFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/OverLayFilter.cs @@ -1,9 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// TSC overlay VV->V Overlay a video source on top of the input.

@@ -21,9 +16,7 @@ public class OverlayFilter : ImageToImageFilter, ITimelineSupport, ISliceThreadi "hsub", "vsub", "n", "pos","t" }; - readonly FFmpegExpression expression = new FFmpegExpression(_variables); - internal OverlayFilter(ImageMap bottom, ImageMap top) : base("overlay", bottom, top) { AddMapOut(); @@ -56,7 +49,6 @@ public OverlayFilter Y(string y) /// public OverlayFilter Y(Action y) => this.SetOption("y", y.Run(expression)); - /// /// Set when the expressions for x, and y are evaluated. /// @@ -64,7 +56,6 @@ public OverlayFilter Y(Action y) /// public OverlayFilter Eval(OverlayEval eval) => this.SetOption("eval", eval.ToString().ToLower()); - /// /// Set the format for the output video. /// @@ -72,7 +63,6 @@ public OverlayFilter Eval(OverlayEval eval) /// public OverlayFilter Format(OverlayPixFmt format) => this.SetOption("format", format.ToString()); - /// /// Set format of alpha of the overlaid video, it can be straight or premultiplied. Default is straight. /// @@ -81,7 +71,6 @@ public OverlayFilter Format(OverlayPixFmt format) public OverlayFilter Alpha(OverlayAlpha alpha) => this.SetOption("alpha", alpha.ToString().ToLower()); } - public static class OverlayFilterExtension { /// @@ -93,7 +82,6 @@ public static class OverlayFilterExtension /// public static OverlayFilter OverlayFilter(this ImageMap first, ImageMap second) => new OverlayFilter(first, second); - /// /// Overlay one video on top of another.
///
It takes two inputs and has one output.The first input is the "main" video on which the second input is overlaid. @@ -104,13 +92,11 @@ public static OverlayFilter OverlayFilter(this ImageMap first, ImageMap second) public static OverlayFilter OverlayFilterOn(this ImageMap second, ImageMap first) => new OverlayFilter(first, second); } - public enum OverlayAlpha { Straight, Premultiplied } - public enum OverlayPixFmt { /// @@ -146,7 +132,6 @@ public enum OverlayPixFmt /// auto } - /// /// Set when the expressions for x, and y are evaluated. /// @@ -156,11 +141,9 @@ public enum OverlayEval /// only evaluate expressions once during the filter initialization or when a command is processed ///
Init, - /// /// evaluate expressions for each incoming frame /// Frame } - } \ No newline at end of file diff --git a/FFmpegArgs.Filters/VideoFilters/PadFilter.cs b/FFmpegArgs.Filters/VideoFilters/PadFilter.cs index 1116a2eb..bfb5e65f 100644 --- a/FFmpegArgs.Filters/VideoFilters/PadFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/PadFilter.cs @@ -1,10 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... pad V->V Pad the input video.

@@ -24,7 +18,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) { AddMapOut(); } - /// /// Specify the offsets to place the input image at within the padded area, with respect to the top/left border of the output image.

/// The x expression can reference the value set by the y expression, and vice versa.

@@ -35,8 +28,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter X(string x) => this.SetOption("x", x.Expression().Run(expression)); - - /// /// Specify the offsets to place the input image at within the padded area, with respect to the top/left border of the output image.

/// The x expression can reference the value set by the y expression, and vice versa.

@@ -47,7 +38,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter Y(string y) => this.SetOption("y", y.Expression().Run(expression)); - /// /// Specify the offsets to place the input image at within the padded area, with respect to the top/left border of the output image.

/// The x expression can reference the value set by the y expression, and vice versa.

@@ -58,7 +48,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter X(Action x) => this.SetOption("x", x.Run(expression)); - /// /// Specify the offsets to place the input image at within the padded area, with respect to the top/left border of the output image.

/// The x expression can reference the value set by the y expression, and vice versa.

@@ -69,8 +58,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter Y(Action y) => this.SetOption("y", y.Run(expression)); - - /// /// Specify an expression for the size of the output image with the paddings added. If the value for width or height is 0, the corresponding input size is used for the output.

/// The width expression can reference the value set by the height expression, and vice versa.
@@ -79,7 +66,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter W(string w) => this.SetOption("w", w.Expression().Run(expression)); - /// /// Specify an expression for the size of the output image with the paddings added. If the value for width or height is 0, the corresponding input size is used for the output.

/// The width expression can reference the value set by the height expression, and vice versa.
@@ -88,7 +74,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter H(string h) => this.SetOption("h", h.Expression().Run(expression)); - /// /// Specify an expression for the size of the output image with the paddings added. If the value for width or height is 0, the corresponding input size is used for the output.

/// The width expression can reference the value set by the height expression, and vice versa.
@@ -97,7 +82,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter W(Action w) => this.SetOption("w", w.Run(expression)); - /// /// Specify an expression for the size of the output image with the paddings added. If the value for width or height is 0, the corresponding input size is used for the output.

/// The width expression can reference the value set by the height expression, and vice versa.
@@ -106,7 +90,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// /// public PadFilter H(Action h) => this.SetOption("h", h.Run(expression)); - /// /// Specify the color of the padded area. /// @@ -114,7 +97,6 @@ internal PadFilter(ImageMap imageMap) : base("pad", imageMap) /// public PadFilter Color(Color color) => this.SetOption("color", color.ToHexStringRGBA()); - /// /// Specify when to evaluate width, height, x and y expression. /// @@ -122,7 +104,6 @@ public PadFilter Color(Color color) /// public PadFilter Eval(PadEval eval) => this.SetOption("eval", eval.ToString().ToLower()); - /// /// Pad to aspect instead to a resolution. /// @@ -131,7 +112,6 @@ public PadFilter Eval(PadEval eval) public PadFilter Aspect(Rational rational) => this.SetOption("aspect", rational.Check(0, DBL_MAX)); } - public static class PadFilterExtension { /// @@ -140,7 +120,6 @@ public static class PadFilterExtension public static PadFilter PadFilter(this ImageMap imageMap) => new PadFilter(imageMap); } - public enum PadEval { Init, diff --git a/FFmpegArgs.Filters/VideoFilters/RotateFilter.cs b/FFmpegArgs.Filters/VideoFilters/RotateFilter.cs index e11d2834..13b3e8f0 100644 --- a/FFmpegArgs.Filters/VideoFilters/RotateFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/RotateFilter.cs @@ -10,12 +10,6 @@ c ..FV....... set background fill color (default "black") bilinear ..FV....... use bilinear interpolation (default true) */ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; -using System.Drawing; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -39,12 +33,10 @@ public class RotateFilter : ImageToImageFilter, ICommandSupport, ITimelineSuppor new ShuntingYardFunction("roth","roth_1"), }; readonly FFmpegExpression expression = new FFmpegExpression(_variables, _func); - internal RotateFilter(ImageMap imageMap) : base("rotate", imageMap) { AddMapOut(); } - /// /// Set an expression for the angle by which to rotate the input video clockwise, expressed as a number of radians. A negative value will result in a counter-clockwise rotation. By default it is set to "0".
///
This expression is evaluated for each frame. @@ -53,7 +45,6 @@ internal RotateFilter(ImageMap imageMap) : base("rotate", imageMap) /// public RotateFilter Angle(string a) => Angle(a.Expression()); - /// /// Set an expression for the angle by which to rotate the input video clockwise, expressed as a number of radians. A negative value will result in a counter-clockwise rotation. By default it is set to "0".
///
This expression is evaluated for each frame. @@ -62,7 +53,6 @@ public RotateFilter Angle(string a) /// public RotateFilter Angle(Action a) => this.SetOption("a", a.Run(expression)); - /// /// Set the output width expression, default value is "iw". This expression is evaluated just once during configuration. /// @@ -91,7 +81,6 @@ public RotateFilter OH(string oh) /// public RotateFilter OH(Action oh) => this.SetOption("oh", oh.Run(expression)); - /// /// Enable bilinear interpolation if set to 1, a value of 0 disables it. Default value is 1. /// @@ -99,7 +88,6 @@ public RotateFilter OH(Action oh) /// public RotateFilter Bilinear(bool flag) => this.SetOption("bilinear", flag.ToFFmpegFlag()); - /// /// Set the color used to fill the output area not covered by the rotated image. If the special value "none" is selected then no background is printed (useful for example if the background is never shown). /// @@ -108,7 +96,6 @@ public RotateFilter Bilinear(bool flag) public RotateFilter FillColor(Color color) => this.SetOption("c", color.ToHexStringRGBA()); } - public static class RotateFilterExtension { /// diff --git a/FFmpegArgs.Filters/VideoFilters/ScaleFilter.cs b/FFmpegArgs.Filters/VideoFilters/ScaleFilter.cs index 09009e0d..e4c7ea6c 100644 --- a/FFmpegArgs.Filters/VideoFilters/ScaleFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ScaleFilter.cs @@ -58,13 +58,6 @@ increase 2 ..FV....... init 0 ..FV....... eval expressions once during initialization frame 1 ..FV....... eval expressions during initialization and per-frame */ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -86,13 +79,11 @@ public class ScaleFilter : ImageToImageFilter, ICommandSupport "n", "t", "pos" }; - readonly FFmpegExpression expression = new FFmpegExpression(_scalevariables); internal ScaleFilter(ImageMap imageMap) : base("scale", imageMap) { AddMapOut(); } - /// /// Set the output video dimension expression. Default value is the input dimension.

/// If the width or w value is 0, the input width is used for the output.If the height or h value is 0, the input height is used for the output.

@@ -102,7 +93,6 @@ internal ScaleFilter(ImageMap imageMap) : base("scale", imageMap) /// /// public ScaleFilter W(Action w) => this.SetOption("w", w.Run(expression)); - /// /// Set the output video dimension expression. Default value is the input dimension.

/// If the width or w value is 0, the input width is used for the output.If the height or h value is 0, the input height is used for the output.

@@ -112,7 +102,6 @@ internal ScaleFilter(ImageMap imageMap) : base("scale", imageMap) /// /// public ScaleFilter W(string w) => this.W(w.Expression()); - /// /// Set the output video dimension expression. Default value is the input dimension.

/// If the width or w value is 0, the input width is used for the output.If the height or h value is 0, the input height is used for the output.

@@ -122,7 +111,6 @@ internal ScaleFilter(ImageMap imageMap) : base("scale", imageMap) /// /// public ScaleFilter H(Action h) => this.SetOption("h", h.Run(expression)); - /// /// Set the output video dimension expression. Default value is the input dimension.

/// If the width or w value is 0, the input width is used for the output.If the height or h value is 0, the input height is used for the output.

@@ -132,8 +120,6 @@ internal ScaleFilter(ImageMap imageMap) : base("scale", imageMap) /// /// public ScaleFilter H(string h) => this.H(h.Expression()); - - /// /// Set the video size /// @@ -142,8 +128,7 @@ internal ScaleFilter(ImageMap imageMap) : base("scale", imageMap) /// /// public ScaleFilter Size(VideoSizeUtils videoSize) - => this.SetOption("s", videoSize.GetAttribute().Name); - + => this.SetOption("s", videoSize.GetEnumAttribute().Name); /// /// Set the video size /// @@ -153,7 +138,6 @@ public ScaleFilter Size(VideoSizeUtils videoSize) /// public ScaleFilter Size(Size videoSize) => this.SetOption("s", $"{videoSize.Width}x{videoSize.Height}"); - /// /// Specify when to evaluate width and height expression. /// @@ -161,7 +145,6 @@ public ScaleFilter Size(Size videoSize) /// public ScaleFilter Eval(ScaleEval eval) => this.SetOption("eval", eval.ToString().ToLower()); - /// /// Set the interlacing mode /// @@ -169,7 +152,6 @@ public ScaleFilter Eval(ScaleEval eval) /// public ScaleFilter Interl(ScaleInterl interl) => this.SetOption("interl", (int)interl); - /// /// Set libswscale scaling flags. /// @@ -177,7 +159,6 @@ public ScaleFilter Interl(ScaleInterl interl) /// public ScaleFilter Flags(SwsFlags flag) => this.SetOption("flags", flag.ToString()); - /// /// Set scaling algorithm parameters. The specified values are specific of some scaling algorithms and ignored by others. The specified values are floating point number values. /// @@ -185,7 +166,6 @@ public ScaleFilter Flags(SwsFlags flag) /// public ScaleFilter Param0(double param0) => this.SetOptionRange("param0", param0, INT_MIN, INT_MAX); - /// /// Set scaling algorithm parameters. The specified values are specific of some scaling algorithms and ignored by others. The specified values are floating point number values. /// @@ -193,7 +173,6 @@ public ScaleFilter Param0(double param0) /// public ScaleFilter Param1(double param1) => this.SetOptionRange("param1", param1, INT_MIN, INT_MAX); - /// /// Set in/output YCbCr color space type.

/// This allows the autodetected value to be overridden as well as allows forcing a specific value used for the output and encoder.

@@ -203,7 +182,6 @@ public ScaleFilter Param1(double param1) /// public ScaleFilter InColorMatrix(ScaleColorMatrix colorMatrix) => this.SetOption("in_color_matrix", colorMatrix); - /// /// Set in/output YCbCr color space type.

/// This allows the autodetected value to be overridden as well as allows forcing a specific value used for the output and encoder.

@@ -213,7 +191,6 @@ public ScaleFilter InColorMatrix(ScaleColorMatrix colorMatrix) /// public ScaleFilter OutColorMatrix(ScaleColorMatrix colorMatrix) => this.SetOption("out_color_matrix", colorMatrix); - /// /// Set in/output YCbCr sample range.

/// This allows the autodetected value to be overridden as well as allows forcing a specific value used for the output and encoder.If not specified, the range depends on the pixel format. @@ -222,7 +199,6 @@ public ScaleFilter OutColorMatrix(ScaleColorMatrix colorMatrix) /// public ScaleFilter InRange(ScaleRange range) => this.SetOption("in_range", range); - /// /// Set in/output YCbCr sample range.

/// This allows the autodetected value to be overridden as well as allows forcing a specific value used for the output and encoder.If not specified, the range depends on the pixel format. @@ -234,11 +210,10 @@ public ScaleFilter OutRange(ScaleRange range) /// /// Enable decreasing or increasing output video width or height if necessary to keep the original aspect ratio. /// - /// + /// /// public ScaleFilter ForceOriginalAspectRatio(ScaleAspectRatio ratio) => this.SetOption("force_original_aspect_ratio", ratio); - /// /// Ensures that both the output dimensions, width and height, are divisible by the given integer when used together with force_original_aspect_ratio. This works similar to using -n in the w and h options.

/// This option respects the value set for force_original_aspect_ratio, increasing or decreasing the resolution accordingly.The video’s aspect ratio may be slightly modified.

@@ -250,7 +225,9 @@ public ScaleFilter ForceOriginalAspectRatio(ScaleAspectRatio ratio) public ScaleFilter ForceDivisibleBy(int val) => this.SetOptionRange("force_divisible_by", val, 1, 256); } - + /// + /// + /// public static class ScaleFilterExtension { /// @@ -258,7 +235,7 @@ public static class ScaleFilterExtension /// public static ScaleFilter ScaleFilter(this ImageMap imageMap) => new ScaleFilter(imageMap); } - +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member public enum ScaleColorMatrix { auto, @@ -269,14 +246,12 @@ public enum ScaleColorMatrix smpte240m, bt2020 } - public enum ScaleAspectRatio { disable, decrease, increase } - /// /// Set the interlacing mode. /// @@ -286,18 +261,15 @@ public enum ScaleInterl /// Force interlaced aware scaling. ///
ForceInterlacedAwareScaling = 1, - /// /// Do not apply interlaced scaling. /// DoNotApplyInterlacedScaling = 0, - /// /// Select interlaced aware scaling depending on whether the source frames are flagged as interlaced or not. /// Optional = -1, } - /// /// Specify when to evaluate width and height expression. /// @@ -307,13 +279,11 @@ public enum ScaleEval /// only evaluate expressions once during the filter initialization or when a command is processed ///
Init, - /// /// evaluate expressions for each incoming frame /// Frame } - public enum ScaleRange { auto, @@ -325,4 +295,5 @@ public enum ScaleRange limited, tv } +#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member } \ No newline at end of file diff --git a/FFmpegArgs.Filters/VideoFilters/SetDarFilter.cs b/FFmpegArgs.Filters/VideoFilters/SetDarFilter.cs index 8930c931..121309dc 100644 --- a/FFmpegArgs.Filters/VideoFilters/SetDarFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/SetDarFilter.cs @@ -5,11 +5,6 @@ r ..FV....... set display aspect ratio (default "0") max ..FV....... set max value for nominator or denominator in the ratio (from 1 to INT_MAX) (default 100) */ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -30,7 +25,6 @@ internal SetDarFilter(ImageMap imageMap) : base("setdar", imageMap) { AddMapOut(); } - /// /// Set the aspect ratio used by the filter.
///
The parameter can be a floating point number string, an expression, or a string of the form num:den, where num and den are the numerator and denominator of the aspect ratio.If the parameter is not specified, it is assumed the value "0". @@ -38,8 +32,6 @@ internal SetDarFilter(ImageMap imageMap) : base("setdar", imageMap) /// /// public SetDarFilter Ratio(Action r) => this.SetOption("r", r.Run(expression)); - - /// /// Set the aspect ratio used by the filter.
///
The parameter can be a floating point number string, an expression, or a string of the form num:den, where num and den are the numerator and denominator of the aspect ratio.If the parameter is not specified, it is assumed the value "0". @@ -47,7 +39,6 @@ internal SetDarFilter(ImageMap imageMap) : base("setdar", imageMap) /// /// public SetDarFilter Ratio(string r) => this.SetOption("r", r.Expression().Run(expression)); - /// /// Set the aspect ratio used by the filter.
///
The parameter can be a floating point number string, an expression, or a string of the form num:den, where num and den are the numerator and denominator of the aspect ratio.If the parameter is not specified, it is assumed the value "0". @@ -55,8 +46,6 @@ internal SetDarFilter(ImageMap imageMap) : base("setdar", imageMap) /// /// public SetDarFilter Ratio(Rational r) => this.SetOption("r", $"{r.Numerator}:{r.Denominator}"); - - /// /// Set the maximum integer value to use for expressing numerator and denominator when reducing the expressed aspect ratio to a rational.
///
(from 1 to INT_MAX) (default 100) @@ -66,7 +55,6 @@ internal SetDarFilter(ImageMap imageMap) : base("setdar", imageMap) public SetDarFilter Max(int max) => this.SetOptionRange("max", max, 1, INT_MAX); } - public static class SetDarFilterExtension { /// diff --git a/FFmpegArgs.Filters/VideoFilters/SetSarFilter.cs b/FFmpegArgs.Filters/VideoFilters/SetSarFilter.cs index f207f12c..781f29b2 100644 --- a/FFmpegArgs.Filters/VideoFilters/SetSarFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/SetSarFilter.cs @@ -5,11 +5,6 @@ r ..FV....... set sample (pixel) aspect ratio (default "0") max ..FV....... set max value for nominator or denominator in the ratio (from 1 to INT_MAX) (default 100) */ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using System; -using System.Collections.Generic; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -30,7 +25,6 @@ internal SetSarFilter(ImageMap imageMap) : base("setsar", imageMap) { AddMapOut(); } - /// /// The parameter can be a floating point number string, an expression, where num and den are the numerator and denominator of the aspect ratio. If the parameter is not specified, it is assumed the value "0". /// @@ -38,7 +32,6 @@ internal SetSarFilter(ImageMap imageMap) : base("setsar", imageMap) /// public SetSarFilter Ratio(string r) => this.SetOption("r", r.Expression().Run(expression)); - /// /// The parameter can be a floating point number string, an expression, where num and den are the numerator and denominator of the aspect ratio. If the parameter is not specified, it is assumed the value "0". /// @@ -46,7 +39,6 @@ public SetSarFilter Ratio(string r) /// public SetSarFilter Ratio(Action r) => this.SetOption("r", r.Run(expression)); - /// /// The parameter can be a floating point number string, an expression, where num and den are the numerator and denominator of the aspect ratio. If the parameter is not specified, it is assumed the value "0". In case the form "num:den" is used, the : character should be escaped. /// @@ -54,7 +46,6 @@ public SetSarFilter Ratio(Action r) /// public SetSarFilter Ratio(Rational r) => this.SetOption("r", r); - /// /// Set the maximum integer value to use for expressing numerator and denominator when reducing the expressed aspect ratio to a rational.
///
(from 1 to INT_MAX) (default 100) @@ -63,9 +54,7 @@ public SetSarFilter Ratio(Rational r) /// public SetSarFilter Max(int max) => this.SetOptionRange("max", max, 1, INT_MAX); - } - public static class SetSarFilterExtension { /// diff --git a/FFmpegArgs.Filters/VideoFilters/Shares/BaseSubtitlesFilter.cs b/FFmpegArgs.Filters/VideoFilters/Shares/BaseSubtitlesFilter.cs index e657aaa2..7bd31a0f 100644 --- a/FFmpegArgs.Filters/VideoFilters/Shares/BaseSubtitlesFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/Shares/BaseSubtitlesFilter.cs @@ -1,11 +1,8 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { + /// + /// + /// public class BaseSubtitlesFilter : ImageToImageFilter { /// @@ -18,7 +15,9 @@ internal BaseSubtitlesFilter(string filterName, ImageMap imageMap) : base(filter AddMapOut(); } } - + /// + /// + /// public static class BaseSubtitlesFilterExtension { /// @@ -28,9 +27,8 @@ public static class BaseSubtitlesFilterExtension /// /// /// - public static T FileName(this T t,string fileName) where T : BaseSubtitlesFilter + public static T FileName(this T t, string fileName) where T : BaseSubtitlesFilter => t.SetOption("f", fileName); - /// /// Specify the size of the original video, the video for which the ASS file was composed.
///
Due to a misdesign in ASS aspect ratio arithmetic, this is necessary to correctly scale the fonts if the aspect ratio has been changed. @@ -40,19 +38,17 @@ public static T FileName(this T t,string fileName) where T : BaseSubtitlesFil /// /// public static T OriginalSize(this T t, VideoSizeUtils videoSize) where T : BaseSubtitlesFilter - => t.SetOption("original_size", videoSize.GetAttribute().Name); - + => t.SetOption("original_size", videoSize.GetEnumAttribute().Name); /// /// Specify the size of the original video, the video for which the ASS file was composed.
///
Due to a misdesign in ASS aspect ratio arithmetic, this is necessary to correctly scale the fonts if the aspect ratio has been changed. ///
/// /// - /// + /// /// public static T OriginalSize(this T t, Size size) where T : BaseSubtitlesFilter => t.SetOption("original_size", $"{size.Width}x{size.Height}"); - /// /// Set a directory path containing fonts that can be used by the filter.
///
These fonts will be used in addition to whatever the font provider uses. @@ -63,7 +59,6 @@ public static T OriginalSize(this T t, Size size) where T : BaseSubtitlesFilt /// public static T FontsDir(this T t, string fontsdir) where T : BaseSubtitlesFilter => t.SetOption("fontsdir", fontsdir); - /// /// Process alpha channel, by default alpha channel is untouched. /// @@ -73,7 +68,6 @@ public static T FontsDir(this T t, string fontsdir) where T : BaseSubtitlesFi /// public static T Alpha(this T t, bool alpha) where T : BaseSubtitlesFilter => t.SetOption("alpha", alpha.ToFFmpegFlag()); - /// /// Override default style or script info parameters of the subtitles.
///
It accepts a string containing ASS style format KEY=VALUE couples separated by ",". @@ -84,10 +78,13 @@ public static T Alpha(this T t, bool alpha) where T : BaseSubtitlesFilter /// public static T ForceStyle(this T t, string force_style) where T : BaseSubtitlesFilter => t.SetOption("force_style", force_style); - + /// + /// + /// + /// + /// public static string ToHexSubStringRGB(this Color color) => $"&H{color.R.ToString("X2")}{color.G.ToString("X2")}{color.B.ToString("X2")}"; } - /// /// http://www.tcax.org/docs/ass-specs.htm /// @@ -151,19 +148,16 @@ public class SubtitleStyleConfig ///
public int? Angle { get; set; } public SubtitleBorderStyle? BorderStyle { get; set; } - /// /// If BorderStyle is 1, then this specifies the width of the outline around the text, in pixels.
///
Values may be 0, 1, 2, 3 or 4. ///
public int? Outline { get; set; } - /// /// If BorderStyle is 1, then this specifies the depth of the drop shadow behind the text, in pixels.
///
Values may be 0, 1, 2, 3 or 4. Drop shadow is always used in addition to an outline - SSA will force an outline of 1 pixel if no outline width is given. ///
public int? Shadow { get; set; } - public SubtitleAlignment? Alignment { get; set; } /// /// This defines the Left Margin in pixels. It is the distance from the left-hand edge of the screen.The three onscreen margins (MarginL, MarginR, MarginV) define areas in which the subtitle text will be displayed. @@ -184,20 +178,17 @@ public class SubtitleStyleConfig /// This defines the transparency of the text. SSA and ASS does not use this yet. /// public double? AlphaLevel { get; set; } - /// /// This specifies the font character set or encoding and on multi-lingual Windows installations it provides access to characters used in multiple than one languages.
///
It is usually 0 (zero) for English (Western, ANSI) Windows.
///
When the file is Unicode, this field is useful during file format conversions. ///
public string Encoding { get; set; } - - public Dictionary OtherStyle { get; set; } - + public Dictionary OtherStyle { get; set; } public override string ToString() { Dictionary pairs = new Dictionary(); - if(!string.IsNullOrWhiteSpace(Name)) pairs[nameof(Name)] = Name; + if (!string.IsNullOrWhiteSpace(Name)) pairs[nameof(Name)] = Name; if (!string.IsNullOrWhiteSpace(Fontname)) pairs[nameof(Fontname)] = Fontname; if (Fontsize != null) pairs[nameof(Fontsize)] = Fontsize.Value.ToString(); if (PrimaryColour != null) pairs[nameof(PrimaryColour)] = PrimaryColour.Value.ToHexSubStringRGB(); @@ -221,16 +212,15 @@ public override string ToString() if (MarginV != null) pairs[nameof(MarginV)] = MarginV.Value.ToString(); if (AlphaLevel != null) pairs[nameof(AlphaLevel)] = AlphaLevel.Value.ToString(); if (!string.IsNullOrWhiteSpace(Encoding)) pairs[nameof(Encoding)] = Encoding; - if(OtherStyle != null) foreach (var pair in OtherStyle) pairs[pair.Key] = pair.Value; + if (OtherStyle != null) foreach (var pair in OtherStyle) pairs[pair.Key] = pair.Value; return string.Join(",", pairs.Select(x => $"{x.Key}={x.Value}")); } } - public enum SubtitleBorderStyle: byte + public enum SubtitleBorderStyle : byte { OutlineAndDropShadow = 1, OpaqueBox = 3 } - public enum SubtitleAlignment : byte { LeftSub = 1, diff --git a/FFmpegArgs.Filters/VideoFilters/SubtitlesFilter.cs b/FFmpegArgs.Filters/VideoFilters/SubtitlesFilter.cs index 76ab648f..ed0c7564 100644 --- a/FFmpegArgs.Filters/VideoFilters/SubtitlesFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/SubtitlesFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... subtitles V->V Render text subtitles onto input video using the libass library.
@@ -11,9 +8,7 @@ public class SubtitlesFilter : BaseSubtitlesFilter { internal SubtitlesFilter(ImageMap imageMap) : base("subtitles", imageMap) { - } - /// /// Set subtitles input character encoding. subtitles filter only. Only useful if not UTF-8. /// @@ -23,7 +18,6 @@ internal SubtitlesFilter(ImageMap imageMap) : base("subtitles", imageMap) /// public SubtitlesFilter Charenc(string charenc) => this.SetOption("charenc", charenc); - /// /// Set subtitles stream index. subtitles filter only. /// @@ -34,7 +28,6 @@ public SubtitlesFilter Charenc(string charenc) public SubtitlesFilter StreamIndex(int si) => this.SetOptionRange("si", si, -1, int.MaxValue); } - public static class SubtitlesFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoFilters/TrimFilter.cs b/FFmpegArgs.Filters/VideoFilters/TrimFilter.cs index 1955f081..4149000b 100644 --- a/FFmpegArgs.Filters/VideoFilters/TrimFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/TrimFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System; - -namespace FFmpegArgs.Filters.VideoFilters +namespace FFmpegArgs.Filters.VideoFilters { /// /// ... trim V->V Pick one continuous section from the input, drop the rest.

@@ -13,7 +10,6 @@ internal TrimFilter(ImageMap imageMap) : base("trim", imageMap) { AddMapOut(); } - /// /// Specify the time of the start of the kept section, i.e. the frame with the timestamp start will be the first frame in the output.(default INT64_MAX) /// @@ -21,7 +17,6 @@ internal TrimFilter(ImageMap imageMap) : base("trim", imageMap) /// public TrimFilter Start(TimeSpan val) => this.SetOptionRange("start", val, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Specify the time of the first frame that will be dropped, i.e. the frame immediately preceding the one with the timestamp end will be the last frame in the output.(default INT64_MAX) /// @@ -29,7 +24,6 @@ public TrimFilter Start(TimeSpan val) /// public TrimFilter End(TimeSpan val) => this.SetOptionRange("end", val, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// This is the same as start, except this option sets the start timestamp in timebase units instead of seconds.(from I64_MIN to I64_MAX) (default I64_MIN) /// @@ -37,7 +31,6 @@ public TrimFilter End(TimeSpan val) /// public TrimFilter StartPts(long val) => this.SetOptionRange("start_pts", val, I64_MIN, I64_MAX); - /// /// This is the same as end, except this option sets the end timestamp in timebase units instead of seconds.(from I64_MIN to I64_MAX) (default I64_MIN) /// @@ -45,7 +38,6 @@ public TrimFilter StartPts(long val) /// public TrimFilter EndPts(long val) => this.SetOptionRange("end_pts", val, I64_MIN, I64_MAX); - /// /// The maximum duration of the output in seconds.(default 0) /// @@ -53,7 +45,6 @@ public TrimFilter EndPts(long val) /// public TrimFilter Duration(TimeSpan val) => this.SetOptionRange("duration", val, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// The number of the first frame that should be passed to the output.(from -1 to I64_MAX) (default -1) /// @@ -61,7 +52,6 @@ public TrimFilter Duration(TimeSpan val) /// public TrimFilter StartFrame(long val) => this.SetOptionRange("start_frame", val, -1, I64_MAX); - /// /// The number of the first frame that should be dropped.(from 0 to I64_MAX) (default I64_MAX) /// @@ -70,7 +60,6 @@ public TrimFilter StartFrame(long val) public TrimFilter EndFrame(long val) => this.SetOptionRange("end_frame", val, 0, I64_MAX); } - public static class TrimFilterExtension { public static TrimFilter TrimFilter(this ImageMap imageMap) diff --git a/FFmpegArgs.Filters/VideoFilters/ZoompanFilter.cs b/FFmpegArgs.Filters/VideoFilters/ZoompanFilter.cs index bac0cb69..78e0fc59 100644 --- a/FFmpegArgs.Filters/VideoFilters/ZoompanFilter.cs +++ b/FFmpegArgs.Filters/VideoFilters/ZoompanFilter.cs @@ -8,16 +8,6 @@ s ..FV....... set the output image size (default "hd720") fps ..FV....... set the output framerate (default "25") */ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters.Enums; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; - namespace FFmpegArgs.Filters.VideoFilters { /// @@ -50,7 +40,6 @@ internal ZoompanFilter(ImageMap imageMap) : base("zoompan", imageMap) { AddMapOut(); } - /// /// Set the zoom expression. Range is 1-10. Default is 1. /// @@ -63,7 +52,6 @@ internal ZoompanFilter(ImageMap imageMap) : base("zoompan", imageMap) /// /// public ZoompanFilter Zoom(Action z) => this.SetOption("z", z.Run(expression)); - /// /// Set the x and y expression. Default is 0. /// @@ -76,7 +64,6 @@ internal ZoompanFilter(ImageMap imageMap) : base("zoompan", imageMap) /// /// public ZoompanFilter X(Action x) => this.SetOption("x", x.Run(expression)); - /// /// Set the x and y expression. Default is 0. /// @@ -89,7 +76,6 @@ internal ZoompanFilter(ImageMap imageMap) : base("zoompan", imageMap) /// /// public ZoompanFilter Y(Action y) => this.SetOption("y", y.Run(expression)); - /// /// Set the duration expression in number of frames. This sets for how many number of frames effect will last for single input image. Default is 90. /// @@ -103,16 +89,12 @@ internal ZoompanFilter(ImageMap imageMap) : base("zoompan", imageMap) /// public ZoompanFilter D(Action z) => this.SetOption("d", z.Run(expression)); public ZoompanFilter D(TimeSpan d) => this.SetOptionRange("d", d, TimeSpan.Zero, TimeSpan.MaxValue); - - - /// /// Set the output image size /// /// /// public ZoompanFilter S(Size s) => this.SetOption("s", $"{s.Width}x{s.Height}"); - /// /// Set the output frame rate, default is ’25’. /// @@ -126,7 +108,9 @@ internal ZoompanFilter(ImageMap imageMap) : base("zoompan", imageMap) /// public ZoompanFilter Fps(int fps) => this.SetOptionRange("fps", fps, 1, INT_MAX); } - + /// + /// + /// public static class ZoompanFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoSinks/BuffersinkFilter.cs b/FFmpegArgs.Filters/VideoSinks/BuffersinkFilter.cs index 463dc9d5..61c26611 100644 --- a/FFmpegArgs.Filters/VideoSinks/BuffersinkFilter.cs +++ b/FFmpegArgs.Filters/VideoSinks/BuffersinkFilter.cs @@ -10,11 +10,7 @@ // { // AddMapOut(); // } - - - //} - //public static class BuffersinkFilterExtensions //{ // /// diff --git a/FFmpegArgs.Filters/VideoSinks/NullsinkFilter.cs b/FFmpegArgs.Filters/VideoSinks/NullsinkFilter.cs index 3df64475..b42666a9 100644 --- a/FFmpegArgs.Filters/VideoSinks/NullsinkFilter.cs +++ b/FFmpegArgs.Filters/VideoSinks/NullsinkFilter.cs @@ -10,11 +10,7 @@ // { // AddMapOut(); // } - - - //} - //public static class NullsinkFilterExtensions //{ // /// diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/AllyuvFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/AllyuvFilter.cs index 379556f9..30c298cd 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/AllyuvFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/AllyuvFilter.cs @@ -11,7 +11,6 @@ internal AllyuvFilter(FilterGraph filterGraph) : base("allyuv", filterGraph) AddMapOut(); } } - public static class AllyuvFilterExtensions { public static AllyuvFilter AllyuvFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/BaseVideoSource.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/BaseVideoSource.cs index e5b40b1b..a934f9c0 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/BaseVideoSource.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/BaseVideoSource.cs @@ -1,27 +1,26 @@ -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters.Enums; -using System; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { + /// + /// + /// public abstract class BaseVideoSource : SourceImageFilter { internal BaseVideoSource(string filterName, FilterGraph filterGraph) : base(filterName, filterGraph) { - } - - } + /// + /// + /// public interface IBaseVideoSourceSize// : IFilter { - } + /// + /// + /// public static class BaseVideoSourceExtensions { static readonly FFmpegExpression expression = new FFmpegExpression(); - /// /// Specify the frame rate of the sourced video, as the number of frames generated per second.
///
It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a floating point number or a valid video frame rate abbreviation.
@@ -33,7 +32,6 @@ public static class BaseVideoSourceExtensions /// public static T Rate(this T t, Rational r) where T : BaseVideoSource => t.SetOption("r", r); - /// /// If not specified, or the expressed duration is negative, the video is supposed to be generated forever.

/// Since the frame rate is used as time base, all frames including the last one will have their full duration.
@@ -45,7 +43,6 @@ public static T Rate(this T t, Rational r) where T : BaseVideoSource /// public static T Duration(this T t, TimeSpan d) where T : BaseVideoSource => t.SetOptionRange("d", d, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Set the sample aspect ratio of the sourced video. /// @@ -55,7 +52,6 @@ public static T Duration(this T t, TimeSpan d) where T : BaseVideoSource /// public static T Sar(this T t, string sar) where T : BaseVideoSource => t.SetOption("sar", sar.Expression().Run(expression)); - /// /// Set the sample aspect ratio of the sourced video. /// @@ -65,9 +61,6 @@ public static T Sar(this T t, string sar) where T : BaseVideoSource /// public static T Sar(this T t, Action sar) where T : BaseVideoSource => t.SetOption("sar", sar.Run(expression)); - - - /// /// Specify the size of the sourced video.

/// The default value is 320x240. @@ -78,7 +71,6 @@ public static T Sar(this T t, Action sar) where T : BaseVid /// public static T Size(this T t, Size size) where T : BaseVideoSource, IBaseVideoSourceSize => t.SetOption("s", $"{size.Width}x{size.Height}"); - /// /// Specify the size of the sourced video.

/// The default value is 320x240. @@ -88,6 +80,6 @@ public static T Size(this T t, Size size) where T : BaseVideoSource, IBaseVid /// /// public static T Size(this T t, VideoSizeUtils size) where T : BaseVideoSource, IBaseVideoSourceSize - => t.SetOption("s", size.GetAttribute().Name); + => t.SetOption("s", size.GetEnumAttribute().Name); } } diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/ColorFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/ColorFilter.cs index 49dbee35..993e1f8b 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/ColorFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/ColorFilter.cs @@ -1,6 +1,4 @@ -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// ..C color |->V Provide an uniformly colored input.

@@ -12,11 +10,9 @@ internal ColorFilter(FilterGraph filterGraph) : base("color", filterGraph) { AddMapOut(); } - public ColorFilter Color(Color color) => this.SetOption("c", color.ToHexStringRGBA()); } - public static class ColorFilterExtension { public static ColorFilter ColorFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/HaldclutsrcFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/HaldclutsrcFilter.cs index 88449a66..cafed3df 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/HaldclutsrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/HaldclutsrcFilter.cs @@ -10,7 +10,6 @@ internal HaldclutsrcFilter(FilterGraph filterGraph) : base("haldclutsrc", filter { AddMapOut(); } - /// /// Specify the level of the Hald CLUT, only available in the haldclutsrc source.
///
A level of N generates a picture of N*N*N by N*N*N pixels to be used as identity matrix for 3D lookup tables.
@@ -21,7 +20,6 @@ internal HaldclutsrcFilter(FilterGraph filterGraph) : base("haldclutsrc", filter public HaldclutsrcFilter Level(int level) => this.SetOptionRange("level", level, 2, 16); } - public static class HaldclutsrcFilterExtensions { public static HaldclutsrcFilter HaldclutsrcFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/NullsrcFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/NullsrcFilter.cs index 65e97d48..a0688d37 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/NullsrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/NullsrcFilter.cs @@ -11,7 +11,6 @@ internal NullsrcFilter(FilterGraph filterGraph) : base("nullsrc", filterGraph) AddMapOut(); } } - public static class NullsrcFilterExtensions { public static NullsrcFilter NullsrcFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal100barsFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal100barsFilter.cs index df0dda20..463c783a 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal100barsFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal100barsFilter.cs @@ -11,7 +11,6 @@ internal Pal100barsFilter(FilterGraph filterGraph) : base("pal100bars", filterGr AddMapOut(); } } - public static class Pal100barsFilterExtensions { public static Pal100barsFilter Pal100barsFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal75barsFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal75barsFilter.cs index c0cfa0b1..be2d01f0 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal75barsFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Pal75barsFilter.cs @@ -11,7 +11,6 @@ internal Pal75barsFilter(FilterGraph filterGraph) : base("pal75bars", filterGrap AddMapOut(); } } - public static class Pal75barsFilterExtensions { public static Pal75barsFilter Pal75barsFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/RgbtestsrcFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/RgbtestsrcFilter.cs index 2f0863ad..e6d205c4 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/RgbtestsrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/RgbtestsrcFilter.cs @@ -11,7 +11,6 @@ internal RgbtestsrcFilter(FilterGraph filterGraph) : base("rgbtestsrc", filterGr AddMapOut(); } } - public static class RgbtestsrcFilterExtensions { public static RgbtestsrcFilter RgbtestsrcFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptebarsFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptebarsFilter.cs index 95936d91..8a41443c 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptebarsFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptebarsFilter.cs @@ -11,7 +11,6 @@ internal SmptebarsFilter(FilterGraph filterGraph) : base("smptebars", filterGrap AddMapOut(); } } - public static class SmptebarsFilterExtensions { public static SmptebarsFilter SmptebarsFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptehdbarsFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptehdbarsFilter.cs index 69f6f342..725b398b 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptehdbarsFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/SmptehdbarsFilter.cs @@ -11,7 +11,6 @@ internal SmptehdbarsFilter(FilterGraph filterGraph) : base("smptehdbars", filter AddMapOut(); } } - public static class SmptehdbarsFilterExtensions { public static SmptehdbarsFilter SmptehdbarsFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Testsrc2Filter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Testsrc2Filter.cs index f812d5f6..f72b0976 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Testsrc2Filter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/Testsrc2Filter.cs @@ -10,7 +10,6 @@ internal Testsrc2Filter(FilterGraph filterGraph) : base("testsrc2", filterGraph) { AddMapOut(); } - /// /// Specify the alpha (opacity) of the background, only available in the testsrc2 source.
///
The value must be between 0 (fully transparent) and 255 (fully opaque, the default). @@ -20,7 +19,6 @@ internal Testsrc2Filter(FilterGraph filterGraph) : base("testsrc2", filterGraph) public Testsrc2Filter Alpha(int alpha) => this.SetOptionRange("alpha", alpha, 0, 255); } - public static class Testsrc2FilterExtensions { public static Testsrc2Filter Testsrc2Filter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/TestsrcFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/TestsrcFilter.cs index 3a8774dc..37b9fc74 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/TestsrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/TestsrcFilter.cs @@ -10,7 +10,6 @@ internal TestsrcFilter(FilterGraph filterGraph) : base("testsrc", filterGraph) { AddMapOut(); } - /// /// Set the number of decimals to show in the timestamp, only available in the testsrc source.

/// The displayed timestamp value will correspond to the original timestamp value multiplied by the power of 10 of the specified value.(from 0 to 17) (default 0) @@ -20,7 +19,6 @@ internal TestsrcFilter(FilterGraph filterGraph) : base("testsrc", filterGraph) public TestsrcFilter Decimals(int n) => this.SetOptionRange("n", n, 0, 17); } - public static class TestsrcFilterExtensions { public static TestsrcFilter TestsrcFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/YuvtestsrcFilter.cs b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/YuvtestsrcFilter.cs index a27a821c..110be4aa 100644 --- a/FFmpegArgs.Filters/VideoSources/BaseVideoSources/YuvtestsrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BaseVideoSources/YuvtestsrcFilter.cs @@ -11,7 +11,6 @@ internal YuvtestsrcFilter(FilterGraph filterGraph) : base("yuvtestsrc", filterGr AddMapOut(); } } - public static class YuvtestsrcFilterExtensions { public static YuvtestsrcFilter YuvtestsrcFilter(this FilterGraph filterGraph) diff --git a/FFmpegArgs.Filters/VideoSources/BufferFilter.cs b/FFmpegArgs.Filters/VideoSources/BufferFilter.cs index 44aee697..920b9070 100644 --- a/FFmpegArgs.Filters/VideoSources/BufferFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/BufferFilter.cs @@ -1,8 +1,4 @@ -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters.Enums; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// ... buffer |->V Buffer video frames, and make them accessible to the filterchain.

@@ -14,15 +10,13 @@ internal BufferFilter(FilterGraph filterGraph) : base("buffer", filterGraph) { AddMapOut(); } - /// /// Specify the size (width and height) of the buffered video frames. /// /// /// public BufferFilter VideoSize(VideoSizeUtils videoSize) - => this.SetOption("video_size", videoSize.GetAttribute().Name); - + => this.SetOption("video_size", videoSize.GetEnumAttribute().Name); /// /// Specify the size (width and height) of the buffered video frames. /// @@ -30,7 +24,6 @@ public BufferFilter VideoSize(VideoSizeUtils videoSize) /// public BufferFilter VideoSize(Size videoSize) => this.SetOption("video_size", $"{videoSize.Width}x{videoSize.Height}"); - /// /// The input video width. /// @@ -38,7 +31,6 @@ public BufferFilter VideoSize(Size videoSize) /// public BufferFilter Width(int width) => this.SetOptionRange("width", width, 0, int.MaxValue); - /// /// The input video height. /// @@ -46,7 +38,6 @@ public BufferFilter Width(int width) /// public BufferFilter Height(int height) => this.SetOptionRange("width", height, 0, int.MaxValue); - /// /// A string representing the pixel format of the buffered video frames. It may be a number corresponding to a pixel format, or a pixel format name. /// @@ -54,7 +45,6 @@ public BufferFilter Height(int height) /// public BufferFilter PixFmt(PixFmt pix_fmt) => this.SetOption("pix_fmt", pix_fmt); - /// /// Specify the timebase assumed by the timestamps of the buffered frames.

(from 0 to DBL_MAX) (default 0/1) ///
@@ -62,7 +52,6 @@ public BufferFilter PixFmt(PixFmt pix_fmt) /// public BufferFilter TimeBase(Rational time_base) => this.SetOption("time_base", time_base.Check(0, INT_MAX)); - /// /// Specify the frame rate expected for the video stream.

(from 0 to DBL_MAX) (default 0/1) ///
@@ -70,7 +59,6 @@ public BufferFilter TimeBase(Rational time_base) /// public BufferFilter FrameRate(Rational frame_rate) => this.SetOption("frame_rate", frame_rate.Check(0, DBL_MAX)); - /// /// (pixel_aspect) The sample (pixel) aspect ratio of the input video.
///
sample aspect ratio (from 0 to DBL_MAX) (default 0/1) @@ -79,7 +67,6 @@ public BufferFilter FrameRate(Rational frame_rate) /// public BufferFilter Sar(Rational sar) => this.SetOption("sar", sar.Check(0, DBL_MAX)); - /// /// /// @@ -87,7 +74,9 @@ public BufferFilter Sar(Rational sar) public BufferFilter SwsParam(string sws_param) => this.SetOption("sws_param", sws_param); } - + /// + /// + /// public static class BufferFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoSources/CellautoFilter.cs b/FFmpegArgs.Filters/VideoSources/CellautoFilter.cs index 1f07df76..b4d1a07c 100644 --- a/FFmpegArgs.Filters/VideoSources/CellautoFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/CellautoFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Filters.Enums; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// ... cellauto |->V Create pattern generated by an elementary cellular automaton.

@@ -13,7 +10,6 @@ internal CellautoFilter(FilterGraph filterGraph) : base("cellauto", filterGraph) { AddMapOut(); } - /// /// Read the initial cellular automaton state, i.e. the starting row, from the specified file.
///
In the file, each non-whitespace character is considered an alive cell, a newline will terminate the row, and further characters in the file will be ignored. @@ -22,7 +18,6 @@ internal CellautoFilter(FilterGraph filterGraph) : base("cellauto", filterGraph) /// public CellautoFilter FileName(string fileName) => this.SetOption("f", fileName); - /// /// Read the initial cellular automaton state, i.e. the starting row, from the specified string. /// Each non-whitespace character in the string is considered an alive cell, a newline will terminate the row, and further characters in the string will be ignored. @@ -31,7 +26,6 @@ public CellautoFilter FileName(string fileName) /// public CellautoFilter Pattern(string p) => this.SetOption("p", p); - /// /// Set the video rate, that is the number of frames generated per second. Default is 25. /// @@ -39,7 +33,6 @@ public CellautoFilter Pattern(string p) /// public CellautoFilter Rate(float r) => this.SetOptionRange("r", r, 0, float.MaxValue); - /// /// Set the random fill ratio for the initial cellular automaton row. It is a floating point number value ranging from 0 to 1, defaults to 1/PHI. /// This option is ignored when a file or a pattern is specified. @@ -48,7 +41,6 @@ public CellautoFilter Rate(float r) /// public CellautoFilter RandomFillRatio(double ratio) => this.SetOptionRange("ratio", ratio, 0.0f, 1.0f); - /// /// Set the seed for filling randomly the initial row, must be an integer included between 0 and UINT32_MAX.
///
If not specified, or if explicitly set to -1, the filter will try to use a good random seed on a best effort basis. @@ -57,7 +49,6 @@ public CellautoFilter RandomFillRatio(double ratio) /// public CellautoFilter RandomSeed(long seed) => this.SetOptionRange("seed", seed, -1, uint.MaxValue); - /// /// Set the cellular automaton rule, it is a number ranging from 0 to 255. Default value is 110. /// @@ -65,7 +56,6 @@ public CellautoFilter RandomSeed(long seed) /// public CellautoFilter Rule(int rule) => this.SetOptionRange("rule", rule, 0, 255); - /// /// Set the size of the output video. For the syntax of this option.

/// If filename or pattern is specified, the size is set by default to the width of the specified initial state row, and the height is set to width* PHI.

@@ -75,8 +65,7 @@ public CellautoFilter Rule(int rule) /// /// public CellautoFilter Size(VideoSizeUtils videoSize) - => this.SetOption("s", videoSize.GetAttribute().Name); - + => this.SetOption("s", videoSize.GetEnumAttribute().Name); /// /// Set the size of the output video. For the syntax of this option.

/// If filename or pattern is specified, the size is set by default to the width of the specified initial state row, and the height is set to width* PHI.

@@ -86,7 +75,6 @@ public CellautoFilter Size(VideoSizeUtils videoSize) /// public CellautoFilter Size(Size size) => this.SetOption("s", $"{size.Width}x{size.Height}"); - /// /// If set to 1, scroll the output upward when all the rows in the output have been already filled.
///
If set to 0, the new generated row will be written over the top row just after the bottom row is filled. Defaults to 1. @@ -95,7 +83,6 @@ public CellautoFilter Size(Size size) /// public CellautoFilter Scroll(bool flag) => this.SetOption("scroll", flag.ToFFmpegFlag()); - /// /// If set to 1, completely fill the output with generated rows before outputting the first frame.
///
This is the default behavior, for disabling set the value to 0. @@ -104,7 +91,6 @@ public CellautoFilter Scroll(bool flag) /// public CellautoFilter StartFull(bool flag) => this.SetOption("full", flag.ToFFmpegFlag()); - /// /// If set to 1, stitch the left and right row edges together. This is the default behavior, for disabling set the value to 0. /// @@ -112,7 +98,6 @@ public CellautoFilter StartFull(bool flag) /// public CellautoFilter Stitch(bool flag) => this.SetOption("stitch", flag.ToFFmpegFlag()); - /// /// start filling the whole video (default true) /// @@ -121,7 +106,9 @@ public CellautoFilter Stitch(bool flag) public CellautoFilter Full(bool flag) => this.SetOption("full", flag.ToFFmpegFlag()); } - + /// + /// + /// public static class CellautoFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoSources/CoreimagesrcFilter.cs b/FFmpegArgs.Filters/VideoSources/CoreimagesrcFilter.cs index 08067592..bd29a435 100644 --- a/FFmpegArgs.Filters/VideoSources/CoreimagesrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/CoreimagesrcFilter.cs @@ -3,7 +3,6 @@ //public class CoreimagesrcFilter //{ //} - //public static class CoreimagesrcFilterExtensions //{ // ///Video source generated on GPU using Apple’s CoreImage API on OSX. diff --git a/FFmpegArgs.Filters/VideoSources/Frei0r_srcFilter.cs b/FFmpegArgs.Filters/VideoSources/Frei0r_srcFilter.cs index 323252bf..2408677e 100644 --- a/FFmpegArgs.Filters/VideoSources/Frei0r_srcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/Frei0r_srcFilter.cs @@ -3,7 +3,6 @@ //public class Frei0r_srcFilter //{ //} - //public static class Frei0r_srcFilterExtensions //{ ///Provide a frei0r source. diff --git a/FFmpegArgs.Filters/VideoSources/GradientsFilter.cs b/FFmpegArgs.Filters/VideoSources/GradientsFilter.cs index a74c9318..9d522ec5 100644 --- a/FFmpegArgs.Filters/VideoSources/GradientsFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/GradientsFilter.cs @@ -1,8 +1,4 @@ -using FFmpegArgs.Filters.Enums; -using System; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// .S. gradients |->V Draw a gradients.

@@ -14,7 +10,6 @@ internal GradientsFilter(FilterGraph filterGraph) : base("gradients", filterGrap { AddMapOut(); } - /// /// Set frame size.

/// Default value is "640x480". @@ -22,8 +17,7 @@ internal GradientsFilter(FilterGraph filterGraph) : base("gradients", filterGrap /// /// public GradientsFilter Size(VideoSizeUtils s) - => this.SetOption("s", s.GetAttribute().Name); - + => this.SetOption("s", s.GetEnumAttribute().Name); /// /// Set frame size.

/// Default value is "640x480". @@ -32,7 +26,6 @@ public GradientsFilter Size(VideoSizeUtils s) /// public GradientsFilter Size(Size s) => this.SetOption("s", $"{s.Width}x{s.Height}"); - /// /// Set frame rate, expressed as number of frames per second. Default value is "25". /// @@ -40,7 +33,6 @@ public GradientsFilter Size(Size s) /// public GradientsFilter Rate(int r) => this.SetOptionRange("r", r, 0, int.MaxValue); - /// /// Set 8 colors. Default values for colors is to pick random one. /// @@ -49,7 +41,6 @@ public GradientsFilter Rate(int r) /// public GradientsFilter Color(GradientsColorIndex colorIndex, Color color) => this.SetOption(colorIndex.ToString(), color.ToHexStringRGBA()); - /// /// Set gradient line source and destination points. If negative or out of range, random ones are picked. (from -1 to INT_MAX) (default -1) /// @@ -58,7 +49,6 @@ public GradientsFilter Color(GradientsColorIndex colorIndex, Color color) /// public GradientsFilter Points(GradientsPoint gradientsPoint, int val) => this.SetOptionRange(gradientsPoint.ToString(), val, -1, int.MaxValue); - /// /// Set number of colors to use at once. Allowed range is from 2 to 8. Default value is 2. /// @@ -66,7 +56,6 @@ public GradientsFilter Points(GradientsPoint gradientsPoint, int val) /// public GradientsFilter NbColors(int n) => this.SetOptionRange("n", n, 2, 8); - /// /// Set seed for picking gradient line points. (from -1 to UINT32_MAX) (default -1) /// @@ -74,7 +63,6 @@ public GradientsFilter NbColors(int n) /// public GradientsFilter Seed(uint seed) => this.SetOptionRange("seed", seed, -1, long.MaxValue); - /// /// Set the duration of the sourced video

/// If not specified, or the expressed duration is negative, the video is supposed to be generated forever. @@ -83,7 +71,6 @@ public GradientsFilter Seed(uint seed) /// public GradientsFilter Duration(TimeSpan d) => this.SetOptionRange("d", d, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Set speed of gradients rotation. (from 1e-05 to 1) (default 0.01) /// @@ -92,7 +79,9 @@ public GradientsFilter Duration(TimeSpan d) public GradientsFilter Speed(float speed) => this.SetOptionRange("speed", speed, 1e-05f, 1); } - + /// + /// + /// public static class GradientsFilterExtensions { /// @@ -103,7 +92,7 @@ public static class GradientsFilterExtensions public static GradientsFilter GradientsFilter(this FilterGraph filterGraph) => new GradientsFilter(filterGraph); } - +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member public enum GradientsColorIndex { c0, @@ -115,7 +104,6 @@ public enum GradientsColorIndex c6, c7, } - public enum GradientsPoint { x0, @@ -123,4 +111,5 @@ public enum GradientsPoint x1, y1, } +#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member } diff --git a/FFmpegArgs.Filters/VideoSources/LifeFilter.cs b/FFmpegArgs.Filters/VideoSources/LifeFilter.cs index 5a59480b..042808f9 100644 --- a/FFmpegArgs.Filters/VideoSources/LifeFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/LifeFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Expressions; -using FFmpegArgs.Filters.Enums; -using System.Drawing; - + namespace FFmpegArgs.Filters.VideoSources { /// @@ -15,7 +12,6 @@ internal LifeFilter(FilterGraph filterGraph) : base("life", filterGraph) { AddMapOut(); } - /// /// Set the file from which to read the initial grid state. In the file, each non-whitespace character is considered an alive cell, and newline is used to delimit the end of each row.

/// If this option is not specified, the initial grid is generated randomly. @@ -24,7 +20,6 @@ internal LifeFilter(FilterGraph filterGraph) : base("life", filterGraph) /// public LifeFilter FileName(string f) => this.SetOption("f", f); - /// /// Set frame rate, expressed as number of frames per second. Default value is "25". /// @@ -32,7 +27,6 @@ public LifeFilter FileName(string f) /// public LifeFilter Rate(int r) => this.SetOptionRange("r", r, 0, int.MaxValue); - /// /// Set the random fill ratio for the initial random grid. It is a floating point number value ranging from 0 to 1, defaults to 1/PHI.
///
It is ignored when a file is specified. @@ -41,7 +35,6 @@ public LifeFilter Rate(int r) /// public LifeFilter RandomFillRatio(double ratio) => this.SetOptionRange("ratio", ratio, 0, 1); - /// /// Set the seed for filling the initial random grid, must be an integer included between 0 and UINT32_MAX.
///
If not specified, or if explicitly set to -1, the filter will try to use a good random seed on a best effort basis. @@ -50,7 +43,6 @@ public LifeFilter RandomFillRatio(double ratio) /// public LifeFilter RandomSeed(long seed) => this.SetOptionRange("seed", seed, 0, uint.MaxValue); - /// /// Set the life rule.

/// A rule can be specified with a code of the kind "SNS/BNB", where NS and NB are sequences of numbers in the range 0-8, NS specifies the number of alive neighbor cells which make a live cell stay alive, and NB the number of alive neighbor cells which make a dead cell to become alive(i.e.to "born"). "s" and "b" can be used in place of "S" and "B", respectively.

@@ -61,7 +53,6 @@ public LifeFilter RandomSeed(long seed) /// public LifeFilter Rule(string rule) => this.SetOption("rule", rule); - /// /// Set the size of the output video

/// If filename is specified, the size is set by default to the same size of the input file.If size is set, it must contain the size specified in the input file, and the initial grid defined in that file is centered in the larger resulting area.

@@ -70,8 +61,7 @@ public LifeFilter Rule(string rule) /// /// public LifeFilter Size(VideoSizeUtils videoSize) - => this.SetOption("size", videoSize.GetAttribute().Name); - + => this.SetOption("size", videoSize.GetEnumAttribute().Name); /// /// Set the size of the output video

/// If filename is specified, the size is set by default to the same size of the input file.If size is set, it must contain the size specified in the input file, and the initial grid defined in that file is centered in the larger resulting area.

@@ -81,7 +71,6 @@ public LifeFilter Size(VideoSizeUtils videoSize) /// public LifeFilter Size(Size videoSize) => this.SetOption("size", $"{videoSize.Width}x{videoSize.Height}"); - /// /// If set to 1, stitch the left and right grid edges together, and the top and bottom edges also. Defaults to 1. /// @@ -89,7 +78,6 @@ public LifeFilter Size(Size videoSize) /// public LifeFilter Stitch(bool stitch) => this.SetOption("stitch", stitch.ToFFmpegFlag()); - /// /// Set cell mold speed.

/// If set, a dead cell will go from death_color to mold_color with a step of mold. mold can have a value from 0 to 255. @@ -98,7 +86,6 @@ public LifeFilter Stitch(bool stitch) /// public LifeFilter Mold(int mold) => this.SetOptionRange("mold", mold, 0, 255); - /// /// Set the color of living (or new born) cells. /// @@ -106,7 +93,6 @@ public LifeFilter Mold(int mold) /// public LifeFilter LifeColor(Color c) => this.SetOption("life_color", c.ToHexStringRGBA()); - /// /// Set the color of dead cells. If mold is set, this is the first color used to represent a dead cell. /// @@ -114,7 +100,6 @@ public LifeFilter LifeColor(Color c) /// public LifeFilter DeathColor(Color c) => this.SetOption("death_color", c.ToHexStringRGBA()); - /// /// Set mold color, for definitely dead and moldy cells. /// @@ -123,7 +108,9 @@ public LifeFilter DeathColor(Color c) public LifeFilter MoldColor(Color c) => this.SetOption("mold_color", c.ToHexStringRGBA()); } - + /// + /// + /// public static class LifeFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoSources/MandelbrotFilter.cs b/FFmpegArgs.Filters/VideoSources/MandelbrotFilter.cs index d178201f..a7ea0734 100644 --- a/FFmpegArgs.Filters/VideoSources/MandelbrotFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/MandelbrotFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Filters.Enums; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// ... mandelbrot |->V Render a Mandelbrot fractal.

@@ -13,7 +10,6 @@ internal MandelbrotFilter(FilterGraph filterGraph) : base("mandelbrot", filterGr { AddMapOut(); } - /// /// Set the terminal pts value. Default value is 400. /// @@ -21,7 +17,6 @@ internal MandelbrotFilter(FilterGraph filterGraph) : base("mandelbrot", filterGr /// public MandelbrotFilter EndPts(double end_pts) => this.SetOptionRange("end_pts", end_pts, 0, I64_MAX); - /// /// Set the terminal scale value. Must be a floating point value. Default value is 0.3. /// @@ -29,7 +24,6 @@ public MandelbrotFilter EndPts(double end_pts) /// public MandelbrotFilter EndScale(double end_scale) => this.SetOptionRange("end_scale", end_scale, 0, I64_MAX); - /// /// Set the inner coloring mode, that is the algorithm used to draw the Mandelbrot fractal internal region. /// @@ -37,7 +31,6 @@ public MandelbrotFilter EndScale(double end_scale) /// public MandelbrotFilter Inner(MandelbrotInnerColorMode colorMode) => this.SetOption("inner", colorMode); - /// /// Set the bailout value. (from 0 to FLT_MAX) (default 10) /// @@ -45,7 +38,6 @@ public MandelbrotFilter Inner(MandelbrotInnerColorMode colorMode) /// public MandelbrotFilter Bailout(double bailout) => this.SetOptionRange("bailout", bailout, 0, FLT_MAX); - /// /// Set the maximum of iterations performed by the rendering algorithm. (from 1 to INT_MAX) (default 7189) /// @@ -53,7 +45,6 @@ public MandelbrotFilter Bailout(double bailout) /// public MandelbrotFilter Maxiter(int maxiter) => this.SetOptionRange("maxiter", maxiter, 1, int.MaxValue); - /// /// Set outer coloring mode /// @@ -61,7 +52,6 @@ public MandelbrotFilter Maxiter(int maxiter) /// public MandelbrotFilter Outer(MandelbrotOuter outer) => this.SetOption("outer", outer); - /// /// Set frame rate, expressed as number of frames per second. Default value is "25". /// @@ -69,7 +59,6 @@ public MandelbrotFilter Outer(MandelbrotOuter outer) /// public MandelbrotFilter Rate(int r) => this.SetOptionRange("r", r, 0, int.MaxValue); - /// /// Set frame size.

/// Default value is "640x480". @@ -77,8 +66,7 @@ public MandelbrotFilter Rate(int r) /// /// public MandelbrotFilter Size(VideoSizeUtils s) - => this.SetOption("s", s.GetAttribute().Name); - + => this.SetOption("s", s.GetEnumAttribute().Name); /// /// Set frame size.

/// Default value is "640x480". @@ -87,7 +75,6 @@ public MandelbrotFilter Size(VideoSizeUtils s) /// public MandelbrotFilter Size(Size s) => this.SetOption("s", $"{s.Width}x{s.Height}"); - /// /// Set the initial scale value. from 0 to FLT_MAX) (default 3) /// @@ -95,7 +82,6 @@ public MandelbrotFilter Size(Size s) /// public MandelbrotFilter StartScale(double start_scale) => this.SetOptionRange("start_scale", start_scale, 0, FLT_MAX); - /// /// Set the initial x position. Must be a floating point value between -100 and 100.
///
Default value is -0.743643887037158704752191506114774. @@ -104,7 +90,6 @@ public MandelbrotFilter StartScale(double start_scale) /// public MandelbrotFilter StartX(decimal x) => this.SetOptionRange("start_x", x, -100, 100); - /// /// Set the initial y position. Must be a floating point value between -100 and 100.
///
Default value is -0.131825904205311970493132056385139. @@ -113,8 +98,6 @@ public MandelbrotFilter StartX(decimal x) /// public MandelbrotFilter StartY(decimal y) => this.SetOptionRange("start_y", y, -100, 100); - - /// /// set morph x frequency (from -FLT_MAX to FLT_MAX) (default 0.01) /// @@ -122,7 +105,6 @@ public MandelbrotFilter StartY(decimal y) /// public MandelbrotFilter morphxf(double morphxf) => this.SetOptionRange("morphxf", morphxf, double.MinValue, double.MaxValue); - /// /// set morph y frequency (from -FLT_MAX to FLT_MAX) (default 0.0123) /// @@ -131,7 +113,9 @@ public MandelbrotFilter morphxf(double morphxf) public MandelbrotFilter Morphyf(double morphyf) => this.SetOptionRange("morphyf", morphyf, double.MinValue, double.MaxValue); } - + /// + /// + /// public static class MandelbrotFilterExtensions { /// @@ -142,7 +126,7 @@ public static class MandelbrotFilterExtensions public static MandelbrotFilter MandelbrotFilter(this FilterGraph filterGraph) => new MandelbrotFilter(filterGraph); } - +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member public enum MandelbrotInnerColorMode { /// @@ -162,7 +146,6 @@ public enum MandelbrotInnerColorMode /// period } - public enum MandelbrotOuter { /// @@ -174,4 +157,5 @@ public enum MandelbrotOuter /// normalized_iteration_count } +#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member } diff --git a/FFmpegArgs.Filters/VideoSources/MptestsrcFilter.cs b/FFmpegArgs.Filters/VideoSources/MptestsrcFilter.cs index 4f54b0f2..bae4b2b7 100644 --- a/FFmpegArgs.Filters/VideoSources/MptestsrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/MptestsrcFilter.cs @@ -1,6 +1,4 @@ -using System; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// ... mptestsrc |->V Generate various test pattern.

@@ -12,7 +10,6 @@ internal MptestsrcFilter(FilterGraph filterGraph) : base("mptestsrc", filterGrap { AddMapOut(); } - /// /// Specify the frame rate of the sourced video, as the number of frames generated per second. It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a floating point number or a valid video frame rate abbreviation.

The default value is "25". ///
@@ -20,7 +17,6 @@ internal MptestsrcFilter(FilterGraph filterGraph) : base("mptestsrc", filterGrap /// public MptestsrcFilter Rate(Rational r) => this.SetOption("r", r); - /// /// Set the duration of the sourced video.

/// If not specified, or the expressed duration is negative, the video is supposed to be generated forever. @@ -29,7 +25,6 @@ public MptestsrcFilter Rate(Rational r) /// public MptestsrcFilter Duration(TimeSpan d) => this.SetOptionRange("d", d, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Set the number or the name of the test to perform. /// @@ -37,7 +32,6 @@ public MptestsrcFilter Duration(TimeSpan d) /// public MptestsrcFilter Test(MptestsrcTest test) => this.SetOption("test", test); - /// /// Set the maximum number of frames generated for each test, (from 1 to I64_MAX) (default 30) /// @@ -46,7 +40,6 @@ public MptestsrcFilter Test(MptestsrcTest test) public MptestsrcFilter MaxFrames(long m) => this.SetOptionRange("m", m, 1, int.MaxValue); } - public static class MptestsrcFilterExtensions { /// @@ -58,7 +51,6 @@ public static class MptestsrcFilterExtensions public static MptestsrcFilter MptestsrcFilter(this FilterGraph filterGraph) => new MptestsrcFilter(filterGraph); } - public enum MptestsrcTest { dc_luma, diff --git a/FFmpegArgs.Filters/VideoSources/OpenclsrcFilter.cs b/FFmpegArgs.Filters/VideoSources/OpenclsrcFilter.cs index 91a383aa..fd456dd3 100644 --- a/FFmpegArgs.Filters/VideoSources/OpenclsrcFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/OpenclsrcFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Filters.Enums; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// ... openclsrc |->V Generate video using an OpenCL program
@@ -15,7 +12,6 @@ internal OpenclsrcFilter(Size size, PixFmt format, FilterGraph filterGraph) : ba this.SetOption("s", $"{size.Width}x{size.Height}"); this.SetOption("format", format); } - /// /// OpenCL program source file. /// @@ -23,7 +19,6 @@ internal OpenclsrcFilter(Size size, PixFmt format, FilterGraph filterGraph) : ba /// public OpenclsrcFilter Source(string source) => this.SetOption("source", source); - /// /// Kernel name in program. /// @@ -31,7 +26,6 @@ public OpenclsrcFilter Source(string source) /// public OpenclsrcFilter Kernel(string kernel) => this.SetOption("kernel", kernel); - /// /// Number of frames generated every second. Default value is ’25’. /// @@ -40,7 +34,9 @@ public OpenclsrcFilter Kernel(string kernel) public OpenclsrcFilter Rate(int r) => this.SetOptionRange("r", r, 1, int.MaxValue); } - + /// + /// + /// public static class OpenclsrcFilterExtensions { /// diff --git a/FFmpegArgs.Filters/VideoSources/SierpinskiFilter.cs b/FFmpegArgs.Filters/VideoSources/SierpinskiFilter.cs index 44c8e95e..66f8289a 100644 --- a/FFmpegArgs.Filters/VideoSources/SierpinskiFilter.cs +++ b/FFmpegArgs.Filters/VideoSources/SierpinskiFilter.cs @@ -1,7 +1,4 @@ -using FFmpegArgs.Filters.Enums; -using System.Drawing; - -namespace FFmpegArgs.Filters.VideoSources +namespace FFmpegArgs.Filters.VideoSources { /// /// .S. sierpinski |->V Render a Sierpinski fractal.
@@ -13,7 +10,6 @@ internal SierpinskiFilter(FilterGraph filterGraph) : base("sierpinski", filterGr { AddMapOut(); } - /// /// Set frame size. For the syntax of this option.
///
Default value is "640x480". @@ -22,7 +18,6 @@ internal SierpinskiFilter(FilterGraph filterGraph) : base("sierpinski", filterGr /// public SierpinskiFilter Size(Size size) => this.SetOption("s", $"{size.Width}x{size.Height}"); - /// /// Set frame size. For the syntax of this option.
///
Default value is "640x480". @@ -30,8 +25,7 @@ public SierpinskiFilter Size(Size size) /// /// public SierpinskiFilter Size(VideoSizeUtils size) - => this.SetOption("s", size.GetAttribute().Name); - + => this.SetOption("s", size.GetEnumAttribute().Name); /// /// Set frame rate, expressed as number of frames per second. Default value is "25". /// @@ -39,7 +33,6 @@ public SierpinskiFilter Size(VideoSizeUtils size) /// public SierpinskiFilter Rate(int r) => this.SetOptionRange("r", r, 1, int.MaxValue); - /// /// Set seed which is used for random panning. /// @@ -47,7 +40,6 @@ public SierpinskiFilter Rate(int r) /// public SierpinskiFilter Seed(int seed) => this.SetOption("seed", (uint)seed); - /// /// Set max jump for single pan destination. Allowed range is from 1 to 10000. /// @@ -55,7 +47,6 @@ public SierpinskiFilter Seed(int seed) /// public SierpinskiFilter Jump(int jump) => this.SetOptionRange("jump", jump, 1, 10000); - /// /// Set fractal type, can be default carpet or triangle. /// @@ -64,16 +55,24 @@ public SierpinskiFilter Jump(int jump) public SierpinskiFilter Type(SierpinskiType type) => this.SetOption("type", type); } - + /// + /// + /// public static class SierpinskiFilterExtensions { + /// + /// + /// + /// + /// public static SierpinskiFilter SierpinskiFilter(this FilterGraph filterGraph) => new SierpinskiFilter(filterGraph); } - +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member public enum SierpinskiType { carpet, triangle } +#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member } diff --git a/FFmpegArgs.Inputs/AudioFileInput.cs b/FFmpegArgs.Inputs/AudioFileInput.cs index be0c4c18..18bb23c1 100644 --- a/FFmpegArgs.Inputs/AudioFileInput.cs +++ b/FFmpegArgs.Inputs/AudioFileInput.cs @@ -1,26 +1,32 @@ -using FFmpegArgs.Cores.Inputs; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Inputs +namespace FFmpegArgs.Inputs { + /// + /// + /// public class AudioFileInput : AudioInput { readonly string _filePath; + /// + /// + /// + /// + /// public AudioFileInput(string filePath) { if (string.IsNullOrEmpty(filePath)) throw new ArgumentNullException(nameof(filePath)); this._filePath = filePath; } - + /// + /// + /// + /// public override string ToString() { List args = new List() - { - GetArgs(), - _filePath.Contains(" ") ? $"-i \"{_filePath}\"" : $"-i {_filePath}" - }; + { + GetArgs(), + _filePath.Contains(" ") ? $"-i \"{_filePath}\"" : $"-i {_filePath}" + }; return $"{string.Join(" ", args.Where(x => !string.IsNullOrWhiteSpace(x)))}"; } } diff --git a/FFmpegArgs.Inputs/FFmpegArgs.Inputs.nuspec b/FFmpegArgs.Inputs/FFmpegArgs.Inputs.nuspec index 02688843..e489e45f 100644 --- a/FFmpegArgs.Inputs/FFmpegArgs.Inputs.nuspec +++ b/FFmpegArgs.Inputs/FFmpegArgs.Inputs.nuspec @@ -3,7 +3,7 @@ FFmpegArgs.Inputs - 1.1.1$build$ + 1.2.0$build$ Inputs for FFmpegArgs tqk2811 https://github.com/tqk2811/FFmpegArgs @@ -12,7 +12,7 @@ - + diff --git a/FFmpegArgs.Inputs/FilterInput.cs b/FFmpegArgs.Inputs/FilterInput.cs index 49d65a2d..74658cd2 100644 --- a/FFmpegArgs.Inputs/FilterInput.cs +++ b/FFmpegArgs.Inputs/FilterInput.cs @@ -1,8 +1,4 @@ using FFmpegArgs.Cores.Inputs; -using System; -using System.Collections.Generic; -using System.Linq; - namespace FFmpegArgs.Inputs { public class FilterInput : VideoInput @@ -13,13 +9,10 @@ public FilterInput(string filter) if (string.IsNullOrEmpty(filter)) throw new ArgumentNullException(nameof(filter)); this._filter_string = filter; } - public FilterGraph FilterGraph { get; } = new FilterGraph(); public FilterInput() { - } - /// /// /// @@ -33,19 +26,16 @@ public FilterInput AddFilter(Action filterGraph) filterGraph.Invoke(FilterGraph); return this; } - public override string ToString() { string filter = this._filter_string; if (string.IsNullOrWhiteSpace(filter)) filter = FilterGraph.GetFiltersInputArgs(); if (string.IsNullOrWhiteSpace(filter)) throw new NullReferenceException($"{nameof(FilterInput)} is empty"); - List args = new List() { GetArgs(), filter.Contains(" ") ? $"-f lavfi -i \"{filter}\"" : $"-f lavfi -i {filter}" }; - return $"{string.Join(" ", args.Where(x => !string.IsNullOrWhiteSpace(x)))}"; } } diff --git a/FFmpegArgs.Inputs/GlobalUsing.cs b/FFmpegArgs.Inputs/GlobalUsing.cs new file mode 100644 index 00000000..a09c091b --- /dev/null +++ b/FFmpegArgs.Inputs/GlobalUsing.cs @@ -0,0 +1,7 @@ +global using System; +global using System.Linq; +global using System.Collections; +global using System.Collections.Generic; +global using FFmpegArgs; +global using FFmpegArgs.Exceptions; +global using FFmpegArgs.Cores.Inputs; diff --git a/FFmpegArgs.Inputs/ImageFileInput.cs b/FFmpegArgs.Inputs/ImageFileInput.cs index 54046a30..1f8f65ae 100644 --- a/FFmpegArgs.Inputs/ImageFileInput.cs +++ b/FFmpegArgs.Inputs/ImageFileInput.cs @@ -1,19 +1,25 @@ -using FFmpegArgs.Cores.Inputs; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Inputs +namespace FFmpegArgs.Inputs { + /// + /// + /// public class ImageFileInput : ImageInput { readonly string _filePath; + /// + /// + /// + /// + /// public ImageFileInput(string filePath) { if (string.IsNullOrEmpty(filePath)) throw new ArgumentNullException(nameof(filePath)); this._filePath = filePath; } - + /// + /// + /// + /// public override string ToString() { List args = new List() diff --git a/FFmpegArgs.Inputs/ImageFilesConcatInput.cs b/FFmpegArgs.Inputs/ImageFilesConcatInput.cs index 0957ffa6..9fb249d9 100644 --- a/FFmpegArgs.Inputs/ImageFilesConcatInput.cs +++ b/FFmpegArgs.Inputs/ImageFilesConcatInput.cs @@ -1,11 +1,9 @@ -using FFmpegArgs.Cores.Inputs; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Inputs +namespace FFmpegArgs.Inputs { //https://stackoverflow.com/a/11175851/5034139 + /// + /// + /// public class ImageFilesConcatInput : ImageInput { /// @@ -18,12 +16,12 @@ public static ImageFilesConcatInput ConcatProtocol(IEnumerable files) { return new ImageFilesConcatInput($"concat:{string.Join("|", files)}");//filter } - /// /// Use this method when you want to avoid a re-encode and your format does not support file-level concatenation

/// (most files used by general users do not support file-level concatenation). ///
/// + /// /// public static ImageFilesConcatInput ConcatDemuxer(string textFile, bool safe = true) { @@ -32,7 +30,6 @@ public static ImageFilesConcatInput ConcatDemuxer(string textFile, bool safe = t result.SetOption("-f", "concat"); return result; } - /// /// Note: *.png Not a available on window

/// https://stackoverflow.com/a/31513542/5034139 @@ -48,11 +45,7 @@ public static ImageFilesConcatInput FromFilesSearch(string search) - - - readonly string _filePath; - /// /// /// @@ -62,14 +55,17 @@ private ImageFilesConcatInput(string input) if (string.IsNullOrEmpty(input)) throw new ArgumentNullException(nameof(input)); this._filePath = input; } - + /// + /// + /// + /// public override string ToString() { List args = new List() - { - GetArgs(), - _filePath.Contains(" ") ? $"-i \"{_filePath}\"" : $"-i {_filePath}" - }; + { + GetArgs(), + _filePath.Contains(" ") ? $"-i \"{_filePath}\"" : $"-i {_filePath}" + }; return $"{string.Join(" ", args.Where(x => !string.IsNullOrWhiteSpace(x)))}"; } } diff --git a/FFmpegArgs.Inputs/InputExtensions.cs b/FFmpegArgs.Inputs/InputExtensions.cs index 38aead80..939af9e3 100644 --- a/FFmpegArgs.Inputs/InputExtensions.cs +++ b/FFmpegArgs.Inputs/InputExtensions.cs @@ -1,25 +1,37 @@ -using FFmpegArgs.Cores.Inputs; -using FFmpegArgs.Exceptions; - -namespace FFmpegArgs.Inputs +namespace FFmpegArgs.Inputs { /// /// https://ffmpeg.org/ffmpeg.html#Main-options /// public static class InputExtensions { + /// + /// + /// + /// + /// + /// + /// + /// public static T StreamLoop(this T baseInput, int number) where T : BaseInput { if (number < -1) throw new InvalidRangeException($"{nameof(number)} should be >= -1"); return baseInput.SetOption("-stream_loop", number.ToString()); } + /// + /// + /// + /// + /// + /// + /// + /// public static T Loop(this T baseInput, int number) where T : BaseInput { if (number <= 0) throw new InvalidRangeException($"{nameof(number)} <= 0"); return baseInput.SetOption("-loop", number.ToString()); } - /// /// Limit input read speed.
///
Its value is a floating-point positive number which represents the maximum duration of media, in seconds, that should be ingested in one second of wallclock time.Default value is zero and represents no imposed limitation on speed of ingestion.Value 1 represents real-time speed and is equivalent to -re.
diff --git a/FFmpegArgs.Inputs/VideoFileInput.cs b/FFmpegArgs.Inputs/VideoFileInput.cs index 6997e36a..07060bb0 100644 --- a/FFmpegArgs.Inputs/VideoFileInput.cs +++ b/FFmpegArgs.Inputs/VideoFileInput.cs @@ -1,33 +1,33 @@ -using FFmpegArgs.Cores.Inputs; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Inputs +namespace FFmpegArgs.Inputs { + /// + /// + /// public class VideoFileInput : VideoInput { readonly string _filePath; + /// + /// + /// + /// + /// public VideoFileInput(string filePath) { if (string.IsNullOrEmpty(filePath)) throw new ArgumentNullException(nameof(filePath)); this._filePath = filePath; } - + /// + /// + /// + /// public override string ToString() { List args = new List() - { - GetArgs(), - _filePath.Contains(" ") ? $"-i \"{_filePath}\"" : $"-i {_filePath}" - }; + { + GetArgs(), + _filePath.Contains(" ") ? $"-i \"{_filePath}\"" : $"-i {_filePath}" + }; return $"{string.Join(" ", args.Where(x => !string.IsNullOrWhiteSpace(x)))}"; } } - - - public static class VideoFileInputExtension - { - - } } diff --git a/FFmpegArgs.Outputs/AudioFileOutput.cs b/FFmpegArgs.Outputs/AudioFileOutput.cs index 390f340f..7665729e 100644 --- a/FFmpegArgs.Outputs/AudioFileOutput.cs +++ b/FFmpegArgs.Outputs/AudioFileOutput.cs @@ -1,20 +1,26 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Cores.Outputs; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Outputs +namespace FFmpegArgs.Outputs { + /// + /// + /// public class AudioFileOutput : AudioOutput { readonly string _filePath; + /// + /// + /// + /// + /// + /// public AudioFileOutput(string filePath, AudioMap audioMap) : base(audioMap) { if (string.IsNullOrEmpty(filePath)) throw new ArgumentNullException(nameof(filePath)); this._filePath = filePath; } - + /// + /// + /// + /// public override string ToString() { List args = new List() diff --git a/FFmpegArgs.Outputs/FFmpegArgs.Outputs.nuspec b/FFmpegArgs.Outputs/FFmpegArgs.Outputs.nuspec index 66b466e8..43cc7448 100644 --- a/FFmpegArgs.Outputs/FFmpegArgs.Outputs.nuspec +++ b/FFmpegArgs.Outputs/FFmpegArgs.Outputs.nuspec @@ -3,7 +3,7 @@ FFmpegArgs.Outputs - 1.1.1$build$ + 1.2.0$build$ Outputs for FFmpegArgs tqk2811 https://github.com/tqk2811/FFmpegArgs @@ -12,7 +12,7 @@ - + diff --git a/FFmpegArgs.Outputs/GlobalUsing.cs b/FFmpegArgs.Outputs/GlobalUsing.cs new file mode 100644 index 00000000..b0554b42 --- /dev/null +++ b/FFmpegArgs.Outputs/GlobalUsing.cs @@ -0,0 +1,10 @@ +global using System; +global using System.Linq; +global using System.Collections; +global using System.Collections.Generic; +global using FFmpegArgs; +global using FFmpegArgs.Utils; +global using FFmpegArgs.Exceptions; +global using FFmpegArgs.Cores; +global using FFmpegArgs.Cores.Maps; +global using FFmpegArgs.Cores.Outputs; \ No newline at end of file diff --git a/FFmpegArgs.Outputs/ImageFileOutput.cs b/FFmpegArgs.Outputs/ImageFileOutput.cs index 7dfdb58f..c014c386 100644 --- a/FFmpegArgs.Outputs/ImageFileOutput.cs +++ b/FFmpegArgs.Outputs/ImageFileOutput.cs @@ -1,21 +1,26 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Cores.Outputs; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Outputs +namespace FFmpegArgs.Outputs { + /// + /// + /// public class ImageFileOutput : ImageOutput { readonly string _filePath; + /// + /// + /// + /// + /// + /// public ImageFileOutput(string filePath, ImageMap imageMap) : base(imageMap) { if (string.IsNullOrEmpty(filePath)) throw new ArgumentNullException(nameof(filePath)); this._filePath = filePath; } - - + /// + /// + /// + /// public override string ToString() { List args = new List() diff --git a/FFmpegArgs.Outputs/OutputExtensions.cs b/FFmpegArgs.Outputs/OutputExtensions.cs index 0ec7917d..67ff5413 100644 --- a/FFmpegArgs.Outputs/OutputExtensions.cs +++ b/FFmpegArgs.Outputs/OutputExtensions.cs @@ -1,10 +1,8 @@ -using FFmpegArgs.Cores; -using FFmpegArgs.Cores.Outputs; -using FFmpegArgs.Filters; -using System; - -namespace FFmpegArgs.Outputs +namespace FFmpegArgs.Outputs { + /// + /// + /// public static class OutputExtensions { /// @@ -16,17 +14,15 @@ public static class OutputExtensions /// public static T LimitSize(this T t, long limit_size) where T : BaseOutput => t.SetOptionRange("-fs", limit_size, 1, long.MaxValue); - /// /// Set the recording timestamp in the container. /// /// /// - /// + /// /// public static T Timestamp(this T t, DateTime localdate) where T : BaseOutput => t.SetOption("-timestamp", localdate.ToString("YYYYMMDD HHMMSS")); - /// /// Specify target file type (vcd, svcd, dvd, dv, dv50). type may be prefixed with pal-, ntsc- or film- to use the corresponding standard. All the format options (bitrate, codecs, buffer sizes) are then set automatically. /// @@ -36,7 +32,6 @@ public static T Timestamp(this T t, DateTime localdate) where T : BaseOutput /// public static T Target(this T output, string type) where T : BaseOutput => output.SetOption("-target", type); - /// /// Set the number of data frames to output. This is an obsolete alias for -frames:d, which you should use instead. /// @@ -46,7 +41,6 @@ public static T Target(this T output, string type) where T : BaseOutput /// public static T Dframes(this T output, int dframes) where T : BaseOutput => output.SetOption("-dframes", dframes); - /// /// Stop writing to the stream after framecount frames. /// @@ -68,9 +62,7 @@ public static T Framecount(this T output, long framecount, int? stream_specif output.SetOptionRange($"-frames:{stream_specifier.Value}", framecount, 0, long.MaxValue); } return output; - } - /// /// Use fixed quality scale (VBR). The meaning of q/qscale is codec-dependent. If qscale is used without a stream_specifier then it applies only to the video stream, this is to maintain compatibility with previous behavior and as specifying the same codec specific value to 2 different codecs that is audio and video generally is not what is intended when no stream_specifier is used. /// @@ -92,9 +84,7 @@ public static T Qscale(this T output, string qscale, int? stream_specifier = output.SetOption($"-q:{stream_specifier.Value}", qscale); } return output; - } - /// /// Set the number of video frames to output. This is an obsolete alias for -frames:v, which you should use instead. /// @@ -104,7 +94,6 @@ public static T Qscale(this T output, string qscale, int? stream_specifier = /// public static T Vframes(this T output, int vsync) where T : BaseOutput, IImage => output.SetOption("-vframes", vsync); - /// /// Set maximum frame rate (Hz value, fraction or abbreviation).
///
Clamps output frame rate when output framerate is auto-set and is higher than this value.Useful in batch processing or when input framerate is wrongly detected as very high.It cannot be set together with -r.It is ignored during streamcopy. @@ -127,9 +116,7 @@ public static T Fpsmax(this T output, int fps, int? stream_specifier = null) output.SetOptionRange($"-fpsmax:{stream_specifier.Value}", fps, 0, int.MaxValue); } return output; - } - /// /// Set the video display aspect ratio specified by aspect.
///
aspect can be a floating point number string, or a string of the form num:den, where num and den are the numerator and denominator of the aspect ratio.For example "4:3", "16:9", "1.3333", and "1.7777" are valid argument values.
@@ -153,12 +140,17 @@ public static T Aspect(this T output, Rational aspect, int? stream_specifier output.SetOption($"-aspect:{stream_specifier.Value}", aspect); } return output; - } + /// + /// + /// + /// + /// + /// + /// public static T VCodec(this T output, string codec) where T : BaseOutput, IImage => output.SetOption("-vcodec", codec); - /// /// Video sync method. For compatibility reasons old values can be specified as numbers. Newly added values will have to be specified as strings always. /// @@ -169,8 +161,6 @@ public static T VCodec(this T output, string codec) where T : BaseOutput, IIm public static T VSync(this T output, VSyncMethod vsync) where T : BaseOutput, IImage => output.SetOption("-vsync", vsync); - - /// /// Set the number of audio frames to output. This is an obsolete alias for -frames:a, which you should use instead. /// @@ -180,7 +170,6 @@ public static T VSync(this T output, VSyncMethod vsync) where T : BaseOutput, /// public static T Aframes(this T output, int aframes) where T : BaseOutput, IAudio => output.SetOption("-aframes", aframes); - /// /// Set the audio quality (codec-specific, VBR). This is an alias for -q:a. /// @@ -190,7 +179,6 @@ public static T Aframes(this T output, int aframes) where T : BaseOutput, IAu /// public static T AQ(this T output, string q) where T : BaseOutput, IAudio => output.SetOption("-aq", q); - /// /// Set the audio sample format. Use -sample_fmts to get a list of supported sample formats. /// @@ -212,9 +200,7 @@ public static T SampleFmt(this T output, string sample_fmt, int? stream_speci output.SetOption($"-sample_fmt:{stream_specifier.Value}", sample_fmt); } return output; - } - /// /// Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. -async 1 is a special case where only the start of the audio stream is corrected without any later correction.
///
Note that the timestamps may be further modified by the muxer, after this. For example, in the case that the format option avoid_negative_ts is enabled.
@@ -227,11 +213,24 @@ public static T SampleFmt(this T output, string sample_fmt, int? stream_speci public static T ASync(this T output, int async) where T : BaseOutput, IAudio => output.SetOption("-async", async); + /// + /// + /// + /// + /// + /// + /// public static T VideoBitrate(this T t, long bitRate) where T : BaseOutput, IImage => t.SetOptionRange("-b:v", bitRate, 1, long.MaxValue); + /// + /// + /// + /// + /// + /// + /// public static T AudioBitrate(this T t, long bitRate) where T : BaseOutput, IAudio => t.SetOptionRange("-b:a", bitRate, 1, long.MaxValue); - } } diff --git a/FFmpegArgs.Outputs/VSyncMethod.cs b/FFmpegArgs.Outputs/VSyncMethod.cs index 484fee25..702f343f 100644 --- a/FFmpegArgs.Outputs/VSyncMethod.cs +++ b/FFmpegArgs.Outputs/VSyncMethod.cs @@ -1,5 +1,8 @@ namespace FFmpegArgs.Outputs { + /// + /// + /// public enum VSyncMethod { /// diff --git a/FFmpegArgs.Outputs/VideoFileOutput.cs b/FFmpegArgs.Outputs/VideoFileOutput.cs index 7fd88fb8..5f5869d8 100644 --- a/FFmpegArgs.Outputs/VideoFileOutput.cs +++ b/FFmpegArgs.Outputs/VideoFileOutput.cs @@ -1,20 +1,27 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Cores.Outputs; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace FFmpegArgs.Outputs +namespace FFmpegArgs.Outputs { + /// + /// + /// public class VideoFileOutput : VideoOutput { readonly string _filePath; + /// + /// + /// + /// + /// + /// + /// public VideoFileOutput(string filePath, ImageMap imageMap, AudioMap audioMap) : base(imageMap, audioMap) { if (string.IsNullOrEmpty(filePath)) throw new ArgumentNullException(nameof(filePath)); this._filePath = filePath; } - + /// + /// + /// + /// public override string ToString() { List args = new List() diff --git a/FFmpegArgs.Test/FFmpegArgTest.cs b/FFmpegArgs.Test/FFmpegArgTest.cs index 6631aa6b..5b6013fc 100644 --- a/FFmpegArgs.Test/FFmpegArgTest.cs +++ b/FFmpegArgs.Test/FFmpegArgTest.cs @@ -1,17 +1,4 @@ -using FFmpegArgs.Executes; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.Drawing; -using System.IO; -using System.Linq; -namespace FFmpegArgs.Test +namespace FFmpegArgs.Test { [TestClass] public class FFmpegArgTest @@ -20,29 +7,23 @@ public class FFmpegArgTest public void Test1() { FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); - var green_video = ffmpegArg.AddVideoInput(new VideoFileInput(@"chromakey.mp4") .SsPosition(TimeSpan.FromSeconds(0.5))); var background_video = ffmpegArg.AddVideoInput(new VideoFileInput(@"background.mp4") .SsPosition(TimeSpan.FromSeconds(1)) .ToPosition(TimeSpan.FromSeconds(10))); - var color_keys = green_video.ImageMaps.First() .ColorKeyFilter(Color.FromArgb(101, 220, 8)).Similarity(0.25f)//ColorKey .Enable("between(t,0,10)").MapOut//ITimelineSupport .ScaleFilter().W("iw/3").H("ih/3").MapOut .SplitFilter(2).MapsOut;//Scale - var overlay = color_keys.First() //overlay color_key on-center background_video .OverlayFilterOn(background_video.ImageMaps.First()).X("(W-w)/2").Y("(H-h)/2").MapOut; - ffmpegArg.AddOutput(new VideoFileOutput($"{nameof(FFmpegArgTest)}-{nameof(Test1)}.mp4", overlay, background_video.AudioMaps.First()).Fps(24)); ffmpegArg.AddOutput(new VideoFileOutput($"{nameof(FFmpegArgTest)}-{nameof(Test1)}2.mp4", color_keys.Last(), background_video.AudioMaps.First()).Fps(30)); - var command = ffmpegArg.GetFullCommandline(); } - [TestMethod] public void Test2() { @@ -53,28 +34,22 @@ public void Test2() double imageDuration = 2; double animationDuration = 1; double rotateSpeed = 2;//2 * 2PI radian/sec - FFmpegArg ffmpegArg = new FFmpegArg(); ffmpegArg.OverWriteOutput(); - var background = ffmpegArg.FilterGraph.ColorFilter() .Color(Color.FromArgb(00, 100, 00)) .Size(new Size(out_w, out_h)); - var images = ImageFilesConcatInput.FromFilesSearch(@"D:\temp\ffmpeg_encode_test\ImgsTest\img%d.jpg"); images.SetOption("-r", 1 / (imageDuration + animationDuration)); var images_map = ffmpegArg.AddImageInput(images); var pad = images_map.PadFilter().W("ceil(iw/2)*2").H("ceil(ih/2)*2");//fix image size not % 2 = 0 var format = pad.MapOut.FormatFilter(PixFmt.rgba); var scale = format.MapOut.ScaleFilter().W($"if(gte(iw/ih,{out_w}/{out_h}),min(iw,{out_w}),-1)").H($"if(gte(iw/ih,{out_w}/{out_h}),-1,min(ih,{out_h}))"); - //rotate {animationDuration} sec and stop rotate {imageDuration} sec string _whenRotate = $"between(t,n*({imageDuration} + {animationDuration}),n *({imageDuration} + {animationDuration})+{animationDuration})"; string _rotate = $"2*PI*t*{rotateSpeed}"; string _nonRotate = $"2*PI*{rotateSpeed}*(n+{animationDuration})"; var rotate = scale.MapOut.RotateFilter().Angle($"if({_whenRotate},{_rotate},{_nonRotate})"); - - string _whenMove = $"between(t,n*({imageDuration} + {animationDuration}),n *({imageDuration} + {animationDuration})+{animationDuration})"; string _move = $"-main_w/2 + main_w * (t - n*({imageDuration} + {animationDuration}))/({imageDuration} + {animationDuration})"; string _stopMove = $"main_w/2"; @@ -83,11 +58,8 @@ public void Test2() var videout = new ImageFileOutput($"{nameof(FFmpegArgTest)}-{nameof(Test2)}.mp4", overlay.MapOut); videout.Fps(24); ffmpegArg.AddOutput(videout); - var command = ffmpegArg.GetFullCommandline(); } - - [TestMethod] [ExpectedException(typeof(InvalidOperationException))] public void TestFilterInput() @@ -95,36 +67,27 @@ public void TestFilterInput() string outputFileName = $"{nameof(TestFilterInput)}.mp4"; string filterFileName = $"{nameof(TestFilterInput)}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); - FilterInput filterInput = new FilterInput(); filterInput.FilterGraph.ColorFilter().Color(Color.Red).Size(new Size(1280,720)).MapOut .FpsFilter().Fps(25); filterInput.FilterGraph.ColorFilter().Color(Color.Green).Size(new Size(1280/2, 720/2)).MapOut .FpsFilter().Fps(25); - var videos = ffmpegArg.AddVideoInput(filterInput, 2, 0); - var output = videos.ImageMaps.Last().OverlayFilterOn(videos.ImageMaps.First()).X("(W-w)/2").Y("(H-h)/2").MapOut; - ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, output); ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - [TestMethod] public void TestStringEscape() { string outputFileName = $"{nameof(TestStringEscape)}.mp4"; string filterFileName = $"{nameof(TestStringEscape)}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); - FilterInput filterInput = new FilterInput(); filterInput.FilterGraph.ColorFilter().Color(Color.Red).Size(new Size(1280, 720)).MapOut .FpsFilter().Fps(25); var videos = ffmpegArg.AddVideoInput(filterInput, 1, 0); - var output = videos.ImageMaps.First() .DrawTextFilter() .Text("this is a 'string\\': m\\: \n\t\rabc,\" [or more], 的 日本国 日本;") @@ -134,11 +97,9 @@ public void TestStringEscape() .FontSize("36") .MapOut ; - ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, output) .Duration(TimeSpan.FromSeconds(3)); ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/FFmpegArgs.Test.csproj b/FFmpegArgs.Test/FFmpegArgs.Test.csproj index 8a842a81..b12d57fd 100644 --- a/FFmpegArgs.Test/FFmpegArgs.Test.csproj +++ b/FFmpegArgs.Test/FFmpegArgs.Test.csproj @@ -29,6 +29,7 @@ + diff --git a/FFmpegArgs.Test/FFmpegExpressionTest.cs b/FFmpegArgs.Test/FFmpegExpressionTest.cs index 394f864d..f037c130 100644 --- a/FFmpegArgs.Test/FFmpegExpressionTest.cs +++ b/FFmpegArgs.Test/FFmpegExpressionTest.cs @@ -1,7 +1,3 @@ -using FFmpegArgs.Expressions; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Collections.Generic; - namespace FFmpegArgs.Test { [TestClass] @@ -13,42 +9,36 @@ public void Test1() FFmpegExpression expression = new FFmpegExpression(new List() { }); Assert.AreEqual("2.2 3 max_2 3 / PI * sin_1", expression.Check("sin(max(2.2,3)/3*PI)")); } - [TestMethod] public void Test2() { FFmpegExpression expression = new FFmpegExpression(new List() { "w", "h", "W", "H" }); Assert.AreEqual("w h max_2 W / PI * sin_1 -", expression.Check("-sin(max(w,h)/W*PI)")); } - [TestMethod] public void Test3() { FFmpegExpression expression = new FFmpegExpression(new List() { }); Assert.AreEqual("2 3 4 * max_2 3 / PI * sin_1", expression.Check("sin(max(2,3*4)/3*PI)")); } - [TestMethod] public void Test4() { FFmpegExpression expression = new FFmpegExpression(new List() { "t" }); Assert.AreEqual("t 10 3 60 * between_3", expression.Check("between(t,10,3*60)")); } - [TestMethod] public void Test5() { FFmpegExpression expression = new FFmpegExpression(new List() { "t" }); Assert.AreEqual("t 10 3 60 * between_3", expression.Check("between(t,10,3*60)")); } - [TestMethod] public void Test6() { FFmpegExpression expression = new FFmpegExpression(new List() { "t" }); Assert.AreEqual("t 10 t * 3 3 PI * sin_1 * between_3", expression.Check("between(t,10*t,3*sin(3*PI))")); } - [TestMethod] public void Test7() { diff --git a/FFmpegArgs.Test/FilterTest/DrawTextTest.cs b/FFmpegArgs.Test/FilterTest/DrawTextTest.cs index 005a5723..95e564a2 100644 --- a/FFmpegArgs.Test/FilterTest/DrawTextTest.cs +++ b/FFmpegArgs.Test/FilterTest/DrawTextTest.cs @@ -1,23 +1,10 @@ -using FFmpegArgs.Executes; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.Drawing; -using System.IO; -using System.Linq; + namespace FFmpegArgs.Test.FilterTest { [TestClass] public class DrawTextTest { - [TestMethod] public void DrawText() { @@ -27,13 +14,11 @@ public void DrawText() int y = 500; FFmpegArg ffmpegArg = new FFmpegArg(); ffmpegArg.OverWriteOutput(); - FilterInput filterInput = new FilterInput(); filterInput.FilterGraph .ColorFilter().Color(Color.Red).Size(videoSize).MapOut .FpsFilter().Fps(fps); var videos = ffmpegArg.AddVideoInput(filterInput, 1, 0); - string from = $"main_w"; string to = $"-text_w"; string range = $"(main_w+text_w)";//from - to @@ -41,7 +26,6 @@ public void DrawText() string durationFrame = $"({range}/{pixelPerFrame})"; string time = $"mod(n,{durationFrame})";//from 0 to durationFrame, durationFrame + 1 -> durationFrame*2,...... string x = $"{from}-{time}*{pixelPerFrame}"; - var output = videos.ImageMaps.First() .DrawTextFilter() .Text("Bản dịch chính xác cho dòng thứ 2: Theo những gì tôi \"nghe ngóng\" được, có thể là Zhongli và Ganyu. Nhưng không có chứng cứ nên phần lớn là Xiao.") @@ -51,11 +35,9 @@ public void DrawText() .FontSize("36") .MapOut ; - ImageFileOutput imageFileOutput = new ImageFileOutput("DrawTextTest.DrawText.mp4", output) .Duration(TimeSpan.FromSeconds(30)).Fps(fps); ffmpegArg.AddOutput(imageFileOutput); - FFmpegRender fFmpegRender = ffmpegArg.Render(new FFmpegRenderConfig() { WorkingDirectory = Directory.GetCurrentDirectory(), @@ -65,8 +47,5 @@ public void DrawText() Assert.IsTrue(renderResult.ExitCode == 0); Process.Start("ffplay", "DrawTextTest.DrawText.mp4"); } - - - } } diff --git a/FFmpegArgs.Test/GlobalUsing.cs b/FFmpegArgs.Test/GlobalUsing.cs new file mode 100644 index 00000000..88c6c078 --- /dev/null +++ b/FFmpegArgs.Test/GlobalUsing.cs @@ -0,0 +1,25 @@ +global using Microsoft.VisualStudio.TestTools.UnitTesting; +global using System; +global using System.IO; +global using System.Diagnostics; +global using System.Drawing; +global using System.Linq; +global using System.Collections; +global using System.Collections.Generic; +global using FFmpegArgs; +global using FFmpegArgs.Enums; +global using FFmpegArgs.Expressions; +global using FFmpegArgs.Attributes; +global using FFmpegArgs.Exceptions; +global using FFmpegArgs.Cores.Inputs; +global using FFmpegArgs.Cores.Filters; +global using FFmpegArgs.Cores.Maps; +global using FFmpegArgs.Filters; +global using FFmpegArgs.Filters.AudioFilters; +global using FFmpegArgs.Filters.VideoFilters; +global using FFmpegArgs.Filters.MultimediaFilters; +global using FFmpegArgs.Filters.VideoSources; +global using FFmpegArgs.Filters.AudioSources; +global using FFmpegArgs.Executes; +global using FFmpegArgs.Inputs; +global using FFmpegArgs.Outputs; \ No newline at end of file diff --git a/FFmpegArgs.Test/Render.cs b/FFmpegArgs.Test/Render.cs index 5865975a..de68f7b6 100644 --- a/FFmpegArgs.Test/Render.cs +++ b/FFmpegArgs.Test/Render.cs @@ -1,13 +1,4 @@ -using FFmpegArgs.Executes; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace FFmpegArgs.Test +namespace FFmpegArgs.Test { internal static class Render { @@ -22,6 +13,5 @@ internal static void TestRender(this FFmpegArg ffmpegArg,string filterFileName, #endif #endif } - } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/BarsOne.cs b/FFmpegArgs.Test/TanersenerSlideShow/BarsOne.cs index 3c69b3d5..7dce037b 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/BarsOne.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/BarsOne.cs @@ -1,21 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; -using System.Diagnostics; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -28,31 +12,21 @@ public void BarsOneVerticalTest_Blur() Config config = new Config(); BarsOneVerticalTest(config,ScreenMode.Blur); } - - public void BarsOneVerticalTest(Config config, ScreenMode screenMode) { string outputFileName = $"{nameof(BarsOneVerticalTest)}-{screenMode}.mp4"; string filterFileName = $"{nameof(BarsOneVerticalTest)}-{screenMode}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - int BAR_COUNT = 16; - TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - var blendeds = startEnd.Blendeds(config, blend => blend .Shortest(true) .All_Expr($"if((lte(mod(X,({config.Size.Width}/{BAR_COUNT})),({config.Size.Width}/{BAR_COUNT})*T/{config.TransitionDuration.TotalSeconds})),A,B)")); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -61,51 +35,30 @@ public void BarsOneVerticalTest(Config config, ScreenMode screenMode) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - - - - - - - - [TestMethod] public void BarsOneHorizontalTest_Blur() { Config config = new Config(); BarsOneHorizontalTest(config, ScreenMode.Blur); } - - public void BarsOneHorizontalTest(Config config, ScreenMode screenMode) { string outputFileName = $"{nameof(BarsOneHorizontalTest)}-{screenMode}.mp4"; string filterFileName = $"{nameof(BarsOneHorizontalTest)}-{screenMode}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - int BAR_COUNT = 16; - TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - var blendeds = startEnd.Blendeds(config, blend => blend .Shortest(true) .All_Expr($"if((lte(mod(Y,({config.Size.Height}/{BAR_COUNT})),({config.Size.Height}/{BAR_COUNT})*T/{config.TransitionDuration.TotalSeconds})),A,B)")); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -114,9 +67,7 @@ public void BarsOneHorizontalTest(Config config, ScreenMode screenMode) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/BlurredBackground.cs b/FFmpegArgs.Test/TanersenerSlideShow/BlurredBackground.cs index 3c606d69..f05aef3d 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/BlurredBackground.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/BlurredBackground.cs @@ -1,18 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Executes; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Drawing; -using System.IO; -using System.Linq; + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -29,24 +15,17 @@ public void BlurredBackgroundTest() //=>FadeInOne string filterFileName = $"{nameof(BlurredBackgroundTest)}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(ScreenMode.Blur, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - var blendeds = startEnd.Blendeds(config, blend => blend .Shortest(true) .All_Expr( $"A*(if( gte(T,{config.TransitionDuration.TotalSeconds}),{config.TransitionDuration.TotalSeconds},T/{config.TransitionDuration.TotalSeconds})) + " + $"B*(1-(if(gte(T,{config.TransitionDuration.TotalSeconds}),{config.TransitionDuration.TotalSeconds},T/{config.TransitionDuration.TotalSeconds})))")); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -55,9 +34,7 @@ public void BlurredBackgroundTest() //=>FadeInOne .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/CheckerBoard.cs b/FFmpegArgs.Test/TanersenerSlideShow/CheckerBoard.cs index f1c22005..0e961e5e 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/CheckerBoard.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/CheckerBoard.cs @@ -1,21 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; -using System.Diagnostics; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -29,18 +13,13 @@ public void CheckerBoardTest() string filterFileName = $"{nameof(CheckerBoardTest)}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; ScreenMode screenMode = ScreenMode.Blur; int CELL_SIZE = 64; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - var blendeds = startEnd.Blendeds(config, blend => blend .Shortest(true) .All_Expr( @@ -55,9 +34,7 @@ public void CheckerBoardTest() $")" + $",B" + $",A)")); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -66,9 +43,7 @@ public void CheckerBoardTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Clock.cs b/FFmpegArgs.Test/TanersenerSlideShow/Clock.cs index cc7c149d..4d2988b6 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Clock.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Clock.cs @@ -1,21 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; -using System.Diagnostics; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -27,25 +11,17 @@ public void ClockTest_Blur() { ClockTest(ScreenMode.Blur); } - - - public void ClockTest(ScreenMode screenMode) { string outputFileName = $"{nameof(ClockTest)}-{screenMode}.mp4"; string filterFileName = $"{nameof(ClockTest)}-{screenMode}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - string expr = $"if(" + $"lte(T,0.125)," + $"if(" + @@ -92,9 +68,7 @@ public void ClockTest(ScreenMode screenMode) var blendeds = startEnd.Blendeds(config, blend => blend .Shortest(true) .All_Expr(expr)); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -103,46 +77,29 @@ public void ClockTest(ScreenMode screenMode) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - - - - - [TestMethod] public void ClockTestCustom_Blur() { ClockTestCustom(ScreenMode.Blur); } - - - public void ClockTestCustom(ScreenMode screenMode) { string outputFileName = $"{nameof(ClockTestCustom)}-{screenMode}.mp4"; string filterFileName = $"{nameof(ClockTestCustom)}-{screenMode}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - // (0.5W, 0.5H) -> (0.5W, 0) => vecto v1 = (0.5W-0.5W,0-0.5H) = (0 , -0.5*H) // (0.5W, 0.5H) -> (X, Y) => vecto v2 = (X - 0.5*W , Y - 0.5*H); // cos(v1,v2) = (a1*a2 + b1*b2)/[sqrt(a1*a1 + b1*b1) * sqrt(a2*a2 + b2*b2)] // = (-0.5*H * (Y - 0.5*H))/(sqrt(0.5*H*0.5*H) * sqrt((X - 0.5*W)*(X - 0.5*W) + (Y - 0.5*H)*(Y - 0.5*H))) - //0 degrees => 1, 90 degrees => 0, 180 degrees => -1: cos range 1 -> -1, acos 0 -> PI // cos range -1 -> 1, acos PI -> 0 var cos_result = "((-0.5*H * (Y - 0.5*H))/(0.5*H * sqrt((X - 0.5*W)*(X - 0.5*W) + (Y - 0.5*H)*(Y - 0.5*H))))"; @@ -158,13 +115,10 @@ public void ClockTestCustom(ScreenMode screenMode) $"A," + $"B)," + $"B)"; - var blendeds = startEnd.Blendeds(config, blend => blend .Shortest(true) .All_Expr(expr)); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -173,9 +127,7 @@ public void ClockTestCustom(ScreenMode screenMode) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Collapse.cs b/FFmpegArgs.Test/TanersenerSlideShow/Collapse.cs index a557eff6..6817b0e9 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Collapse.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Collapse.cs @@ -1,21 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; -using System.Diagnostics; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -31,18 +15,12 @@ public void CollapseTest() string filterFileName = $"{nameof(CollapseTest)}-{screenMode}-{collapseMode}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - string expr = string.Empty; - double TRANSITION_DURATION = config.TransitionDuration.TotalSeconds; switch (collapseMode) @@ -50,28 +28,22 @@ public void CollapseTest() case CollapseExpandMode.Vertical: expr = $"if(gte(Y,(H/2)*T/{TRANSITION_DURATION})*lte(Y,H-(H/2)*T/{TRANSITION_DURATION}),B,A)"; break; - case CollapseExpandMode.Horizontal: expr = $"if(gte(X,(W/2)*T/{TRANSITION_DURATION})*lte(X,W-(W/2)*T/{TRANSITION_DURATION}),B,A)"; break; - case CollapseExpandMode.Circular: StartEnd _startEnd = new StartEnd(); - _startEnd.Startings = startEnd.Startings.Select(x => x .GeqFilter() .Lum("p(X,Y)") .A($"if(lte(pow(sqrt(pow(W/2,2)+pow(H/2,2))-sqrt(pow(T/{TRANSITION_DURATION}*W/2,2)+pow(T/{TRANSITION_DURATION}*H/2,2)),2),pow(X-(W/2),2)+pow(Y-(H/2),2)),255,0)").MapOut).ToList(); _startEnd.Endings = startEnd.Endings; - startEnd = _startEnd; break; - case CollapseExpandMode.Both: expr = $"if((gte(X,(W/2)*T/{TRANSITION_DURATION})*gte(Y,(H/2)*T/{TRANSITION_DURATION}))*(lte(X,W-(W/2)*T/{TRANSITION_DURATION})*lte(Y,H-(H/2)*T/{TRANSITION_DURATION})),B,A)"; break; } - ImageMap out_map = null; switch (collapseMode) { @@ -86,7 +58,6 @@ public void CollapseTest() out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); } break; - default: { var blendeds = startEnd.Blendeds(config, blend => @@ -99,7 +70,6 @@ public void CollapseTest() break; } - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -109,11 +79,8 @@ public void CollapseTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Config.cs b/FFmpegArgs.Test/TanersenerSlideShow/Config.cs index 3e369d4d..bef6fdb0 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Config.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Config.cs @@ -1,9 +1,4 @@ -using System; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace FFmpegArgs.Test.TanersenerSlideShow { public class Config @@ -13,7 +8,6 @@ public class Config public TimeSpan ImageDuration { get; set; } = TimeSpan.FromSeconds(1.5); public TimeSpan TransitionDuration { get; set; } = TimeSpan.FromSeconds(2.5); public Color BackgroundColor { get; set; } = Color.FromArgb(0, 0, 0, 0); - public int ImageFrameCount { get { return (int)(ImageDuration.TotalSeconds * Fps); } } public int TransitionFrameCount { get { return (int)(TransitionDuration.TotalSeconds * Fps); } } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Cover.cs b/FFmpegArgs.Test/TanersenerSlideShow/Cover.cs index f33bf6f6..44406df5 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Cover.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Cover.cs @@ -1,20 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -30,39 +15,28 @@ public void CoverVerticalTest() string filterFileName = $"{nameof(CoverVerticalTest)}-{screenMode}-{verticalDirection}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - string expr = string.Empty; - double TRANSITION_DURATION = config.TransitionDuration.TotalSeconds; - switch (verticalDirection) { case VerticalDirection.TopToBottom: expr = $"if(gte(Y,H*T/{TRANSITION_DURATION}),B,A)"; break; - case VerticalDirection.BottomToTop: expr = $"if(gte(Y,H - H*T/{TRANSITION_DURATION}),A,B)"; break; } - var blendeds = startEnd.Blendeds(config, blend => { blend.Shortest(true); blend.All_Expr(expr); }); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -72,13 +46,9 @@ public void CoverVerticalTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - [TestMethod] public void CoverHorizontalTest() { @@ -88,39 +58,28 @@ public void CoverHorizontalTest() string filterFileName = $"{nameof(CoverHorizontalTest)}-{screenMode}-{verticalDirection}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - string expr = string.Empty; - double TRANSITION_DURATION = config.TransitionDuration.TotalSeconds; - switch (verticalDirection) { case HorizontalDirection.LeftToRight: expr = $"if(gte(X,W*T/{TRANSITION_DURATION}),B,A)"; break; - case HorizontalDirection.RightToLeft: expr = $"if(gte(X,W-W*T/{TRANSITION_DURATION}),A,B)"; break; } - var blendeds = startEnd.Blendeds(config, blend => { blend.Shortest(true); blend.All_Expr(expr); }); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -130,9 +89,7 @@ public void CoverHorizontalTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Enums/CollapseExpandMode.cs b/FFmpegArgs.Test/TanersenerSlideShow/Enums/CollapseExpandMode.cs index 7af9e068..70124b89 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Enums/CollapseExpandMode.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Enums/CollapseExpandMode.cs @@ -6,6 +6,5 @@ public enum CollapseExpandMode Circular, Horizontal, Vertical, - } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Enums/HorizontalDirection.cs b/FFmpegArgs.Test/TanersenerSlideShow/Enums/HorizontalDirection.cs index 8c61d587..28384151 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Enums/HorizontalDirection.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Enums/HorizontalDirection.cs @@ -5,7 +5,6 @@ public enum HorizontalDirection LeftToRight, RightToLeft } - public enum VerticalDirection { TopToBottom, diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Expand.cs b/FFmpegArgs.Test/TanersenerSlideShow/Expand.cs index 35a3e399..42371a98 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Expand.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Expand.cs @@ -1,21 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; -using System.Diagnostics; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -31,47 +15,34 @@ public void ExpandTest() string filterFileName = $"{nameof(ExpandTest)}-{screenMode}-{collapseMode}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - string expr = string.Empty; - double TRANSITION_DURATION = config.TransitionDuration.TotalSeconds; - switch (collapseMode) { case CollapseExpandMode.Vertical: expr = $"if(lte(Y,(H/2)-(H/2)*T/{TRANSITION_DURATION})+gte(Y,(H/2)+(H/2)*T/{TRANSITION_DURATION}),B,A)"; break; - case CollapseExpandMode.Horizontal: expr = $"if(lte(X,(W/2)-(W/2)*T/{TRANSITION_DURATION})+gte(X,(W/2)+(W/2)*T/{TRANSITION_DURATION}),B,A)"; break; - case CollapseExpandMode.Circular: StartEnd _startEnd = new StartEnd(); - _startEnd.Startings = startEnd.Startings.Select(x => x .GeqFilter() .Lum("p(X,Y)") .A($"if(lte(pow(sqrt(pow(T/{TRANSITION_DURATION}*W/2,2)+pow(T/{TRANSITION_DURATION}*H/2,2)),2),pow(X-(W/2),2)+pow(Y-(H/2),2)),0,255)").MapOut).ToList(); _startEnd.Endings = startEnd.Endings; - startEnd = _startEnd; break; - case CollapseExpandMode.Both: expr = $"if((lte(X,(W/2)-(W/2)*T/{TRANSITION_DURATION})+lte(Y,(H/2)-(H/2)*T/{TRANSITION_DURATION}))+(gte(X,(W/2)+(W/2)*T/{TRANSITION_DURATION})+gte(Y,(H/2)+(H/2)*T/{TRANSITION_DURATION})),B,A)"; break; } - ImageMap out_map = null; switch (collapseMode) { @@ -86,7 +57,6 @@ public void ExpandTest() out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); } break; - default: { var blendeds = startEnd.Blendeds(config, blend => @@ -98,7 +68,6 @@ public void ExpandTest() } break; } - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -108,9 +77,7 @@ public void ExpandTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/FadeInOne.cs b/FFmpegArgs.Test/TanersenerSlideShow/FadeInOne.cs index 387fb02b..0607f025 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/FadeInOne.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/FadeInOne.cs @@ -1,18 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Executes; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Drawing; -using System.IO; -using System.Linq; + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -29,25 +15,18 @@ public void FadeInOneTest() string filterFileName = $"{nameof(FadeInOneTest)}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; ScreenMode screenMode = ScreenMode.Blur; - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = prepareInputs.Select(x => x.First()).Overlaids(config); - var startEnd = prepareInputs.Select(x => x.Last()).ToList().StartEnd(config); - var blendeds = startEnd.Blendeds(config, blend => blend .Shortest(true) .All_Expr( $"A*(if( gte(T,{config.TransitionDuration.TotalSeconds}),{config.TransitionDuration.TotalSeconds},T/{config.TransitionDuration.TotalSeconds})) + " + $"B*(1-(if(gte(T,{config.TransitionDuration.TotalSeconds}),{config.TransitionDuration.TotalSeconds},T/{config.TransitionDuration.TotalSeconds})))")); - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -56,9 +35,7 @@ public void FadeInOneTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/FadeInTwo.cs b/FFmpegArgs.Test/TanersenerSlideShow/FadeInTwo.cs index 0c51c4e5..8f060624 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/FadeInTwo.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/FadeInTwo.cs @@ -1,18 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Executes; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Drawing; -using System.IO; -using System.Linq; + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -27,14 +13,10 @@ public void FadeInTwoTest() string filterFileName = $"{nameof(FadeInTwoTest)}-{screenMode}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - var inputs = images_inputmap.InputScreenModes(screenMode, config); - var overlaids = inputs.Select(x => x.First()).Overlaids(config); - List fadeIns = new List(); List fadeOuts = new List(); var fades = inputs.Select(x => x.Last()).ToList(); @@ -49,7 +31,6 @@ public void FadeInTwoTest() .Color(config.BackgroundColor).MapOut .TrimFilter().Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut; - if (input.Equals(fades.First())) { fadeOuts.Add(temp.FadeFilter().Type(FadeType.Out).StartFrame(0).NbFrames(config.TransitionFrameCount).MapOut); @@ -65,7 +46,6 @@ public void FadeInTwoTest() fadeIns.Add(split.Last().FadeFilter().Type(FadeType.In).StartFrame(0).NbFrames(config.TransitionFrameCount).MapOut); } } - List blendeds = new List(); for(int i = 0; i < fadeIns.Count; i++) { @@ -75,9 +55,7 @@ public void FadeInTwoTest() .TrimFilter().Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut); } - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -86,9 +64,7 @@ public void FadeInTwoTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/PhotoCollection.cs b/FFmpegArgs.Test/TanersenerSlideShow/PhotoCollection.cs index 5c7e9a48..6882edc2 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/PhotoCollection.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/PhotoCollection.cs @@ -1,18 +1,4 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using FFmpegArgs.Executes; -using System.Diagnostics; + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -29,7 +15,6 @@ public void PhotoCollectionCustomTest() string filterFileName = $"{nameof(PhotoCollectionCustomTest)}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); int MAX_IMAGE_ANGLE = 25; double RPS = 1;//Revolutions per sec @@ -38,18 +23,13 @@ public void PhotoCollectionCustomTest() int FPS = config.Fps; Color BACKGROUND_COLOR = config.BackgroundColor; double TRANSITION_DURATION = config.TransitionDuration.TotalSeconds; - TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count; - Random random = new Random(); - - var background = ffmpegArg.FilterGraph.ColorFilter() .Size(config.Size) .Color(config.BackgroundColor) .Duration(TOTAL_DURATION).MapOut .FpsFilter().Fps(config.Fps).MapOut; - var lastOverLay = background; images_inputmap = images_inputmap.InputScreenMode(ScreenMode.Center, config); for (int c = 0; c < images_inputmap.Count; c++) @@ -57,7 +37,6 @@ public void PhotoCollectionCustomTest() var start = (config.TransitionDuration + config.ImageDuration) * c; var end = start + config.TransitionDuration; var ANGLE_RANDOMNESS = random.Next() % MAX_IMAGE_ANGLE + 1; - lastOverLay = images_inputmap[c] .PadFilter() .W($"{WIDTH * 4}") @@ -67,8 +46,6 @@ public void PhotoCollectionCustomTest() .Color(BACKGROUND_COLOR).MapOut .TrimFilter().Duration((c + 1) * (config.TransitionDuration + config.ImageDuration)).MapOut .SetPtsFilter("PTS-STARTPTS").MapOut - - .RotateFilter() .Angle( $"if(" + $"between(t,{start.TotalSeconds},{end.TotalSeconds})," + @@ -85,9 +62,7 @@ public void PhotoCollectionCustomTest() "-w)") .Y("(main_h-overlay_h)/2").MapOut; } - var out_map = lastOverLay.FormatFilter(PixFmt.yuv420p).MapOut; - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -96,13 +71,9 @@ public void PhotoCollectionCustomTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - [TestMethod] public void PhotoCollectionTest() { @@ -110,22 +81,17 @@ public void PhotoCollectionTest() string filterFileName = $"{nameof(PhotoCollectionTest)}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); int MAX_IMAGE_ANGLE = 25; double RPS = 1.2; TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count; Random random = new Random(); - - var background = ffmpegArg.AddVideoInput( new FilterInput($"color={config.BackgroundColor.ToHexStringRGBA()}:s={config.Size.Width}x{config.Size.Height},fps={config.Fps}"),1,0) .ImageMaps.First().TrimFilter().Duration(TOTAL_DURATION).MapOut; - var lastOverLay = background; images_inputmap = images_inputmap.InputScreenMode(ScreenMode.Center, config); - for (int c = 0; c < images_inputmap.Count; c++) { var ANGLE_RANDOMNESS = random.Next() % MAX_IMAGE_ANGLE + 1; @@ -141,8 +107,6 @@ public void PhotoCollectionTest() .TrimFilter() .Duration((c + 1) * (config.TransitionDuration + config.ImageDuration)).MapOut .SetPtsFilter("PTS-STARTPTS").MapOut - - .RotateFilter() .Angle($"if(" + $"between(t,{start.TotalSeconds},{end.TotalSeconds})," + @@ -159,9 +123,7 @@ public void PhotoCollectionTest() "-w)") .Y("(main_h-overlay_h)/2").MapOut; } - var out_map = lastOverLay.FormatFilter(PixFmt.yuv420p).MapOut; - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -170,11 +132,8 @@ public void PhotoCollectionTest() .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Push.cs b/FFmpegArgs.Test/TanersenerSlideShow/Push.cs index 4e27076d..d61204ef 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Push.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Push.cs @@ -1,20 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -26,13 +11,11 @@ public void PushVerticalTopToBottomTest() { PushVerticalTest(VerticalDirection.TopToBottom); } - [TestMethod] public void PushVerticalBottomToTopTest() { PushVerticalTest(VerticalDirection.BottomToTop); } - public void PushVerticalTest(VerticalDirection verticalDirection) { ScreenMode screenMode = ScreenMode.Blur; @@ -40,21 +23,15 @@ public void PushVerticalTest(VerticalDirection verticalDirection) string filterFileName = $"{nameof(PushVerticalTest)}-{screenMode}-{verticalDirection}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - - FilterInput background_fi = new FilterInput(); background_fi.FilterGraph.ColorFilter().Color(config.BackgroundColor).Size(config.Size).MapOut.FpsFilter().Fps(config.Fps); VideoMap background = ffmpegArg.AddVideoInput(background_fi); - FilterInput transparent_fi = new FilterInput(); transparent_fi.FilterGraph.NullsrcFilter().Size(config.Size).MapOut.FpsFilter().Fps(config.Fps); VideoMap transparent = ffmpegArg.AddVideoInput(transparent_fi); - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - List overlaids = new List(); List startings = new List(); List endings = new List(); @@ -67,8 +44,6 @@ public void PushVerticalTest(VerticalDirection verticalDirection) .Format(OverlayPixFmt.rgb).MapOut .TrimFilter().Duration(config.ImageDuration).MapOut .SelectFilter($"lte(n,{config.ImageFrameCount})").MapOut); - - var temp = prepareInputs[i].Last() .OverlayFilterOn(background.ImageMaps.First()) .X($"(main_w-overlay_w)/2") @@ -91,7 +66,6 @@ public void PushVerticalTest(VerticalDirection verticalDirection) endings.Add(split.Last()); } } - List blendeds = new List(); for (int i = 0; i < endings.Count; i++) { @@ -106,7 +80,6 @@ public void PushVerticalTest(VerticalDirection verticalDirection) .TrimFilter() .Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut; - blendeds.Add(startings[i] .OverlayFilterOn(moving) .X("0") @@ -117,7 +90,6 @@ public void PushVerticalTest(VerticalDirection verticalDirection) .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut); } break; - case VerticalDirection.BottomToTop: { var moving = endings[i] @@ -127,7 +99,6 @@ public void PushVerticalTest(VerticalDirection verticalDirection) .TrimFilter() .Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut; - blendeds.Add(startings[i] .OverlayFilterOn(moving) .X("0") @@ -139,11 +110,8 @@ public void PushVerticalTest(VerticalDirection verticalDirection) } break; } - } - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -153,27 +121,14 @@ public void PushVerticalTest(VerticalDirection verticalDirection) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - - - - - - - - - [TestMethod] public void PushHorizontalTopToBottomTest() { PushHorizontalTest(HorizontalDirection.LeftToRight); } - [TestMethod] public void PushHorizontalBottomToTopTest() { @@ -186,21 +141,15 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) string filterFileName = $"{nameof(PushHorizontalTest)}-{screenMode}-{horizontalDirection}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = (config.ImageDuration + config.TransitionDuration) * images_inputmap.Count - config.TransitionDuration; - - FilterInput background_fi = new FilterInput(); background_fi.FilterGraph.ColorFilter().Color(config.BackgroundColor).Size(config.Size).MapOut.FpsFilter().Fps(config.Fps); VideoMap background = ffmpegArg.AddVideoInput(background_fi); - FilterInput transparent_fi = new FilterInput(); transparent_fi.FilterGraph.NullsrcFilter().Size(config.Size).MapOut.FpsFilter().Fps(config.Fps); VideoMap transparent = ffmpegArg.AddVideoInput(transparent_fi); - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - List overlaids = new List(); List startings = new List(); List endings = new List(); @@ -213,8 +162,6 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) .Format(OverlayPixFmt.rgb).MapOut .TrimFilter().Duration(config.ImageDuration).MapOut .SelectFilter($"lte(n,{config.ImageFrameCount})").MapOut); - - var temp = prepareInputs[i].Last() .OverlayFilterOn(background.ImageMaps.First()) .X($"(main_w-overlay_w)/2") @@ -237,7 +184,6 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) endings.Add(split.Last()); } } - List blendeds = new List(); for (int i = 0; i < endings.Count; i++) { @@ -252,7 +198,6 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) .TrimFilter() .Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut; - blendeds.Add(startings[i] .OverlayFilterOn(moving) .X($"-w+t/{config.TransitionDuration.TotalSeconds}*{config.Size.Width}") @@ -263,7 +208,6 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut); } break; - case HorizontalDirection.RightToLeft: { var moving = endings[i] @@ -273,7 +217,6 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) .TrimFilter() .Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut; - blendeds.Add(startings[i] .OverlayFilterOn(moving) .Y("0") @@ -285,11 +228,8 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) } break; } - } - var out_map = overlaids.ConcatOverlaidsAndBlendeds(blendeds); - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -299,9 +239,7 @@ public void PushHorizontalTest(HorizontalDirection horizontalDirection) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/PushBox.cs b/FFmpegArgs.Test/TanersenerSlideShow/PushBox.cs index 483f9dea..6b574c7d 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/PushBox.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/PushBox.cs @@ -1,20 +1,5 @@ -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Filters; -using FFmpegArgs; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Collections.Generic; -using System.Collections; -using FFmpegArgs.Executes; -using FFmpegArgs.Cores.Maps; + + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -26,13 +11,11 @@ public void PushBoxVerticalTopToBottomTest() { PushBoxVerticalTest(VerticalDirection.TopToBottom); } - [TestMethod] public void PushBoxVerticalBottomToTopTest() { PushBoxVerticalTest(VerticalDirection.BottomToTop); } - public void PushBoxVerticalTest(VerticalDirection verticalDirection) { ScreenMode screenMode = ScreenMode.Blur; @@ -40,27 +23,20 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) string filterFileName = $"{nameof(PushBoxVerticalTest)}-{screenMode}-{verticalDirection}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); config.TransitionDuration = TimeSpan.FromSeconds(1); TimeSpan TOTAL_DURATION = (config.ImageDuration + 2 * config.TransitionDuration) * images_inputmap.Count + config.TransitionDuration * 2 * images_inputmap.Count / 5; - TOTAL_DURATION = config.ImageDuration * images_inputmap.Count + (29 * config.TransitionDuration * images_inputmap.Count + 5 * config.TransitionDuration) / 10; - var TRANSITION_PHASE_DURATION = config.TransitionDuration / 2; var CHECKPOINT_DURATION = config.TransitionDuration / 5; - FilterInput background_fi = new FilterInput(); background_fi.FilterGraph.ColorFilter().Color(config.BackgroundColor).Size(config.Size).MapOut.FpsFilter().Fps(config.Fps); ImageMap background = ffmpegArg.AddVideoInput(background_fi).ImageMaps.First(); - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - List overlaids = prepareInputs.Select(x => x.First() .TrimFilter().Duration(config.ImageDuration).MapOut .SelectFilter($"lte(n,{config.ImageFrameCount})").MapOut).ToList(); - List> pres = prepareInputs.Select(x => x.Last() .ScaleFilter() .W($"{config.Size.Width}/2") @@ -74,7 +50,6 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .TrimFilter().Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut .SplitFilter(5).MapsOut.ToList()).ToList();//prephasein, checkpoint, prezoomin, prezoomout, prephaseout - var phaseouts = verticalDirection switch { VerticalDirection.TopToBottom => pres.Select(x => x[4]//prephaseout @@ -83,7 +58,6 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .Y($"t/({config.TransitionDuration.TotalSeconds}/2)*{config.Size.Height}").MapOut .TrimFilter().Duration(TRANSITION_PHASE_DURATION).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), - VerticalDirection.BottomToTop => pres.Select(x => x[4]//prephaseout .OverlayFilterOn(background) .X("0") @@ -92,7 +66,6 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), _ => throw new NotImplementedException() }; - var phaseins = verticalDirection switch { VerticalDirection.TopToBottom => pres.Select(x => x[0]//prephasein @@ -101,7 +74,6 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .Y($"-h+{config.Size.Height}*t/({config.TransitionDuration.TotalSeconds}/2)").MapOut .TrimFilter().Duration(TRANSITION_PHASE_DURATION).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), - VerticalDirection.BottomToTop => pres.Select(x => x[0]//prephasein .OverlayFilterOn(pres.IndexOf(x) == 0 ? background : phaseouts[pres.IndexOf(x)-1])//phaseouts.Last() .X("0") @@ -110,14 +82,11 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), _ => throw new NotImplementedException() }; - List> checkin_checkout = pres.Select(x => x[1]//checkpoint .TrimFilter().Duration(CHECKPOINT_DURATION).MapOut .SplitFilter(2).MapsOut.ToList()).ToList(); - var checkins = checkin_checkout.Select(x => x.First()).ToList(); var checkouts = checkin_checkout.Select(x => x.Last()).ToList(); - var zoomins = pres.Select(x => x[2] .ScaleFilter() .W("iw*5") @@ -130,7 +99,6 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .Y("ih/2-(ih/zoom/2)") .S(config.Size).MapOut .SetPtsFilter("0.5*PTS").MapOut).ToList(); - var zoomouts = pres.Select(x => x[3] .ScaleFilter() .W("iw*5") @@ -143,7 +111,6 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .Y("ih/2-(ih/zoom/2)") .S(config.Size).MapOut .SetPtsFilter("0.5*PTS").MapOut).ToList(); - List concatGroups = new List(); for(int i = 0; i< images_inputmap.Count; i++) { @@ -162,7 +129,6 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) //=ImageDuration * ImageCount + (29*TransitionDuration*ImageCount + 5*TransitionDuration)/10 ConcatFilter concatFilter = new ConcatFilter(concatGroups); var out_map = concatFilter.ImageMapsOut.First().FormatFilter(PixFmt.yuv420p).MapOut; - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -172,52 +138,20 @@ public void PushBoxVerticalTest(VerticalDirection verticalDirection) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - - - - - - - - - - - - - - - - - - - - - - - - - - - [TestMethod] public void PushBoxHorizontalTopToBottomTest() { PushBoxHorizontalTest(HorizontalDirection.LeftToRight); } - [TestMethod] public void PushBoxHorizontalBottomToTopTest() { PushBoxHorizontalTest(HorizontalDirection.RightToLeft); } - public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) { ScreenMode screenMode = ScreenMode.Blur; @@ -225,27 +159,20 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) string filterFileName = $"{nameof(PushBoxHorizontalTest)}-{screenMode}-{horizontalDirection}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); config.TransitionDuration = TimeSpan.FromSeconds(1); TimeSpan TOTAL_DURATION = (config.ImageDuration + 2 * config.TransitionDuration) * images_inputmap.Count + config.TransitionDuration * 2 * images_inputmap.Count / 5; - TOTAL_DURATION = config.ImageDuration * images_inputmap.Count + (29 * config.TransitionDuration * images_inputmap.Count + 5 * config.TransitionDuration) / 10; - var TRANSITION_PHASE_DURATION = config.TransitionDuration / 2; var CHECKPOINT_DURATION = config.TransitionDuration / 5; - FilterInput background_fi = new FilterInput(); background_fi.FilterGraph.ColorFilter().Color(config.BackgroundColor).Size(config.Size).MapOut.FpsFilter().Fps(config.Fps); ImageMap background = ffmpegArg.AddVideoInput(background_fi).ImageMaps.First(); - List> prepareInputs = images_inputmap.InputScreenModes(screenMode, config); - List overlaids = prepareInputs.Select(x => x.First() .TrimFilter().Duration(config.ImageDuration).MapOut .SelectFilter($"lte(n,{config.ImageFrameCount})").MapOut).ToList(); - List> pres = prepareInputs.Select(x => x.Last() .ScaleFilter() .W($"{config.Size.Width}/2") @@ -259,7 +186,6 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .TrimFilter().Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut .SplitFilter(5).MapsOut.ToList()).ToList();//prephasein, checkpoint, prezoomin, prezoomout, prephaseout - var phaseouts = horizontalDirection switch { HorizontalDirection.LeftToRight => pres.Select(x => x[4]//prephaseout @@ -268,7 +194,6 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .X($"t/({config.TransitionDuration.TotalSeconds}/2)*{config.Size.Width}").MapOut .TrimFilter().Duration(TRANSITION_PHASE_DURATION).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), - HorizontalDirection.RightToLeft => pres.Select(x => x[4]//prephaseout .OverlayFilterOn(background) .Y("0") @@ -277,7 +202,6 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), _ => throw new NotImplementedException() }; - var phaseins = horizontalDirection switch { HorizontalDirection.LeftToRight => pres.Select(x => x[0]//prephasein @@ -286,7 +210,6 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .X($"-{config.Size.Width}+{config.Size.Width}*t/({config.TransitionDuration.TotalSeconds}/2)").MapOut .TrimFilter().Duration(TRANSITION_PHASE_DURATION).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), - HorizontalDirection.RightToLeft => pres.Select(x => x[0]//prephasein .OverlayFilterOn(pres.IndexOf(x) == 0 ? background : phaseouts[pres.IndexOf(x) - 1])//phaseouts.Last() .Y("0") @@ -295,14 +218,11 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .SelectFilter($"lte(n,{config.TransitionFrameCount}/2)").MapOut).ToList(), _ => throw new NotImplementedException() }; - List> checkin_checkout = pres.Select(x => x[1]//checkpoint .TrimFilter().Duration(CHECKPOINT_DURATION).MapOut .SplitFilter(2).MapsOut.ToList()).ToList(); - var checkins = checkin_checkout.Select(x => x.First()).ToList(); var checkouts = checkin_checkout.Select(x => x.Last()).ToList(); - var zoomins = pres.Select(x => x[2] .ScaleFilter() .W("iw*5") @@ -315,7 +235,6 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .Y("ih/2-(ih/zoom/2)") .S(config.Size).MapOut .SetPtsFilter("0.5*PTS").MapOut).ToList(); - var zoomouts = pres.Select(x => x[3] .ScaleFilter() .W("iw*5") @@ -328,7 +247,6 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .Y("ih/2-(ih/zoom/2)") .S(config.Size).MapOut .SetPtsFilter("0.5*PTS").MapOut).ToList(); - List concatGroups = new List(); for (int i = 0; i < images_inputmap.Count; i++) { @@ -347,7 +265,6 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) //=ImageDuration * ImageCount + (29*TransitionDuration*ImageCount + 5*TransitionDuration)/10 ConcatFilter concatFilter = new ConcatFilter(concatGroups); var out_map = concatFilter.ImageMapsOut.First().FormatFilter(PixFmt.yuv420p).MapOut; - //Output ImageFileOutput imageFileOutput = new ImageFileOutput(outputFileName, out_map); imageFileOutput @@ -357,9 +274,7 @@ public void PushBoxHorizontalTest(HorizontalDirection horizontalDirection) .Fps(config.Fps) .SetOption("-g", "0") .SetOption("-rc-lookahead", "0"); - ffmpegArg.AddOutput(imageFileOutput); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/PushFilm.cs b/FFmpegArgs.Test/TanersenerSlideShow/PushFilm.cs index 93dbd0fe..97a9ecb2 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/PushFilm.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/PushFilm.cs @@ -1,19 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Filters.VideoSources; -using FFmpegArgs.Inputs; -using FFmpegArgs.Outputs; -using FFmpegArgs.Executes; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Diagnostics; + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -30,26 +15,21 @@ public void PushHorizontalFilm_Scale_RightToLeft() { PushHorizontalFilmTest(ScreenMode.Scale, HorizontalDirection.RightToLeft); } - public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection direction) { string outputFileName = $"{nameof(PushHorizontalFilmTest)}-{screenMode}-{direction}.mp4"; string filterFileName = $"{nameof(PushHorizontalFilmTest)}-{screenMode}-{direction}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = config.TransitionDuration * images_inputmap.Count; - var film_strip_map = ffmpegArg.FilmStripH(); - var background = ffmpegArg.FilterGraph .ColorFilter() .Color(config.BackgroundColor) .Size(config.Size) .Duration(TOTAL_DURATION).MapOut .FpsFilter().Fps(config.Fps).MapOut; - List images_Prepare = new List(); for (int i = 0; i < images_inputmap.Count; i++) { @@ -71,7 +51,6 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di .SetSarFilter().Ratio(1).MapOut); break; } - case ScreenMode.Crop: { images_Prepare.Add(images_inputmap[i] @@ -85,7 +64,6 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di .SetSarFilter().Ratio(1).MapOut); break; } - case ScreenMode.Scale: { images_Prepare.Add(images_inputmap[i] @@ -93,7 +71,6 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di .SetSarFilter().Ratio(1).MapOut); break; } - case ScreenMode.Blur: { images_Prepare.Add(images_inputmap[i] @@ -104,7 +81,6 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di } } } - var strip_images = film_strip_map .SetPtsFilter("PTS-STARTPTS").MapOut .ScaleFilter() @@ -113,16 +89,13 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di .ScaleFilter().W("trunc(iw/2)*2").H("trunc(ih/2)*2").MapOut .SetSarFilter().Ratio(1).MapOut .SplitFilter(images_inputmap.Count).MapsOut.ToList(); - // OVERLAY FILM STRIP ON TOP OF INPUTS - List image_overlay_on_strips = new List(); for (int i = 0; i < images_Prepare.Count; i++) { image_overlay_on_strips.Add(strip_images[i] .OverlayFilterOn(images_Prepare[i]).X("(main_w-overlay_w)/2").Y("(main_h-overlay_h)/2").Format(OverlayPixFmt.rgb).MapOut); } - var lastOverLay = background; for (int i = 0; i < images_Prepare.Count; i++) { @@ -139,7 +112,6 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di .Enable($"between(t,{start.TotalSeconds},{end.TotalSeconds})").MapOut; break; } - case HorizontalDirection.RightToLeft: { lastOverLay = image_overlay_on_strips[i].SetPtsFilter("PTS-STARTPTS").MapOut @@ -151,12 +123,10 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di } } } - var out_map = lastOverLay .TrimFilter().Duration(TOTAL_DURATION).MapOut .FpsFilter().Fps(config.Fps).MapOut .FormatFilter(PixFmt.yuv420p).MapOut; - var videoOut = new ImageFileOutput(outputFileName, out_map) .VSync(VSyncMethod.vfr) .SetOption("-rc-lookahead", 0) @@ -164,16 +134,9 @@ public void PushHorizontalFilmTest(ScreenMode screenMode, HorizontalDirection di .VCodec("libx264") //.SetOption("-b:v", "3000") .Fps(config.Fps); - ffmpegArg.AddOutput(videoOut); - ffmpegArg.TestRender(filterFileName, outputFileName); } - - - - - [TestMethod] public void PushVerticalFilmTest_Center_BottomToTop() { @@ -184,26 +147,21 @@ public void PushVerticalFilmTest_Crop_TopToBottom() { PushVerticalFilmTest(ScreenMode.Crop, VerticalDirection.TopToBottom); } - public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direction) { string outputFileName = $"{nameof(PushVerticalFilmTest)}-{screenMode}-{direction}.mp4"; string filterFileName = $"{nameof(PushVerticalFilmTest)}-{screenMode}-{direction}.txt"; FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput(); var images_inputmap = ffmpegArg.GetImagesInput(); - Config config = new Config(); TimeSpan TOTAL_DURATION = config.TransitionDuration * images_inputmap.Count; - var film_strip_map = ffmpegArg.FilmStripV(); - var background = ffmpegArg.FilterGraph .ColorFilter() .Color(config.BackgroundColor) .Size(config.Size) .Duration(TOTAL_DURATION).MapOut .FpsFilter().Fps(config.Fps).MapOut; - List images_Prepare = new List(); for (int i = 0; i < images_inputmap.Count; i++) { @@ -225,7 +183,6 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct .SetSarFilter().Ratio(1).MapOut); break; } - case ScreenMode.Crop: { images_Prepare.Add(images_inputmap[i] @@ -237,7 +194,6 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct .SetSarFilter().Ratio(1).MapOut); break; } - case ScreenMode.Scale: { images_Prepare.Add(images_inputmap[i] @@ -245,7 +201,6 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct .SetSarFilter().Ratio(1).MapOut); break; } - case ScreenMode.Blur: { images_Prepare.Add(images_inputmap[i] @@ -256,8 +211,6 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct } } } - - var strip_images = film_strip_map .SetPtsFilter("PTS-STARTPTS").MapOut .ScaleFilter() @@ -266,9 +219,7 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct .ScaleFilter().W("trunc(iw/2)*2").H("trunc(ih/2)*2").MapOut .SetSarFilter().Ratio(1).MapOut .SplitFilter(images_inputmap.Count).MapsOut.ToList(); - // OVERLAY FILM STRIP ON TOP OF INPUTS - List image_overlay_on_strips = new List(); for (int i = 0; i < images_Prepare.Count; i++) { @@ -278,7 +229,6 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct .Y("(main_h-overlay_h)/2") .Format(OverlayPixFmt.rgb).MapOut); } - var lastOverLay = background; for (int i = 0; i < images_Prepare.Count; i++) { @@ -295,7 +245,6 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct .Enable($"between(t,{start.TotalSeconds},{end.TotalSeconds})").MapOut; break; } - case VerticalDirection.BottomToTop: { lastOverLay = image_overlay_on_strips[i].SetPtsFilter("PTS-STARTPTS").MapOut @@ -307,12 +256,10 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct } } } - var out_map = lastOverLay .TrimFilter().Duration(TOTAL_DURATION).MapOut .FpsFilter().Fps(config.Fps).MapOut .FormatFilter(PixFmt.yuv420p).MapOut; - var videoOut = new ImageFileOutput(outputFileName, out_map) .VSync(VSyncMethod.vfr) .SetOption("-rc-lookahead", 0) @@ -320,9 +267,7 @@ public void PushVerticalFilmTest(ScreenMode screenMode, VerticalDirection direct .VCodec("libx264") //.SetOption("-b:v", "3000") .Fps(config.Fps); - ffmpegArg.AddOutput(videoOut); - ffmpegArg.TestRender(filterFileName, outputFileName); } } diff --git a/FFmpegArgs.Test/TanersenerSlideShow/Shared.cs b/FFmpegArgs.Test/TanersenerSlideShow/Shared.cs index 91d66077..7d7ae5bb 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/Shared.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/Shared.cs @@ -1,16 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters; -using FFmpegArgs.Filters.Enums; -using FFmpegArgs.Filters.MultimediaFilters; -using FFmpegArgs.Filters.VideoFilters; -using FFmpegArgs.Inputs; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; + namespace FFmpegArgs.Test.TanersenerSlideShow { @@ -22,7 +10,6 @@ public static List GetImagesInput(this FFmpegArg ffmpegArg) var files = directoryInfo.GetFiles("*.jpg"); return files.Select(x => ffmpegArg.AddImageInput(new ImageFileInput($"Images\\{x.Name}").SetOption("-loop", 1))).ToList(); } - public static ImageMap FilmStripH(this FFmpegArg ffmpegArg) { return ffmpegArg.AddImageInput(new ImageFileInput($"Images\\film_strip.png").SetOption("-loop", 1)); @@ -31,11 +18,9 @@ public static ImageMap FilmStripV(this FFmpegArg ffmpegArg) { return ffmpegArg.AddImageInput(new ImageFileInput($"Images\\film_strip_vertical.png").SetOption("-loop", 1)); } - public static List> InputScreenModes(this IEnumerable inputs, ScreenMode screenMode, Config config, string lumaRadius = "100") => inputs.InputScreenMode(screenMode, config, lumaRadius).Select(x => x.SplitFilter(2).MapsOut).ToList(); - public static List InputScreenMode(this IEnumerable inputs, ScreenMode screenMode, Config config, string lumaRadius = "100") { @@ -55,7 +40,6 @@ public static List InputScreenMode(this IEnumerable inputs, .SetSarFilter().Ratio("1/1").MapOut .FpsFilter().Fps(config.Fps).MapOut .FormatFilter(PixFmt.rgba).MapOut; - case ScreenMode.Crop: return x .ScaleFilter() @@ -67,7 +51,6 @@ public static List InputScreenMode(this IEnumerable inputs, .SetSarFilter().Ratio("1/1").MapOut .FpsFilter().Fps(config.Fps).MapOut .FormatFilter(PixFmt.rgba).MapOut; - case ScreenMode.Scale: return x .ScaleFilter() @@ -76,7 +59,6 @@ public static List InputScreenMode(this IEnumerable inputs, .SetSarFilter().Ratio("1/1").MapOut .FpsFilter().Fps(config.Fps).MapOut .FormatFilter(PixFmt.rgba).MapOut; - case ScreenMode.Blur: return x.MakeBlurredBackground(config.Size.Width, config.Size.Height, config.Fps, lumaRadius); } @@ -84,7 +66,6 @@ public static List InputScreenMode(this IEnumerable inputs, })); return prepareInputs; } - public static ImageMap MakeBlurredBackground(this ImageMap image, int width, int height, int fps = 24, string lumaRadius = "100") { @@ -98,7 +79,6 @@ public static ImageMap MakeBlurredBackground(this ImageMap image, { inputs.AddRange(image.SplitFilter(2).MapsOut); } - var blurred = inputs.First() .ScaleFilter().W($"{width}").H($"{height}").MapOut .SetSarFilter().Ratio("1/1").MapOut @@ -106,7 +86,6 @@ public static ImageMap MakeBlurredBackground(this ImageMap image, .FormatFilter(PixFmt.rgba).MapOut .BoxBlurFilter().LumaRadius($"{lumaRadius}").MapOut .SetSarFilter().Ratio("1/1").MapOut; - var raw = inputs.Last() .ScaleFilter() .W($"if(gte(iw/ih,{width}/{height}),min(iw,{width}),-1)") @@ -117,17 +96,12 @@ public static ImageMap MakeBlurredBackground(this ImageMap image, .SetSarFilter().Ratio("1/1").MapOut .FpsFilter().Fps(fps).MapOut .FormatFilter(PixFmt.rgba).MapOut; - return raw .OverlayFilterOn(blurred) .X("(main_w - overlay_w)/2") .Y("(main_h-overlay_h)/2").MapOut//center .SetPtsFilter("PTS-STARTPTS").MapOut; } - - - - public static List Overlaids(this IEnumerable inputs, Config config) { return inputs.Select(x => x @@ -140,7 +114,6 @@ public static List Overlaids(this IEnumerable inputs, Config .TrimFilter() .Duration(config.ImageDuration).MapOut).ToList(); } - public static StartEnd StartEnd(this List inputs, Config config) { StartEnd startEnd = new StartEnd(); @@ -149,7 +122,6 @@ public static StartEnd StartEnd(this List inputs, Config config) //first create ed only (if only 1 image -> create ed) //mid: split to ed and op //last create op - var res = inputs[i] .PadFilter() .W($"{config.Size.Width}") @@ -160,7 +132,6 @@ public static StartEnd StartEnd(this List inputs, Config config) .TrimFilter() .Duration(config.TransitionDuration).MapOut .SelectFilter($"lte(n,{config.TransitionFrameCount})").MapOut; - if (i == 0)//first { if (inputs.Count > 1) @@ -181,7 +152,6 @@ public static StartEnd StartEnd(this List inputs, Config config) } return startEnd; } - public static List Blendeds(this StartEnd startEnd, Config config,Action blend) { List blendeds = new List(); @@ -195,7 +165,6 @@ public static List Blendeds(this StartEnd startEnd, Config config,Acti } return blendeds; } - public static ImageMap ConcatOverlaidsAndBlendeds(this List overlaids, List blendeds) { List concatGroups = new List(); diff --git a/FFmpegArgs.Test/TanersenerSlideShow/StartEnd.cs b/FFmpegArgs.Test/TanersenerSlideShow/StartEnd.cs index c20fbbaf..38dda7d5 100644 --- a/FFmpegArgs.Test/TanersenerSlideShow/StartEnd.cs +++ b/FFmpegArgs.Test/TanersenerSlideShow/StartEnd.cs @@ -1,6 +1,4 @@ -using FFmpegArgs.Cores.Maps; -using System.Collections.Generic; - + namespace FFmpegArgs.Test.TanersenerSlideShow { internal class StartEnd diff --git a/FFmpegArgs.sln b/FFmpegArgs.sln index 77ec3a76..48a708ca 100644 --- a/FFmpegArgs.sln +++ b/FFmpegArgs.sln @@ -27,6 +27,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FFmpegArgs.Autogens", "FFmp EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FFmpegArgs.Executes", "FFmpegArgs.Executes\FFmpegArgs.Executes.csproj", "{AA51A707-006C-4C35-BA66-080DD805E3A1}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FFmpegArgs.Filters.Common", "FFmpegArgs.Filters.Common\FFmpegArgs.Filters.Common.csproj", "{885B3603-7C38-4094-BC08-49B1D9938B70}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -65,6 +67,10 @@ Global {AA51A707-006C-4C35-BA66-080DD805E3A1}.Debug|Any CPU.Build.0 = Debug|Any CPU {AA51A707-006C-4C35-BA66-080DD805E3A1}.Release|Any CPU.ActiveCfg = Release|Any CPU {AA51A707-006C-4C35-BA66-080DD805E3A1}.Release|Any CPU.Build.0 = Release|Any CPU + {885B3603-7C38-4094-BC08-49B1D9938B70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {885B3603-7C38-4094-BC08-49B1D9938B70}.Debug|Any CPU.Build.0 = Debug|Any CPU + {885B3603-7C38-4094-BC08-49B1D9938B70}.Release|Any CPU.ActiveCfg = Release|Any CPU + {885B3603-7C38-4094-BC08-49B1D9938B70}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/FFmpegArgs/Attributes/AttributeExtensions.cs b/FFmpegArgs/Attributes/AttributeExtensions.cs new file mode 100644 index 00000000..e003cce2 --- /dev/null +++ b/FFmpegArgs/Attributes/AttributeExtensions.cs @@ -0,0 +1,23 @@ +using System; +using System.Linq; +namespace FFmpegArgs.Attributes +{ + /// + /// + /// + public static class AttributeExtensions + { + /// + /// + /// + /// + /// + /// + public static TAttribute GetEnumAttribute(this Enum value) where TAttribute : Attribute + { + var enumType = value.GetType(); + var name = Enum.GetName(enumType, value); + return enumType.GetField(name)?.GetCustomAttributes(false).OfType().SingleOrDefault(); + } + } +} diff --git a/FFmpegArgs/Filters/NameAttribute.cs b/FFmpegArgs/Attributes/NameAttribute.cs similarity index 53% rename from FFmpegArgs/Filters/NameAttribute.cs rename to FFmpegArgs/Attributes/NameAttribute.cs index 1f7f0b8c..25656b1c 100644 --- a/FFmpegArgs/Filters/NameAttribute.cs +++ b/FFmpegArgs/Attributes/NameAttribute.cs @@ -1,14 +1,23 @@ using System; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Attributes { + /// + /// + /// [AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field)] public class NameAttribute : Attribute { + /// + /// + /// + /// public NameAttribute(string name) { this.Name = name; } + /// + /// + /// public string Name { get; } } } diff --git a/FFmpegArgs/AudioOptionExtensions.cs b/FFmpegArgs/AudioOptionExtensions.cs index b9597af8..93049b1a 100644 --- a/FFmpegArgs/AudioOptionExtensions.cs +++ b/FFmpegArgs/AudioOptionExtensions.cs @@ -1,6 +1,5 @@ using FFmpegArgs.Cores; using System; - namespace FFmpegArgs { /// @@ -28,7 +27,6 @@ public static T Freq(this T t, int freq, int? stream_specifier = null) where } return t; } - /// /// Set the number of audio channels. For output streams it is set by default to the number of input audio channels. For input streams this option only makes sense for audio grabbing devices and raw demuxers and is mapped to the corresponding demuxer options. /// @@ -51,10 +49,8 @@ public static T Channels(this T t, int channels, int? stream_specifier = null } return t; } - public static T AN(this T t) where T : BaseInputOutput, IAudio => t.SetFlag("-an"); - public static T ACodec(this T t, string acodec) where T : BaseInputOutput, IAudio => t.SetOption("-acodec", acodec); } diff --git a/FFmpegArgs/BaseOption.cs b/FFmpegArgs/BaseOption.cs index 2bfeedd8..be2ef6d0 100644 --- a/FFmpegArgs/BaseOption.cs +++ b/FFmpegArgs/BaseOption.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; - namespace FFmpegArgs { public abstract class BaseOption @@ -16,7 +15,6 @@ public abstract class BaseOption protected const double DBL_MAX = double.MaxValue; protected const double DBL_MIN = double.MinValue; } - public static class BaseOptionExtension { /// @@ -35,7 +33,6 @@ public static T SetOption(this T baseOption, string key, string val) where T baseOption._options[key] = val; return baseOption; } - /// /// /// @@ -52,7 +49,6 @@ public static T SetOption(this T baseOption, string key, object val) where T baseOption._options[key] = val.ToString(); return baseOption; } - /// /// /// @@ -72,7 +68,6 @@ public static T SetOptionRange(this T baseOption, string key, int val, int mi baseOption._options[key] = val.ToString(); return baseOption; } - /// /// /// @@ -92,7 +87,6 @@ public static T SetOptionRange(this T baseOption, string key, float val, floa baseOption._options[key] = val.ToString(); return baseOption; } - /// /// /// @@ -112,7 +106,6 @@ public static T SetOptionRange(this T baseOption, string key, double val, dou baseOption._options[key] = val.ToString(); return baseOption; } - /// /// /// @@ -132,7 +125,6 @@ public static T SetOptionRange(this T baseOption, string key, long val, long baseOption._options[key] = val.ToString(); return baseOption; } - /// /// /// @@ -152,7 +144,6 @@ public static T SetOptionRange(this T baseOption, string key, decimal val, de baseOption._options[key] = val.ToString(); return baseOption; } - /// /// /// diff --git a/FFmpegArgs/BaseOptionFlag.cs b/FFmpegArgs/BaseOptionFlag.cs index 9f78c274..24f542df 100644 --- a/FFmpegArgs/BaseOptionFlag.cs +++ b/FFmpegArgs/BaseOptionFlag.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; - namespace FFmpegArgs { public abstract class BaseOptionFlag : BaseOption @@ -12,7 +11,6 @@ protected string GetArgs() return string.Join(" ", _flags.Concat(_options.Select(x => $"{x.Key} {x.Value}"))); } } - public static class BaseOptionFlagExtension { public static T SetFlag(this T baseOptionFlag, string flag) where T : BaseOptionFlag diff --git a/FFmpegArgs/Cores/BaseInputOutput.cs b/FFmpegArgs/Cores/BaseInputOutput.cs index a46e6670..5a8527bf 100644 --- a/FFmpegArgs/Cores/BaseInputOutput.cs +++ b/FFmpegArgs/Cores/BaseInputOutput.cs @@ -4,7 +4,6 @@ public abstract class BaseInputOutput : BaseOptionFlag { internal BaseInputOutput() { - } } } diff --git a/FFmpegArgs/Cores/Filters/BaseFilter.cs b/FFmpegArgs/Cores/Filters/BaseFilter.cs index 3ae619b9..e3ad4c0f 100644 --- a/FFmpegArgs/Cores/Filters/BaseFilter.cs +++ b/FFmpegArgs/Cores/Filters/BaseFilter.cs @@ -1,13 +1,10 @@ using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Filters; using System; using System.Collections.Generic; using System.Linq; - // | -> A/V (filter generate) can use it as input // A/V/N -> A/V/N //ignore: A/V -> | is for ffplay - namespace FFmpegArgs.Cores.Filters { public abstract class BaseFilter : BaseOption, IFilter @@ -16,7 +13,6 @@ public abstract class BaseFilter : BaseOption, IFilter { private List _mapsIn { get; } = new List(); protected List _mapsOut { get; } = new List(); - public int FilterIndex { get; } public string FilterName { get; } public FilterGraph FilterGraph { get; } @@ -24,40 +20,29 @@ public abstract class BaseFilter : BaseOption, IFilter public IEnumerable MapsIn { get { return _mapsIn; } } public TOut MapOut { get { return MapsOut.FirstOrDefault(); } } public IEnumerable> Options { get { return _options; } } - protected BaseFilter(string filterName, params TIn[] mapsIn) { if (string.IsNullOrWhiteSpace(filterName)) throw new ArgumentNullException(nameof(filterName)); - var filters = mapsIn.GroupBy(x => x.FilterGraph); if (filters.Count() != 1) throw new InvalidOperationException("mapsIn are empty or not same FilterGraph"); - if (mapsIn.Any(x => !x.IsInput && x.IsMapped)) throw new InvalidOperationException("Map is only \"one to one\", except input"); - this.FilterGraph = filters.First().Key; this.FilterName = filterName; - _mapsIn.AddRange(mapsIn); _mapsIn.ForEach(x => x.IsMapped = true); - this.FilterGraph._filters.Add(this); FilterIndex = this.FilterGraph._filters.IndexOf(this); } - public override string ToString() { if (string.IsNullOrEmpty(FilterName)) throw new NullReferenceException(nameof(FilterName)); if (_mapsOut.Count == 0) throw new NullReferenceException($"{FilterName} is empty output"); - string inputs = string.Join("", _mapsIn .Where(x => !string.IsNullOrWhiteSpace(x.MapName)) .Select(x => x.IsInput ? $"[{x.MapName}:{(x is ImageMap ? "v" : "a")}:{x.StreamIndex}]" : $"[{x.MapName}]")); - string outputs = string.Join("", _mapsOut.Select(x => $"[{x.MapName}]")); - string options = _options.GetFilterOptions(); - if (!string.IsNullOrEmpty(options)) options = "=" + options; return $"{inputs}{FilterName}{options}{outputs}"; } diff --git a/FFmpegArgs/Cores/Filters/FilterChain.cs b/FFmpegArgs/Cores/Filters/FilterChain.cs index 297e70f6..f69f3cfe 100644 --- a/FFmpegArgs/Cores/Filters/FilterChain.cs +++ b/FFmpegArgs/Cores/Filters/FilterChain.cs @@ -2,11 +2,9 @@ using System; using System.Collections.Generic; using System.Linq; - // | -> A/V (filter generate) can use it as input // A/V/N -> A/V/N //ignore: A/V -> | is for ffplay - namespace FFmpegArgs.Cores.Filters { /// @@ -17,53 +15,41 @@ namespace FFmpegArgs.Cores.Filters internal class FilterChain { readonly List> chain = new List>(); - internal FilterChain(List> chain) { this.chain = chain ?? throw new ArgumentNullException(nameof(chain)); } - public override string ToString() => BuildChain(true, true); - internal string BuildChain(bool useMapIn, bool useMapOut) { var first = chain.First(); var last = chain.Last(); - string inputs = useMapIn ? string.Join("", first.MapsIn .Where(x => !string.IsNullOrWhiteSpace(x.MapName)) .Select(x => x.IsInput ? $"[{x.MapName}:{(x is ImageMap ? "v" : "a")}:{x.StreamIndex}]" : $"[{x.MapName}]")) : string.Empty; - string outputs = useMapOut ? string.Join("", last.MapsOut.Select(x => $"[{x.MapName}]")) : string.Empty; - string body = string.Join(",", chain.Select(x => { string options = x.Options.GetFilterOptions(); if (!string.IsNullOrEmpty(options)) options = "=" + options; return $"{x.FilterName}{options}"; })); - return $"{inputs}{body}{outputs}"; } - - internal static IEnumerable BuildChains(IEnumerable> filters,bool isAllowMultiOut) + internal static IEnumerable BuildChains(IEnumerable> filters, bool isAllowMultiOut) { List> filters_ = filters.ToList(); List>> chains = new List>>(); - while (true) { var first_chain = filters_.FirstOrDefault(x => x.MapsIn.Any(y => y.IsInput));//map is input if (first_chain == null) first_chain = filters_.FirstOrDefault();//other filter if (first_chain == null) break; - chains.Add(FindChain(filters_, first_chain, isAllowMultiOut)); } - return chains.Select(x => new FilterChain(x)); } - /// /// /// @@ -81,7 +67,6 @@ internal static List> FindChain(List> fi x.MapsIn.Count() == 1 && //stop at multi input x.MapsIn.Contains(chain.Last().MapOut) &&//find filter have input == last chain output (isAllowMultiOut || x.MapsOut.Count() == 1)); - if (next == null) break; else @@ -90,7 +75,6 @@ internal static List> FindChain(List> fi filters.Remove(next);//remove used } } - return chain; } } diff --git a/FFmpegArgs/Cores/Filters/FilterExtensions.cs b/FFmpegArgs/Cores/Filters/FilterExtensions.cs index 7c9b73bc..8d6f6b8b 100644 --- a/FFmpegArgs/Cores/Filters/FilterExtensions.cs +++ b/FFmpegArgs/Cores/Filters/FilterExtensions.cs @@ -1,5 +1,5 @@ -using System.Linq; -using System.Collections.Generic; +using System.Collections.Generic; +using System.Linq; namespace FFmpegArgs.Cores.Filters { internal static class FilterExtensions @@ -18,7 +18,6 @@ internal static string FiltergraphEscapingLv1(this string input) ?.Replace(@"'", @"\'") ?.Replace(@":", @"\:"); } - /// /// Filter level /// @@ -35,7 +34,6 @@ internal static string FiltergraphEscapingLv2(this string input) ?.Replace(@",", @"\,") ?.Replace("\"", "\\\""); } - /// /// OS shell level /// @@ -46,8 +44,7 @@ internal static string FiltergraphEscapingLv3(this string input) return input?.Replace(@"\", @"\\"); } - - internal static string GetFilterOptions(this IEnumerable> options) + internal static string GetFilterOptions(this IEnumerable> options) { return string.Join(":", options.Select(x => $"{x.Key}={x.Value.FiltergraphEscapingLv1()}")).FiltergraphEscapingLv2(); } diff --git a/FFmpegArgs/Cores/Filters/IFilter.cs b/FFmpegArgs/Cores/Filters/IFilter.cs index a0ab332b..ad1e55cb 100644 --- a/FFmpegArgs/Cores/Filters/IFilter.cs +++ b/FFmpegArgs/Cores/Filters/IFilter.cs @@ -1,6 +1,5 @@ using FFmpegArgs.Cores.Maps; using System.Collections.Generic; - namespace FFmpegArgs.Cores.Filters { public interface IFilter @@ -10,7 +9,6 @@ public interface IFilter FilterGraph FilterGraph { get; } int FilterIndex { get; } string FilterName { get; } - IEnumerable MapsOut { get; } IEnumerable MapsIn { get; } TOut MapOut { get; } diff --git a/FFmpegArgs/Cores/Inputs/BaseInput.cs b/FFmpegArgs/Cores/Inputs/BaseInput.cs index 28d55006..02057c5c 100644 --- a/FFmpegArgs/Cores/Inputs/BaseInput.cs +++ b/FFmpegArgs/Cores/Inputs/BaseInput.cs @@ -2,6 +2,5 @@ { public abstract class BaseInput : BaseInputOutput { - } } diff --git a/FFmpegArgs/Cores/Maps/AudioMap.cs b/FFmpegArgs/Cores/Maps/AudioMap.cs index d5a7dbf8..68470f1e 100644 --- a/FFmpegArgs/Cores/Maps/AudioMap.cs +++ b/FFmpegArgs/Cores/Maps/AudioMap.cs @@ -4,9 +4,7 @@ public class AudioMap : BaseMap, IAudio { public AudioMap(FilterGraph filterGraph, string name) : base(filterGraph, name) { - } - public override string GetMapOut() { return IsInput ? $"\"{MapName}:a:{StreamIndex}\"" : $"\"[{MapName}]\""; diff --git a/FFmpegArgs/Cores/Maps/BaseMap.cs b/FFmpegArgs/Cores/Maps/BaseMap.cs index 2e1c6fe0..7f9db6b9 100644 --- a/FFmpegArgs/Cores/Maps/BaseMap.cs +++ b/FFmpegArgs/Cores/Maps/BaseMap.cs @@ -3,29 +3,22 @@ public abstract class BaseMap : IMap { public FilterGraph FilterGraph { get; } - /// /// if video input (sound and video), it auto select by filter /// public string MapName { get; } - public bool IsInput { get; internal set; } = false; - public int StreamIndex { get; internal set; } = 0; - /// /// For non input, if IsMapped and map again -> throw exception /// public bool IsMapped { get; internal set; } = false; - internal BaseMap(FilterGraph filterGraph, string name) { this.FilterGraph = filterGraph; this.MapName = name; } - public abstract string GetMapOut(); - public override string ToString() { return MapName; diff --git a/FFmpegArgs/Cores/Maps/ImageMap.cs b/FFmpegArgs/Cores/Maps/ImageMap.cs index 44583609..9fdb8df7 100644 --- a/FFmpegArgs/Cores/Maps/ImageMap.cs +++ b/FFmpegArgs/Cores/Maps/ImageMap.cs @@ -1,12 +1,10 @@ namespace FFmpegArgs.Cores.Maps { - public class ImageMap : BaseMap , IImage + public class ImageMap : BaseMap, IImage { public ImageMap(FilterGraph filterGraph, string name) : base(filterGraph, name) { - } - public override string GetMapOut() { return IsInput ? $"\"{MapName}:v:{StreamIndex}\"" : $"\"[{MapName}]\""; diff --git a/FFmpegArgs/Cores/Maps/VideoMap.cs b/FFmpegArgs/Cores/Maps/VideoMap.cs index 96e74354..a4d84644 100644 --- a/FFmpegArgs/Cores/Maps/VideoMap.cs +++ b/FFmpegArgs/Cores/Maps/VideoMap.cs @@ -4,10 +4,8 @@ namespace FFmpegArgs.Cores.Maps public class VideoMap { public IEnumerable AudioMaps => _audioMaps; - public IEnumerable ImageMaps => _imageMaps; - readonly List _audioMaps = new List(); readonly List _imageMaps = new List(); internal VideoMap(IEnumerable imageMaps, IEnumerable audioMaps) @@ -15,6 +13,5 @@ internal VideoMap(IEnumerable imageMaps, IEnumerable audioMa _imageMaps.AddRange(imageMaps); _audioMaps.AddRange(audioMaps); } - } } diff --git a/FFmpegArgs/Cores/Outputs/AudioOutput.cs b/FFmpegArgs/Cores/Outputs/AudioOutput.cs index 8a860fdc..d99c6f80 100644 --- a/FFmpegArgs/Cores/Outputs/AudioOutput.cs +++ b/FFmpegArgs/Cores/Outputs/AudioOutput.cs @@ -1,6 +1,5 @@ using FFmpegArgs.Cores.Maps; using System; - namespace FFmpegArgs.Cores.Outputs { public abstract class AudioOutput : BaseOutput, IAudio diff --git a/FFmpegArgs/Cores/Outputs/ImageOutput.cs b/FFmpegArgs/Cores/Outputs/ImageOutput.cs index 12d37140..6d7313b2 100644 --- a/FFmpegArgs/Cores/Outputs/ImageOutput.cs +++ b/FFmpegArgs/Cores/Outputs/ImageOutput.cs @@ -1,6 +1,5 @@ using FFmpegArgs.Cores.Maps; using System; - namespace FFmpegArgs.Cores.Outputs { public abstract class ImageOutput : BaseOutput, IImage diff --git a/FFmpegArgs/Filters/Enums/AVSampleFormat.cs b/FFmpegArgs/Enums/AVSampleFormat.cs similarity index 96% rename from FFmpegArgs/Filters/Enums/AVSampleFormat.cs rename to FFmpegArgs/Enums/AVSampleFormat.cs index 64d97765..a90c1d67 100644 --- a/FFmpegArgs/Filters/Enums/AVSampleFormat.cs +++ b/FFmpegArgs/Enums/AVSampleFormat.cs @@ -1,4 +1,5 @@ -namespace FFmpegArgs.Filters.Enums +using FFmpegArgs.Attributes; +namespace FFmpegArgs.Enums { /// /// https://github.com/FFmpeg/FFmpeg/blob/f6ab103bb5c2dd494620f7a28ae232efe497a4d1/libavutil/samplefmt.h#L58 @@ -6,71 +7,57 @@ public enum AVSampleFormat { [Name("none")] AV_SAMPLE_FMT_NONE = -1, - /// /// unsigned 8 bits /// [Name("u8")] AV_SAMPLE_FMT_U8, - /// /// signed 16 bits /// [Name("s16")] AV_SAMPLE_FMT_S16, - /// /// signed 32 bits /// [Name("s32")] AV_SAMPLE_FMT_S32, - /// /// float /// [Name("flt")] AV_SAMPLE_FMT_FLT, - /// /// double /// [Name("dbl")] AV_SAMPLE_FMT_DBL, - /// /// unsigned 8 bits, planar /// [Name("u8p")] AV_SAMPLE_FMT_U8P, - /// /// signed 16 bits, planar /// [Name("s16p")] AV_SAMPLE_FMT_S16P, - /// /// signed 32 bits, planar /// [Name("s32p")] AV_SAMPLE_FMT_S32P, - /// /// float, planar /// [Name("fltp")] AV_SAMPLE_FMT_FLTP, - /// /// double, planar /// [Name("dblp")] AV_SAMPLE_FMT_DBLP, - /// /// signed 64 bits /// [Name("s64")] AV_SAMPLE_FMT_S64, - /// /// signed 64 bits, planar /// [Name("s64p")] AV_SAMPLE_FMT_S64P, - /// /// Number of sample formats. DO NOT USE if linking dynamically /// [Name("nb")] AV_SAMPLE_FMT_NB }; - } diff --git a/FFmpegArgs/Filters/Enums/AlphaBlend.cs b/FFmpegArgs/Enums/AlphaBlend.cs similarity index 83% rename from FFmpegArgs/Filters/Enums/AlphaBlend.cs rename to FFmpegArgs/Enums/AlphaBlend.cs index 9b7cdcce..77357e62 100644 --- a/FFmpegArgs/Filters/Enums/AlphaBlend.cs +++ b/FFmpegArgs/Enums/AlphaBlend.cs @@ -1,4 +1,4 @@ -namespace FFmpegArgs.Filters.Enums +namespace FFmpegArgs.Enums { /// /// https://ffmpeg.org/ffmpeg-scaler.html#Scaler-Options diff --git a/FFmpegArgs/Filters/Enums/ChannelLayout.cs b/FFmpegArgs/Enums/ChannelLayout.cs similarity index 99% rename from FFmpegArgs/Filters/Enums/ChannelLayout.cs rename to FFmpegArgs/Enums/ChannelLayout.cs index a0fe24b8..813db187 100644 --- a/FFmpegArgs/Filters/Enums/ChannelLayout.cs +++ b/FFmpegArgs/Enums/ChannelLayout.cs @@ -1,4 +1,5 @@ -namespace FFmpegArgs.Filters.Enums +using FFmpegArgs.Attributes; +namespace FFmpegArgs.Enums { /// /// https://github.com/FFmpeg/FFmpeg/blob/f6ab103bb5c2dd494620f7a28ae232efe497a4d1/libavutil/channel_layout.h#L90
@@ -179,7 +180,6 @@ public enum ChannelLayout /// FL+FR+FC+LFE+BC+SL+SR ///
[Name("6.1")] AV_CH_LAYOUT_6POINT1, - [Name("6.1(back)")] AV_CH_LAYOUT_6POINT1_BACK, /// /// FL+FR+LFE+FLC+FRC+SL+SR @@ -217,9 +217,7 @@ public enum ChannelLayout /// DL+DR /// [Name("downmix")] AV_CH_LAYOUT_STEREO_DOWNMIX, - [Name("22.2")] AV_CH_LAYOUT_22POINT2 - } } \ No newline at end of file diff --git a/FFmpegArgs/Filters/Enums/PixFmt.cs b/FFmpegArgs/Enums/PixFmt.cs similarity index 98% rename from FFmpegArgs/Filters/Enums/PixFmt.cs rename to FFmpegArgs/Enums/PixFmt.cs index f92f5dd7..98de9a5f 100644 --- a/FFmpegArgs/Filters/Enums/PixFmt.cs +++ b/FFmpegArgs/Enums/PixFmt.cs @@ -1,4 +1,4 @@ -namespace FFmpegArgs.Filters.Enums +namespace FFmpegArgs.Enums { /// /// ffmpeg -pix_fmts diff --git a/FFmpegArgs/Filters/Enums/SwsDither.cs b/FFmpegArgs/Enums/SwsDither.cs similarity index 85% rename from FFmpegArgs/Filters/Enums/SwsDither.cs rename to FFmpegArgs/Enums/SwsDither.cs index 6ba0bdc1..b6c6da42 100644 --- a/FFmpegArgs/Filters/Enums/SwsDither.cs +++ b/FFmpegArgs/Enums/SwsDither.cs @@ -1,4 +1,4 @@ -namespace FFmpegArgs.Filters.Enums +namespace FFmpegArgs.Enums { /// /// https://ffmpeg.org/ffmpeg-scaler.html#Scaler-Options diff --git a/FFmpegArgs/Filters/Enums/SwsFlags.cs b/FFmpegArgs/Enums/SwsFlags.cs similarity index 92% rename from FFmpegArgs/Filters/Enums/SwsFlags.cs rename to FFmpegArgs/Enums/SwsFlags.cs index e7cf023c..a347482f 100644 --- a/FFmpegArgs/Filters/Enums/SwsFlags.cs +++ b/FFmpegArgs/Enums/SwsFlags.cs @@ -1,4 +1,4 @@ -namespace FFmpegArgs.Filters.Enums +namespace FFmpegArgs.Enums { /// /// https://ffmpeg.org/ffmpeg-scaler.html#sws_005fflags diff --git a/FFmpegArgs/Filters/Enums/VideoRate.cs b/FFmpegArgs/Enums/VideoRate.cs similarity index 93% rename from FFmpegArgs/Filters/Enums/VideoRate.cs rename to FFmpegArgs/Enums/VideoRate.cs index b737dd83..8333e9bd 100644 --- a/FFmpegArgs/Filters/Enums/VideoRate.cs +++ b/FFmpegArgs/Enums/VideoRate.cs @@ -1,4 +1,5 @@ -namespace FFmpegArgs.Filters.Enums +using FFmpegArgs.Attributes; +namespace FFmpegArgs.Enums { /// /// https://ffmpeg.org/ffmpeg-utils.html#Video-rate @@ -9,37 +10,30 @@ public enum VideoRate /// 30000/1001 /// [Name("ntsc")] ntsc, - /// /// 25/1 /// [Name("pal")] pal, - /// /// 30000/1001 /// [Name("qntsc")] qntsc, - /// /// 25/1 /// [Name("qpal")] qpal, - /// /// 30000/1001 /// [Name("sntsc")] sntsc, - /// /// 25/1 /// [Name("spal")] spal, - /// /// 24/1 /// [Name("film")] film, - /// /// 24000/1001 /// diff --git a/FFmpegArgs/Filters/Enums/VideoSizeUtils.cs b/FFmpegArgs/Enums/VideoSizeUtils.cs similarity index 98% rename from FFmpegArgs/Filters/Enums/VideoSizeUtils.cs rename to FFmpegArgs/Enums/VideoSizeUtils.cs index 46c374ea..f26bb886 100644 --- a/FFmpegArgs/Filters/Enums/VideoSizeUtils.cs +++ b/FFmpegArgs/Enums/VideoSizeUtils.cs @@ -1,4 +1,5 @@ -namespace FFmpegArgs.Filters.Enums +using FFmpegArgs.Attributes; +namespace FFmpegArgs.Enums { /// /// https://ffmpeg.org/ffmpeg-utils.html#video-size-syntax @@ -9,262 +10,210 @@ public enum VideoSizeUtils /// 720x480 /// [Name("ntsc")] ntsc, - /// /// 720x576 /// [Name("pal")] pal, - /// /// 352x240 /// [Name("qntsc")] qntsc, - /// /// 352x288 /// [Name("qpal")] qpal, - /// /// 640x480 /// [Name("sntsc")] sntsc, - /// /// 768x576 /// [Name("spal")] spal, - /// /// 352x240 /// [Name("film")] film, - ///// ///// 352x240 ///// [Name("ntsc-film")] NtscFilm, - /// /// 128x96 /// [Name("sqcif")] sqcif, - /// /// 176x144 /// [Name("qcif")] qcif, - /// /// 352x288 /// [Name("cif")] cif, - ///// ///// 704x576 ///// [Name("4cif")] _4cif, - ///// ///// 1408x1152 ///// [Name("16cif")] _16cif, - /// /// 160x120 /// [Name("qqvga")] qqvga, - /// /// 320x240 /// [Name("qvga")] qvga, - /// /// 640x480 /// [Name("vga")] vga, - /// /// 800x600 /// [Name("svga")] svga, - /// /// 1024x768 /// [Name("xga")] xga, - /// /// 1600x1200 /// [Name("uxga")] uxga, - /// /// 2048x1536 /// [Name("qxga")] qxga, - /// /// 1280x1024 /// [Name("sxga")] sxga, - /// /// 2560x2048 /// [Name("qsxga")] qsxga, - /// /// 5120x4096 /// [Name("hsxga")] hsxga, - /// /// 852x480 /// [Name("wvga")] wvga, - /// /// 1366x768 /// [Name("wxga")] wxga, - /// /// 1600x1024 /// [Name("wsxga")] wsxga, - /// /// 1920x1200 /// [Name("wuxga")] wuxga, - /// /// 2560x1600 /// [Name("woxga")] woxga, - /// /// 3200x2048 /// [Name("wqsxga")] wqsxga, - /// /// 3840x2400 /// [Name("wquxga")] wquxga, - /// /// 6400x4096 /// [Name("whsxga")] whsxga, - /// /// 7680x4800 /// [Name("whuxga")] whuxga, - /// /// 320x200 /// [Name("cga")] cga, - /// /// 640x350 /// [Name("ega")] ega, - /// /// 852x480 /// [Name("hd480")] hd480, - /// /// 1280x720 /// [Name("hd720")] hd720, - /// /// 1920x1080 /// [Name("hd1080")] hd1080, - /// /// 2048x1080 /// [Name("2k")] _2k, - /// /// 1998x1080 /// [Name("2kflat")] _2kflat, - /// /// 2048x858 /// [Name("2kscope")] _2kscope, - /// /// 4096x2160 /// [Name("4k")] _4k, - /// /// 3996x2160 /// [Name("4kflat")] _4kflat, - /// /// 4096x1716 /// [Name("4kscope")] _4kscope, - /// /// 640x360 /// [Name("nhd")] nhd, - /// /// 240x160 /// [Name("hqvga")] hqvga, - /// /// 400x240 /// [Name("wqvga")] wqvga, - /// /// 432x240 /// [Name("fwqvga")] fwqvga, - /// /// 480x320 /// [Name("hvga")] hvga, - /// /// 960x540 /// [Name("qhd")] qhd, - /// /// 2048x1080 /// [Name("2kdci")] _2kdci, - /// /// 4096x2160 /// [Name("4kdci")] _4kdci, - /// /// 3840x2160 /// [Name("uhd2160")] uhd2160, - /// /// 7680x4320 /// diff --git a/FFmpegArgs/Exceptions/ExpressionException.cs b/FFmpegArgs/Exceptions/ExpressionException.cs index 09e81e09..8c80c04b 100644 --- a/FFmpegArgs/Exceptions/ExpressionException.cs +++ b/FFmpegArgs/Exceptions/ExpressionException.cs @@ -1,28 +1,22 @@ using System; - namespace FFmpegArgs.Exceptions { public class ExpressionException : Exception { internal ExpressionException(string message) : base(message) { - } } - public class InvalidTokenExpressionException : ExpressionException { internal InvalidTokenExpressionException(string message) : base(message) { - } } - public class InvalidInputExpressionException : ExpressionException { internal InvalidInputExpressionException(string message) : base(message) { - } } } diff --git a/FFmpegArgs/Exceptions/FilterException.cs b/FFmpegArgs/Exceptions/FilterException.cs index 88d52a87..f6079416 100644 --- a/FFmpegArgs/Exceptions/FilterException.cs +++ b/FFmpegArgs/Exceptions/FilterException.cs @@ -1,11 +1,9 @@ using System; - namespace FFmpegArgs.Exceptions { public class FilterException : Exception { public FilterException() { } - public FilterException(string message) : base(message) { } } } diff --git a/FFmpegArgs/Exceptions/InvalidRangeException.cs b/FFmpegArgs/Exceptions/InvalidRangeException.cs index 090255e9..50eb8568 100644 --- a/FFmpegArgs/Exceptions/InvalidRangeException.cs +++ b/FFmpegArgs/Exceptions/InvalidRangeException.cs @@ -1,12 +1,10 @@ using System; - namespace FFmpegArgs.Exceptions { public class InvalidRangeException : Exception { public InvalidRangeException(string message) : base(message) { - } } } diff --git a/FFmpegArgs/Expressions/ExpressionExtensions.cs b/FFmpegArgs/Expressions/ExpressionExtensions.cs new file mode 100644 index 00000000..fa007ec3 --- /dev/null +++ b/FFmpegArgs/Expressions/ExpressionExtensions.cs @@ -0,0 +1,28 @@ +using System; +namespace FFmpegArgs.Expressions +{ + /// + /// + /// + public static class ExpressionExtensions + { + /// + /// + /// + /// + /// + /// + public static FFmpegExpression Run(this Action action, FFmpegExpression expression) + { + action?.Invoke(expression); + return expression; + } + /// + /// + /// + /// + /// + public static Action Expression(this string str) + => new Action(_e => _e.Check(str)); + } +} diff --git a/FFmpegArgs/Expressions/FFmpegExpression.cs b/FFmpegArgs/Expressions/FFmpegExpression.cs index 0ce3227c..7ab27887 100644 --- a/FFmpegArgs/Expressions/FFmpegExpression.cs +++ b/FFmpegArgs/Expressions/FFmpegExpression.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; - namespace FFmpegArgs.Expressions { /// @@ -18,16 +17,13 @@ public class FFmpegExpression { "+", "-", "*", "/", "^" }; - static readonly IEnumerable _unaryOperators = new List() { "+", "-" }; static readonly IEnumerable _prefixes = new List() { - }; - static readonly IEnumerable _functionName = new List() { "abs", @@ -81,7 +77,6 @@ public class FFmpegExpression "trunc", "while", }; - static readonly IEnumerable _functionSY = new List() { "abs_1", @@ -139,7 +134,6 @@ public class FFmpegExpression "trunc_1", "while_2", }; - static readonly IEnumerable _consts = new List() { "PI", @@ -148,7 +142,6 @@ public class FFmpegExpression "INT_MAX", "NAN" }; - string _expression; readonly IEnumerable _adv_variables; readonly IEnumerable _adv_functionName; @@ -159,7 +152,6 @@ public FFmpegExpression(IEnumerable variables = null, IEnumerable x.Name).Concat(_functionName) ?? _functionName; this._adv_functionSY = advFunctions?.Select(x => x.SY).Concat(_functionSY) ?? _functionSY; } - /// /// /// @@ -172,10 +164,8 @@ public string Check(string expression) //https://en.wikipedia.org/wiki/Shunting-yard_algorithm //check.... string[] tokens = Regex.Split(expression, @"([0-9]+\.[0-9]+|[0-9]+|[*+\-\/(),]|[A-z]+)").Where(x => !string.IsNullOrWhiteSpace(x)).ToArray(); - Stack stacks = new Stack(); Queue outputs = new Queue(); - for (int i = 0; i < tokens.Length; i++) { if (_adv_functionName.Any(x => x.Equals(tokens[i]))) @@ -218,7 +208,6 @@ public string Check(string expression) { if (stacks.Count == 0) throw new InvalidInputExpressionException($"Surplus )"); - string pop = stacks.Pop(); if (pop.Equals("(")) { @@ -237,7 +226,6 @@ public string Check(string expression) } } while (stacks.Count > 0) outputs.Enqueue(stacks.Pop());//end Pop entire stack to output - //check invalid var invalid_tokens = outputs .Except(_adv_functionSY) @@ -247,18 +235,14 @@ public string Check(string expression) .Where(x => !double.TryParse(x, out double y)) .ToList(); if (invalid_tokens.Count > 0) throw new InvalidTokenExpressionException(string.Join(" ", invalid_tokens)); - this._expression = expression; return string.Join(" ", outputs); } - public void NonCheck(string expression) { this._expression = expression; } - - public override string ToString() { if (string.IsNullOrWhiteSpace(_expression)) throw new NullReferenceException(nameof(FFmpegExpression)); diff --git a/FFmpegArgs/Expressions/TimelineEditingExpression.cs b/FFmpegArgs/Expressions/TimelineEditingExpression.cs index 5d1bb781..0b096706 100644 --- a/FFmpegArgs/Expressions/TimelineEditingExpression.cs +++ b/FFmpegArgs/Expressions/TimelineEditingExpression.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; - namespace FFmpegArgs.Expressions { public class TimelineEditingExpression : FFmpegExpression @@ -13,11 +12,8 @@ public class TimelineEditingExpression : FFmpegExpression "h" }; - - public TimelineEditingExpression() : base(variables) { - } } } diff --git a/FFmpegArgs/FFmpegArg.cs b/FFmpegArgs/FFmpegArg.cs index 80aa481c..4caeb9a3 100644 --- a/FFmpegArgs/FFmpegArg.cs +++ b/FFmpegArgs/FFmpegArg.cs @@ -5,25 +5,18 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace FFmpegArgs { public class FFmpegArg : BaseOptionFlag { public IEnumerable Inputs { get { return _inputs; } } public IEnumerable Outputs { get { return _outputs; } } - internal List _inputs { get; } = new List(); internal List _outputs { get; } = new List(); - public FilterGraph FilterGraph { get; } = new FilterGraph(); public FFmpegArg() { - } - /// /// Audio with multi channel /// @@ -42,14 +35,12 @@ public IEnumerable AddAudiosInput(AudioInput sound, int count) } return results; } - public AudioMap AddAudioInput(AudioInput sound) { if (_inputs.Contains(sound)) throw new InvalidOperationException("Sound was add to input before"); _inputs.Add(sound); return new AudioMap(FilterGraph, $"{_inputs.IndexOf(sound)}") { IsInput = true }; } - public IEnumerable AddImagesInput(ImageInput image, int count) { if (_inputs.Contains(image)) throw new InvalidOperationException("Image was add to input before"); @@ -62,39 +53,32 @@ public IEnumerable AddImagesInput(ImageInput image, int count) } return results; } - public ImageMap AddImageInput(ImageInput image) { if (_inputs.Contains(image)) throw new InvalidOperationException("Image was add to input before"); _inputs.Add(image); return new ImageMap(FilterGraph, $"{_inputs.IndexOf(image)}") { IsInput = true }; } - public VideoMap AddVideoInput(VideoInput video, int imageCount = 1, int audioCount = 1) { if (_inputs.Contains(video)) throw new InvalidOperationException("Video was add to input before"); //if (imageCount < 1 || audioCount < 1) // throw new InvalidRangeException($"imageCount or audioCount < 1\r\nFor non audio, use {nameof(ImageInput)} instead"); - _inputs.Add(video); int inputIndex = _inputs.IndexOf(video); List imageMaps = new List(); List audioMaps = new List(); - for (int i = 0; i < imageCount; i++) imageMaps.Add(new ImageMap(FilterGraph, $"{inputIndex}") { IsInput = true, StreamIndex = i }); for (int i = 0; i < audioCount; i++) audioMaps.Add(new AudioMap(FilterGraph, $"{inputIndex}") { IsInput = true, StreamIndex = i }); - return new VideoMap(imageMaps, audioMaps); } - public void AddOutput(BaseOutput output) { if (_outputs.Contains(output)) throw new InvalidOperationException("This output was add before"); _outputs.Add(output); } - public string GetGlobalArgs() { return GetArgs(); @@ -108,7 +92,6 @@ public string GetOutputsArgs() return string.Join(" ", _outputs); } - public string GetFullCommandline(bool useChain = true) { string filter = FilterGraph.GetFiltersArgs(false, useChain); @@ -122,7 +105,6 @@ public string GetFullCommandline(bool useChain = true) }; return string.Join(" ", args.Where(x => !string.IsNullOrWhiteSpace(x))); } - public string GetFullCommandlineWithFilterScript(string script_name_or_path) { List args = new List() diff --git a/FFmpegArgs/FFmpegArgs.nuspec b/FFmpegArgs/FFmpegArgs.nuspec index 2f40659d..430af285 100644 --- a/FFmpegArgs/FFmpegArgs.nuspec +++ b/FFmpegArgs/FFmpegArgs.nuspec @@ -3,7 +3,7 @@ FFmpegArgs - 1.1.1$build$ + 1.2.0$build$ Generate arguments for ffmpeg executable tqk2811 https://github.com/tqk2811/FFmpegArgs diff --git a/FFmpegArgs/FilterGraph.cs b/FFmpegArgs/FilterGraph.cs index 914fcaa2..11a28cce 100644 --- a/FFmpegArgs/FilterGraph.cs +++ b/FFmpegArgs/FilterGraph.cs @@ -1,25 +1,28 @@ using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Inputs; using FFmpegArgs.Cores.Maps; -using FFmpegArgs.Cores.Outputs; using FFmpegArgs.Exceptions; using System; using System.Collections.Generic; using System.Linq; - namespace FFmpegArgs { + /// + /// + /// public class FilterGraph { - public IEnumerable> Filters { get { return _filters; } } + /// + /// + /// + public IEnumerable> Filters { get { return _filters; } } internal List> _filters { get; } = new List>(); - - + /// + /// + /// public FilterGraph() { } - /// /// /// @@ -44,7 +47,6 @@ public string GetFiltersArgs(bool withNewLine = false, bool useChain = true) else return string.Join(";", _filters); } } - /// /// /// diff --git a/FFmpegArgs/Filters/VideoToVideoFilter.cs b/FFmpegArgs/Filters/VideoToVideoFilter.cs deleted file mode 100644 index afdbc134..00000000 --- a/FFmpegArgs/Filters/VideoToVideoFilter.cs +++ /dev/null @@ -1,13 +0,0 @@ -using FFmpegArgs.Cores.Filters; -using FFmpegArgs.Cores.Maps; - -namespace FFmpegArgs.Filters -{ - public abstract class VideoToVideoFilter : BaseFilter - { - protected VideoToVideoFilter(string filterName, params BaseMap[] baseMaps) : base(filterName, baseMaps) - { - - } - } -} diff --git a/FFmpegArgs/GlobalOptionsExtension.cs b/FFmpegArgs/GlobalOptionsExtension.cs index 0db6f1ca..51f4a4c0 100644 --- a/FFmpegArgs/GlobalOptionsExtension.cs +++ b/FFmpegArgs/GlobalOptionsExtension.cs @@ -1,5 +1,4 @@ using System; - namespace FFmpegArgs { public static class GlobalOptionsExtension @@ -11,7 +10,6 @@ public static class GlobalOptionsExtension /// public static FFmpegArg OverWriteOutput(this FFmpegArg ffmpegArg) => ffmpegArg.SetFlag("-y"); - /// /// Allow forcing a decoder of a different media type than the one detected or designated by the demuxer. Useful for decoding media data muxed as data streams. /// @@ -19,7 +17,6 @@ public static FFmpegArg OverWriteOutput(this FFmpegArg ffmpegArg) /// public static FFmpegArg RecastMedia(this FFmpegArg ffmpegArg) => ffmpegArg.SetFlag("-recast_media"); - /// /// Set period at which encoding progress/statistics are updated. Default is 0.5 seconds. /// @@ -28,7 +25,6 @@ public static FFmpegArg RecastMedia(this FFmpegArg ffmpegArg) /// public static FFmpegArg StatsPeriod(this FFmpegArg ffmpegArg, double time) => ffmpegArg.SetOptionRange("-stats_period", time, 0, double.MaxValue); - /// /// Set period at which encoding progress/statistics are updated. Default is 0.5 seconds. /// @@ -37,7 +33,6 @@ public static FFmpegArg StatsPeriod(this FFmpegArg ffmpegArg, double time) /// public static FFmpegArg StatsPeriod(this FFmpegArg ffmpegArg, TimeSpan time) => ffmpegArg.SetOptionRange("-stats_period", time, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Defines how many threads are used to process a filter_complex graph. Similar to filter_threads but used for -filter_complex graphs only. The default is the number of available CPUs. /// @@ -46,7 +41,6 @@ public static FFmpegArg StatsPeriod(this FFmpegArg ffmpegArg, TimeSpan time) /// public static FFmpegArg FilterComplexThreads(this FFmpegArg ffmpegArg, int threads) => ffmpegArg.SetOptionRange("-filter_complex_threads", threads, 1, int.MaxValue); - /// /// Set fraction of decoding frame failures across all inputs which when crossed ffmpeg will return exit code 69. Crossing this threshold does not terminate processing. Range is a floating-point number between 0 to 1. Default is 2/3. /// @@ -55,7 +49,6 @@ public static FFmpegArg FilterComplexThreads(this FFmpegArg ffmpegArg, int threa /// public static FFmpegArg MaxErrorRate(this FFmpegArg ffmpegArg, float rate) => ffmpegArg.SetOptionRange("-max_error_rate", rate, 0, 1); - /// /// Enable automatically inserting format conversion filters in all filter graphs, including those defined by -vf, -af, -filter_complex and -lavfi. If filter format negotiation requires a conversion, the initialization of the filters will fail. Conversions can still be performed by inserting the relevant conversion filter (scale, aresample) in the graph. On by default, to explicitly disable it you need to specify -noauto_conversion_filters. /// @@ -63,7 +56,6 @@ public static FFmpegArg MaxErrorRate(this FFmpegArg ffmpegArg, float rate) /// public static FFmpegArg noauto_conversion_filters(this FFmpegArg ffmpegArg) => ffmpegArg.SetFlag("-noauto_conversion_filters"); - /// /// Set threads using, default: 0 (auto detect cpu core) /// diff --git a/FFmpegArgs/InputOutputExtensions.cs b/FFmpegArgs/InputOutputExtensions.cs index 5691c55d..30016c8e 100644 --- a/FFmpegArgs/InputOutputExtensions.cs +++ b/FFmpegArgs/InputOutputExtensions.cs @@ -1,6 +1,5 @@ using FFmpegArgs.Cores; using System; - namespace FFmpegArgs { /// @@ -17,7 +16,6 @@ public static class InputOutputExtensions /// public static T Fmt(this T t, string fmt) where T : BaseInputOutput => t.SetOption("-f", fmt); - /// /// Select an encoder (when used before an output file) or a decoder (when used before an input file) for one or more streams. codec is the name of a decoder/encoder or a special value copy (output only) to indicate that the stream is not to be re-encoded. /// @@ -41,7 +39,6 @@ public static T VCodec(this T t, string codec, int? stream_specifier = null) return t; } - /// /// Select an encoder (when used before an output file) or a decoder (when used before an input file) for one or more streams. codec is the name of a decoder/encoder or a special value copy (output only) to indicate that the stream is not to be re-encoded. /// @@ -64,7 +61,6 @@ public static T ACodec(this T t, string codec, int? stream_specifier = null) } return t; } - /// /// When used as an input option (before -i), limit the duration of data read from the input file.
///
When used as an output option(before an output url), stop writing the output after its duration reaches duration.
@@ -77,7 +73,6 @@ public static T ACodec(this T t, string codec, int? stream_specifier = null) public static T Duration(this T t, TimeSpan duration) where T : BaseInputOutput => t.SetOptionRange("-t", duration, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// Stop writing the output or reading the input at position. /// @@ -87,7 +82,6 @@ public static T Duration(this T t, TimeSpan duration) where T : BaseInputOutp /// public static T ToPosition(this T t, TimeSpan position) where T : BaseInputOutput => t.SetOptionRange("-to", position, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// When used as an input option (before -i), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position. When transcoding and -accurate_seek is enabled (the default), this extra segment between the seek point and position will be decoded and discarded. When doing stream copy or when -noaccurate_seek is used, it will be preserved.
///
When used as an output option(before an output url), decodes but discards input until the timestamps reach position. @@ -99,7 +93,6 @@ public static T ToPosition(this T t, TimeSpan position) where T : BaseInputOu public static T SsPosition(this T t, TimeSpan position) where T : BaseInputOutput => t.SetOptionRange("-ss", position, TimeSpan.Zero, TimeSpan.MaxValue); - /// /// As an input option, blocks all data streams of a file from being filtered or being automatically selected or mapped for any output. See -discard option to disable streams individually.
///
As an output option, disables data recording i.e.automatic selection or mapping of any data stream.For full manual control see the -map option. diff --git a/FFmpegArgs/Filters/Rational.cs b/FFmpegArgs/Utils/Rational.cs similarity index 53% rename from FFmpegArgs/Filters/Rational.cs rename to FFmpegArgs/Utils/Rational.cs index fdfb3f30..9f6faa4d 100644 --- a/FFmpegArgs/Filters/Rational.cs +++ b/FFmpegArgs/Utils/Rational.cs @@ -1,19 +1,33 @@ using FFmpegArgs.Exceptions; - -namespace FFmpegArgs.Filters +namespace FFmpegArgs.Utils { + /// + /// + /// public class Rational { + /// + /// + /// public int Numerator { get; set; } + /// + /// + /// public int Denominator { get; set; } - + /// + /// + /// public Rational() { } + /// + /// + /// + /// + /// public Rational(int num, int den) { this.Numerator = num; this.Denominator = den; } - /// /// Create with den = 1 /// @@ -21,9 +35,21 @@ public Rational(int num, int den) /// public static Rational Create(int num) => new Rational(num, 1); + /// + /// + /// + /// + /// + /// public static Rational Create(int num, int den) => new Rational(num, den); - + /// + /// + /// + /// + /// + /// + /// public Rational Check(double min, double max) { double rate = (double)Numerator / Denominator; @@ -31,16 +57,38 @@ public Rational Check(double min, double max) throw new InvalidRangeException($"Rational rate InvalidRangeException, required {min} <= {Numerator}/{Denominator} <= {max}"); return this; } - + /// + /// + /// + /// public override string ToString() { return $"{Numerator}/{Denominator}"; } - + /// + /// + /// + /// public static implicit operator Rational(int num) => Create(num); + /// + /// + /// + /// public static implicit operator Rational(long num) => Create((int)num); + /// + /// + /// + /// public static implicit operator Rational(float num) => Create((int)num); + /// + /// + /// + /// public static implicit operator Rational(double num) => Create((int)num); + /// + /// + /// + /// public static implicit operator Rational(decimal num) => Create((int)num); } } diff --git a/FFmpegArgs/VideoOptionExtensions.cs b/FFmpegArgs/VideoOptionExtensions.cs index e74cf0c8..f7a4b0de 100644 --- a/FFmpegArgs/VideoOptionExtensions.cs +++ b/FFmpegArgs/VideoOptionExtensions.cs @@ -1,8 +1,7 @@ using FFmpegArgs.Cores; -using FFmpegArgs.Filters.Enums; +using FFmpegArgs.Enums; using System; using System.Drawing; - namespace FFmpegArgs { /// @@ -33,7 +32,6 @@ public static T Fps(this T t, int fps, int? stream_specifier = null) where T } return t; } - /// /// As an input option, this is a shortcut for the video_size private option, recognized by some demuxers for which the frame size is either not stored in the file or is configurable – e.g. raw video or video grabbers.
///
As an output option, this inserts the scale video filter to the end of the corresponding filtergraph.Please use the scale filter directly to insert it at the beginning or some other place.
@@ -58,7 +56,6 @@ public static T Size(this T t, Size size, int? stream_specifier = null) where } return t; } - /// /// As an input option, blocks all video streams of a file from being filtered or being automatically selected or mapped for any output. See -discard option to disable streams individually.
///
As an output option, disables video recording i.e.automatic selection or mapping of any video stream.For full manual control see the -map option. @@ -68,13 +65,13 @@ public static T Size(this T t, Size size, int? stream_specifier = null) where /// public static T VN(this T t) where T : BaseInputOutput, IImage => t.SetFlag("-vn"); - /// /// Set pixel format. Use -pix_fmts to show all the supported pixel formats. If the selected pixel format can not be selected, ffmpeg will print a warning and select the best pixel format supported by the encoder. If pix_fmt is prefixed by a +, ffmpeg will exit with an error if the requested pixel format can not be selected, and automatic conversions inside filtergraphs are disabled. If pix_fmt is a single +, ffmpeg selects the same pixel format as the input (or graph output) and automatic conversions are disabled. /// /// /// /// + /// /// public static T Format(this T t, PixFmt pixFmt, int? stream_specifier = null) where T : BaseInputOutput, IImage { @@ -89,9 +86,7 @@ public static T Format(this T t, PixFmt pixFmt, int? stream_specifier = null) } return t; } - public static T SwsFlags(this T t, SwsFlags swsFlags) where T : BaseInputOutput, IImage => t.SetOption("-sws_flags", swsFlags); - } } diff --git a/ProjectBuildProperties.targets b/ProjectBuildProperties.targets index 072c4dc8..a825f8b8 100644 --- a/ProjectBuildProperties.targets +++ b/ProjectBuildProperties.targets @@ -1,12 +1,12 @@ net462;netstandard2.0;net5.0;net6.0 - 8.0 + 10.0 false false false True $(MSBuildProjectDirectory)=$(MSBuildProjectName) - 1.1 + 1.2 \ No newline at end of file