video: driver: Modify Min QP in CAP_TO_8BIT_QP macro
For HEVC 8 bit usecase, QP values are being capped from [-11,51] to [1,51]. Modifying the same in CAP_TO_8BIT_QP macro. Change-Id: Id17fab4c62770140131f0f8454fc480090732d0b Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
This commit is contained in:
@@ -23,8 +23,6 @@
|
||||
#define DEFAULT_BITRATE 20000000
|
||||
#define MINIMUM_FPS 1
|
||||
#define MAXIMUM_FPS 480
|
||||
#define MIN_QP_10BIT -11
|
||||
#define MIN_QP_8BIT 1
|
||||
#define MAX_QP 51
|
||||
#define DEFAULT_QP 20
|
||||
#define MAX_CONSTANT_QUALITY 100
|
||||
|
@@ -21,8 +21,6 @@
|
||||
#define DEFAULT_BITRATE 20000000
|
||||
#define MINIMUM_FPS 1
|
||||
#define MAXIMUM_FPS 480
|
||||
#define MIN_QP_10BIT -11
|
||||
#define MIN_QP_8BIT 1
|
||||
#define MAX_QP 51
|
||||
#define DEFAULT_QP 20
|
||||
#define MAX_CONSTANT_QUALITY 100
|
||||
|
@@ -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 DCVS_WINDOW 16
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user