Search Results for

    Show / Hide Table of Contents

    Class VideoFrameConverter

    Provides functionality for converting video frames between different sizes and pixel formats using FFmpeg.

    Inheritance
    object
    VideoFrameConverter
    Namespace: Evergine.Runtimes.Video.Helpers
    Assembly: Evergine.Runtimes.Video.dll
    Syntax
    public class VideoFrameConverter

    Constructors

    VideoFrameConverter(Size, AVPixelFormat, Size, AVPixelFormat)

    Initializes a new instance of the VideoFrameConverter class.

    Declaration
    public VideoFrameConverter(Size sourceSize, AVPixelFormat sourcePixelFormat, Size destinationSize, AVPixelFormat destinationPixelFormat)
    Parameters
    Type Name Description
    Size sourceSize

    The size of the source video frame.

    AVPixelFormat sourcePixelFormat

    The pixel format of the source frame.

    Size destinationSize

    The target size of the converted frame.

    AVPixelFormat destinationPixelFormat

    The pixel format of the converted frame.

    Exceptions
    Type Condition
    ApplicationException

    Thrown when the conversion context cannot be initialized.

    Methods

    Convert(AVFrame)

    Converts a source video frame to the destination format and size.

    Declaration
    public AVFrame Convert(AVFrame sourceFrame)
    Parameters
    Type Name Description
    AVFrame sourceFrame

    The input video frame to be converted.

    Returns
    Type Description
    AVFrame

    A new FFmpeg.AutoGen.Abstractions.AVFrame representing the converted frame.

    Dispose()

    Releases the unmanaged resources used by this instance.

    Declaration
    public void Dispose()

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX