diff options
author | Rashed Abdel-Tawab <rashed@linux.com> | 2017-04-21 14:05:34 -0400 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2017-12-28 03:12:51 +0200 |
commit | 92675d780c31171268dde627ed0162e812c85300 (patch) | |
tree | 4c616c184a20233c1f50569565dfc7817abcf38a | |
parent | dfa976cda3c83aca1b1cd0279c4cd970eb07c663 (diff) | |
download | android_hardware_qcom_media-92675d780c31171268dde627ed0162e812c85300.tar.gz android_hardware_qcom_media-92675d780c31171268dde627ed0162e812c85300.tar.bz2 android_hardware_qcom_media-92675d780c31171268dde627ed0162e812c85300.zip |
media: Add extrapolated gpustats header for PQ
Change-Id: Id2eb3a757566d8332b017f4fc2275f35da1a5e66
-rw-r--r-- | mm-video-v4l2/vidc/venc/inc/gpustats.h | 56 |
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 */ |