Skip to content

Commit 2dc88ab

Browse files
committed
add symbolic names to verbosity levels
1 parent d4b0ece commit 2dc88ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libgpujpeg/gpujpeg_common.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ enum restart_int {
155155
RESTART_NONE = 0, ///< disabled; CPU Huffman encoder will be used
156156
};
157157

158+
enum verbosity {
159+
LL_NORMAL = 0, ///< normal verbosity
160+
LL_VERBOSE = 1, ///< print additional information
161+
LL_DEBUG = 2, ///< print more information, including internal ones
162+
LL_DEBUG2 = 3, ///< print maximum of information, including JPEG file internal structure
163+
};
164+
158165
/**
159166
* JPEG parameters. This structure should not be initialized only be hand,
160167
* but at first gpujpeg_set_default_parameters should be call and then
@@ -163,7 +170,7 @@ enum restart_int {
163170
struct gpujpeg_parameters
164171
{
165172
/// Verbosity level - show more information, collects duration of each phase, etc.
166-
/// 0 - normal, 1 - verbose, 2 - debug, 3 - debug2
173+
/// @sa @ref verbosity for values
167174
int verbose;
168175
int perf_stats; /// record performance stats, set to 1 to allow gpujpeg_encoder_get_stats()
169176

0 commit comments

Comments
 (0)