Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

How to render yuv data? #38

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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