Browse Source

video: driver: Modify Min QP for 8 and 10 bit usecase

As part of firmware stress test with QP range of [0, 5],
FW gets a divide by zero exception with QP 0, and RC
validation happens with QP range of [1, MaxQP].
Modifing Min QP from 0 to 1 for 8 bit and from
-12 to -11 for 10 bit usecases to avoid multiple FW issues.

Change-Id: I29d8fd785cfafbcb1b73984b3f79900307c22c10
Signed-off-by: Vedang Nagar <[email protected]>
Vedang Nagar 3 năm trước cách đây
mục cha
commit
9f8cff04a3

+ 2 - 2
driver/platform/kalama/src/msm_vidc_kalama.c

@@ -23,8 +23,8 @@
 #define DEFAULT_BITRATE         20000000
 #define MINIMUM_FPS             1
 #define MAXIMUM_FPS             480
-#define MIN_QP_10BIT            -12
-#define MIN_QP_8BIT             0
+#define MIN_QP_10BIT            -11
+#define MIN_QP_8BIT             1
 #define MAX_QP                  51
 #define DEFAULT_QP              20
 #define MAX_CONSTANT_QUALITY    100

+ 2 - 2
driver/platform/waipio/src/msm_vidc_waipio.c

@@ -21,8 +21,8 @@
 #define DEFAULT_BITRATE         20000000
 #define MINIMUM_FPS             1
 #define MAXIMUM_FPS             480
-#define MIN_QP_10BIT            -12
-#define MIN_QP_8BIT             0
+#define MIN_QP_10BIT            -11
+#define MIN_QP_8BIT             1
 #define MAX_QP                  51
 #define DEFAULT_QP              20
 #define MAX_CONSTANT_QUALITY    100