[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-filesystem-dev
Subject:    [Filesystem-dev] CR: Allow overrides of growth limits....
From:       Greg Wright <gwright () real ! com>
Date:       2007-03-31 0:49:35
Message-ID: 460DB01F.7060409 () real ! com
[Download RAW message or body]

We need to be able to change the floor and ceiling values depending
on the build target:

#define CHUNK_RES_MEM_FLOOR     512000  //512 KB
#define CHUNK_RES_MEM_CEILING   1000000 // 1MB

This change just uses the defaults only if they are not defined
already. Then I just define them in the OLPC profile as needed.

After this change, HTTP streaming works on the XO (olpc) for SMIL,
RV, Ogg and other datatypes.

HEAD only.

--greg.



Index: httpfsys.h
===================================================================
RCS file: /cvsroot/filesystem/http/httpfsys.h,v
retrieving revision 1.38
diff -u -w -r1.38 httpfsys.h
--- httpfsys.h	8 Mar 2006 02:28:35 -0000	1.38
+++ httpfsys.h	31 Mar 2007 00:46:22 -0000
@@ -103,11 +103,16 @@
  #define DEFAULT_CHUNK_SIZE 1024 //default size of chunk buffer

  #ifdef HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT
+# if !defined(CHUNK_RES_MEM_FLOOR)
+#   define CHUNK_RES_MEM_FLOOR     512000
+# endif
+# if !defined(CHUNK_RES_MEM_CEILING)
+#   define CHUNK_RES_MEM_CEILING   1000000
+# endif
+#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT
+

-#define CHUNK_RES_MEM_FLOOR     512000  //512 KB
-#define CHUNK_RES_MEM_CEILING   1000000 // 1MB

-#endif //HELIX_HTTPFSYS_MEM_GROWTH_LIMIT

  typedef enum
  {
Index: helix-client-OLPC.pf
===================================================================
RCS file: /cvsroot/ribosome/build/umakepf/helix-client-OLPC.pf,v
retrieving revision 1.1
diff -u -w -r1.1 helix-client-OLPC.pf
--- helix-client-OLPC.pf	29 Mar 2007 20:58:17 -0000	1.1
+++ helix-client-OLPC.pf	31 Mar 2007 00:46:44 -0000
@@ -95,3 +95,6 @@

  project.AddDefines('HELIX_FEATURE_HTTPFSYS_MEM_GROWTH_LIMIT')
  project.AddDefines('HELIX_FEATURE_ALSA')
+
+project.AddDefines("CHUNK_RES_MEM_FLOOR=128000")
+project.AddDefines("CHUNK_RES_MEM_CEILING=256000")

_______________________________________________
Filesystem-dev mailing list
Filesystem-dev@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/filesystem-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic