From da97e01e3a835c560d85697e127e1a797b73a4dc Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 5 Jun 2024 14:45:59 +0200 Subject: [PATCH] encoder: do not reconfigure on quality change actually complete reconfiguration is not required --- src/gpujpeg_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpujpeg_common.c b/src/gpujpeg_common.c index b6ef83fa..bd5fd689 100644 --- a/src/gpujpeg_common.c +++ b/src/gpujpeg_common.c @@ -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 ||