harmony 鸿蒙OH_AVCodecCallback

  • 2025-06-12
  • 浏览 (4)

OH_AVCodecCallback

Overview

The OH_AVCodecCallback 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.

For details about the development guide, see step 4 in surface mode or step 3 in buffer mode in Video Encoding.

System capability: SystemCapability.Multimedia.Media.CodecBase

Since: 11

Related module: CodecBase

Header file: native_avcodec_base.h

Summary

Member Variables

Name Description
OH_AVCodecOnError onError Defines the callback used to report a codec operation error.
OH_AVCodecOnStreamChanged onStreamChanged Defines the callback used to report a codec stream change.
OH_AVCodecOnNeedInputBuffer onNeedInputBuffer Defines the callback used to report input data required.
OH_AVCodecOnNewOutputBuffer onNewOutputBuffer Defines the callback used to report output data generated.

Member Variable Description

onError

Description

Defines the callback used to report a codec operation error.

Since: 11

onNeedInputBuffer

Description

Defines the callback used to report input data required.

Since: 11

onNewOutputBuffer

Description

Defines the callback used to report output data generated.

Since: 11

onStreamChanged

Description

Defines the callback used to report a codec stream change.

Since: 11

你可能感兴趣的鸿蒙文章

harmony 鸿蒙AVCodec Kit

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVSource

harmony 鸿蒙AudioCodec

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞