xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | Functions
oscope.c File Reference
#include <stdio.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/post.h>
#include "visualizations.h"

Data Structures

struct  post_plugin_oscope_s
 

Macros

#define FPS   20
 
#define NUMSAMPLES   512
 
#define MAXCHANNELS   6
 
#define OSCOPE_WIDTH   NUMSAMPLES
 
#define OSCOPE_HEIGHT   256
 

Typedefs

typedef struct post_plugin_oscope_s post_plugin_oscope_t
 

Functions

static void draw_oscope_dots (post_plugin_oscope_t *this)
 
static int oscope_rewire_video (xine_post_out_t *output_gen, void *data)
 
static int oscope_port_open (xine_audio_port_t *port_gen, xine_stream_t *stream, uint32_t bits, uint32_t rate, int mode)
 
static void oscope_port_close (xine_audio_port_t *port_gen, xine_stream_t *stream)
 
static void oscope_port_put_buffer (xine_audio_port_t *port_gen, audio_buffer_t *buf, xine_stream_t *stream)
 
static void oscope_dispose (post_plugin_t *this_gen)
 
static post_plugin_toscope_open_plugin (post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target)
 
void * oscope_init_plugin (xine_t *xine, const void *data)
 

Macro Definition Documentation

◆ FPS

#define FPS   20

Referenced by oscope_port_open().

◆ MAXCHANNELS

#define MAXCHANNELS   6

Referenced by oscope_port_open().

◆ NUMSAMPLES

#define NUMSAMPLES   512

◆ OSCOPE_HEIGHT

#define OSCOPE_HEIGHT   256

◆ OSCOPE_WIDTH

#define OSCOPE_WIDTH   NUMSAMPLES

Typedef Documentation

◆ post_plugin_oscope_t

Function Documentation

◆ draw_oscope_dots()

static void draw_oscope_dots ( post_plugin_oscope_t * this)
static

◆ oscope_dispose()

static void oscope_dispose ( post_plugin_t * this_gen)
static

References _x_freep(), and _x_post_dispose().

Referenced by oscope_open_plugin().

◆ oscope_init_plugin()

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

◆ oscope_open_plugin()

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

◆ oscope_port_close()

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

◆ oscope_port_open()

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

◆ oscope_port_put_buffer()

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

◆ oscope_rewire_video()

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