a2129b10创建于 2025年12月25日历史提交

OH_AVCodecAsyncCallback

typedef struct OH_AVCodecAsyncCallback {...} OH_AVCodecAsyncCallback

Overview

The struct defines all the asynchronous callback function pointers of an OH_AVCodec instance. To ensure the normal running of OH_AVCodec, you must register the instance of this struct with the OH_AVCodec instance and process the information reported by the callback function.

Since: 9

Deprecated from: 11

Substitute: OH_AVCodecCallback

Related module: CodecBase

Header file: native_avcodec_base.h

Summary

Member Variables

Name Description
OH_AVCodecOnError onError Callback used to report a codec operation error.
OH_AVCodecOnStreamChanged onStreamChanged Callback used to report a codec stream change.
OH_AVCodecOnNeedInputData onNeedInputData Callback used to report input data required.
OH_AVCodecOnNewOutputData onNeedOutputData Callback used to report output data generated.