Class MediaVisionSource
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Represents the media vision source to keep information on the image or video frame data as raw buffer.
public class MediaVisionSource : IDisposable
- Inheritance
-
objectMedia
Vision Source
- Implements
-
System.
IDisposable
Constructors
View SourceMediaVisionSource(byte[], uint, uint, ColorSpace)
Initializes a new instance of the Media
Declaration
public MediaVisionSource(byte[] buffer, uint width, uint height, ColorSpace colorSpace)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | The buffer of image data. |
uint | width | The width of image. |
uint | height | The height of image. |
Color |
colorSpace | The image Color |
Exceptions
Type | Condition |
---|---|
System. |
None of the related features are not supported. |
System. |
|
System. |
|
MediaVisionSource(MediaPacket)
Initializes a new instance of the Media
Declaration
public MediaVisionSource(MediaPacket mediaPacket)
Parameters
Type | Name | Description |
---|---|---|
Media |
mediaPacket | The Media |
Exceptions
Type | Condition |
---|---|
System. |
None of the related features are not supported. |
System. |
|
System. |
|
Properties
View SourceBuffer
Gets the buffer of the media source.
Declaration
public IMediaBuffer Buffer { get; }
Property Value
Type | Description |
---|---|
IMedia |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
Colorspace
Gets Color
Declaration
public ColorSpace Colorspace { get; }
Property Value
Type | Description |
---|---|
Color |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
Height
Gets the height of the media source.
Declaration
public uint Height { get; }
Property Value
Type | Description |
---|---|
uint |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
SupportedColorSpaces
Gets the supported colorspaces for Media
Declaration
public static IEnumerable<ColorSpace> SupportedColorSpaces { get; }
Property Value
Type | Description |
---|---|
System. |
Width
Gets the width of the media source.
Declaration
public uint Width { get; }
Property Value
Type | Description |
---|---|
uint |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
Methods
View SourceDispose()
Releases all resources used by the current instance.
Declaration
public void Dispose()
Dispose(bool)
Releases the resources used by the Media
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. |
~MediaVisionSource()
Finalizes an instance of the MediaVisionSource class.
Declaration
protected ~MediaVisionSource()
IsSupportedColorSpace(ColorSpace)
Gets MediaVision's supported ColorSpace state. true if supported, otherwise false.
Declaration
public static bool IsSupportedColorSpace(ColorSpace colorSpace)
Parameters
Type | Name | Description |
---|---|---|
Color |
colorSpace |
Returns
Type | Description |
---|---|
bool |