Re: [linux-audio-dev] waveform overview

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] waveform overview
From: Stefan Kost (kost_AT_imn.htwk-leipzig.de)
Date: Mon Oct 14 2002 - 16:20:31 EEST


Hi Thomas,
> Hi all,
> can anyone give me pointers on how the overview cache for a zoomable
> waveform display is organized?
> One can see accurate and fast displays in a lot of applications but i guess
> the rendering of this is not straightforward.
>
> best greetings,
> Thomas

I am thinking about this at the moment as well. My idea is to :
1.) start with N frames (e.g. 65536), segment the whole sample into N blocks and
store min and max values for each frame. Just make sure that the initial frames
are still big enough, so that the cache gives the advantage of reading less data.
2.) repeat 1 several times and double the frame size each time (thus half the
number of frames), you can easily build min/max values here from former data.
3.) Depending on the width of the window and the displayed range, seek in the
cache to the right position.
4.) when scrolling/zooming, keep the file opened !

Stefan

-- 
       \|/            Stefan Kost
      <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 300066
|      ///           04277 Leipzig      04277 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_AT_gmx.net    kost_AT_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Oct 14 2002 - 16:40:32 EEST