harmony 鸿蒙native_avmuxer.h
native_avmuxer.h
Overview
The native_avmuxer.h file declares the native APIs used for audio and video multiplexing.
Library: libnative_media_avmuxer.so
Since: 10
Related module: AVMuxer
Summary
Types
Name | Description |
---|---|
typedef struct OH_AVMuxer OH_AVMuxer | Defines a struct for the native object for the muxer interface. |
Functions
Name | Description |
---|---|
OH_AVMuxer * OH_AVMuxer_Create (int32_t fd, OH_AVOutputFormat format) | Creates an OH_AVMuxer instance by using the file descriptor and container format. |
OH_AVErrCode OH_AVMuxer_SetRotation (OH_AVMuxer *muxer, int32_t rotation) | Sets the rotation angle (clockwise), which must be 0, 90, 180, or 270, of an output video. |
OH_AVErrCode OH_AVMuxer_SetFormat (OH_AVMuxer *muxer, OH_AVFormat *format) | Sets format data to the muxer. |
OH_AVErrCode OH_AVMuxer_AddTrack (OH_AVMuxer *muxer, int32_t *trackIndex, OH_AVFormat *trackFormat) | Adds an audio or video track to a muxer. |
OH_AVErrCode OH_AVMuxer_Start (OH_AVMuxer *muxer) | Starts a muxer. |
OH_AVErrCode OH_AVMuxer_WriteSample (OH_AVMuxer *muxer, uint32_t trackIndex, OH_AVMemory *sample, OH_AVCodecBufferAttr info) | Writes a sample to a muxer. |
OH_AVErrCode OH_AVMuxer_WriteSampleBuffer (OH_AVMuxer *muxer, uint32_t trackIndex, const OH_AVBuffer *sample) | Writes a sample to a muxer. |
OH_AVErrCode OH_AVMuxer_Stop (OH_AVMuxer *muxer) | Stops a muxer. |
OH_AVErrCode OH_AVMuxer_Destroy (OH_AVMuxer *muxer) | Clears internal resources and destroys an OH_AVMuxer instance. |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦