Skip to content

Commit

Permalink
Merge pull request #7 from keijiro/dev-small-fixes
Browse files Browse the repository at this point in the history
Fixes and updates
  • Loading branch information
keijiro authored May 20, 2018
2 parents 19cd734 + 2b6864c commit 06bd577
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
8 changes: 8 additions & 0 deletions Assets/Klak/NDI/Resources.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions Assets/Klak/NDI/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public Texture receivedTexture {

#region Private members

static IntPtr _callback = PluginEntry.NDI_GetTextureUpdateCallback();

CommandBuffer _commandBuffer;
Texture2D _sourceTexture;
MaterialPropertyBlock _propertyBlock;
Expand Down Expand Up @@ -100,11 +102,10 @@ void Update()

// Invoke the texture update callback in the plugin.
_commandBuffer.IssuePluginCustomTextureUpdate(
PluginEntry.NDI_GetTextureUpdateCallback(),
_sourceTexture,
PluginEntry.NDI_GetReceiverID(_plugin)
_callback, _sourceTexture, PluginEntry.NDI_GetReceiverID(_plugin)
);
Graphics.ExecuteCommandBuffer(_commandBuffer);
_sourceTexture.IncrementUpdateCount();
_commandBuffer.Clear();

// Check the frame dimensions.
Expand All @@ -131,6 +132,7 @@ void Update()
if (_targetTexture != null)
{
Graphics.Blit(_sourceTexture, _targetTexture, _material, alpha ? 1 : 0);
_targetTexture.IncrementUpdateCount();
}
else
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Plugin/Windows/Sender.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace KlakNDI
frame.xres = width;
frame.yres = height;
frame.FourCC = static_cast<NDIlib_FourCC_type_e>(fourCC);
frame.frame_format_type = NDIlib_frame_format_type_interleaved;
frame.frame_format_type = NDIlib_frame_format_type_progressive;
frame.p_data = static_cast<uint8_t*>(data);
frame.line_stride_in_bytes = width * 2;

Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
m_EditorVersion: 2018.1.0b13
m_EditorVersion: 2018.1.1f1

0 comments on commit 06bd577

Please sign in to comment.