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:
Vedang Nagar
2022-06-23 13:58:09 +05:30
parent 9f8cff04a3
commit 2eacac6058
4 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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;