io
November 25, 2016, 7:26pm
#1
So how to convert YUV to RGB in DX11? I tried the converter that comes with the Blackmagic Decklink DX11 plugin but it does not work.
Current case is Blackmagic ATEN 4K streaming to Datapath Vision E1s with OpenCV Videoin.
Simone
tonfilm
November 25, 2016, 7:46pm
#2
i quick google for “YUV to RGB HLSL” gave me this code:
//*****************************************************************************
// Libvidgfx: A graphics library for video compositing
//
// Copyright (C) 2014 Lucas Murray <lucas@polyflare.com>
// All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 of the License, or (at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//*****************************************************************************
// Designed for use with the "texDecal-vs.hlsl" vertex shader
cbuffer RgbNv16
This file has been truncated. show original
should be easy to make a texture fx or so out of it.
1 Like
io
November 25, 2016, 9:06pm
#3
I implemented it but it does not work. We had an easy way out using an HDMI out from the PC. Anyway something that should be taken into account.
S.
tonfilm
November 25, 2016, 10:27pm
#4
system
Closed
November 25, 2017, 10:27pm
#5
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.