Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
5013d4ac
Commit
5013d4ac
authored
15 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
BUG: replace unsigned long by std::streamoff for streaming image size definition
parent
cbad2c30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Common/otbStreamingTraits.txx
+10
-10
10 additions, 10 deletions
Code/Common/otbStreamingTraits.txx
with
10 additions
and
10 deletions
Code/Common/otbStreamingTraits.txx
+
10
−
10
View file @
5013d4ac
...
...
@@ -111,17 +111,17 @@ unsigned long StreamingTraits<TImage>
case SET_TILING_WITH_SET_AUTOMATIC_NUMBER_OF_STREAM_DIVISIONS : // Just like SET_AUTOMATIC_NUMBER_OF_STREAM_DIVISIONS
case SET_AUTOMATIC_NUMBER_OF_STREAM_DIVISIONS :
{
const
unsigned long
streamMaxSizeBufferForStreamingBytes = OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING;
const
unsigned long
streamImageSizeToActivateStreamingBytes = OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING;
const
std::streamoff
streamMaxSizeBufferForStreamingBytes = OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING;
const
std::streamoff
streamImageSizeToActivateStreamingBytes = OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING;
//Convert in octet unit
unsigned long
streamMaxSizeBufferForStreaming = streamMaxSizeBufferForStreamingBytes/8;
const
unsigned long
streamImageSizeToActivateStreaming = streamImageSizeToActivateStreamingBytes/8;
unsigned long
numberColumnsOfRegion = region.GetSize()[0]; // X dimension
const
unsigned long sizeLine =
numberColumnsOfRegion * \
image->GetNumberOfComponentsPerPixel() * \
sizeof(PixelType);
const
unsigned long
regionSize = region.GetSize()[1] * sizeLine;
std::streamoff
streamMaxSizeBufferForStreaming = streamMaxSizeBufferForStreamingBytes/8;
const
std::streamoff
streamImageSizeToActivateStreaming = streamImageSizeToActivateStreamingBytes/8;
std::streamoff
numberColumnsOfRegion = region.GetSize()[0]; // X dimension
const
std::streamoff sizeLine = static_cast<std::streamoff>(
numberColumnsOfRegion
)
* \
static_cast<std::streamoff>(
image->GetNumberOfComponentsPerPixel()
)
* \
static_cast<std::streamoff>(
sizeof(PixelType)
)
;
const
std::streamoff
regionSize = region.GetSize()[1] * sizeLine;
otbMsgDevMacro(<<"streamImageSizeToActivateStreaming in Bytes = "<<streamImageSizeToActivateStreamingBytes);
otbMsgDevMacro(<<"streamMaxSizeBufferForStreaming in Bytes = "<<streamMaxSizeBufferForStreamingBytes);
otbMsgDevMacro(<<"streamImageSizeToActivateStreaming = "<<streamImageSizeToActivateStreaming);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment