Class MediaVisionSource
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
- API Level:
- 4
- Feature:
- http://tizen.org/feature/vision.barcode_detectionhttp://tizen.org/feature/vision.barcode_generationhttp://tizen.org/feature/vision.face_recognitionhttp://tizen.org/feature/vision.image_recognition
Represents the media vision source to keep information on the image or video frame data as raw buffer.
C#Copypublic class MediaVisionSource : IDisposable
- Inheritance
-
System.ObjectMediaVisionSource
- Implements
-
System.IDisposable
Constructors
MediaVisionSource(Byte[], UInt32, UInt32, 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 |
---|---|---|
System.Byte[] | buffer | The buffer of image data. |
System.UInt32 | width | The width of image. |
System.UInt32 | 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 |
|
API Level: 4
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 |
|
ObjectDisposedException |
|
API Level: 4
Properties
Declaration
C#Copypublic IMediaBuffer Buffer { get; }
Property Value
Type | Description |
---|---|
IMediaBuffer |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
Declaration
C#Copypublic ColorSpace Colorspace { get; }
Property Value
Type | Description |
---|---|
ColorSpace |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
Declaration
C#Copypublic uint Height { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
Declaration
C#Copypublic static IEnumerable<ColorSpace> SupportedColorSpaces { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ColorSpace> |
API Level: 4
Declaration
C#Copypublic uint Width { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
Methods
Declaration
C#Copypublic void Dispose()
API Level: 4
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. |
API Level: 4
Declaration
C#Copyprotected void Finalize()
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 |
---|---|
Boolean |