diff options
author | Rashed Abdel-Tawab <rashed@linux.com> | 2017-04-21 14:05:34 -0400 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2017-09-12 21:47:37 -0400 |
commit | f9c95d2a7f8799ca04130a862252d384519ac6a5 (patch) | |
tree | c3c0e5a087b7fbd2cd34bb007c09a2fd5ede0a88 | |
parent | ae6b634c6b97dac64de9f041188fa6a668eae764 (diff) | |
download | android_hardware_qcom_media-lineage-15.0-caf-8996.tar.gz android_hardware_qcom_media-lineage-15.0-caf-8996.tar.bz2 android_hardware_qcom_media-lineage-15.0-caf-8996.zip |
media: Add extrapolated gpustats header for PQlineage-15.0-caf-8996
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 */ |