diff options
Diffstat (limited to 'src/post/visualizations/fftscope.c')
-rw-r--r-- | src/post/visualizations/fftscope.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c index c595e21be..5132ba0a6 100644 --- a/src/post/visualizations/fftscope.c +++ b/src/post/visualizations/fftscope.c @@ -22,7 +22,7 @@ * * FFT code by Steve Haehnichen, originally licensed under GPL v1 * - * $Id: fftscope.c,v 1.14 2003/07/26 17:44:30 tmattern Exp $ + * $Id: fftscope.c,v 1.15 2003/08/04 03:47:11 miguelfreitas Exp $ * */ @@ -58,6 +58,8 @@ struct post_plugin_fftscope_s { xine_video_port_t *vo_port; xine_stream_t *stream; + double ratio; + int data_idx; complex wave[MAXCHANNELS][NUMSAMPLES]; int amp_max[MAXCHANNELS][NUMSAMPLES / 2]; @@ -492,6 +494,8 @@ static int fftscope_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream post_plugin_fftscope_t *this = (post_plugin_fftscope_t *)port->post; int c, i; + this->ratio = (double)FFT_WIDTH/(double)FFT_HEIGHT; + this->bits = bits; this->mode = mode; this->channels = mode_channels(mode); @@ -599,7 +603,7 @@ static void fftscope_port_put_buffer (xine_audio_port_t *port_gen, samples_used += this->samples_per_frame; frame = this->vo_port->get_frame (this->vo_port, FFT_WIDTH, FFT_HEIGHT, - XINE_VO_ASPECT_SQUARE, XINE_IMGFMT_YUY2, + this->ratio, XINE_IMGFMT_YUY2, VO_BOTH_FIELDS); frame->extra_info->invalid = 1; frame->bad_frame = 0; |