Skip to content

Conversation

@FrayxRulez
Copy link
Contributor

This is meant to fix #86

@osaghaso osaghaso requested a review from jlautman January 4, 2021 21:35
}

if (SUCCEEDED(hr)) {
if (SUCCEEDED(hr) && plane_count == 2) {
Copy link

Choose a reason for hiding this comment

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

Previously, plane_count == 3 would have set hr to E_FAIL. Is there a guarantee that plane_count is never any value other than 0, 1, or 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. It probably makes sense to fail if plane_count isn't 1 or 2.

}

if (SUCCEEDED(hr)) {
if (SUCCEEDED(hr) && plane_count >= 1) {
Copy link

Choose a reason for hiding this comment

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

This change treats 1 plane and 2 plane frames identically. Is that intentional or is there any different work that needs to be done in the 1 plane case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's intentional: pfn_incoming_frame_ is able to figure out the data format and to decode it correctly.

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.

VideoCaptureWinRTInternal fails to read frames

2 participants