blender/intern
Benoit Bolsee eea89417f4 BGE: DeckLink card support for video capture and streaming.
You can capture and stream video in the BGE using the DeckLink video
   cards from Black Magic Design. You need a card and Desktop Video software
   version 10.4 or above to use these features in the BGE.
   Many thanks to Nuno Estanquiero who tested the patch extensively
   on a variety of Decklink products, it wouldn't have been possible without
   his help.
   You can find a brief summary of the decklink features here: https://wiki.blender.org/index.php/Dev:Source/GameEngine/Decklink
   The full API details and samples are in the Python API documentation.

bge.texture.VideoDeckLink(format, capture=0):

   Use this object to capture a video stream. the format argument describes
   the video and pixel formats and the capture argument the card number.
   This object can be used as a source for bge.texture.Texture so that the frame
   is sent to the GPU, or by itself using the new refresh method to get the video
   frame in a buffer.
   The frames are usually not in RGB but in YUV format (8bit or 10bit); they
   require a shader to extract the RGB components in the GPU. Details and sample
   shaders in the documentation.
   3D video capture is supported: the frames are double height with left and right
   eyes in top-bottom order. The 'eye' uniform (see setUniformEyef) can be used to
   sample the 3D frame when the BGE is also in stereo mode. This allows to composite
   a 3D video stream with a 3D scene and render it in stereo.
   In Windows, and if you have a nVidia Quadro GPU, you can benefit of an additional
   performance boost by using 'GPUDirect': a method to send a video frame to the GPU
   without going through the OGL driver. The 'pinned memory' OGL extension is also
   supported (only on high-end AMD GPU) with the same effect.

bge.texture.DeckLink(cardIdx=0, format=""):

   Use this object to send video frame to a DeckLink card. Only the immediate mode
   is supported, the scheduled mode is not implemented.
   This object is similar to bge.texture.Texture: you need to attach a image source
   and call refresh() to compute and send the frame to the card.
   This object is best suited for video keying: a video stream (not captured) flows
   through the card and the frame you send to the card are displayed above it (the
   card does the compositing automatically based on the alpha channel).
   At the time of this commit, 3D video keying is supported in the BGE but not in the
   DeckLink card due to a color space issue.
2016-06-11 22:26:05 +02:00
..
atomic Atomic ops: Fix atomic_add_uint32 and atomic_sub_uint32 in Windows 2016-06-11 22:15:25 +02:00
audaspace Fix warnings reported by MSVC 2016-02-23 09:44:54 +01:00
container Remove SCons building system 2016-01-04 14:20:48 +05:00
cycles Fix Gradient Texture and OSL after refactor. 2016-06-11 21:40:00 +02:00
decklink BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
dualcon Remove SCons building system 2016-01-04 14:20:48 +05:00
eigen Remove SCons building system 2016-01-04 14:20:48 +05:00
elbeem Silence some annoying warnings when doing full build with strict flags 2016-04-22 10:59:15 +02:00
ffmpeg Fix compilation error with FFmpeg and Ubuntu Trusty 2016-02-19 22:05:06 +01:00
ghost Attempted fix for T48625: tablet button configured to right click not working on OS X. 2016-06-11 20:32:24 +02:00
glew-mx Remove SCons building system 2016-01-04 14:20:48 +05:00
gpudirect BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
guardedalloc Remove SCons building system 2016-01-04 14:20:48 +05:00
iksolver CMake: add missing headers 2016-04-12 11:22:30 +10:00
itasc Remove SCons building system 2016-01-04 14:20:48 +05:00
libmv Compositor: Speedup movie (un)distortion operation 2016-01-26 11:44:43 +01:00
locale Remove SCons building system 2016-01-04 14:20:48 +05:00
memutil Remove SCons building system 2016-01-04 14:20:48 +05:00
mikktspace Cleanup: warning 2016-03-13 15:15:38 +11:00
moto BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
opencolorio Cleanup: glsl style 2016-05-26 18:53:09 +10:00
opensubdiv Cleanup: glsl style 2016-05-26 18:53:09 +10:00
openvdb Fix T48236: OpenVDB smoke cache glitches out with smokeless flames. 2016-04-22 11:46:02 +02:00
rigidbody Remove SCons building system 2016-01-04 14:20:48 +05:00
smoke Smoke (fire): Move spectrum code from C++ (intern/) to C code (BLI) 2016-01-09 04:48:31 +01:00
string Remove SCons building system 2016-01-04 14:20:48 +05:00
utfconv Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00