mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Get modulo from pixel format instead of encoder
This commit is contained in:
@@ -38,7 +38,9 @@ namespace Flowframes
|
||||
{
|
||||
if (mode == ModuloMode.ForEncoding)
|
||||
{
|
||||
return Interpolate.currentSettings.outSettings.Encoder.GetInfo().Modulo;
|
||||
string pixFmt = Interpolate.currentSettings.outSettings.PixelFormat.ToString().Lower();
|
||||
bool subsampled = pixFmt.Contains("420") || pixFmt.Contains("422") || pixFmt.Contains("p010") || pixFmt.Contains("p016");
|
||||
return subsampled ? 2 : 1;
|
||||
}
|
||||
else if (mode == ModuloMode.ForInterpolation)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user