xine-lib 1.2.11
|
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/post.h>
#include "bswap.h"
#include "visualizations.h"
#include "fft.h"
Data Structures | |
struct | post_plugin_fftgraph_s |
Macros | |
#define | FPS 20 |
#define | FFTGRAPH_WIDTH 512 |
#define | FFTGRAPH_HEIGHT 256 |
#define | FFT_BITS 11 |
#define | NUMSAMPLES (1 << FFT_BITS) |
#define | MAXCHANNELS 6 |
Typedefs | |
typedef struct post_plugin_fftgraph_s | post_plugin_fftgraph_t |
Functions | |
static int | d2db (double d) |
static void | fade (int r1, int g1, int b1, int r2, int g2, int b2, uint32_t *yuy2_colors, int ldsteps) |
static void | draw_fftgraph (post_plugin_fftgraph_t *this, vo_frame_t *frame) |
static int | fftgraph_rewire_video (xine_post_out_t *output_gen, void *data) |
static int | fftgraph_port_open (xine_audio_port_t *port_gen, xine_stream_t *stream, uint32_t bits, uint32_t rate, int mode) |
static void | fftgraph_port_close (xine_audio_port_t *port_gen, xine_stream_t *stream) |
static void | fftgraph_port_put_buffer (xine_audio_port_t *port_gen, audio_buffer_t *buf, xine_stream_t *stream) |
static void | fftgraph_dispose (post_plugin_t *this_gen) |
static post_plugin_t * | fftgraph_open_plugin (post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target) |
void * | fftgraph_init_plugin (xine_t *xine, const void *data) |
#define FFT_BITS 11 |
#define FFTGRAPH_HEIGHT 256 |
#define FFTGRAPH_WIDTH 512 |
#define FPS 20 |
#define MAXCHANNELS 6 |
#define NUMSAMPLES (1 << FFT_BITS) |
typedef struct post_plugin_fftgraph_s post_plugin_fftgraph_t |
|
static |
Referenced by draw_fftgraph().
|
static |
References vo_frame_s::base, be2me_32, d2db(), fft_amp2(), fft_compute(), fft_scale(), fft_window(), FFTGRAPH_HEIGHT, FFTGRAPH_WIDTH, and xine_fast_memcpy.
Referenced by fftgraph_port_put_buffer().
|
static |
References COMPUTE_U, COMPUTE_V, and COMPUTE_Y.
Referenced by fftgraph_port_open().
|
static |
References _x_freep(), and _x_post_dispose().
Referenced by fftgraph_open_plugin().
void * fftgraph_init_plugin | ( | xine_t * | xine, |
const void * | data | ||
) |
References fftgraph_open_plugin(), N_, NULL, and post_class_s::open_plugin.
|
static |
References _x_post_init(), _x_post_intercept_audio_port(), xine_audio_port_s::close, xine_post_out_s::data, fftgraph_dispose(), fftgraph_port_close(), fftgraph_port_open(), fftgraph_port_put_buffer(), fftgraph_rewire_video(), input(), xine_post_out_s::name, post_audio_port_s::new_port, NULL, xine_audio_port_s::open, post_out_s::post, xine_audio_port_s::put_buffer, xine_post_out_s::rewire, xine_post_out_s::type, xine_list_push_back(), post_out_s::xine_out, and XINE_POST_DATA_VIDEO.
Referenced by fftgraph_init_plugin().
|
static |
References _x_post_dec_usage, xine_audio_port_s::close, fft_dispose(), NULL, post_audio_port_s::original_port, post_audio_port_s::post, post_audio_port_s::stream, and XINE_ANON_STREAM.
Referenced by fftgraph_open_plugin().
|
static |
References _x_ao_mode2channels(), _x_metronom_init(), _x_post_inc_usage, _x_post_rewire(), be2me_32, post_audio_port_s::bits, bits, fade(), FFT_BITS, fft_new(), FFTGRAPH_HEIGHT, FFTGRAPH_WIDTH, FPS, MAXCHANNELS, xine_stream_s::metronom, post_audio_port_s::mode, mode(), xine_audio_port_s::open, post_audio_port_s::original_port, post_audio_port_s::post, post_audio_port_s::rate, post_audio_port_s::stream, xine_stream_s::xine, and XINE_ANON_STREAM.
Referenced by fftgraph_open_plugin().
|
static |
References post_audio_port_s::bits, draw_fftgraph(), FFTGRAPH_HEIGHT, FFTGRAPH_WIDTH, audio_buffer_s::mem, audio_buffer_s::mem_size, audio_buffer_s::num_frames, NUMSAMPLES, post_audio_port_s::original_port, post_audio_port_s::post, xine_audio_port_s::put_buffer, post_audio_port_s::rate, VO_BOTH_FIELDS, audio_buffer_s::vpts, XINE_ANON_STREAM, and XINE_IMGFMT_YUY2.
Referenced by fftgraph_open_plugin().
|
static |
References xine_video_port_s::close, xine_post_out_s::data, post_out_s::post, and XINE_ANON_STREAM.
Referenced by fftgraph_open_plugin().