harmony 鸿蒙native_avmuxer.h

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

native_avmuxer.h

Overview

The native_avmuxer.h file declares native APIs used for audio and video encapsulation.

Since

10

Related Modules

AVMuxer

Summary

Functions

Name Description
*OH_AVMuxer_Create (int32_t fd, OH_AVOutputFormat format) Creates an OH_AVMuxer instance by using the file descriptor and encapsulation format.
OH_AVMuxer_SetRotation (OH_AVMuxer *muxer, int32_t rotation) Sets the rotation angle (clockwise) of an output video.
OH_AVMuxer_AddTrack (OH_AVMuxer *muxer, int32_t *trackIndex, OH_AVFormat *trackFormat) Adds a media track to the muxer.
OH_AVMuxer_Start (OH_AVMuxer *muxer) Starts encapsulation.
OH_AVMuxer_WriteSample (OH_AVMuxer *muxer, uint32_t trackIndex, OH_AVMemory *sample, OH_AVCodecBufferAttr info) Writes data to the muxer.
OH_AVMuxer_Stop (OH_AVMuxer *muxer) Stops encapsulation.
OH_AVMuxer_Destroy (OH_AVMuxer *muxer) Clears internal resources and destroys an OH_AVMuxer instance.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞