Changeset 14410c4779cfb0da21e7a7a6b1ec2a3ad14884c2
- Timestamp:
- 05/01/05 23:42:57
(4 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1104964977 +0000
- git-parent:
[069e16625d5944dcf6513b12f00c9465ad4ef004]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1104964977 +0000
- Message:
* src/input/stream.c: decrease memory requirements for WinCE.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r01aca2c |
r14410c4 |
|
| 28 | 28 | #include "input_internal.h" |
|---|
| 29 | 29 | |
|---|
| | 30 | #ifdef UNDER_CE |
|---|
| | 31 | # define LOW_MEM |
|---|
| | 32 | #endif |
|---|
| | 33 | |
|---|
| 30 | 34 | /* TODO: |
|---|
| 31 | 35 | * - tune the 2 methods |
|---|
| … | … | |
| 43 | 47 | |
|---|
| 44 | 48 | /* How many track we have, currently only used for stream mode */ |
|---|
| 45 | | #define STREAM_CACHE_TRACK 3 |
|---|
| 46 | | /* Max size of our cache 4Mo per track */ |
|---|
| 47 | | #define STREAM_CACHE_SIZE (4*STREAM_CACHE_TRACK*1024*1024) |
|---|
| 48 | | /* How many data we try to prebuffer */ |
|---|
| | 49 | #ifdef LOW_MEM |
|---|
| | 50 | # define STREAM_CACHE_TRACK 1 |
|---|
| | 51 | /* Max size of our cache 128Ko per track */ |
|---|
| | 52 | # define STREAM_CACHE_SIZE (STREAM_CACHE_TRACK*1024*128) |
|---|
| | 53 | #else |
|---|
| | 54 | # define STREAM_CACHE_TRACK 3 |
|---|
| | 55 | /* Max size of our cache 4Mo per track */ |
|---|
| | 56 | # define STREAM_CACHE_SIZE (4*STREAM_CACHE_TRACK*1024*1024) |
|---|
| | 57 | #endif |
|---|
| | 58 | |
|---|
| | 59 | /* How many data we try to prebuffer */ |
|---|
| 49 | 60 | #define STREAM_CACHE_PREBUFFER_SIZE (32767) |
|---|
| 50 | 61 | /* Maximum time we take to pre-buffer */ |
|---|
| 51 | 62 | #define STREAM_CACHE_PREBUFFER_LENGTH (100*1000) |
|---|
| 52 | | |
|---|
| 53 | 63 | |
|---|
| 54 | 64 | /* Method1: Simple, for pf_block. |
|---|