• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 Huawei Device 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.
13
14import("//build/ohos.gni")
15import("//foundation/multimedia/video_processing_engine/config.gni")
16
17ohos_executable("vpe_demo") {
18  install_enable = false
19
20  include_dirs = [
21    "./include",
22    "$INTERFACES_INNER_API_DIR",
23    "$TEST_UTILS_PATH/ColorSpaceConverter/sample"
24  ]
25
26  defines = []
27
28  cflags = VIDEO_PROCESSING_ENGINE_CFLAGS
29
30  cflags_cc = cflags
31  cflags_cc += [ "-std=c++17" ]
32
33  sources = [
34    "vpe_demo.cpp",
35  ]
36
37  deps = [
38    "$FRAMEWORK_DIR:videoprocessingengine",
39    "$TEST_UTILS_PATH/ColorSpaceConverter/sample:csc_test_utils"
40  ]
41
42  external_deps = [
43    "c_utils:utils",
44    "graphic_surface:surface",
45    "drivers_interface_display:libdisplay_commontype_proxy_2.1",
46  ]
47
48  subsystem_name = "multimedia"
49  part_name = "video_processing_engine"
50}
51
52ohos_executable("detailEnh_demo") {
53  install_enable = false
54
55  sanitize = {
56    cfi = true
57    cfi_cross_dso = true
58    debug = false
59  }
60
61  include_dirs = [
62    "./include",
63    "$INTERFACES_INNER_API_DIR",
64    "$TEST_UTILS_PATH/DetailEnhancer/sample",
65    "$TEST_UTILS_PATH/DetailEnhancer/sample",
66  ]
67
68  defines = []
69
70  cflags = VIDEO_PROCESSING_ENGINE_CFLAGS
71
72  cflags_cc = cflags
73  cflags_cc += [ "-std=c++17" ]
74
75  sources = [
76    "detail_enhancer_demo.cpp",
77  ]
78
79  deps = [
80    "$FRAMEWORK_DIR:videoprocessingengine",
81    "$TEST_UTILS_PATH/DetailEnhancer/sample:detailEnh_test_utils"
82  ]
83
84  external_deps = [
85    "c_utils:utils",
86    "graphic_surface:surface",
87    "media_foundation:media_foundation",
88    "drivers_interface_display:libdisplay_commontype_proxy_2.1",
89  ]
90
91  subsystem_name = "multimedia"
92  part_name = "video_processing_engine"
93}