Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Commit 6aee4e1

Browse files
zhangyichixJeevakaPrabu
authored andcommitted
Enable api2x tools
Tracked-On: OAM-117146 Signed-off-by: zhangyichix <yichix.zhang@intel.com>
1 parent 3f2dc92 commit 6aee4e1

11 files changed

Lines changed: 102 additions & 10 deletions

File tree

examples/Android.bp

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// Copyright(c) 2023 Intel Corporation
2+
3+
// Permission is hereby granted, free of charge, to any person obtaining a
4+
// copy of this software and associated documentation files(the "Software"),
5+
// to deal in the Software without restriction, including without limitation
6+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
// and / or sell copies of the Software, and to permit persons to whom the
8+
// Software is furnished to do so, subject to the following conditions:
9+
10+
// The above copyright notice and this permission notice shall be included
11+
// in all copies or substantial portions of the Software.
12+
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16+
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
17+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19+
// OTHER DEALINGS IN THE SOFTWARE.
20+
21+
mfx_cc_defaults {
22+
23+
name: "hello-defaults",
24+
25+
header_libs: [
26+
"libvpl_headers",
27+
"libva_headers",
28+
],
29+
30+
shared_libs: [
31+
"libvpl",
32+
"liblog",
33+
"libva",
34+
],
35+
36+
cflags: [
37+
"-std=c++14",
38+
"-Wall",
39+
"-fexceptions",
40+
"-Wno-unused-variable",
41+
"-Wmissing-field-initializers",
42+
"-DLIBVA_SUPPORT",
43+
"-DLIBVA_ANDROID_SUPPORT",
44+
"-DONEVPL_EXPERIMENTAL",
45+
"-D_FORTIFY_SOURCE=2",
46+
"-Wno-error",
47+
"-Wno-missing-braces",
48+
"-Wno-missing-field-initializers",
49+
],
50+
51+
vendor: true,
52+
}
53+
54+
cc_binary {
55+
56+
name: "hello-decode",
57+
58+
defaults: [
59+
"hello-defaults",
60+
],
61+
62+
srcs: [
63+
"api2x/hello-decode/src/hello-decode.cpp",
64+
],
65+
}
66+
67+
cc_binary {
68+
69+
name: "hello-encode",
70+
71+
defaults: [
72+
"hello-defaults",
73+
],
74+
75+
srcs: [
76+
"api2x/hello-encode/src/hello-encode.cpp",
77+
],
78+
}
79+
80+
cc_binary {
81+
82+
name: "hello-vpp",
83+
84+
defaults: [
85+
"hello-defaults",
86+
],
87+
88+
srcs: [
89+
"api2x/hello-vpp/src/hello-vpp.cpp",
90+
],
91+
}
92+

examples/api1x_core/legacy-decode/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

examples/api1x_core/legacy-encode/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

examples/api1x_core/legacy-vpp/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

examples/api2x/hello-decode/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

examples/api2x/hello-decvpp/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

examples/api2x/hello-encode/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

examples/api2x/hello-sharing-vaapi/include/device-vaapi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <fcntl.h>
1111
#include <unistd.h>
1212
#include "va/va.h"
13-
#include "va/va_drm.h"
13+
#include "va//drm/va_drm.h"
1414
#include "va/va_drmcommon.h"
1515

1616
#include "vpl/mfx.h"

examples/api2x/hello-transcode/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

examples/api2x/hello-vpp/src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum {
3838

3939
#ifdef LIBVA_SUPPORT
4040
#include "va/va.h"
41-
#include "va/va_drm.h"
41+
#include "va//drm/va_drm.h"
4242
#endif
4343

4444
#define WAIT_100_MILLISECONDS 100

0 commit comments

Comments
 (0)