|
|
|
@ -6,7 +6,7 @@ namespace FidelityFX.FrameGen |
|
|
|
{ |
|
|
|
public static class OpticalFlow |
|
|
|
{ |
|
|
|
public static readonly int MinBlockSize = 8; |
|
|
|
internal const int MinBlockSize = 8; |
|
|
|
internal const int OpticalFlowMaxPyramidLevels = 7; |
|
|
|
internal const int HistogramBins = 256; |
|
|
|
internal const int HistogramsPerDim = 3; |
|
|
|
@ -44,11 +44,6 @@ namespace FidelityFX.FrameGen |
|
|
|
public Vector2 MinMaxLuminance; |
|
|
|
} |
|
|
|
|
|
|
|
public static Vector2Int GetOpticalFlowTextureSize(Vector2Int displaySize) |
|
|
|
{ |
|
|
|
return GetOpticalFlowTextureSize(displaySize, MinBlockSize); |
|
|
|
} |
|
|
|
|
|
|
|
internal static Vector2Int GetOpticalFlowTextureSize(Vector2Int displaySize, int opticalFlowBlockSize) |
|
|
|
{ |
|
|
|
int width = (displaySize.x + opticalFlowBlockSize - 1) / opticalFlowBlockSize; |
|
|
|
|