diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Graphics.Vic/Types/FrameFormat.cs | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Graphics.Vic/Types/FrameFormat.cs')
| -rw-r--r-- | Ryujinx.Graphics.Vic/Types/FrameFormat.cs | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/Ryujinx.Graphics.Vic/Types/FrameFormat.cs b/Ryujinx.Graphics.Vic/Types/FrameFormat.cs deleted file mode 100644 index 91f5751b..00000000 --- a/Ryujinx.Graphics.Vic/Types/FrameFormat.cs +++ /dev/null @@ -1,79 +0,0 @@ -namespace Ryujinx.Graphics.Vic.Types -{ - enum FrameFormat - { - Progressive, - InterlacedTopFieldFirst, - InterlacedBottomFieldFirst, - TopField, - BottomField, - SubPicProgressive, - SubPicInterlacedTopFieldFirst, - SubPicInterlacedBottomFieldFirst, - SubPicTopField, - SubPicBottomField, - TopFieldChromaBottom, - BottomFieldChromaTop, - SubPicTopFieldChromaBottom, - SubPicBottomFieldChromaTop - } - - static class FrameFormatExtensions - { - public static bool IsField(this FrameFormat frameFormat) - { - switch (frameFormat) - { - case FrameFormat.TopField: - case FrameFormat.BottomField: - case FrameFormat.SubPicTopField: - case FrameFormat.SubPicBottomField: - case FrameFormat.TopFieldChromaBottom: - case FrameFormat.BottomFieldChromaTop: - case FrameFormat.SubPicTopFieldChromaBottom: - case FrameFormat.SubPicBottomFieldChromaTop: - return true; - } - - return false; - } - - public static bool IsInterlaced(this FrameFormat frameFormat) - { - switch (frameFormat) - { - case FrameFormat.InterlacedTopFieldFirst: - case FrameFormat.InterlacedBottomFieldFirst: - case FrameFormat.SubPicInterlacedTopFieldFirst: - case FrameFormat.SubPicInterlacedBottomFieldFirst: - return true; - } - - return false; - } - - public static bool IsInterlacedBottomFirst(this FrameFormat frameFormat) - { - return frameFormat == FrameFormat.InterlacedBottomFieldFirst || - frameFormat == FrameFormat.SubPicInterlacedBottomFieldFirst; - } - - public static bool IsTopField(this FrameFormat frameFormat, bool isLuma) - { - switch (frameFormat) - { - case FrameFormat.TopField: - case FrameFormat.SubPicTopField: - return true; - case FrameFormat.TopFieldChromaBottom: - case FrameFormat.SubPicTopFieldChromaBottom: - return isLuma; - case FrameFormat.BottomFieldChromaTop: - case FrameFormat.SubPicBottomFieldChromaTop: - return !isLuma; - } - - return false; - } - } -}
\ No newline at end of file |
