remove unused param from struct

dev
xufulong 3 years ago
parent 6ad0556e8f
commit 074787e36b
  1. 3
      app/CMakeLists.txt
  2. 3
      app/src/main/cpp/visualizer/execute_fft.c
  3. 41
      app/src/main/cpp/visualizer/execute_fft.h

@ -35,8 +35,9 @@ add_library( # Sets the name of the library.
src/main/cpp/fast_start.c
src/main/cpp/ffprobe_cmd.cpp
src/main/cpp/visualizer/fft.c
src/main/cpp/visualizer/fixed_fft.c
src/main/cpp/visualizer/block_queue.c
src/main/cpp/visualizer/execute_fft.c
src/main/cpp/visualizer/execute_fft.c
src/main/cpp/visualizer/window.c
)

@ -23,9 +23,6 @@ int open_visualizer(filter_sys_t *p_sys)
p_sys->i_prev_nb_samples = 0;
p_sys->p_prev_s16_buff = NULL;
p_sys->f_rotationAngle = 0;
p_sys->f_rotationIncrement = ROTATION_INCREMENT;
window_param *w_param = (window_param*) malloc(sizeof(window_param));
p_sys->wind_param = *w_param;

@ -16,30 +16,23 @@ extern "C" {
#include "fft.h"
#include "window.h"
#ifdef __cplusplus
}
#endif
typedef struct
{
pthread_t thread;
vlc_queue_t queue;
bool dead;
int i_channels;
int i_prev_nb_samples;
int16_t *p_prev_s16_buff;
float f_rotationAngle;
float f_rotationIncrement;
/* FFT window parameters */
window_param wind_param;
uint8_t *data;
int data_size;
int nb_samples;
int8_t *output;
int out_samples;
pthread_t thread;
vlc_queue_t queue;
bool dead;
int i_channels;
int i_prev_nb_samples;
int16_t *p_prev_s16_buff;
/* FFT window parameters */
window_param wind_param;
uint8_t *data;
int data_size;
int nb_samples;
int8_t *output;
int out_samples;
} filter_sys_t;
static void *fft_thread(void *);
@ -58,4 +51,8 @@ void release_visualizer(filter_sys_t *p_sys);
int ensure_memory(filter_sys_t *fft_filter, int nb_samples);
#ifdef __cplusplus
}
#endif
#endif //EXECUTE_FFT_H

Loading…
Cancel
Save