Skip to content

Commit

Permalink
Remove unnecessary Android code
Browse files Browse the repository at this point in the history
This patches deletes
- vaGetDisplay() in va_android.h
- VA_DISPLAY_ANDROID in va_backend.h
- libva-android in Android.bp
  • Loading branch information
rosetta-jpn committed Dec 4, 2024
1 parent e4dc66b commit 117e1d8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 217 deletions.
44 changes: 1 addition & 43 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ cc_library_shared {
cflags: [
"-Werror",
"-Winvalid-pch",
"-DANDROID",
"-DSYSCONFDIR=\"/vendor/etc\"",
"-DLOG_TAG=\"libva\"",
],
Expand All @@ -134,46 +135,3 @@ cc_library_shared {
vendor: true,
enabled: false,
}

cc_library_shared {
name: "libva-android",

shared_libs: [
"libva",
"libdrm",
"liblog",
],

local_include_dirs: [
"va",
"va/drm",
],
generated_headers: [
"libva_gen_headers",
],
export_generated_headers: [
"libva_gen_headers",
],
export_include_dirs: [
".",
],

srcs: [
"va/android/va_android.cpp",
"va/drm/va_drm_utils.c",
],

cflags: [
"-Werror",
"-Winvalid-pch",
"-DLOG_TAG=\"libva-android\"",
],

vendor: true,
enabled: false,
arch: {
x86_64: {
enabled: true,
},
},
}
24 changes: 0 additions & 24 deletions va/android/Makefile.am

This file was deleted.

134 changes: 0 additions & 134 deletions va/android/va_android.cpp

This file was deleted.

15 changes: 0 additions & 15 deletions va/va_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,4 @@
/** \brief Android ION buffer memory type. */
#define VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_ION 0x00200000

#ifdef __cplusplus
extern "C" {
#endif

/*
* Returns a suitable VADisplay for VA API
*/
VADisplay vaGetDisplay(
void *android_dpy
);

#ifdef __cplusplus
}
#endif

#endif /* _VA_ANDROID_H_ */
2 changes: 1 addition & 1 deletion va/va_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ enum {
/** \brief VA/GLX API is used, through vaGetDisplayGLX() entry-point. */
VA_DISPLAY_GLX = (VA_DISPLAY_X11 | (1 << 0)),
/** \brief VA/Android API is used, through vaGetDisplay() entry-point. */
VA_DISPLAY_ANDROID = 0x20,
VA_DISPLAY_ANDROID va_deprecated_enum = 0x20,
/** \brief VA/DRM API is used, through vaGetDisplayDRM() entry-point. */
VA_DISPLAY_DRM = 0x30,
/** \brief VA/DRM API is used, with a render-node device path */
Expand Down

0 comments on commit 117e1d8

Please sign in to comment.