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
    object
    MediaVisionSource
    Implements
    Tizen.Multimedia.IBufferOwner
    IDisposable

    Constructors

    View Source

    MediaVisionSource(byte[], uint, uint, 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.

    uint width

    The width of image.

    uint height

    The height of image.

    ColorSpace colorSpace

    The image ColorSpace.

    View Source

    MediaVisionSource(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.

    Properties

    View Source

    Buffer

    Gets the buffer of the media source.

    Declaration
    public IMediaBuffer Buffer { get; }
    Property Value
    Type Description
    IMediaBuffer
    View Source

    Colorspace

    Gets ColorSpace of the media source.

    Declaration
    public ColorSpace Colorspace { get; }
    Property Value
    Type Description
    ColorSpace
    View Source

    Height

    Gets the height of the media source.

    Declaration
    public uint Height { get; }
    Property Value
    Type Description
    uint
    View Source

    SupportedColorSpaces

    Gets the supported colorspaces for MediaVisionSource.

    Declaration
    public static IEnumerable<ColorSpace> SupportedColorSpaces { get; }
    Property Value
    Type Description
    IEnumerable<><ColorSpace>
    View Source

    Timestamp

    Gets or sets the timestamp of the media source.

    Declaration
    public ulong Timestamp { get; set; }
    Property Value
    Type Description
    ulong
    View Source

    Width

    Gets the width of the media source.

    Declaration
    public uint Width { get; }
    Property Value
    Type Description
    uint

    Methods

    View Source

    Dispose()

    Releases all resources used by the current instance.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Releases the resources used by the MediaVisionSource object.

    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.

    View Source

    ~MediaVisionSource()

    Finalizes an instance of the MediaVisionSource class.

    Declaration
    protected ~MediaVisionSource()
    View Source

    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
    bool

    Implements

    Tizen.Multimedia.IBufferOwner
    IDisposable

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX