harmony 鸿蒙avimage_generator.h

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

avimage_generator.h

Overview

The avimage_generator.h file declares the AVImageGenerator APIs. With these native APIs, you can extract video frames at given time points from videos.

System capability: SystemCapability.Multimedia.Media.AVImageGenerator

Library: libavimage_generator.so

Since: 18

Related module: AVImageGenerator

Summary

Types

Name Description
typedef struct OH_AVImageGenerator OH_AVImageGenerator Defines a struct for the OH_AVImageGenerator.

Functions

Name Description
OH_AVImageGenerator * OH_AVImageGenerator_Create (void) Creates an OH_AVImageGenerator instance.
OH_AVErrCode OH_AVImageGenerator_SetFDSource (OH_AVImageGenerator *generator, int32_t fd, int64_t offset, int64_t size) Sets a data source based on the media file descriptor.
OH_AVErrCode OH_AVImageGenerator_FetchFrameByTime (OH_AVImageGenerator *generator, int64_t timeUs, OH_AVImageGenerator_QueryOptions options, OH_PixelmapNative **pixelMap) Extracts a video frame at a given time from a video.
OH_AVErrCode OH_AVImageGenerator_Release (OH_AVImageGenerator *generator) Releases the resources used by the OH_AVImageGenerator instance and destroys the instance.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Media Kit

harmony 鸿蒙AVImageGenerator

harmony 鸿蒙AVMetadataExtractor

harmony 鸿蒙AVPlayer

harmony 鸿蒙AVPlayerCallback

harmony 鸿蒙AVRecorder

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙OH_AVRecorder_Config

harmony 鸿蒙OH_AVRecorder_EncoderInfo

harmony 鸿蒙OH_AVRecorder_Location

0  赞