• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 Shenzhen Kaihong DID Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13import("//build/ohos.gni")
14import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
15HARDWARE_PATH = "../../"
16ohos_shared_library("libjpeg_vdi_interface") {
17  include_dirs = [
18    "include",
19    "//drivers/hdf_core/interfaces/inner_api/osal/uhdf",
20    "//drivers/hdf_core/interfaces/inner_api/utils",
21    "//drivers/peripheral/codec/image/vdi",
22    "//drivers/peripheral/codec/utils/include",
23    "//drivers/peripheral/display/interfaces/include",
24    "${HARDWARE_PATH}/codec/include",
25    "${HARDWARE_PATH}/mpp/include",
26    "${HARDWARE_PATH}/rga/include",
27    "${hdf_framework_path}/include/utils",
28    "$hdf_uhdf_path/osal/include",
29  ]
30  sources = [
31    "${HARDWARE_PATH}/codec/src/hdi_mpp_mpi.c",
32    "src/codec_jpeg_decoder.cpp",
33    "src/codec_jpeg_helper.cpp",
34    "src/codec_jpeg_interface.cpp",
35  ]
36  if (is_standard_system) {
37    external_deps = [
38      "c_utils:utils",
39      "graphic_chipsetsdk:buffer_handle",
40      "hilog:libhilog",
41    ]
42  } else {
43    external_deps = [ "hilog:libhilog" ]
44  }
45  defines = [ "LOG_TAG_IMAGE" ]
46  install_images = [ chipset_base_dir ]
47  subsystem_name = "hdf"
48  part_name = "rockchip_products"
49}
50