Skip to content

Commit

Permalink
Fix drm_fourcc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
xunmod committed Aug 27, 2024
1 parent 51cd5f8 commit ed29f79
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions sl8521e_1h10ll-common/0001-Add-adf_test.patch
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

Expand Down Expand Up @@ -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
+ *
Expand All @@ -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>
Expand All @@ -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]);
+
Expand Down

0 comments on commit ed29f79

Please sign in to comment.