Repository navigation
plugin: pass RGB565 frames through - #9
Merged
Merged
Conversation
Frames a gamelogic engine sends as RGB565 reach the outputs as they are, so DMD hardware that takes RGB565 gets the game's own values; outputs that only take RGB24 get them converted by the render graph. Needs the engine's Rgb565 display encoding.
…cene displays on RGB24. Colorizers take gray frames, so a pipeline built for RGB24 or RGB565 frames has no converter and doesn't ask the producer for gray. Frames shorter than the display are dropped instead of being read past their end. In-scene displays get RGB565 converted to RGB24 as before. The Engine dependency is the first release with RGB565 frames.
[Medium impact] The follow-up changes appear safe to merge once the required Engine release is available. SummaryAdds RGB565 frame delivery to the DMD plugin and strengthens the tests for both supported output types.
The Engine dependency must be released before this PR merges. No new actionable issues were found in the changes since the previous review. Reviews (2) · Last reviewed commit: "test: compare whole RGB565 and RGB24 fra..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gamelogic engines can now send RGB565 DMD frames (freezy/VisualPinball.Engine, freezy/VisualPinball.Engine#636). This passes them to the render graph unchanged, so DMD hardware that takes RGB565 gets the game's own values, and outputs that only take RGB24 get them converted by LibDmd.
VpeGleSourcegets an RGB565 source (IRgb565Source). The bridge and the managed pipeline pick gray, RGB24 or RGB565 by the frames' format and rebuild when it changes.DisplayEncoding.Rgb565.Known limitation, not new: LibDmd.Core doesn't resize colour frames for fixed-size outputs (
TransformRgb24andTransformRgb565both return the frame as is), so a source larger than, say, a 128×32 Pixelcade doesn't work for RGB24 either.Tests:
Rgb565FramesReachBothDestinationschecks that an RGB565 frame reaches an RGB565 output unchanged and an RGB24-only one converted. All 31 player tests pass, and the package compiles in the HDRP player.