1 /* 2 * Copyright (C) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef AVCODEC_CODEC_KEY_H 17 #define AVCODEC_CODEC_KEY_H 18 #include <string_view> 19 20 namespace OHOS { 21 namespace MediaAVCodec { 22 class AVCodecCodecName { 23 public: 24 static constexpr std::string_view AUDIO_DECODER_MP3_NAME = "OH.Media.Codec.Decoder.Audio.Mpeg"; 25 static constexpr std::string_view AUDIO_DECODER_AAC_NAME = "OH.Media.Codec.Decoder.Audio.AAC"; 26 static constexpr std::string_view AUDIO_DECODER_API9_AAC_NAME = "avdec_aac"; 27 static constexpr std::string_view AUDIO_DECODER_VORBIS_NAME = "OH.Media.Codec.Decoder.Audio.Vorbis"; 28 static constexpr std::string_view AUDIO_DECODER_FLAC_NAME = "OH.Media.Codec.Decoder.Audio.Flac"; 29 30 static constexpr std::string_view AUDIO_ENCODER_FLAC_NAME = "OH.Media.Codec.Encoder.Audio.Flac"; 31 static constexpr std::string_view AUDIO_ENCODER_AAC_NAME = "OH.Media.Codec.Encoder.Audio.AAC"; 32 static constexpr std::string_view AUDIO_ENCODER_API9_AAC_NAME = "avenc_aac"; 33 34 static constexpr std::string_view VIDEO_DECODER_AVC_NAME = "OH.Media.Codec.Decoder.Video.AVC"; 35 36 private: 37 AVCodecCodecName() = delete; 38 ~AVCodecCodecName() = delete; 39 }; 40 } // namespace MediaAVCodec 41 } // namespace OHOS 42 43 #endif