]> git.sesse.net Git - nageru/commit - nageru/mjpeg_encoder.h
Fix MJPEG white balance information when VA-API is in use.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 4 Mar 2020 18:53:49 +0000 (19:53 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 4 Mar 2020 18:53:49 +0000 (19:53 +0100)
commit29f8890fa9150f4077c8a15bd60365f0c5c98a3b
treeda21402403e6bdf6e73709445f55e828f059299c
parent1a23c2c0194b81c3c73620a26ac93bf62f3e5ee0
Fix MJPEG white balance information when VA-API is in use.

The JPEG headers were cached (per resolution) and never invalidated,
causing wrong/outdated information to be sent.

I can't really remember why I wanted to cache these, but I suppose
I had a reason, so I'm a bit reluctant to just kill the cache.
Hopefully, the white balance won't change often enough, and these
objects are so small, that we won't need invalidation; we can just
let it grow until program exit.
nageru/mjpeg_encoder.cpp
nageru/mjpeg_encoder.h