This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VLC prepares to render a video frame. | |
static void* lock(void* data, void** p_pixels) { | |
return NULL; // Picture identifier, not needed here. | |
} | |
// VLC just rendered a video frame. | |
static void unlock(void* data, void* id, void* const* p_pixels) { | |
} | |
// VLC wants to display a video frame. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------ | |
// Creating texture for rendering video | |
//------------------------------------------------ | |
// ID3D11Device* Device | |
ID3D11Texture2D* texture = nullptr; | |
D3D11_TEXTURE2D_DESC td; | |
RtlZeroMemory(&td, sizeof(D3D11_TEXTURE2D_DESC)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------- | |
// YUV TO RGB BT.601 For SD TV | |
//----------------------------------------------------------- | |
cbuffer PS_CONSTANT_BUFFER : register(b0) | |
{ | |
float Opacity; | |
float ignoreA; | |
float ignoreB; | |
float ignoreC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libvlc_media_add_option(m, ":avcodec-hw=dxva2"); | |
// Below is the information about option list. | |
/* Input */ | |
var_Create (mp, "rate", VLC_VAR_FLOAT|VLC_VAR_DOINHERIT); | |
var_Create (mp, "sout", VLC_VAR_STRING); | |
var_Create (mp, "demux-filter", VLC_VAR_STRING); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Napi::Value FGM::test(const Napi::CallbackInfo &info) { | |
Napi::Env env = info.Env(); | |
auto cb = info[0].As<Napi::Function>(); | |
threadSafeCallback = ThreadSafeFunction::Create(cb); | |
std::thread t([threadSafeCallback]() => { | |
// do something | |
NewerOlder