amvecm: Modified hist and pq_load_table struct define [2/2]
authorBencheng Jing <bencheng.jing@amlogic.com>
Wed, 19 Sep 2018 07:07:32 +0000 (15:07 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 25 Sep 2018 07:19:04 +0000 (00:19 -0700)
PD#173911: to compatible 64 bit with 32 bit

Change-Id: Ie3da5b63a05a306a99a7844eea7c2918cc15d5a9
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
include/linux/amlogic/media/amvecm/amvecm.h
include/linux/amlogic/media/amvecm/ve.h

index 6c9cee4..b5b1912 100644 (file)
@@ -164,8 +164,14 @@ enum pq_table_name_e {
 struct ve_pq_load_s {
        enum pq_table_name_e param_id;
        unsigned int length;
+       union {
        void *param_ptr;
+       long long param_ptr_len;
+       };
+       union {
        void *reserved;
+       long long reserved_len;
+       };
 };
 
 struct ve_pq_table_s {
index c96aa53..b891d3a 100644 (file)
@@ -61,7 +61,7 @@ struct ve_dnlp_s {
        unsigned int white; /* 0 ~  16, weak ~ strong */
 };
 struct ve_hist_s {
-       ulong sum;
+       unsigned int sum;
        int width;
        int height;
        int ave;