Commit 1309a158 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

mlv_lite: the 85% frame size restriction is still needed at very high resolutions

(helps squeezing a few more buffers, at some risk of recording stopping at extreme ISOs)

--HG--
branch : crop_rec_4k
parent bb163f78aa6a
...@@ -534,7 +534,16 @@ void update_resolution_params() ...@@ -534,7 +534,16 @@ void update_resolution_params()
{ {
/* assume the compressed output will not exceed uncompressed frame size */ /* assume the compressed output will not exceed uncompressed frame size */
/* max frame size for the lossless routine also has unusual alignment requirements */ /* max frame size for the lossless routine also has unusual alignment requirements */
max_frame_size &= ~4095; if (max_frame_size > 10*1024*1024)
{
/* at very high resolutions, restricting compressed frame size to 85%
* (relative to uncompressed size) will help allocating more buffers */
max_frame_size = (max_frame_size / 100 * 85) & ~4095;
}
else
{
max_frame_size &= ~4095;
}
} }
update_cropping_offsets(); update_cropping_offsets();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment