Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ downloads~
# Ignore temporaries from GameCI
**/[Aa]rtifacts/
**/[Cc]odeCoverage/

# Temp generated SDK version file
**/LiveKitSdkVersionInfo.txt
8 changes: 8 additions & 0 deletions 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.
7 changes: 6 additions & 1 deletion Runtime/Scripts/Video/YuvToRgbConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,17 @@ private void UploadYuvPlanes(VideoFrameBuffer buffer)
// CPU-side conversion to RGBA and blit to the output render target.
private void CpuConvertToRenderTarget(VideoFrameBuffer buffer, int width, int height)
{
Debug.Log($"CPU conversion");

var rgba = buffer.ToRGBA();
var tempTex = new Texture2D(width, height, TextureFormat.RGBA32, false);
try
{
tempTex.LoadRawTextureData((IntPtr)rgba.Info.DataPtr, (int)rgba.GetMemorySize());
tempTex.Apply();
Graphics.Blit(tempTex, Output);

// Also mirror horizontally by flipping the UV scale on the X axis and offsetting.
Graphics.Blit(tempTex, Output, new Vector2(-1f, 1f), new Vector2(1f, 0f));
}
finally
{
Expand All @@ -148,6 +152,7 @@ private void GpuConvertToRenderTarget()
_yuvToRgbMaterial.SetTexture("_TexY", _planeY);
_yuvToRgbMaterial.SetTexture("_TexU", _planeU);
_yuvToRgbMaterial.SetTexture("_TexV", _planeV);

Graphics.Blit(Texture2D.blackTexture, Output, _yuvToRgbMaterial);
}
}
Expand Down
1 change: 0 additions & 1 deletion Samples~/Meet/Assets/Resources/LiveKitSdkVersionInfo.txt

This file was deleted.

8 changes: 8 additions & 0 deletions Samples~/Meet/Assets/Resources/Shaders.meta

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

1 change: 0 additions & 1 deletion Samples~/Meet/ProjectSettings/GraphicsSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ GraphicsSettings:
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 4800000, guid: 2475752d0dcc74d1eb5e66b8317e87b6, type: 3}
m_PreloadedShaders: []
m_PreloadShadersBatchTimeLimit: -1
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
Expand Down
Loading