예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 private void DisposeSourceInfo()
 {
     if (m_mvxSourceInfo != null)
     {
         m_mvxSourceInfo.Dispose();
         m_mvxSourceInfo = null;
     }
 }
예제 #4
0
 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);
        }
예제 #6
0
        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);
        }
예제 #7
0
        private void HandleStreamOpen(MVGraphAPI.SourceInfo sourceInfo)
        {
            frameToProcess     = null;
            m_canProcessStream = CanProcessStream(sourceInfo);
            ResetProcessedData();

            if (mvxStream.lastReceivedFrame != null)
            {
                HandleNextFrameReceived(mvxStream.lastReceivedFrame);
            }
        }
예제 #8
0
        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);
        }
예제 #9
0
 protected override bool CanProcessStream(MVGraphAPI.SourceInfo sourceInfo)
 {
     return(true);
 }
예제 #10
0
 public static bool SupportsStreamRendering(MVGraphAPI.SourceInfo sourceInfo)
 {
     return(sourceInfo.ContainsDataLayer(MVGraphAPI.SimpleDataLayersGuids.VERTEX_POSITIONS_DATA_LAYER));
 }
예제 #11
0
 private void OnNestedStreamOpenedStream(MVGraphAPI.SourceInfo mvxSourceInfo)
 {
     onStreamOpen.Invoke(mvxSourceInfo);
 }
예제 #12
0
 protected virtual bool SupportsSourceStream(MVGraphAPI.SourceInfo mvxSourceInfo)
 {
     return(true);
 }
예제 #13
0
 // Check the stream info for data layers present in the stream
 protected abstract bool CanProcessStream(MVGraphAPI.SourceInfo sourceInfo);