xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | Functions
fftscope.c File Reference
#include <stdio.h>
#include <math.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_fftscope_s
 

Macros

#define FPS   20
 
#define FFT_WIDTH   512
 
#define FFT_HEIGHT   256
 
#define NUMSAMPLES   512
 
#define MAXCHANNELS   6
 
#define FFT_BITS   9
 

Typedefs

typedef struct post_plugin_fftscope_s post_plugin_fftscope_t
 

Functions

static void fade_out_yuv (uint8_t *y, uint8_t *u, uint8_t *v, float factor)
 
static void draw_fftscope (post_plugin_fftscope_t *this, vo_frame_t *frame)
 
static int fftscope_rewire_video (xine_post_out_t *output_gen, void *data)
 
static int fftscope_port_open (xine_audio_port_t *port_gen, xine_stream_t *stream, uint32_t bits, uint32_t rate, int mode)
 
static void fftscope_port_close (xine_audio_port_t *port_gen, xine_stream_t *stream)
 
static void fftscope_port_put_buffer (xine_audio_port_t *port_gen, audio_buffer_t *buf, xine_stream_t *stream)
 
static void fftscope_dispose (post_plugin_t *this_gen)
 
static post_plugin_tfftscope_open_plugin (post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target)
 
void * fftscope_init_plugin (xine_t *xine, const void *data)
 

Macro Definition Documentation

◆ FFT_BITS

#define FFT_BITS   9

Referenced by fftscope_port_open().

◆ FFT_HEIGHT

#define FFT_HEIGHT   256

◆ FFT_WIDTH

#define FFT_WIDTH   512

◆ FPS

#define FPS   20

Referenced by fftscope_port_open().

◆ MAXCHANNELS

#define MAXCHANNELS   6

Referenced by fftscope_port_open().

◆ NUMSAMPLES

#define NUMSAMPLES   512

Typedef Documentation

◆ post_plugin_fftscope_t

Function Documentation

◆ draw_fftscope()

static void draw_fftscope ( post_plugin_fftscope_t * this,
vo_frame_t * frame )
static

◆ fade_out_yuv()

static void fade_out_yuv ( uint8_t * y,
uint8_t * u,
uint8_t * v,
float factor )
static

References v.

Referenced by draw_fftscope().

◆ fftscope_dispose()

static void fftscope_dispose ( post_plugin_t * this_gen)
static

References _x_freep(), and _x_post_dispose().

Referenced by fftscope_open_plugin().

◆ fftscope_init_plugin()

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

◆ fftscope_open_plugin()

static post_plugin_t * fftscope_open_plugin ( post_class_t * class_gen,
int inputs,
xine_audio_port_t ** audio_target,
xine_video_port_t ** video_target )
static

◆ fftscope_port_close()

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

◆ fftscope_port_open()

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

◆ fftscope_port_put_buffer()

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

◆ fftscope_rewire_video()

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