mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 08:40:19 +00:00
vcomp,vdec/gpujpeg: toggle on profiling in debug
If log_level >= LOG_LEVEL_DEBUG, set the perf_stats option, which with current GPUJPEG prints the performance stats to stdout.
This commit is contained in:
@@ -278,6 +278,7 @@ bool encoder_state::configure_with(struct video_desc desc)
|
||||
}
|
||||
|
||||
m_encoder_param.verbose = max<int>(0, log_level - LOG_LEVEL_INFO);
|
||||
m_encoder_param.perf_stats = log_level >= LOG_LEVEL_DEBUG ? 1 : 0;
|
||||
m_encoder_param.segment_info = 1;
|
||||
gpujpeg_sampling_factor_t subsampling = m_parent_state->m_subsampling;
|
||||
#if !defined NEW_PARAM_IMG_NO_COMP_COUNT
|
||||
|
||||
@@ -86,6 +86,7 @@ static int configure_with(struct state_decompress_gpujpeg *s, struct video_desc
|
||||
gpujpeg_set_default_parameters(¶m);
|
||||
param.color_space_internal = GPUJPEG_YCBCR_BT709; // see comment bellow
|
||||
param.verbose = MAX(0, log_level - LOG_LEVEL_INFO);
|
||||
param.perf_stats = log_level >= LOG_LEVEL_DEBUG ? 1 : 0;
|
||||
struct gpujpeg_image_parameters param_image;
|
||||
gpujpeg_image_set_default_parameters(¶m_image);
|
||||
param_image.width = desc.width; // size must be non-zero in order the init to succeed
|
||||
|
||||
Reference in New Issue
Block a user