Skip to content

Commit

Permalink
encoder: do not reconfigure on quality change
Browse files Browse the repository at this point in the history
actually complete reconfiguration is not required
  • Loading branch information
MartinPulec committed Jun 5, 2024
1 parent d5436b0 commit da97e01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gpujpeg_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,14 @@ gpujpeg_parameters_chroma_subsampling(struct gpujpeg_parameters* param,

/**
* @returns true if parameters are the same
* @note
* @ref gpujpeg_parameters members verbose, perf_stats and **quality**
* ignored by the comparison
*/
static bool
gpujpeg_parameters_equals(const struct gpujpeg_parameters *p1 , const struct gpujpeg_parameters *p2)
{
if ( p1->comp_count != p2->comp_count ||
p1->quality != p2->quality ||
p1->restart_interval != p2->restart_interval ||
p1->interleaved != p2->interleaved ||
p1->segment_info != p2->segment_info ||
Expand Down

0 comments on commit da97e01

Please sign in to comment.