xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | Functions
fftgraph.c File Reference
#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_tfftgraph_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)
 

Macro Definition Documentation

◆ FFT_BITS

#define FFT_BITS   11

Referenced by fftgraph_port_open().

◆ FFTGRAPH_HEIGHT

#define FFTGRAPH_HEIGHT   256

◆ FFTGRAPH_WIDTH

#define FFTGRAPH_WIDTH   512

◆ FPS

#define FPS   20

Referenced by fftgraph_port_open().

◆ MAXCHANNELS

#define MAXCHANNELS   6

Referenced by fftgraph_port_open().

◆ NUMSAMPLES

#define NUMSAMPLES   (1 << FFT_BITS)

Typedef Documentation

◆ post_plugin_fftgraph_t

Function Documentation

◆ d2db()

static int d2db ( double d)
static

Referenced by draw_fftgraph().

◆ draw_fftgraph()

static void draw_fftgraph ( post_plugin_fftgraph_t * this,
vo_frame_t * frame )
static

◆ fade()

static void fade ( int r1,
int g1,
int b1,
int r2,
int g2,
int b2,
uint32_t * yuy2_colors,
int ldsteps )
static

References COMPUTE_U, COMPUTE_V, COMPUTE_Y, and v.

Referenced by fftgraph_port_open().

◆ fftgraph_dispose()

static void fftgraph_dispose ( post_plugin_t * this_gen)
static

References _x_freep(), and _x_post_dispose().

Referenced by fftgraph_open_plugin().

◆ fftgraph_init_plugin()

void * fftgraph_init_plugin ( xine_t * xine,
const void * data )

◆ fftgraph_open_plugin()

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 )
static

◆ fftgraph_port_close()

static void fftgraph_port_close ( xine_audio_port_t * port_gen,
xine_stream_t * stream )
static

◆ fftgraph_port_open()

static int fftgraph_port_open ( xine_audio_port_t * port_gen,
xine_stream_t * stream,
uint32_t bits,
uint32_t rate,
int mode )
static

◆ fftgraph_port_put_buffer()

static void fftgraph_port_put_buffer ( xine_audio_port_t * port_gen,
audio_buffer_t * buf,
xine_stream_t * stream )
static

◆ fftgraph_rewire_video()

static int fftgraph_rewire_video ( xine_post_out_t * output_gen,
void * data )
static