postproc: Made QP, nonBQP, and pQPb arrays
Also pulled QP initialization out of inner loop, which removed some redundent code. Added some dummy fields to PPContext to allow current code to work while changing the rest of the postprocessing code to support the arrays. I also increased alignment requirements for some fields in the PPContext struct to support future avx2 code. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
6264b6227c
commit
cbe27006ce
@@ -143,8 +143,11 @@ typedef struct PPContext{
|
||||
DECLARE_ALIGNED(8, uint64_t, pQPb);
|
||||
DECLARE_ALIGNED(8, uint64_t, pQPb2);
|
||||
|
||||
DECLARE_ALIGNED(8, uint64_t, mmxDcOffset)[64];
|
||||
DECLARE_ALIGNED(8, uint64_t, mmxDcThreshold)[64];
|
||||
DECLARE_ALIGNED(32, uint64_t, pQPb_block)[4];
|
||||
DECLARE_ALIGNED(32, uint64_t, pQPb2_block)[4];
|
||||
|
||||
DECLARE_ALIGNED(32, uint64_t, mmxDcOffset)[64];
|
||||
DECLARE_ALIGNED(32, uint64_t, mmxDcThreshold)[64];
|
||||
|
||||
QP_STORE_T *stdQPTable; ///< used to fix MPEG2 style qscale
|
||||
QP_STORE_T *nonBQPTable;
|
||||
@@ -153,6 +156,9 @@ typedef struct PPContext{
|
||||
int QP;
|
||||
int nonBQP;
|
||||
|
||||
DECLARE_ALIGNED(32, int, QP_block)[4];
|
||||
DECLARE_ALIGNED(32, int, nonBQP_block)[4];
|
||||
|
||||
int frameNum;
|
||||
|
||||
int cpuCaps;
|
||||
|
||||
Reference in New Issue
Block a user