From 1bc6cb884b08d979c309b7049ae0ed951ba0706f Mon Sep 17 00:00:00 2001 From: Thomas Feuvrier <thomas.feuvrier@c-s.fr> Date: Fri, 9 Feb 2007 14:16:33 +0000 Subject: [PATCH] Ajout option de configuration pour utilisation du streaming dans les applications --- CMakeLists.txt | 9 +++++++++ otbConfigure.h.in | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf1136a8df..5aa91a83f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,6 +261,15 @@ ENDIF( OTB_SHOW_ALL_MSG_DEBUG ) OPTION(OTB_DISABLE_CXX_EXAMPLES_TESTING "Disable examples testing." OFF) MARK_AS_ADVANCED(OTB_DISABLE_CXX_EXAMPLES_TESTING) +#----------------------------------------------------------------------------- +# Option to define streaming activation in applications +# Use by otbConfigure.h.in +SET(OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING 8*2000*2000 CACHE STRING "Image size to activate using streaming for applications.") +MARK_AS_ADVANCED(OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING) +SET(OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING 8*2000*10 CACHE STRING "Max size buffer for streaming.") +MARK_AS_ADVANCED(OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING) + + #----------------------------------------------------------------------------- # Option for generate Patented examples !!! OPTION(OTB_USE_PATENTED "Build patented examples. ITK must be genereted whith patented option (ITK_USE_PATENTED = ON)." OFF) diff --git a/otbConfigure.h.in b/otbConfigure.h.in index 6bfaf90434..17bb7d5343 100644 --- a/otbConfigure.h.in +++ b/otbConfigure.h.in @@ -46,3 +46,8 @@ #define OTB_VERSION_MINOR @OTB_VERSION_MINOR@ #define OTB_VERSION_PATCH @OTB_VERSION_PATCH@ #define OTB_VERSION_STRING "@OTB_VERSION_STRING@" + +/* Streaming configuration for application */ +#define OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING @OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING@ +#define OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING @OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING@ + -- GitLab