mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/avf_showspectrum: Change enums to int, which are accessed via AVOption as int
This fixes depending on implementation defined behavior Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cf729b2489
commit
7ff296be9f
|
@ -48,16 +48,16 @@ typedef struct {
|
||||||
int nb_display_channels;
|
int nb_display_channels;
|
||||||
int channel_height;
|
int channel_height;
|
||||||
int sliding; ///< 1 if sliding mode, 0 otherwise
|
int sliding; ///< 1 if sliding mode, 0 otherwise
|
||||||
enum DisplayMode mode; ///< channel display mode
|
int mode; ///< channel display mode
|
||||||
enum ColorMode color_mode; ///< display color scheme
|
int color_mode; ///< display color scheme
|
||||||
enum DisplayScale scale;
|
int scale;
|
||||||
float saturation; ///< color saturation multiplier
|
float saturation; ///< color saturation multiplier
|
||||||
int xpos; ///< x position (current column)
|
int xpos; ///< x position (current column)
|
||||||
RDFTContext *rdft; ///< Real Discrete Fourier Transform context
|
RDFTContext *rdft; ///< Real Discrete Fourier Transform context
|
||||||
int rdft_bits; ///< number of bits (RDFT window size = 1<<rdft_bits)
|
int rdft_bits; ///< number of bits (RDFT window size = 1<<rdft_bits)
|
||||||
FFTSample **rdft_data; ///< bins holder for each (displayed) channels
|
FFTSample **rdft_data; ///< bins holder for each (displayed) channels
|
||||||
float *window_func_lut; ///< Window function LUT
|
float *window_func_lut; ///< Window function LUT
|
||||||
enum WindowFunc win_func;
|
int win_func;
|
||||||
float *combine_buffer; ///< color combining buffer (3 * h items)
|
float *combine_buffer; ///< color combining buffer (3 * h items)
|
||||||
} ShowSpectrumContext;
|
} ShowSpectrumContext;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue