diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-16 14:41:00 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-16 14:41:00 +0000 |
| commit | b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6 (patch) | |
| tree | 1c7bce8c4bc39617ff819111d39a41370ca8f49b /apps/plugins/mpegplayer/mpeg_misc.h | |
| parent | caa4f54e4235f99acd1c69673c85a4557b6183a9 (diff) | |
| download | rockbox-b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6.zip rockbox-b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6.tar.gz rockbox-b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6.tar.bz2 rockbox-b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6.tar.xz | |
MPEGPlayer: Add a second layer of caching to help speed up byte-wise scanning and seeking a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26088 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_misc.h')
| -rw-r--r-- | apps/plugins/mpegplayer/mpeg_misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_misc.h b/apps/plugins/mpegplayer/mpeg_misc.h index 7bac7eb..5f60193 100644 --- a/apps/plugins/mpegplayer/mpeg_misc.h +++ b/apps/plugins/mpegplayer/mpeg_misc.h @@ -28,6 +28,8 @@ #define ALIGNED_ATTR(x) __attribute__((aligned(x))) #endif +#include "disk_buf.h" + /* Generic states for when things are too simple to care about naming them */ enum state_enum { @@ -158,11 +160,15 @@ struct stream_scan off_t dir; /* Direction - >= 0; forward, < 0 backward */ ssize_t margin; /* Used by function to track margin between position and data end */ intptr_t data; /* */ + struct dbuf_l2_cache l2; }; #define SSCAN_REVERSE (-1) #define SSCAN_FORWARD 1 +/* Initializes the cursor */ +void stream_scan_init(struct stream_scan *sk); + /* Ensures direction is -1 or 1 and margin is properly initialized */ void stream_scan_normalize(struct stream_scan *sk); |