Skip to content

Commit 3ab3caa

Browse files
author
Grok Compression
committed
wavelet: move out of t1 namespace
1 parent 6bb7a77 commit 3ab3caa

14 files changed

Lines changed: 33 additions & 33 deletions

src/lib/core/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include_directories(
2525
${GROK_SOURCE_DIR}/src/include
2626
${CMAKE_CURRENT_SOURCE_DIR}
2727
${CMAKE_CURRENT_SOURCE_DIR}/plugin
28-
${CMAKE_CURRENT_SOURCE_DIR}/t1/wavelet
28+
${CMAKE_CURRENT_SOURCE_DIR}/wavelet
2929
${CMAKE_CURRENT_SOURCE_DIR}/t1
3030
${CMAKE_CURRENT_SOURCE_DIR}/t1/part1
3131
${CMAKE_CURRENT_SOURCE_DIR}/t1/part1/block_coder
@@ -134,10 +134,10 @@ set(GROK_LIBRARY_SRCS
134134
${CMAKE_CURRENT_SOURCE_DIR}/scheduling/CodecScheduler.cpp
135135
${CMAKE_CURRENT_SOURCE_DIR}/scheduling/CoderPool.cpp
136136

137-
${CMAKE_CURRENT_SOURCE_DIR}/t1/wavelet/WaveletFwd.cpp
138-
${CMAKE_CURRENT_SOURCE_DIR}/t1/wavelet/WaveletReverse.cpp
139-
${CMAKE_CURRENT_SOURCE_DIR}/t1/wavelet/WaveletReverse97.cpp
140-
${CMAKE_CURRENT_SOURCE_DIR}/t1/wavelet/WaveletReversePartial.cpp
137+
${CMAKE_CURRENT_SOURCE_DIR}/wavelet/WaveletFwd.cpp
138+
${CMAKE_CURRENT_SOURCE_DIR}/wavelet/WaveletReverse.cpp
139+
${CMAKE_CURRENT_SOURCE_DIR}/wavelet/WaveletReverse97.cpp
140+
${CMAKE_CURRENT_SOURCE_DIR}/wavelet/WaveletReversePartial.cpp
141141

142142
${CMAKE_CURRENT_SOURCE_DIR}/t1/CoderFactory.cpp
143143

src/lib/core/codestream/decompress/CodeStreamDecompress_ReadMarkers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ bool CodeStreamDecompress::readSIZ(uint8_t* headerData, uint16_t headerSize)
473473
headerImage_->has_multiple_tiles = numTilesToDecompress > 1;
474474
}
475475
auto maxDim = std::max(cp_.t_width_, cp_.t_height_);
476-
t1::WaveletReverse::allocPoolData(maxDim);
476+
WaveletReverse::allocPoolData(maxDim);
477477

478478
return rc;
479479
}

src/lib/core/scheduling/whole_tile/DecompressScheduler.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ bool DecompressScheduler::schedule(TileProcessor* tileProcessor)
252252
{
253253
if(waveletReverse_[compno])
254254
delete waveletReverse_[compno];
255-
waveletReverse_[compno] = new t1::WaveletReverse(tileProcessor, tilec, compno,
256-
tilec->getWindow()->unreducedBounds(),
257-
numRes, (tcp->tccps_ + compno)->qmfbid_);
255+
waveletReverse_[compno] =
256+
new WaveletReverse(tileProcessor, tilec, compno, tilec->getWindow()->unreducedBounds(),
257+
numRes, (tcp->tccps_ + compno)->qmfbid_);
258258

259259
if(!waveletReverse_[compno]->decompress())
260260
return false;

src/lib/core/scheduling/whole_tile/DecompressScheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class DecompressScheduler : public WholeTileScheduler
6868
/**
6969
* @brief vector of @ref WaveletReverse pointers
7070
*/
71-
std::vector<t1::WaveletReverse*> waveletReverse_;
71+
std::vector<WaveletReverse*> waveletReverse_;
7272

7373
DifferentialInfo* differentialInfo_;
7474

src/lib/core/tile_processor/TileProcessorCompress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ bool TileProcessorCompress::doCompress(void)
291291
{
292292
auto tile_comp = tile_->comps_ + compno;
293293
auto tccp = tcp_->tccps_ + compno;
294-
t1::WaveletFwdImpl w;
294+
WaveletFwdImpl w;
295295
if(!w.compress(tile_comp, tccp->qmfbid_))
296296
return false;
297297
}

src/lib/core/util/GrkMatrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
#pragma once
18+
#pragma once
1919

2020
#include <cstdint>
2121

src/lib/core/util/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ struct Buffer2d : protected Buffer<T, A>, public Rect32
403403
{
404404
if(!height() || !width())
405405
return true;
406-
uint32_t newStride = stride ? stride : t1::alignedBufferWidth(width());
406+
uint32_t newStride = stride ? stride : alignedBufferWidth(width());
407407
uint64_t eltsNeeded = (uint64_t)newStride * height();
408408
// avoid reallocation
409409
if(!eltsNeeded || eltsNeeded <= this->num_elts())
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#pragma once
1919

20-
namespace grk::t1
20+
namespace grk
2121
{
2222

2323
template<typename T, size_t N>
@@ -68,4 +68,4 @@ uint32_t alignedBufferWidth(uint32_t width);
6868

6969
typedef vec<float, 4> vec4f;
7070

71-
} // namespace grk::t1
71+
} // namespace grk
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <hwy/foreach_target.h>
2424
#include <hwy/highway.h>
2525
HWY_BEFORE_NAMESPACE();
26-
namespace grk::t1
26+
namespace grk
2727
{
2828

2929
template<typename T>
@@ -920,14 +920,14 @@ namespace HWY_NAMESPACE
920920
}
921921

922922
} // namespace HWY_NAMESPACE
923-
} // namespace grk::t1
923+
} // namespace grk
924924
HWY_AFTER_NAMESPACE();
925925

926926
#if HWY_ONCE
927927

928928
#include "WaveletFwd.h"
929929

930-
namespace grk::t1
930+
namespace grk
931931
{
932932
HWY_EXPORT(encode_53_v);
933933
HWY_EXPORT(encode_53_h);
@@ -1008,5 +1008,5 @@ void dwt97::encode_h(float* res, float* scratch, const uint32_t width, const uin
10081008
HWY_DYNAMIC_DISPATCH(encode_97_h)(res, scratch, width, parity, stride, numrows);
10091009
}
10101010

1011-
} // namespace grk::t1
1011+
} // namespace grk
10121012
#endif
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <cstdint>
2121
#include "TileComponent.h"
2222

23-
namespace grk::t1
23+
namespace grk
2424
{
2525
class dwt53
2626
{
@@ -49,4 +49,4 @@ class WaveletFwdImpl
4949
bool compress(TileComponent* tile_comp, uint8_t qmfbid);
5050
};
5151

52-
} // namespace grk::t1
52+
} // namespace grk

0 commit comments

Comments
 (0)