root/modules/visualization/visual/visual.h
| Revision 1b72149a5607d46b56a84f48e16a9adde10c8e63, 2.7 kB (checked in by Jean-Baptiste Kempf <jb@videolan.org>, 6 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /***************************************************************************** |
| 2 | * visual.h : Header for the visualisation system |
| 3 | ***************************************************************************** |
| 4 | * Copyright (C) 2002 the VideoLAN team |
| 5 | * $Id$ |
| 6 | * |
| 7 | * Authors: Clément Stenac <zorglub@via.ecp.fr> |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by |
| 11 | * the Free Software Foundation; either version 2 of the License, or |
| 12 | * (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
| 22 | *****************************************************************************/ |
| 23 | |
| 24 | typedef struct visual_effect_t |
| 25 | { |
| 26 | char * psz_name; /* Filter name*/ |
| 27 | |
| 28 | int (*pf_run)( struct visual_effect_t * , aout_instance_t *, |
| 29 | aout_buffer_t *, picture_t *); |
| 30 | void * p_data; /* The effect stores whatever it wants here */ |
| 31 | int i_width; |
| 32 | int i_height; |
| 33 | char * psz_args; |
| 34 | int i_nb_chans; |
| 35 | } visual_effect_t ; |
| 36 | |
| 37 | |
| 38 | /***************************************************************************** |
| 39 | * aout_filter_sys_t: visualizer audio filter method descriptor |
| 40 | ***************************************************************************** |
| 41 | * This structure is part of the audio filter descriptor. |
| 42 | * It describes some visualizer specific variables. |
| 43 | *****************************************************************************/ |
| 44 | typedef struct aout_filter_sys_t |
| 45 | { |
| 46 | vout_thread_t *p_vout; |
| 47 | |
| 48 | int i_width; |
| 49 | int i_height; |
| 50 | |
| 51 | int i_effect; |
| 52 | visual_effect_t **effect; |
| 53 | } aout_filter_sys_t; |
| 54 | |
| 55 | /* Prototypes */ |
| 56 | int scope_Run |
| 57 | (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); |
| 58 | int vuMeter_Run |
| 59 | (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); |
| 60 | int dummy_Run |
| 61 | (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); |
| 62 | int random_Run |
| 63 | (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); |
| 64 | int spectrum_Run |
| 65 | (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); |
| 66 | int spectrometer_Run |
| 67 | (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); |
| 68 | |
| 69 | /* Default vout size */ |
| 70 | #define VOUT_WIDTH 533 |
| 71 | #define VOUT_HEIGHT 400 |
Note: See TracBrowser for help on using the browser.
