diff --git a/interfaces/inner_api/native/av_common.h b/interfaces/inner_api/native/av_common.h index 55da53ee7c1ab3d5e71cd670a13c50c00ca00b18..57889ec6a672b2dec9ff9cf0632fcfb533142346 100644 --- a/interfaces/inner_api/native/av_common.h +++ b/interfaces/inner_api/native/av_common.h @@ -89,6 +89,8 @@ enum OutputFormatType : int32_t { FORMAT_MPEG_4 = 2, /** M4A format */ FORMAT_M4A = 6, + /** MKV format */ + FORMAT_MKV = 7, /** AMR format */ FORMAT_AMR = 8, /** mp3 format */ @@ -134,6 +136,10 @@ enum AudioCodecFormat : int32_t { AUDIO_MPEG = 4, /** G711-mulaw format */ AUDIO_G711MU = 5, + /** G711-mulaw format */ + AUDIO_OPUS = 6, + /** G711-mulaw format */ + AUDIO_FLAC = 7, /** AUDIO_AMR_NB format */ AUDIO_AMR_NB = 9, /** AUDIO_AMR_WB format */ diff --git a/interfaces/kits/c/native_avscreen_capture_base.h b/interfaces/kits/c/native_avscreen_capture_base.h index f8893109336b36be4403fdce07271de53c874828..de31f9b001a3b1c92d5e71b63aae6428af0dbaa4 100644 --- a/interfaces/kits/c/native_avscreen_capture_base.h +++ b/interfaces/kits/c/native_avscreen_capture_base.h @@ -99,6 +99,12 @@ typedef enum OH_AudioCodecFormat { OH_AUDIO_DEFAULT = 0, /* Advanced Audio Coding Low Complexity (AAC-LC) */ OH_AAC_LC = 3, + /* (MP3) */ + OH_MP3 = 4, + /* (OPUS) */ + OH_OPUS = 6, + /* (FLAC) */ + OH_FLAC = 7, /* Invalid value */ OH_AUDIO_CODEC_FORMAT_BUTT, } OH_AudioCodecFormat; @@ -174,7 +180,9 @@ typedef enum OH_ContainerFormatType { /* Audio format type -- m4a */ CFT_MPEG_4A = 0, /* Video format type -- mp4 */ - CFT_MPEG_4 = 1 + CFT_MPEG_4 = 1, + /* Video format type -- mkv */ + CFT_MKV = 2 } OH_ContainerFormatType; /**