harmony 鸿蒙native_avdemuxer.h

  • 2023-10-30
  • 浏览 (248)

native_avdemuxer.h

Overview

The native_avdemuxer.h file declares the native APIs used for audio and video decapsulation.

Since

10

Related Modules

AVDemuxer

Summary

Functions

Name Description
*OH_AVDemuxer_CreateWithSource (OH_AVSource *source) Creates an OH_AVDemuxer instance based on an OH_AVSource instance.
OH_AVDemuxer_Destroy (OH_AVDemuxer *demuxer) Destroys an OH_AVDemuxer instance and clears internal resources.
OH_AVDemuxer_SelectTrackByID (OH_AVDemuxer *demuxer, uint32_t trackIndex) Selects a track, from which the demuxer reads data.
OH_AVDemuxer_UnselectTrackByID (OH_AVDemuxer *demuxer, uint32_t trackIndex) Deselects a track. The demuxer no longer reads data from a track after it is deselected.
OH_AVDemuxer_ReadSample (OH_AVDemuxer *demuxer, uint32_t trackIndex, OH_AVMemory *sample, OH_AVCodecBufferAttr *info) Obtains the compressed frame and related information at the current position from the selected track.
OH_AVDemuxer_SeekToTime (OH_AVDemuxer *demuxer, int64_t millisecond, OH_AVSeekMode mode) Seeks to the specified time for all the selected tracks based on a seek mode.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞