diff --git a/openVulkanoCpp/AR/ArRecorder.cpp b/openVulkanoCpp/AR/ArRecorder.cpp index e2c24bb..2da2c74 100644 --- a/openVulkanoCpp/AR/ArRecorder.cpp +++ b/openVulkanoCpp/AR/ArRecorder.cpp @@ -26,6 +26,7 @@ namespace OpenVulkano::AR namespace { constexpr std::string_view RECORDING_METADATA_FILENAME = "ArRecording.xml"; + constexpr int JPEG_QUALITY = 85; std::filesystem::path GeneratePath(const std::filesystem::path& baseDir, std::string_view name) { @@ -95,7 +96,7 @@ namespace OpenVulkano::AR uint8_t* outBuffer = nullptr; unsigned long size = 0; - if (tjCompressFromYUVPlanes(handle, buffers, resX, nullptr, resY, TJSAMP_420, &outBuffer, &size, 95, TJFLAG_FASTDCT)) [[unlikely]] + if (tjCompressFromYUVPlanes(handle, buffers, resX, nullptr, resY, TJSAMP_420, &outBuffer, &size, JPEG_QUALITY, TJFLAG_FASTDCT)) [[unlikely]] Logger::AR->error("Failed to create JPEG! {}", tjGetErrorStr()); else [[likely]] {