1 Star 0 Fork 4.9K

famoustang / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
codec_interface-h.md 13.34 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

codec_interface.h

Overview

Related Modules:

Codec

Description:

Declares codec-related APIs, including functions for initializing audio and video codecs, setting parameters, and controlling and transferring data.

Since:

1.0

Version:

1.0

Summary

Functions

Function Name

Description

CodecInit ()

int32_t 

Initializes the internal audio and video submodules of the codec.

CodecDeinit ()

int32_t 

Deinitializes the internal audio and video submodules of the codec.

CodecEnumerateCapbility (uint32_t index, CodecCapbility *cap)

int32_t 

Obtains the capabilities of a specified media type based on an index.

CodecGetCapbility (AvCodecMime mime, CodecType type, uint32_t flags, CodecCapbility *cap)

int32_t 

Obtains the capabilities of a specified media type.

CodecCreate (const char *name, const Param *attr, int len, CODEC_HANDLETYPE *handle)

int32_t 

Creates a specific codec component and returns the component context through a handle.

CodecDestroy (CODEC_HANDLETYPE handle)

int32_t 

Destroys a codec component.

CodecSetPortMode (CODEC_HANDLETYPE handle, DirectionType type, BufferMode mode)

int32_t 

Sets the input or output buffer mode.

CodecSetParameter (CODEC_HANDLETYPE handle, const Param *params, int paramCnt)

int32_t 

Sets parameters required by a codec component.

CodecGetParameter (CODEC_HANDLETYPE handle, Param *params, int paramCnt)

int32_t 

Obtains parameters from a codec component.

CodecStart (CODEC_HANDLETYPE handle)

int32_t 

Starts a codec component.

CodecStop (CODEC_HANDLETYPE handle)

int32_t 

Stops a codec component.

CodecFlush (CODEC_HANDLETYPE handle, DirectionType directType)

int32_t 

Clears the cache when the codec component is the running state.

CodecQueueInput (CODEC_HANDLETYPE handle, const InputInfo *inputData, uint32_t timeoutMs)

int32_t 

Queues input data.

CodecDequeInput (CODEC_HANDLETYPE handle, uint32_t timeoutMs, InputInfo *inputData)

int32_t 

Dequeues input data that has been used.

CodecQueueOutput (CODEC_HANDLETYPE handle, OutputInfo *outInfo, uint32_t timeoutMs, int releaseFenceFd)

int32_t 

Queues output data.

CodecDequeueOutput (CODEC_HANDLETYPE handle, uint32_t timeoutMs, int *acquireFd, OutputInfo *outInfo)

int32_t 

Dequeues output data.

CodecSetCallback (CODEC_HANDLETYPE handle, const CodecCallback *cb, UINTPTR instance)

int32_t 

Sets the callback function.

1
https://gitee.com/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

搜索帮助