Patches to Bf Blender for CAD development. https://tornavis.org/
Go to file
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
build_files BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
doc BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
extern Add upstream information to wcwidth library 2016-06-03 02:43:24 +10:00
intern BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
release UI Font: Fix bad kerning of Thai font. 2016-06-11 10:47:53 +02:00
source BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
tests BLI_rand: add BLI_rng_get_char_n 2016-06-12 00:41:02 +10:00
.arcconfig
.gitignore Git ignore BUILD_NOTES.txt from install_deps.sh. 2015-11-23 20:17:02 +01:00
.gitmodules 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
COPYING
GNUmakefile Makefile: Use hidden FORCE target 2016-05-21 05:48:10 +10:00
make.bat Fix make.bat checking 64bit systems 2016-02-10 00:26:12 +11:00