• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# avimage_generator_base.h
2<!--Kit: Media Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @wang-haizhou6-->
5<!--Designer: @HmQQQ-->
6<!--Tester: @xchaosioda-->
7<!--Adviser: @zengyawen-->
8
9## Overview
10
11The file declares the enums used by the AVImageGenerator.
12
13**File to include**: <multimedia/player_framework/avimage_generator_base.h>
14
15**Library**: libavimage_generator.so
16
17**System capability**: SystemCapability.Multimedia.Media.AVImageGenerator
18
19**Since**: 18
20
21**Related module**: [AVImageGenerator](capi-avimagegenerator.md)
22
23## Summary
24
25### Enums
26
27| Name| typedef Keyword| Description|
28| -- | -- | -- |
29| [OH_AVImageGenerator_QueryOptions](#oh_avimagegenerator_queryoptions) | OH_AVImageGenerator_QueryOptions | Enumerates the mappings between time points and video frames.|
30
31## Enum Description
32
33### OH_AVImageGenerator_QueryOptions
34
35```
36enum OH_AVImageGenerator_QueryOptions
37```
38
39**Description**
40
41Enumerates the mappings between time points and video frames.
42
43**System capability**: SystemCapability.Multimedia.Media.AVImageGenerator
44
45**Since**: 18
46
47| Enum Item| Description|
48| -- | -- |
49| OH_AVIMAGE_GENERATOR_QUERY_NEXT_SYNC = 0 | Extracts the key frame at or next to the specified time.|
50| OH_AVIMAGE_GENERATOR_QUERY_PREVIOUS_SYNC = 1 | Extracts the key frame at or prior to the specified time.|
51| OH_AVIMAGE_GENERATOR_QUERY_CLOSEST_SYNC = 2 | Extracts the key frame closest to the specified time.|
52| OH_AVIMAGE_GENERATOR_QUERY_CLOSEST = 3 | Extracts the frame (not necessarily a key frame) closest to the specified time.|
53