@@ -23,11 +23,11 @@ namespace grk
2323class BlockCoder
2424{
2525public:
26- BlockCoder (bool isCompressor, uint8_t maxCblkW, uint8_t maxCblkH, uint32_t cacheStrategy);
26+ BlockCoder (bool isCompressor, uint16_t maxCblkW, uint16_t maxCblkH, uint32_t cacheStrategy);
2727 ~BlockCoder ();
2828
2929 void print (void );
30- bool alloc (uint8_t w, uint8_t h);
30+ bool alloc (uint16_t w, uint16_t h);
3131
3232 void code_block_enc_deallocate (cblk_enc* p_code_block);
3333 double compress_cblk (cblk_enc* cblk, uint32_t max, uint8_t orientation, uint16_t compno,
@@ -51,24 +51,24 @@ class BlockCoder
5151
5252private:
5353 void initFlags (void );
54- uint8_t getFlagsStride (void );
55- uint8_t getFlagsHeight (void );
54+ uint16_t getFlagsStride (void );
55+ uint16_t getFlagsHeight (void );
5656
5757 uint32_t cacheStrategy_;
5858 mqcoder coder;
5959
6060 /* *
6161 * @brief cached block width
6262 */
63- uint8_t w_;
63+ uint16_t w_;
6464 /* *
6565 * @brief cached block stride
6666 */
6767 uint8_t stride_;
6868 /* *
6969 * @brief cached block height
7070 */
71- uint8_t h_;
71+ uint16_t h_;
7272
7373 /* *
7474 * @brief uncompressed data buffer
@@ -90,33 +90,33 @@ class BlockCoder
9090
9191 void checkSegSym (int32_t cblksty);
9292
93- template <uint8_t w, uint8_t h, bool vsc>
93+ template <uint16_t w, uint16_t h, bool vsc>
9494 void dec_clnpass (int8_t bpno);
9595 void dec_clnpass (int8_t bpno, int32_t cblksty);
96- template <uint8_t w, uint8_t h, bool vsc>
96+ template <uint16_t w, uint16_t h, bool vsc>
9797 void dec_clnpass_diff (int8_t bpno, uint8_t passno, uint8_t passtype);
9898 void dec_clnpass_diff (int8_t bpno, uint8_t passno, uint8_t passtype, int32_t cblksty);
99- template <uint8_t w, uint8_t h, bool vsc>
99+ template <uint16_t w, uint16_t h, bool vsc>
100100 void dec_clnpass_diff_final (int8_t bpno, uint8_t passno, uint8_t passtype);
101101 void dec_clnpass_diff_final (int8_t bpno, uint8_t passno, uint8_t passtype, int32_t cblksty);
102102
103- template <uint8_t w, uint8_t h, bool vsc>
103+ template <uint16_t w, uint16_t h, bool vsc>
104104 void dec_sigpass (int8_t bpno);
105105 void dec_sigpass (int8_t bpno, int32_t cblksty);
106- template <uint8_t w, uint8_t h, bool vsc>
106+ template <uint16_t w, uint16_t h, bool vsc>
107107 void dec_sigpass_diff (int8_t bpno, uint8_t passno, uint8_t passtype);
108108 void dec_sigpass_diff (int8_t bpno, uint8_t passno, uint8_t passtype, int32_t cblksty);
109- template <uint8_t w, uint8_t h, bool vsc>
109+ template <uint16_t w, uint16_t h, bool vsc>
110110 void dec_sigpass_diff_final (int8_t bpno, uint8_t passno, uint8_t passtype);
111111 void dec_sigpass_diff_final (int8_t bpno, uint8_t passno, uint8_t passtype, int32_t cblksty);
112112
113- template <uint8_t w, uint8_t h>
113+ template <uint16_t w, uint16_t h>
114114 void dec_refpass (int8_t bpno);
115115 void dec_refpass (int8_t bpno);
116- template <uint8_t w, uint8_t h>
116+ template <uint16_t w, uint16_t h>
117117 void dec_refpass_diff (int8_t bpno, uint8_t passno, uint8_t passtype);
118118 void dec_refpass_diff (int8_t bpno, uint8_t passno, uint8_t passtype);
119- template <uint8_t w, uint8_t h>
119+ template <uint16_t w, uint16_t h>
120120 void dec_refpass_diff_final (int8_t bpno, uint8_t passno, uint8_t passtype);
121121 void dec_refpass_diff_final (int8_t bpno, uint8_t passno, uint8_t passtype);
122122
0 commit comments