Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
cd363e8c
Commit
cd363e8c
authored
14 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
STORM-746 : Clean up typos in comments
parent
379e2e13
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/integration_tests/llimage_libtest/llimage_libtest.cpp
+8
-7
8 additions, 7 deletions
indra/integration_tests/llimage_libtest/llimage_libtest.cpp
with
8 additions
and
7 deletions
indra/integration_tests/llimage_libtest/llimage_libtest.cpp
+
8
−
7
View file @
cd363e8c
...
@@ -54,20 +54,21 @@ static const char USAGE[] = "\n"
...
@@ -54,20 +54,21 @@ static const char USAGE[] = "\n"
" List of image files to create (assumes same order as for input files)
\n
"
" List of image files to create (assumes same order as for input files)
\n
"
" OR 3 letters file type extension to convert each input file into.
\n
"
" OR 3 letters file type extension to convert each input file into.
\n
"
" -r, --region <x0, y0, x1, y1>
\n
"
" -r, --region <x0, y0, x1, y1>
\n
"
" Crop region o
n
the input file in pixel.
\n
"
" Crop region
applied t
o the input file
s
in pixel
s
.
\n
"
" Only used for j2c images. Default is no region cropping.
\n
"
" Only used for j2c images. Default is no region cropping.
\n
"
" -d, --discard_level <n>
\n
"
" -d, --discard_level <n>
\n
"
" Discard level max used on input. 0 is high resolution. Max discard level is 5.
\n
"
" Discard level max used on input. 0 is high
est
resolution. Max discard level is 5.
\n
"
" This allows the input image to be clamped in resolution when loading.
\n
"
" This allows the input image to be clamped in resolution when loading.
\n
"
" Only valid for j2c images. Default is no discard.
\n
"
" Only valid for j2c images. Default is no discard.
\n
"
" -p, --precincts <n>
\n
"
" -p, --precincts <n>
\n
"
" Dimension of precincts in pixels. Precincts are assumed square and identical for
\n
"
" Dimension of precincts in pixels. Precincts are assumed square and identical for
\n
"
" all levels. Note that this op
r
ion also
uses
PLT and tile markers,
\n
"
" all levels. Note that this op
t
ion also
add
PLT and tile markers
to the codestream
,
\n
"
" a
s well a
s RPCL order. Power of 2 must be used.
\n
"
" a
nd use
s RPCL order. Power of 2 must be used.
\n
"
" Only valid for output j2c images. Default is no precincts used.
\n
"
" Only valid for output j2c images. Default is no precincts used.
\n
"
" -b, --blocks <n>
\n
"
" -b, --blocks <n>
\n
"
" Dimension of coding blocks in pixels. Blocks are assumed square. Power of 2 must
\n
"
" Dimension of coding blocks in pixels. Blocks are assumed square. Power of 2 must
\n
"
" be used. Blocks must be smaller than precincts.
\n
"
" be used. Blocks must be smaller than precincts. Like precincts, this option adds
\n
"
" PLT, tile markers and uses RPCL.
\n
"
" Only valid for output j2c images. Default is 64.
\n
"
" Only valid for output j2c images. Default is 64.
\n
"
" -log, --logmetrics <metric>
\n
"
" -log, --logmetrics <metric>
\n
"
" Log performance data for <metric>. Results in <metric>.slp
\n
"
" Log performance data for <metric>. Results in <metric>.slp
\n
"
...
@@ -130,7 +131,7 @@ LLPointer<LLImageRaw> load_image(const std::string &src_filename, int discard_le
...
@@ -130,7 +131,7 @@ LLPointer<LLImageRaw> load_image(const std::string &src_filename, int discard_le
{
{
LLPointer
<
LLImageFormatted
>
image
=
create_image
(
src_filename
);
LLPointer
<
LLImageFormatted
>
image
=
create_image
(
src_filename
);
// This just load the image file stream into a buffer. No decoding done.
// This just load
s
the image file stream into a buffer. No decoding done.
if
(
!
image
->
load
(
src_filename
))
if
(
!
image
->
load
(
src_filename
))
{
{
return
NULL
;
return
NULL
;
...
@@ -170,7 +171,7 @@ bool save_image(const std::string &dest_filename, LLPointer<LLImageRaw> raw_imag
...
@@ -170,7 +171,7 @@ bool save_image(const std::string &dest_filename, LLPointer<LLImageRaw> raw_imag
{
{
LLPointer
<
LLImageFormatted
>
image
=
create_image
(
dest_filename
);
LLPointer
<
LLImageFormatted
>
image
=
create_image
(
dest_filename
);
// Set the image
r
estr
iction on load
in the case of a j2c image
// Set the image
cod
estr
eam parameters on output
in the case of a j2c image
if
((
image
->
getCodec
()
==
IMG_CODEC_J2C
)
&&
((
blocks_size
!=
-
1
)
||
(
precincts_size
!=
-
1
)))
if
((
image
->
getCodec
()
==
IMG_CODEC_J2C
)
&&
((
blocks_size
!=
-
1
)
||
(
precincts_size
!=
-
1
)))
{
{
// That method doesn't exist (and likely, doesn't make sense) for any other image file format
// That method doesn't exist (and likely, doesn't make sense) for any other image file format
...
...
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