summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashed Abdel-Tawab <rashed@linux.com>2017-04-21 14:05:34 -0400
committerRashed Abdel-Tawab <rashed@linux.com>2018-01-03 20:22:58 -0500
commit3cf86019c4712b2449bf83b26e19a0faf3cf2fe6 (patch)
treebe45b69769a39507838ec157c404e23afaae9964
parent3dee7a60be99786723f1b11de2e8bf1406ab0165 (diff)
downloadandroid_hardware_qcom_media-staging/lineage-15.1-caf-8996.tar.gz
android_hardware_qcom_media-staging/lineage-15.1-caf-8996.tar.bz2
android_hardware_qcom_media-staging/lineage-15.1-caf-8996.zip
media: Add extrapolated gpustats header for PQstaging/lineage-15.1-caf-8996
Change-Id: Id2eb3a757566d8332b017f4fc2275f35da1a5e66
-rw-r--r--mm-video-v4l2/vidc/venc/inc/gpustats.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/mm-video-v4l2/vidc/venc/inc/gpustats.h b/mm-video-v4l2/vidc/venc/inc/gpustats.h
new file mode 100644
index 00000000..6b1492d8
--- /dev/null
+++ b/mm-video-v4l2/vidc/venc/inc/gpustats.h
@@ -0,0 +1,56 @@
+/*
+ * Extrapolated / reversed header for PQ encoding
+ */
+
+#ifndef GPUSTATS_H
+#define GPUSTATS_H
+
+#define ADAPTIVE_QP 1
+
+enum color_compression_format {
+ LINEAR_NV12,
+ UBWC_NV12
+};
+
+enum perf_hint {
+ LOW = 1,
+ NORMAL = 2,
+ HIGH = 3,
+};
+
+struct gpu_stats_lib_buffer_params_t {
+ int fd;
+ int data_offset;
+ int alloc_len;
+ int filled_len;
+};
+
+struct gpu_stats_lib_caps_t {
+ unsigned int max_width;
+ unsigned int max_height;
+ int color_formats;
+ int max_mb_per_sec;
+};
+
+struct adaptive_qp_config_params_t {
+ float gain;
+ float offset;
+ uint roi_enabled;
+ uint pq_enabled;
+ int minDeltaQPlimit;
+ int maxDeltaQPlimit;
+};
+
+struct gpu_stats_lib_input_config {
+ struct adaptive_qp_config_params_t a_qp;
+ int algo;
+ int height;
+ int width;
+ int mb_height;
+ int mb_width;
+ int stride;
+};
+
+enum gpu_stats_lib_op_status { /* somethings supposed to go in here but ¯\_(ツ)_/¯ */ };
+
+#endif /* GPUSTATS_H */