Changeset 14410c4779cfb0da21e7a7a6b1ec2a3ad14884c2

Show
Ignore:
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
  • src/input/stream.c

    r01aca2c r14410c4  
    2828#include "input_internal.h" 
    2929 
     30#ifdef UNDER_CE 
     31#   define LOW_MEM 
     32#endif 
     33 
    3034/* TODO: 
    3135 *  - tune the 2 methods 
     
    4347 
    4448/* 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 */ 
    4960#define STREAM_CACHE_PREBUFFER_SIZE (32767) 
    5061/* Maximum time we take to pre-buffer */ 
    5162#define STREAM_CACHE_PREBUFFER_LENGTH (100*1000) 
    52  
    5363 
    5464/* Method1: Simple, for pf_block.