Skip to content

How to render yuv data? #38

@kyl2016

Description

@kyl2016

In D3DVisualization_dxsdk.vcxproj, I edit D3DVisualization.cpp,

HRESULT CCube::Render(void * pResource, bool isNewSurface, unsigned char * yuvData) // add yuvData parameter
{
...
m_pImmediateDeviceContext->UpdateSubresource(pBackBuffer, 0, NULL, yuvData, 1920, 0);
if (NULL != m_pImmediateDeviceContext)
{
m_pImmediateDeviceContext->Flush();
}
}

The display is error, could you help me ?

The source code is D3D11Image.zip

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions