• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# native_avbuffer_info.h
2
3## Overview
4
5The file declares the attribute definition of the media struct AVBuffer.
6
7**File to include**: <multimedia/player_framework/native_avbuffer_info.h>
8
9**Library**: libnative_media_core.so
10
11**System capability**: SystemCapability.Multimedia.Media.Core
12
13**Since**: 9
14
15**Related module**: [Core](capi-core.md)
16
17**Sample**: [AVCodec](https://gitcode.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/Media/AVCodec)
18
19## Summary
20
21### Structs
22
23| Name| typedef Keyword| Description|
24| -- | -- | -- |
25| [OH_AVCodecBufferAttr](capi-core-oh-avcodecbufferattr.md) | OH_AVCodecBufferAttr | Describes the description information about the buffer of an OH_AVCodec instance.|
26
27### Enums
28
29| Name| typedef Keyword| Description|
30| -- | -- | -- |
31| [OH_AVCodecBufferFlags](#oh_avcodecbufferflags) | OH_AVCodecBufferFlags | Enumerates the flags for the buffer of an OH_AVCodec instance.|
32
33## Enum Description
34
35### OH_AVCodecBufferFlags
36
37```
38enum OH_AVCodecBufferFlags
39```
40
41**Description**
42
43Enumerates the flags for the buffer of an OH_AVCodec instance.
44
45**System capability**: SystemCapability.Multimedia.Media.Core
46
47**Since**: 9
48
49| Value| Description|
50| -- | -- |
51| AVCODEC_BUFFER_FLAGS_NONE = 0 | Common frame.|
52| AVCODEC_BUFFER_FLAGS_EOS = 1 << 0 | The buffer is an end-of-stream frame.|
53| AVCODEC_BUFFER_FLAGS_SYNC_FRAME = 1 << 1 | The buffer contains key frames.|
54| AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME = 1 << 2 | The data in the buffer is only part of the frame.|
55| AVCODEC_BUFFER_FLAGS_CODEC_DATA = 1 << 3 | The buffer contains codec-specific data.|
56| AVCODEC_BUFFER_FLAGS_DISCARD = 1 << 4 | The decoding process depends on the buffer, and the decoded data can be discarded.<br>**Since**: 12|
57| AVCODEC_BUFFER_FLAGS_DISPOSABLE = 1 << 5 | The buffer can be disposed directly.<br>**Since**: 12|
58