File tree Expand file tree Collapse file tree 5 files changed +24
-7
lines changed
Expand file tree Collapse file tree 5 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ endif()
137137## include library version/name
138138set_target_properties (openjph PROPERTIES POSITION_INDEPENDENT_CODE ON )
139139target_compile_definitions (openjph PUBLIC _FILE_OFFSET_BITS=64)
140- target_include_directories (openjph PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /common> $<INSTALL_INTERFACE:include /openjph >)
140+ target_include_directories (openjph PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /common> $<INSTALL_INTERFACE:include >)
141141
142142if (MSVC )
143143 set (OJPH_LIB_NAME_STRING "openjph.${OPENJPH_VERSION_MAJOR} .${OPENJPH_VERSION_MINOR} " )
Original file line number Diff line number Diff line change @@ -1085,6 +1085,7 @@ namespace ojph {
10851085 avail = NULL ;
10861086 d = d_store;
10871087 max_steps = sizeof (d_store) / sizeof (lifting_step);
1088+ this ->top_atk = top_atk;
10881089 this ->type = type;
10891090 init (this );
10901091 }
@@ -1162,7 +1163,7 @@ namespace ojph {
11621163 float Katk; // only for irreversible scaling factor K
11631164 ui8 Natk; // number of lifting steps
11641165 lifting_step* d; // pointer to data, initialized to d_store
1165- int max_steps; // maximum number of steps without memory allocation
1166+ ui32 max_steps; // maximum number of steps without memory allocation
11661167 lifting_step d_store[6 ]; // lifting step coefficient
11671168 param_atk* next; // used for chaining if more than one atk segment
11681169 // exist in the codestream
Original file line number Diff line number Diff line change @@ -203,6 +203,21 @@ namespace ojph {
203203 */
204204 void write_to_file (const char *file_name) const ;
205205
206+ /* *
207+ * @brief Call this function to get the used size of the memory file.
208+ *
209+ * @return the used size of the memory file in bytes.
210+ */
211+ size_t get_used_size () const { return used_size; }
212+
213+ /* *
214+ * @brief Call this function to get the total buffer size of the memory
215+ * file including unused space (this is the allocated memory).
216+ *
217+ * @return the full size of the memory file in bytes.
218+ */
219+ size_t get_buf_size () const { return buf_size; }
220+
206221 private:
207222 /* *
208223 * @brief This function expands storage by x1.5 needed space.
Original file line number Diff line number Diff line change 3434//***************************************************************************/
3535
3636#define OPENJPH_VERSION_MAJOR 0
37- #define OPENJPH_VERSION_MINOR 22
37+ #define OPENJPH_VERSION_MINOR 23
3838#define OPENJPH_VERSION_PATCH 0
Original file line number Diff line number Diff line change 1+ prefix=@CMAKE_INSTALL_PREFIX@
2+ libdir=@PKG_CONFIG_LIBDIR@
3+ includedir=@PKG_CONFIG_INCLUDEDIR@
4+
15Name: @PROJECT_NAME@
26Description: @PROJECT_DESCRIPTION@
37Version: @PROJECT_VERSION@
48Requires: @PKG_CONFIG_REQUIRES@
5- prefix=@CMAKE_INSTALL_PREFIX@
6- includedir=@PKG_CONFIG_INCLUDEDIR@
7- libdir=@PKG_CONFIG_LIBDIR@
89Libs: -L${libdir} -lopenjph
9- Cflags: -I${includedir}
10+ Cflags: -I${includedir} -D_FILE_OFFSET_BITS=64
You can’t perform that action at this time.
0 commit comments