-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FourCC: Improve debug prints #116
base: master
Are you sure you want to change the base?
Conversation
I had once done a conversion to |
I just asked dzfranklin/drm-fourcc-rs#25 |
@dcz-self I think you pushed some of your own testing to the To not have to close this PR and lose all context, perhaps push that to a separate branch :) |
Oops. Thanks for noticing. Anyway, is there any interest in this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if having the first two bytes always be characters is also true for the FourCC codes used here? Could we "borrow" the formatting logic from drm_fourcc
, and/or have the same logic shared with Display
instead of not writing anything at all if it isn't a UTF-8 string?
Regarding using drm_fourcc
, we don't seem to get a response on that issue and the crate is most likely specific to DRM. There are many other crates defining and using FourCC types (think the million crates out there copy-pasting ISO-BMFF logic), and I doubt anyone would be willing to define a generic FourCC
crate and manage to get that used by the majority of the popular crates...
Unlikely whether this |
This looks bad:
This looks better:
Fallback for non-ASCII:
I think drm_fourcc is a better choice for representing fourcc in Linux, but I'm not ready to propose such a change.