Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
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
Testicular Slingshot
Alchemy Viewer
Commits
5782c0f4
Commit
5782c0f4
authored
7 years ago
by
Drake Arconis
Browse files
Options
Downloads
Patches
Plain Diff
Change for our KDU
parent
e544d0e6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llkdu/llimagej2ckdu.cpp
+3
-3
3 additions, 3 deletions
indra/llkdu/llimagej2ckdu.cpp
indra/llkdu/llimagej2ckdu.h
+15
-6
15 additions, 6 deletions
indra/llkdu/llimagej2ckdu.h
indra/llkdu/llkdumem.h
+1
-0
1 addition, 0 deletions
indra/llkdu/llkdumem.h
with
19 additions
and
9 deletions
indra/llkdu/llimagej2ckdu.cpp
+
3
−
3
View file @
5782c0f4
...
...
@@ -187,7 +187,7 @@ public:
// const kdu_uint16* to a std::ostream will display only the hex value
// of the pointer.
LL_INFOS
()
<<
"KDU "
<<
mType
<<
": "
<<
utf16str_to_utf8str
(
llutf16string
(
s
))
<<
LL_ENDL
;
<<
utf16str_to_utf8str
(
llutf16string
(
(
utf16strtype
*
)
s
))
<<
LL_ENDL
;
}
private
:
...
...
@@ -233,7 +233,7 @@ struct LLKDUMessageError : public LLKDUMessage
// shutdown will NOT engage the behavior described above.
if
(
end_of_message
)
{
LLTHROW
(
KDUError
(
"LLKDUMessageError::flush()"
));
//
LLTHROW(KDUError("LLKDUMessageError::flush()"));
}
}
};
...
...
@@ -567,7 +567,7 @@ bool LLImageJ2CKDU::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 deco
kdu_coords
offset
=
tile_dims
.
pos
-
dims
.
pos
;
int
row_gap
=
channels
*
dims
.
size
.
x
;
// inter-row separation
kdu_byte
*
buf
=
buffer
+
offset
.
y
*
row_gap
+
offset
.
x
*
channels
;
mDecodeState
.
reset
(
new
LLKDUDecodeState
(
tile
,
buf
,
row_gap
));
mDecodeState
.
reset
(
new
LLKDUDecodeState
(
tile
,
buf
,
row_gap
,
*
mCodeStreamp
.
get
()
));
}
// Do the actual processing
F32
remaining_time
=
decode_time
-
decode_timer
.
getElapsedTimeF32
();
...
...
This diff is collapsed.
Click to expand it.
indra/llkdu/llimagej2ckdu.h
+
15
−
6
View file @
5782c0f4
...
...
@@ -33,6 +33,7 @@
// KDU core header files
//
#define KDU_NO_THREADS
#define KDU_X86_INTRINSICS
#define KDU_NO_AVX
#define KDU_NO_AVX2
#if LL_CLANG
...
...
@@ -53,7 +54,6 @@
#include
"kdu_sample_processing.h"
#include
<boost/scoped_ptr.hpp>
#include
<boost/noncopyable.hpp>
class
LLKDUDecodeState
;
class
LLKDUMemSource
;
...
...
@@ -99,9 +99,13 @@ private:
//
// Every RAII class must be noncopyable. For this we don't need move
// support.
class
CodeStreamHolder
:
public
boost
::
noncopyable
class
CodeStreamHolder
{
public:
CodeStreamHolder
()
:
mCodeStream
()
{}
CodeStreamHolder
(
const
CodeStreamHolder
&
)
=
delete
;
CodeStreamHolder
&
operator
=
(
const
CodeStreamHolder
&
)
=
delete
;
~
CodeStreamHolder
()
{
reset
();
...
...
@@ -115,17 +119,22 @@ private:
}
}
kdu_codestream
*
operator
->
()
{
return
&
mCodeStream
;
}
kdu_core
::
kdu_codestream
*
get
()
{
return
&
mCodeStream
;
}
kdu_core
::
kdu_codestream
*
operator
->
()
{
return
&
mCodeStream
;
}
private
:
kdu_codestream
mCodeStream
;
kdu_core
::
kdu_codestream
mCodeStream
;
};
// Encode variable
boost
::
scoped_ptr
<
LLKDUMemSource
>
mInputp
;
CodeStreamHolder
mCodeStreamp
;
boost
::
scoped_ptr
<
kdu_coords
>
mTPosp
;
// tile position
boost
::
scoped_ptr
<
kdu_dims
>
mTileIndicesp
;
boost
::
scoped_ptr
<
kdu_
core
::
kdu_
coords
>
mTPosp
;
// tile position
boost
::
scoped_ptr
<
kdu_
core
::
kdu_
dims
>
mTileIndicesp
;
int
mBlocksSize
;
int
mPrecinctsSize
;
int
mLevels
;
...
...
This diff is collapsed.
Click to expand it.
indra/llkdu/llkdumem.h
+
1
−
0
View file @
5782c0f4
...
...
@@ -39,6 +39,7 @@
// Support classes for reading and writing from memory buffers in KDU
#define KDU_NO_THREADS
#define KDU_X86_INTRINSICS
#define KDU_NO_AVX
#define KDU_NO_AVX2
#include
"kdu_image.h"
...
...
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