2021-07-11 22:59:29 -05:00
|
|
|
// Decompiled with JetBrains decompiler
|
|
|
|
|
// Type: Microsoft.Iris.Render.VideoElement
|
|
|
|
|
// Assembly: UIX.RenderApi, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
|
|
|
|
// MVID: D47658B8-A8EA-43D6-8837-ECE823BFFFC1
|
|
|
|
|
// Assembly location: C:\Program Files\Zune\UIX.RenderApi.dll
|
|
|
|
|
|
|
|
|
|
using Microsoft.Iris.Render.Common;
|
|
|
|
|
using Microsoft.Iris.Render.Graphics;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Iris.Render
|
|
|
|
|
{
|
2021-07-11 23:04:40 -05:00
|
|
|
public class VideoElement : EffectInput
|
2021-07-11 22:59:29 -05:00
|
|
|
{
|
2021-07-11 23:04:40 -05:00
|
|
|
internal const string VideoPropertyName = "Video";
|
|
|
|
|
private Microsoft.Iris.Render.VideoStream m_videoStream;
|
|
|
|
|
private byte m_nVideoStreamID;
|
|
|
|
|
|
|
|
|
|
public VideoElement(string stName, IVideoStream videoStream)
|
|
|
|
|
: this()
|
|
|
|
|
{
|
|
|
|
|
Debug2.Validate(!string.IsNullOrEmpty(stName), typeof(ArgumentException), nameof(stName));
|
|
|
|
|
this.m_stName = stName;
|
|
|
|
|
this.m_videoStream = videoStream as Microsoft.Iris.Render.VideoStream;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public VideoElement() => this.m_typeInput = EffectInputType.Video;
|
|
|
|
|
|
|
|
|
|
public IVideoStream VideoStream
|
|
|
|
|
{
|
2021-07-11 23:07:04 -05:00
|
|
|
get => m_videoStream;
|
2021-07-11 23:04:40 -05:00
|
|
|
set => this.m_videoStream = value as Microsoft.Iris.Render.VideoStream;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal byte VideoStreamID => this.m_nVideoStreamID;
|
|
|
|
|
|
|
|
|
|
internal override int PreProcessProperties(
|
|
|
|
|
Map<string, EffectProperty> dictionary,
|
|
|
|
|
ref byte nNextUniqueID)
|
|
|
|
|
{
|
|
|
|
|
int num = base.PreProcessProperties(dictionary, ref nNextUniqueID);
|
|
|
|
|
this.AddEffectProperty(dictionary, "Video");
|
|
|
|
|
this.m_nVideoStreamID = nNextUniqueID++;
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal override bool Process(Map<string, EffectProperty> dictProperties)
|
|
|
|
|
{
|
2021-07-11 23:07:04 -05:00
|
|
|
if (!this.GenerateProperty("Video", EffectPropertyType.Video, VideoStream, this.m_nVideoStreamID, dictProperties))
|
2021-07-11 23:04:40 -05:00
|
|
|
return false;
|
|
|
|
|
dictProperties[this.GeneratePropertyPath("Video")].IsDynamic = true;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2021-07-11 22:59:29 -05:00
|
|
|
}
|
|
|
|
|
}
|