protected override bool CanProcessStream(MVGraphAPI.SourceInfo sourceInfo) { bool streamSupported = SupportsStreamRendering(sourceInfo); Debug.LogFormat("Mvx2: PointCloud renderer {0} rendering of the new mvx stream", streamSupported ? "supports" : "does not support"); return(streamSupported); }
protected override bool CanProcessStream(MVGraphAPI.SourceInfo sourceInfo) { bool streamSupported = sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.AUDIO_DATA_LAYER); Debug.LogFormat("Mvx2: AudioAsyncPlayer {0} the new mvx stream", streamSupported ? "supports" : "does not support"); return(streamSupported); }
private void DisposeSourceInfo() { if (m_mvxSourceInfo != null) { m_mvxSourceInfo.Dispose(); m_mvxSourceInfo = null; } }
private static bool SourceInfoContainsTexture(MVGraphAPI.SourceInfo sourceInfo) { return(sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.ASTC_TEXTURE_DATA_LAYER) || sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.DXT1_TEXTURE_DATA_LAYER) || sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.ETC2_TEXTURE_DATA_LAYER) || sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.NVX_TEXTURE_DATA_LAYER) || sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.RGB_TEXTURE_DATA_LAYER)); }
public static bool SupportsStreamRendering(MVGraphAPI.SourceInfo sourceInfo) { bool streamSupported = sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.VERTEX_POSITIONS_DATA_LAYER) && sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.VERTEX_INDICES_DATA_LAYER) && sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.VERTEX_COLORS_DATA_LAYER); return(streamSupported); }
protected override bool SupportsSourceStream(MVGraphAPI.SourceInfo mvxSourceInfo) { bool fileStreamSupported = mvxSourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.AUDIO_DATA_LAYER); if (!fileStreamSupported) { Debug.Log("Mvx2: MvxAudioPlayerStream does not support sources without audio"); } return(fileStreamSupported); }
private void HandleStreamOpen(MVGraphAPI.SourceInfo sourceInfo) { frameToProcess = null; m_canProcessStream = CanProcessStream(sourceInfo); ResetProcessedData(); if (mvxStream.lastReceivedFrame != null) { HandleNextFrameReceived(mvxStream.lastReceivedFrame); } }
private bool ExtractSourceInfo() { Debug.Log("Mvx2: Extracting source info from source"); m_mvxSourceInfo = mvxRunner.GetSourceInfo(); if (m_mvxSourceInfo == null) { return(false); } m_isSingleFrameSource = m_mvxSourceInfo.GetNumFrames() == 1; return(true); }
protected override bool CanProcessStream(MVGraphAPI.SourceInfo sourceInfo) { return(true); }
public static bool SupportsStreamRendering(MVGraphAPI.SourceInfo sourceInfo) { return(sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.VERTEX_POSITIONS_DATA_LAYER)); }
private void OnNestedStreamOpenedStream(MVGraphAPI.SourceInfo mvxSourceInfo) { onStreamOpen.Invoke(mvxSourceInfo); }
protected virtual bool SupportsSourceStream(MVGraphAPI.SourceInfo mvxSourceInfo) { return(true); }
// Check the stream info for data layers present in the stream protected abstract bool CanProcessStream(MVGraphAPI.SourceInfo sourceInfo);