diff options
author | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-16 22:02:06 +0000 |
---|---|---|
committer | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-16 22:02:06 +0000 |
commit | a052102cfb861aae6c8e683ae01bbace9620235c (patch) | |
tree | cb54d8bf97099cc7ec1275ef8a27664a089dc831 /apps/mpeg.c | |
parent | db82be4390d294c8d460f50c06add41ffa6686f5 (diff) | |
download | rockbox-a052102cfb861aae6c8e683ae01bbace9620235c.tar.gz rockbox-a052102cfb861aae6c8e683ae01bbace9620235c.zip |
mpeg.h/c cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23652 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/mpeg.c')
-rw-r--r-- | apps/mpeg.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c index 079faac13c..514379c16c 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c | |||
@@ -54,6 +54,27 @@ | |||
54 | #include "lcd.h" | 54 | #include "lcd.h" |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #define MPEG_SWAP_CHUNKSIZE 0x2000 | ||
58 | #define MPEG_HIGH_WATER 2 /* We leave 2 bytes empty because otherwise we | ||
59 | wouldn't be able to see the difference between | ||
60 | an empty buffer and a full one. */ | ||
61 | #define MPEG_LOW_WATER 0x60000 | ||
62 | #define MPEG_RECORDING_LOW_WATER 0x80000 | ||
63 | #define MPEG_LOW_WATER_CHUNKSIZE 0x40000 | ||
64 | #define MPEG_LOW_WATER_SWAP_CHUNKSIZE 0x10000 | ||
65 | #if (CONFIG_STORAGE & STORAGE_MMC) | ||
66 | #define MPEG_PLAY_PENDING_THRESHOLD 0x20000 | ||
67 | #define MPEG_PLAY_PENDING_SWAPSIZE 0x20000 | ||
68 | #else | ||
69 | #define MPEG_PLAY_PENDING_THRESHOLD 0x10000 | ||
70 | #define MPEG_PLAY_PENDING_SWAPSIZE 0x10000 | ||
71 | #endif | ||
72 | |||
73 | #define MPEG_MAX_PRERECORD_SECONDS 30 | ||
74 | |||
75 | /* For ID3 info and VBR header */ | ||
76 | #define MPEG_RESERVED_HEADER_SPACE (4096 + 576) | ||
77 | |||
57 | #ifndef SIMULATOR | 78 | #ifndef SIMULATOR |
58 | extern unsigned long mas_version_code; | 79 | extern unsigned long mas_version_code; |
59 | #endif | 80 | #endif |