From e5302188f2620a5def09df6319e81c72691e5a09 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 7 Aug 2025 20:26:50 +0200 Subject: [PATCH] abort search if PAPR is better than 7 dB --- encode.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/encode.cc b/encode.cc index f42e2c2..81f795d 100644 --- a/encode.cc +++ b/encode.cc @@ -198,6 +198,8 @@ struct Encoder : public Common papr[symbol_number] = best_papr; for (int i = 0; i < symbol_len; ++i) tdom[i] = test[i]; + if (test_papr < 5) + goto end; } } } @@ -208,6 +210,7 @@ struct Encoder : public Common } } } +end: clipping_and_filtering(scale); if (symbol_number != -1) { for (int i = 0; i < guard_len; ++i)