-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add YUYV to supported video formats #507
Conversation
@bazile-clyde Would you be able to review this for me? I can't add you as a reviewer directly |
@RyanBoring yep! Looking now. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #507 +/- ##
=======================================
Coverage 59.02% 59.02%
=======================================
Files 63 63
Lines 3854 3854
=======================================
Hits 2275 2275
Misses 1446 1446
Partials 133 133
☔ View full report in Codecov by Sentry. |
pkg/frame/decode.go
Outdated
@@ -17,6 +17,8 @@ const ( | |||
FormatNV12 = "NV12" | |||
// FormatYUY2 https://www.fourcc.org/pixel-format/yuv-yuy2/ | |||
FormatYUY2 = "YUY2" | |||
// FormatYUYV https://www.fourcc.org/pixel-format/yuv-yuy2/ |
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.
This link isn't working for me. I think it's gone stale. Maybe figure our if fourcc.org has moved to another domain, and if so where. Or you could paste another authoritative link about the YUYV format.
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.
Wow yeah great catch, I just changed them in a new commit
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.
Thank you!
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.
Nice! LGTM!
Description
Add YUYV to supported video formats; used to be implicitly supported under YUY2. That meant the user had to know to ask for YUY2 decoding when using a YUYV device; this PR allows the user to specify YUYV instead.