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.
public class MediaVisionSource : IDisposable
- Inheritance
-
MediaVisionSource
- Implements
Constructors
View SourceMediaVisionSource(Byte[], UInt32, UInt32, ColorSpace)
Initializes a new instance of the MediaVisionSource class based on the buffer and ColorSpace.
Declaration
public MediaVisionSource(byte[] buffer, uint width, uint height, ColorSpace colorSpace)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The buffer of image data. |
UInt32 | width | The width of image. |
UInt32 | height | The height of image. |
ColorSpace | colorSpace | The image ColorSpace. |
Exceptions
Type | Condition |
---|---|
NotSupportedException | None of the related features are not supported. |
ArgumentNullException |
|
ArgumentException |
|
API Level: 4
View SourceMediaVisionSource(MediaPacket)
Initializes a new instance of the MediaVisionSource class based on the MediaPacket.
Declaration
public MediaVisionSource(MediaPacket mediaPacket)
Parameters
Type | Name | Description |
---|---|---|
MediaPacket | mediaPacket | The MediaPacket from which the source will be filled. |
Exceptions
Type | Condition |
---|---|
NotSupportedException | None of the related features are not supported. |
ArgumentNullException |
|
ObjectDisposedException |
|
API Level: 4
Properties
View SourceBuffer
Gets the buffer of the media source.
Declaration
public IMediaBuffer Buffer { get; }
Property Value
Type | Description |
---|---|
IMediaBuffer |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
View SourceColorspace
Gets ColorSpace of the media source.
Declaration
public ColorSpace Colorspace { get; }
Property Value
Type | Description |
---|---|
ColorSpace |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
View SourceHeight
Gets the height of the media source.
Declaration
public uint Height { get; }
Property Value
Type | Description |
---|---|
UInt32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
View SourceSupportedColorSpaces
Gets the supported colorspaces for MediaVisionSource.
Declaration
public static IEnumerable<ColorSpace> SupportedColorSpaces { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ColorSpace> |
API Level: 4
View SourceWidth
Gets the width of the media source.
Declaration
public uint Width { get; }
Property Value
Type | Description |
---|---|
UInt32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The MediaVisionSource has already been disposed of. |
API Level: 4
Methods
View SourceDispose()
Releases all resources used by the current instance.
Declaration
public void Dispose()
API Level: 4
View SourceDispose(Boolean)
Releases the resources used by the MediaVisionSource object.
Declaration
protected 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
View SourceFinalize()
Finalizes an instance of the MediaVisionSource class.
Declaration
protected void Finalize()
IsSupportedColorSpace(ColorSpace)
Gets MediaVision's supported ColorSpace state. true if supported, otherwise false.
Declaration
public static bool IsSupportedColorSpace(ColorSpace colorSpace)
Parameters
Type | Name | Description |
---|---|---|
ColorSpace | colorSpace |
Returns
Type | Description |
---|---|
Boolean |