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

souce code question! #1494

Open
fogin opened this issue Dec 24, 2024 · 0 comments
Open

souce code question! #1494

fogin opened this issue Dec 24, 2024 · 0 comments

Comments

@fogin
Copy link

fogin commented Dec 24, 2024

// Transfer ownership into ComPtrs
for (int i = 0; i < m_DecSurfaces.size(); i++) {
    m_DecSurfaces[i].Attach(m_DecSurfacesRaw[i]);
}

hr = m_DecService->CreateVideoDecoder(chosenDeviceGuid, &m_Desc, &m_Config,
                                      m_DecSurfacesRaw.data(),
                                      (UINT)m_DecSurfacesRaw.size(),
                                      &m_Decoder);

is m_DecSurfacesRaw available after Transfer ownership into m_DecSurfaces?

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

No branches or pull requests

1 participant