@@ -23,8 +23,6 @@
#define DEFAULT_BITRATE 20000000
#define MINIMUM_FPS 1
#define MAXIMUM_FPS 480
-#define MIN_QP_10BIT -12
-#define MIN_QP_8BIT 0
#define MAX_QP 51
#define DEFAULT_QP 20
#define MAX_CONSTANT_QUALITY 100
@@ -21,8 +21,6 @@
@@ -63,6 +63,8 @@
#define MAX_SUPPORTED_MIN_QUALITY 70
#define MIN_CHROMA_QP_OFFSET -12
#define MAX_CHROMA_QP_OFFSET 0
+#define MIN_QP_10BIT -11
+#define MIN_QP_8BIT 1
#define INVALID_FD -1
#define INVALID_CLIENT_ID -1
@@ -15,8 +15,8 @@
#include "msm_vidc_platform.h"
#define CAP_TO_8BIT_QP(a) { \
- if ((a) < 0) \
- (a) = 0; \
+ if ((a) < MIN_QP_8BIT) \
+ (a) = MIN_QP_8BIT; \
}
extern struct msm_vidc_core *g_core;