Skip to content
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

Add YUYV to supported video formats #507

Merged
merged 4 commits into from
Jun 5, 2023
Merged

Conversation

RyanBoring
Copy link

@RyanBoring RyanBoring commented Jun 2, 2023

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.

@RyanBoring RyanBoring marked this pull request as draft June 2, 2023 17:38
@RyanBoring RyanBoring marked this pull request as ready for review June 2, 2023 17:38
@RyanBoring
Copy link
Author

@bazile-clyde Would you be able to review this for me? I can't add you as a reviewer directly

@bazile-clyde bazile-clyde self-requested a review June 2, 2023 17:42
@bazile-clyde
Copy link
Collaborator

@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
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (ae173b1) 59.02% compared to head (4c5573a) 59.02%.

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           
Impacted Files Coverage Δ
pkg/frame/decode.go 57.14% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -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/
Copy link
Collaborator

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.

Copy link
Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Collaborator

@bazile-clyde bazile-clyde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM!

@bazile-clyde bazile-clyde merged commit e64f0d8 into pion:master Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants