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.
C#Copypublic class MediaVisionSource : IDisposable
- Inheritance
-
objectMediaVisionSource
- Implements
-
System.IDisposable
Constructors
MediaVisionSource(byte[], uint, uint, ColorSpace)
Initializes a new instance of the MediaVisionSource class based on the buffer and ColorSpace.
Declaration
C#Copypublic 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. |
ColorSpace | colorSpace | The image ColorSpace. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | None of the related features are not supported. |
System.ArgumentNullException |
|
System.ArgumentException |
|
MediaVisionSource(MediaPacket)
Initializes a new instance of the MediaVisionSource class based on the MediaPacket.
Declaration
C#Copypublic MediaVisionSource(MediaPacket mediaPacket)
Parameters
Type | Name | Description |
---|---|---|
MediaPacket | mediaPacket | The MediaPacket from which the source will be filled. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | None of the related features are not supported. |
System.ArgumentNullException |
|
System.ObjectDisposedException |
|
Properties
Declaration
C#Copypublic IMediaBuffer Buffer { get; }
Property Value
Type | Description |
---|---|
IMediaBuffer |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | The MediaVisionSource has already been disposed of. |
Declaration
C#Copypublic ColorSpace Colorspace { get; }
Property Value
Type | Description |
---|---|
ColorSpace |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | The MediaVisionSource has already been disposed of. |
Declaration
C#Copypublic uint Height { get; }
Property Value
Type | Description |
---|---|
uint |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | The MediaVisionSource has already been disposed of. |
Declaration
C#Copypublic static IEnumerable<ColorSpace> SupportedColorSpaces { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><ColorSpace> |
Declaration
C#Copypublic uint Width { get; }
Property Value
Type | Description |
---|---|
uint |
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | The MediaVisionSource has already been disposed of. |
Methods
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected 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. |
Declaration
C#Copyprotected ~MediaVisionSource()
IsSupportedColorSpace(ColorSpace)
Gets MediaVision's supported ColorSpace state. true if supported, otherwise false.
Declaration
C#Copypublic static bool IsSupportedColorSpace(ColorSpace colorSpace)
Parameters
Type | Name | Description |
---|---|---|
ColorSpace | colorSpace |
Returns
Type | Description |
---|---|
bool |