summaryrefslogtreecommitdiff
path: root/src/lib/grok/context.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-16 22:53:38 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-28 00:33:55 +0200
commit59a6f3dcb71d58f999f5719cdea4c8ff5b65fd90 (patch)
tree89f1c5cca83b75475ac2f5cabf65e38440b69bb6 /src/lib/grok/context.h
parentc40e4051fe1a4723f78d04d408546d23749d4459 (diff)
Add some comments.
Diffstat (limited to 'src/lib/grok/context.h')
-rw-r--r--src/lib/grok/context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/grok/context.h b/src/lib/grok/context.h
index 0749a9697..4c7e4304a 100644
--- a/src/lib/grok/context.h
+++ b/src/lib/grok/context.h
@@ -129,10 +129,12 @@ public:
int const minimum_size = 16384;
+ /* Write the compressed data out and tidy up */
bool needsRecompression = compressedFrameLength < minimum_size;
_messenger->process_compressed(str, processor, needsRecompression);
if (needsRecompression) {
+ /* The JPEG2000 frame data was too small, so handle it with the CPU encoder */
auto vf = _messenger->retrieve(clientFrameId);
if (!vf) {
return;