World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл videotoolbox.h

См. исходные тексты.

Классы

struct  AVVideotoolboxContext
 

Определения типов

typedef struct AVVideotoolboxContext AVVideotoolboxContext
 

Функции

AVVideotoolboxContextav_videotoolbox_alloc_context (void)
 
int av_videotoolbox_default_init (AVCodecContext *avctx)
 
int av_videotoolbox_default_init2 (AVCodecContext *avctx, AVVideotoolboxContext *vtctx)
 
void av_videotoolbox_default_free (AVCodecContext *avctx)
 

Подробное описание

Public libavcodec Videotoolbox header.

См. определение в файле videotoolbox.h

Типы

◆ AVVideotoolboxContext

This struct holds all the information that needs to be passed between the caller and libavcodec for initializing Videotoolbox decoding. Its size is not a part of the public ABI, it must be allocated with av_videotoolbox_alloc_context() and freed with av_free().

Функции

◆ av_videotoolbox_alloc_context()

AVVideotoolboxContext* av_videotoolbox_alloc_context ( void  )

Allocate and initialize a Videotoolbox context.

This function should be called from the get_format() callback when the caller selects the AV_PIX_FMT_VIDETOOLBOX format. The caller must then create the decoder object (using the output callback provided by libavcodec) that will be used for Videotoolbox-accelerated decoding.

When decoding with Videotoolbox is finished, the caller must destroy the decoder object and free the Videotoolbox context using av_free().

Возвращает
the newly allocated context or NULL on failure

◆ av_videotoolbox_default_init()

int av_videotoolbox_default_init ( AVCodecContext avctx)

This is a convenience function that creates and sets up the Videotoolbox context using an internal implementation.

Аргументы
avctxthe corresponding codec context
Возвращает
>= 0 on success, a negative AVERROR code on failure

◆ av_videotoolbox_default_init2()

int av_videotoolbox_default_init2 ( AVCodecContext avctx,
AVVideotoolboxContext vtctx 
)

This is a convenience function that creates and sets up the Videotoolbox context using an internal implementation.

Аргументы
avctxthe corresponding codec context
vtctxthe Videotoolbox context to use
Возвращает
>= 0 on success, a negative AVERROR code on failure

◆ av_videotoolbox_default_free()

void av_videotoolbox_default_free ( AVCodecContext avctx)

This function must be called to free the Videotoolbox context initialized with av_videotoolbox_default_init().

Аргументы
avctxthe corresponding codec context