harmony 鸿蒙native_avmuxer.h

2025-06-12 浏览 (1)

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

NameDescription
typedef struct OH_AVMuxer OH_AVMuxerDefines a struct for the native object for the muxer interface.

Functions

NameDescription
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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙AVCodec Kit

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVSource

harmony 鸿蒙AudioCodec

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/TePqmU