harmony 鸿蒙native_avformat.h
native_avformat.h
Overview
The native_avformat.h file declares the functions and enums related to OH_AVFormat.
Library: libnative_media_core.so
System capability: SystemCapability.Multimedia.Media.Core
Since: 9
Related module: Core
Summary
Types
Name | Description |
---|---|
typedef struct OH_AVFormat OH_AVFormat | Defines a struct that describes a native object for the media format interface. |
typedef enum OH_AVPixelFormat OH_AVPixelFormat | Defines an enum for the video pixel formats. |
Enums
Name | Description |
---|---|
OH_AVPixelFormat { AV_PIXEL_FORMAT_YUVI420 = 1, AV_PIXEL_FORMAT_NV12 = 2, AV_PIXEL_FORMAT_NV21 = 3, AV_PIXEL_FORMAT_SURFACE_FORMAT = 4, AV_PIXEL_FORMAT_RGBA = 5 } |
Enumerates the video pixel formats. |
Functions
Name | Description |
---|---|
struct OH_AVFormat * OH_AVFormat_Create (void) | Create an OH_AVFormat instance for reading and writing data. |
struct OH_AVFormat * OH_AVFormat_CreateAudioFormat (const char *mimeType, int32_t sampleRate, int32_t channelCount) | Creates an audio OH_AVFormat instance with specified parameters for reading and writing data. |
struct OH_AVFormat * OH_AVFormat_CreateVideoFormat (const char *mimeType, int32_t width, int32_t height) | Creates a video OH_AVFormat instance with specified parameters for reading and writing data. |
void OH_AVFormat_Destroy (struct OH_AVFormat *format) | Destroys an OH_AVFormat instance. |
bool OH_AVFormat_Copy (struct OH_AVFormat *to, struct OH_AVFormat *from) | Copies an OH_AVFormat instance. |
bool OH_AVFormat_SetIntValue (struct OH_AVFormat *format, const char *key, int32_t value) | Assigns a value of the int type to a key contained in an OH_AVFormat. |
bool OH_AVFormat_SetLongValue (struct OH_AVFormat *format, const char *key, int64_t value) | Assigns a value of the long type to a key contained in an OH_AVFormat. |
bool OH_AVFormat_SetFloatValue (struct OH_AVFormat *format, const char *key, float value) | Assigns a value of the float type to a key contained in an OH_AVFormat. |
bool OH_AVFormat_SetDoubleValue (struct OH_AVFormat *format, const char *key, double value) | Assigns a value of the double type to a key contained in an OH_AVFormat. |
bool OH_AVFormat_SetStringValue (struct OH_AVFormat *format, const char *key, const char *value) | Assigns a value of the string type to a key contained in an OH_AVFormat. |
bool OH_AVFormat_SetBuffer (struct OH_AVFormat *format, const char *key, const uint8_t *addr, size_t size) | Writes data blocks of a specified length to an OH_AVFormat instance. |
bool OH_AVFormat_GetIntValue (struct OH_AVFormat *format, const char *key, int32_t *out) | Obtains the value of the int type of a key contained in an OH_AVFormat. |
bool OH_AVFormat_GetLongValue (struct OH_AVFormat *format, const char *key, int64_t *out) | Obtains the value of the long type of a key contained in an OH_AVFormat. |
bool OH_AVFormat_GetFloatValue (struct OH_AVFormat *format, const char *key, float *out) | Obtains the value of the float type of a key contained in an OH_AVFormat. |
bool OH_AVFormat_GetDoubleValue (struct OH_AVFormat *format, const char *key, double *out) | Obtains the value of the double type of a key contained in an OH_AVFormat. |
bool OH_AVFormat_GetStringValue (struct OH_AVFormat *format, const char *key, const char **out) | Obtains the value of the string type of a key contained in an OH_AVFormat. |
bool OH_AVFormat_GetBuffer (struct OH_AVFormat *format, const char *key, uint8_t **addr, size_t *size) | Reads data blocks of a specified length from an OH_AVFormat instance. |
const char * OH_AVFormat_DumpInfo (struct OH_AVFormat *format) | Returns a string consisting of key-value pairs contained in an OH_AVFormat. |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦