-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
From 6b415324ba48036849af29088c392d373a6c0568 Mon Sep 17 00:00:00 2001 | ||
From f9d83b25ec76e2bb88c371fa6903928d7ba92508 Mon Sep 17 00:00:00 2001 | ||
From: xunmod <[email protected]> | ||
Date: Tue, 27 Aug 2024 14:24:24 +0800 | ||
Subject: [PATCH] Add adf_test | ||
|
||
--- | ||
Android.mk | 2 + | ||
adf_test/Android.mk | 27 +++ | ||
adf_test/adf_test.c | 406 ++++++++++++++++++++++++++++++++++++++++++++ | ||
3 files changed, 435 insertions(+) | ||
adf_test/adf_test.c | 405 ++++++++++++++++++++++++++++++++++++++++++++ | ||
3 files changed, 434 insertions(+) | ||
create mode 100644 adf_test/Android.mk | ||
create mode 100644 adf_test/adf_test.c | ||
|
||
|
@@ -66,10 +66,10 @@ index 0000000..7dceb1b | |
+include $(BUILD_EXECUTABLE) | ||
diff --git a/adf_test/adf_test.c b/adf_test/adf_test.c | ||
new file mode 100644 | ||
index 0000000..ddc864e | ||
index 0000000..4ac4c5f | ||
--- /dev/null | ||
+++ b/adf_test/adf_test.c | ||
@@ -0,0 +1,406 @@ | ||
@@ -0,0 +1,405 @@ | ||
+/* | ||
+ * Copyright (C) 2013 The Android Open Source Project | ||
+ * | ||
|
@@ -91,7 +91,6 @@ index 0000000..ddc864e | |
+#include <stdlib.h> | ||
+ | ||
+#include <adf/adf.h> | ||
+#include <drm_fourcc.h> | ||
+#include <stdint.h> | ||
+#include <stdio.h> | ||
+#include <string.h> | ||
|
@@ -113,14 +112,14 @@ index 0000000..ddc864e | |
+int eng; | ||
+ | ||
+uint32_t fmt8888[] = { | ||
+ DRM_FORMAT_XRGB8888, | ||
+ DRM_FORMAT_XBGR8888, | ||
+ DRM_FORMAT_RGBX8888, | ||
+ DRM_FORMAT_BGRX8888, | ||
+ DRM_FORMAT_ARGB8888, | ||
+ DRM_FORMAT_ABGR8888, | ||
+ DRM_FORMAT_RGBA8888, | ||
+ DRM_FORMAT_BGRA8888 | ||
+ ((uint32_t)('X') | ((uint32_t)('R') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), | ||
+ ((uint32_t)('X') | ((uint32_t)('B') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), | ||
+ ((uint32_t)('R') | ((uint32_t)('X') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), | ||
+ ((uint32_t)('B') | ((uint32_t)('X') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), | ||
+ ((uint32_t)('A') | ((uint32_t)('R') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), | ||
+ ((uint32_t)('A') | ((uint32_t)('B') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), | ||
+ ((uint32_t)('R') | ((uint32_t)('A') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)), | ||
+ ((uint32_t)('B') | ((uint32_t)('A') << 8) | ((uint32_t)('2') << 16) | ((uint32_t)('4') << 24)) | ||
+}; | ||
+size_t n_fmt8888 = sizeof(fmt8888) / sizeof(fmt8888[0]); | ||
+ | ||
|