harmony 鸿蒙native_avsource.h

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

native_avsource.h

概述

声明用于音视频解封装的Native API。

库: libnative_media_avsource.so

起始版本: 10

相关模块:AVSource

汇总

类型定义

名称 描述
typedef struct OH_AVSource OH_AVSource 为媒体资源接口定义native层对象。

函数

名称 描述
OH_AVSource * OH_AVSource_CreateWithDataSource (OH_AVDataSource *dataSource) 为用户自定义数据源的资源对象创建OH_AVSource实例对象,可以通过调用OH_AVSource_Destroy释放实例。
OH_AVSource * OH_AVSource_CreateWithURI (char *uri) 为统一资源标识符对应的的资源对象创建OH_AVSource实例对象。
OH_AVSource * OH_AVSource_CreateWithFD (int32_t fd, int64_t offset, int64_t size) 为文件描述符对应的资源对象创建OH_AVSource实例对象。
OH_AVErrCode OH_AVSource_Destroy (OH_AVSource *source) 销毁OH_AVSource实例并清理内部资源。
OH_AVFormat * OH_AVSource_GetSourceFormat (OH_AVSource *source) 获取媒体资源文件的基础信息。
OH_AVFormat * OH_AVSource_GetTrackFormat (OH_AVSource *source, uint32_t trackIndex) 获取轨道的基础信息。
OH_AVFormat * OH_AVSource_GetCustomMetadataFormat (OH_AVSource *source) 获取自定义元数据的基础信息。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙AVCodec Kit(音视频编解码服务)

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVSource

harmony 鸿蒙AudioCodec

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞