• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# native_avmemory.h
2
3
4## Overview
5
6The file declares the attribute definition of the media struct AVMemory.
7
8**Library**: libnative_media_core.so
9
10**File to include**: <multimedia/player_framework/native_avmemory.h>
11
12**System capability**: SystemCapability.Multimedia.Media.Core
13
14**Since**: 9
15
16**Related module**: [Core](_core.md)
17
18
19## Summary
20
21
22### Types
23
24| Name| Description|
25| -------- | -------- |
26| typedef struct [OH_AVMemory](_core.md#oh_avmemory) [OH_AVMemory](_core.md#oh_avmemory) | Defines a struct that describes a native object for the audio and video memory interface. |
27
28
29### Functions
30
31| Name| Description|
32| -------- | -------- |
33| [OH_AVMemory](_core.md#oh_avmemory) \* [OH_AVMemory_Create](_core.md#oh_avmemory_create) (int32_t size) | Creates an OH_AVMemory instance. (It is deprecated from API version 11.) |
34| uint8_t \* [OH_AVMemory_GetAddr](_core.md#oh_avmemory_getaddr) (struct [OH_AVMemory](_core.md#oh_avmemory) \*mem) | Obtains the virtual memory address. (It is deprecated from API version 11.)|
35| int32_t [OH_AVMemory_GetSize](_core.md#oh_avmemory_getsize) (struct [OH_AVMemory](_core.md#oh_avmemory) \*mem) | Obtains the memory length. (It is deprecated from API version 11.) |
36| [OH_AVErrCode](_core.md#oh_averrcode) [OH_AVMemory_Destroy](_core.md#oh_avmemory_destroy) (struct [OH_AVMemory](_core.md#oh_avmemory) \*mem) | Releases an OH_AVMemory instance. (It is deprecated from API version 11.)|
37