forked from thedeemon/gep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStreamCaps.cs
34 lines (29 loc) · 989 Bytes
/
StreamCaps.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using DirectShowLib;
using System.ComponentModel;
namespace gep
{
[TypeConverterAttribute(typeof(ExpandableObjectConverter)),
ReadOnlyAttribute(true)]
class StreamCaps<T>
{
MediaTypeProps mt;
T caps;
public StreamCaps(AMMediaType _mt, T _caps)
{
mt = MediaTypeProps.CreateMTProps(_mt); caps = _caps;
}
[ReadOnlyAttribute(true),
DescriptionAttribute("Media type"),
TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public MediaTypeProps MediaType { get { return mt; } }
[ReadOnlyAttribute(true),
DescriptionAttribute("Stream config caps"),
TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public object ConfigCaps { get { return new FieldsToPropertiesProxyTypeDescriptor(caps); } }
public override string ToString()
{
return mt.ToString();
}
}
}