2023-04-06 01:22:36 +00:00
|
|
|
# Copyright (C) 2023-2023 Huawei Device Co., Ltd.
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
declare_args() {
|
|
|
|
multimedia_av_codec_support_capi = true
|
2023-04-26 13:34:07 +00:00
|
|
|
multimedia_av_codec_support_codec = true
|
|
|
|
multimedia_av_codec_support_codeclist = true
|
2023-05-24 14:22:46 +00:00
|
|
|
multimedia_av_codec_support_hcodec = false
|
2023-04-27 01:32:09 +00:00
|
|
|
multimedia_av_codec_support_demuxer = true
|
|
|
|
multimedia_av_codec_support_source = true
|
2023-04-24 02:15:03 +00:00
|
|
|
multimedia_av_codec_support_muxer = true
|
2023-05-05 05:27:04 +00:00
|
|
|
multimedia_av_codec_support_ffmpeg_demuxer = true
|
2023-04-26 08:08:47 +00:00
|
|
|
multimedia_av_codec_support_test = true
|
2023-05-17 02:02:04 +00:00
|
|
|
multimedia_av_codec_support_xcollie = true
|
2023-05-22 09:00:57 +00:00
|
|
|
multimedia_av_codec_support_bitstream_dump = true
|
2023-04-06 01:22:36 +00:00
|
|
|
}
|
|
|
|
|
2023-04-26 10:28:21 +00:00
|
|
|
av_codec_root_dir = "//foundation/multimedia/av_codec"
|
2023-04-06 01:22:36 +00:00
|
|
|
av_codec_defines = []
|
|
|
|
|
|
|
|
if (multimedia_av_codec_support_capi) {
|
|
|
|
av_codec_defines += [ "SUPPORT_CAPI" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_CAPI" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (multimedia_av_codec_support_codec) {
|
|
|
|
av_codec_defines += [ "SUPPORT_CODEC" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_CODEC" ]
|
|
|
|
}
|
|
|
|
|
2023-04-21 08:16:18 +00:00
|
|
|
if (multimedia_av_codec_support_codeclist) {
|
|
|
|
av_codec_defines += [ "SUPPORT_CODECLIST" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_CODECLIST" ]
|
|
|
|
}
|
|
|
|
|
2023-04-06 01:22:36 +00:00
|
|
|
if (multimedia_av_codec_support_demuxer) {
|
|
|
|
av_codec_defines += [ "SUPPORT_DEMUXER" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_DEMUXER" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (multimedia_av_codec_support_muxer) {
|
|
|
|
av_codec_defines += [ "SUPPORT_MUXER" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_MUXER" ]
|
|
|
|
}
|
|
|
|
|
2023-04-27 01:32:09 +00:00
|
|
|
if (multimedia_av_codec_support_source) {
|
|
|
|
av_codec_defines += [ "SUPPORT_SOURCE" ]
|
|
|
|
} else {
|
|
|
|
av_codec_defines += [ "UNSUPPORT_SOURCE" ]
|
|
|
|
}
|
|
|
|
|
2023-04-06 01:22:36 +00:00
|
|
|
if (multimedia_av_codec_support_ffmpeg_demuxer) {
|
|
|
|
av_codec_defines += [ "FFMPEG_DEMUXER_ENABLE" ]
|
|
|
|
}
|
2023-05-17 02:02:04 +00:00
|
|
|
|
|
|
|
if (multimedia_av_codec_support_xcollie) {
|
|
|
|
av_codec_defines += [ "HICOLLIE_ENABLE" ]
|
2023-05-17 03:07:13 +00:00
|
|
|
}
|
2023-05-22 09:00:57 +00:00
|
|
|
|
|
|
|
if (multimedia_av_codec_support_bitstream_dump) {
|
|
|
|
av_codec_defines += [ "BITSTREAM_DUMP_ENABLE" ]
|
|
|
|
}
|