Merge pull request #1983 from mstorsjo/remove-tabs
Remove tabs from the source code
This commit is contained in:
@@ -62,7 +62,7 @@ STRUCTA (64, 2);
|
||||
STRUCTA (64, 4);
|
||||
STRUCTA (64, 8);
|
||||
//#define _USE_STRUCT_INT_CVT
|
||||
// #ifdef _USE_STRUCT_INT_CVT
|
||||
//#ifdef _USE_STRUCT_INT_CVT
|
||||
#define ST16(a, b) (((struct tagUnaligned_16 *) (a))->l) = (b)
|
||||
#define ST32(a, b) (((struct tagUnaligned_32 *) (a))->l) = (b)
|
||||
#define ST64(a, b) (((struct tagUnaligned_64 *) (a))->l) = (b)
|
||||
@@ -81,11 +81,11 @@ STRUCTA (64, 8);
|
||||
#define ST64A2(a, b) STA(a, b, 64, 2)
|
||||
#define ST64A4(a, b) STA(a, b, 64, 4)
|
||||
#define ST64A8(a, b) STA(a, b, 64, 8)
|
||||
// #else
|
||||
// inline void __ST16(void *dst, uint16_t v) { memcpy(dst, &v, 2); }
|
||||
// inline void __ST32(void *dst, uint32_t v) { memcpy(dst, &v, 4); }
|
||||
//#else
|
||||
//inline void __ST16(void *dst, uint16_t v) { memcpy(dst, &v, 2); }
|
||||
//inline void __ST32(void *dst, uint32_t v) { memcpy(dst, &v, 4); }
|
||||
//inline void __ST64(void *dst, uint64_t v) { memcpy(dst, &v, 8); }
|
||||
// #endif
|
||||
//#endif
|
||||
|
||||
#else
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ void DeblockLumaEq4_c (uint8_t* pPix, int32_t iStrideX, int32_t iStrideY, int32_
|
||||
const int32_t p3 = pPix[-4 * iStrideX];
|
||||
pPix[-iStrideX] = (p2 + (p1 << 1) + (p0 << 1) + (q0 << 1) + q1 + 4) >> 3; //p0
|
||||
pPix[-2 * iStrideX] = (p2 + p1 + p0 + q0 + 2) >> 2; //p1
|
||||
pPix[-3 * iStrideX] = ((p3 << 1) + p2 + (p2 << 1) + p1 + p0 + q0 + 4) >> 3;//p2
|
||||
pPix[-3 * iStrideX] = ((p3 << 1) + p2 + (p2 << 1) + p1 + p0 + q0 + 4) >> 3; //p2
|
||||
} else {
|
||||
pPix[-1 * iStrideX] = ((p1 << 1) + p0 + q1 + 2) >> 2; //p0
|
||||
}
|
||||
@@ -66,7 +66,7 @@ void DeblockLumaEq4_c (uint8_t* pPix, int32_t iStrideX, int32_t iStrideY, int32_
|
||||
const int32_t q3 = pPix[3 * iStrideX];
|
||||
pPix[0] = (p1 + (p0 << 1) + (q0 << 1) + (q1 << 1) + q2 + 4) >> 3; //q0
|
||||
pPix[iStrideX] = (p0 + q0 + q1 + q2 + 2) >> 2; //q1
|
||||
pPix[2 * iStrideX] = ((q3 << 1) + q2 + (q2 << 1) + q1 + q0 + p0 + 4) >> 3;//q2
|
||||
pPix[2 * iStrideX] = ((q3 << 1) + q2 + (q2 << 1) + q1 + q0 + p0 + 4) >> 3; //q2
|
||||
} else {
|
||||
pPix[0] = ((q1 << 1) + q0 + p1 + 2) >> 2; //q0
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ int ParseLayerConfig (CReadConfig& cRdLayerCfg, const int iLayer, SEncParamExt&
|
||||
} else if (strTag[0].compare ("ProfileIdc") == 0) {
|
||||
pDLayer->uiProfileIdc = (EProfileIdc)atoi (strTag[1].c_str());
|
||||
} else if (strTag[0].compare ("FRExt") == 0) {
|
||||
// pDLayer->frext_mode = (bool)atoi(strTag[1].c_str());
|
||||
// pDLayer->frext_mode = (bool)atoi(strTag[1].c_str());
|
||||
} else if (strTag[0].compare ("SpatialBitrate") == 0) {
|
||||
pDLayer->iSpatialBitrate = 1000 * atoi (strTag[1].c_str());
|
||||
if (pSvcParam.iRCMode != RC_OFF_MODE) {
|
||||
|
||||
@@ -364,8 +364,7 @@ typedef struct TagWelsDecoderContext {
|
||||
#ifdef LONG_TERM_REF
|
||||
bool bParamSetsLostFlag; //sps or pps do not exist or not correct
|
||||
|
||||
bool
|
||||
bCurAuContainLtrMarkSeFlag; //current AU has the LTR marking syntax element, mark the previous frame or self
|
||||
bool bCurAuContainLtrMarkSeFlag; //current AU has the LTR marking syntax element, mark the previous frame or self
|
||||
int32_t iFrameNumOfAuMarkedLtr; //if bCurAuContainLtrMarkSeFlag==true, SHOULD set this variable
|
||||
|
||||
uint16_t uiCurIdrPicId;
|
||||
|
||||
@@ -129,10 +129,8 @@ static const uint8_t g_kuiIdx2CtxLastSignificantCoeffFlag8x8[64] = { // Table 9-
|
||||
7, 7, 7, 7, 8, 8, 8, 8,
|
||||
};
|
||||
|
||||
static inline void GetMbResProperty(int32_t * pMBproperty,int32_t* pResidualProperty,bool bCavlc)
|
||||
{
|
||||
switch(*pResidualProperty)
|
||||
{
|
||||
static inline void GetMbResProperty (int32_t* pMBproperty, int32_t* pResidualProperty, bool bCavlc) {
|
||||
switch (*pResidualProperty) {
|
||||
case CHROMA_AC_U:
|
||||
*pMBproperty = 1;
|
||||
*pResidualProperty = bCavlc ? CHROMA_AC : CHROMA_AC_U;
|
||||
@@ -189,7 +187,7 @@ static inline void GetMbResProperty(int32_t * pMBproperty,int32_t* pResidualProp
|
||||
*pResidualProperty = LUMA_DC_AC_8;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
typedef struct TagI16PredInfo {
|
||||
int8_t iPredMode;
|
||||
|
||||
@@ -102,8 +102,7 @@ void WelsI4x4LumaPredDcLeft_c (uint8_t* pPred, const int32_t kiStride) {
|
||||
void WelsI4x4LumaPredDcTop_c (uint8_t* pPred, const int32_t kiStride) {
|
||||
const int32_t kiStride2 = kiStride << 1;
|
||||
const int32_t kiStride3 = kiStride2 + kiStride;
|
||||
const uint8_t kuiMean = (pPred[-kiStride] + pPred[-kiStride + 1] + pPred[-kiStride + 2] + pPred[-kiStride + 3] + 2) >>
|
||||
2;
|
||||
const uint8_t kuiMean = (pPred[-kiStride] + pPred[-kiStride + 1] + pPred[-kiStride + 2] + pPred[-kiStride + 3] + 2) >> 2;
|
||||
const uint32_t kuiMean32 = 0x01010101U * kuiMean;
|
||||
|
||||
ST32A4 (pPred , kuiMean32);
|
||||
@@ -291,7 +290,7 @@ void WelsI4x4LumaPredVR_c (uint8_t* pPred, const int32_t kiStride) {
|
||||
const int32_t kiStride3 = kiStride + kiStride2;
|
||||
const uint8_t kuiLT = pPred[-kiStride - 1];
|
||||
/*get pLeft and pTop*/
|
||||
const uint8_t kuiL0 = pPred[ -1];
|
||||
const uint8_t kuiL0 = pPred[ - 1];
|
||||
const uint8_t kuiL1 = pPred[kiStride - 1];
|
||||
const uint8_t kuiL2 = pPred[kiStride2 - 1];
|
||||
const uint8_t kuiT0 = pPred[ -kiStride];
|
||||
@@ -321,7 +320,7 @@ void WelsI4x4LumaPredHU_c (uint8_t* pPred, const int32_t kiStride) {
|
||||
const int32_t kiStride2 = kiStride << 1;
|
||||
const int32_t kiStride3 = kiStride + kiStride2;
|
||||
/*get pLeft*/
|
||||
const uint8_t kuiL0 = pPred[ -1];
|
||||
const uint8_t kuiL0 = pPred[ - 1];
|
||||
const uint8_t kuiL1 = pPred[kiStride - 1];
|
||||
const uint8_t kuiL2 = pPred[kiStride2 - 1];
|
||||
const uint8_t kuiL3 = pPred[kiStride3 - 1];
|
||||
@@ -996,8 +995,7 @@ void WelsIChromaPredDcTop_c (uint8_t* pPred, const int32_t kiStride) {
|
||||
int32_t iTmp = (kiStride << 3) - kiStride;
|
||||
/*caculate the kMean value*/
|
||||
const uint8_t kuiM1 = (pPred[-kiStride] + pPred[1 - kiStride] + pPred[2 - kiStride] + pPred[3 - kiStride] + 2) >> 2;
|
||||
const uint8_t kuiM2 = (pPred[4 - kiStride] + pPred[5 - kiStride] + pPred[6 - kiStride] + pPred[7 - kiStride] + 2) >>
|
||||
2;
|
||||
const uint8_t kuiM2 = (pPred[4 - kiStride] + pPred[5 - kiStride] + pPred[6 - kiStride] + pPred[7 - kiStride] + 2) >> 2;
|
||||
const uint8_t kuiM[8] = {kuiM1, kuiM1, kuiM1, kuiM1, kuiM2, kuiM2, kuiM2, kuiM2};
|
||||
|
||||
uint8_t i = 7;
|
||||
|
||||
@@ -79,10 +79,8 @@ typedef struct TagLTRState {
|
||||
|
||||
// LTR used as recovery reference
|
||||
int32_t iLastRecoverFrameNum; // reserve the last LTR or IDR recover iFrameNum
|
||||
int32_t
|
||||
iLastCorFrameNumDec; // reserved the last correct position in decoder side, use to select valid LTR to recover or to decide the LTR mark validation
|
||||
int32_t
|
||||
iCurFrameNumInDec; // current iFrameNum in decoder side, use to select valid LTR to recover or to decide the LTR mark validation
|
||||
int32_t iLastCorFrameNumDec; // reserved the last correct position in decoder side, use to select valid LTR to recover or to decide the LTR mark validation
|
||||
int32_t iCurFrameNumInDec; // current iFrameNum in decoder side, use to select valid LTR to recover or to decide the LTR mark validation
|
||||
|
||||
// LTR mark
|
||||
int32_t iLTRMarkMode; // direct mark or delay mark
|
||||
@@ -143,8 +141,7 @@ typedef struct TagWelsEncCtx {
|
||||
SPicture* pDecPic; // pointer to current picture being reconstructed
|
||||
SPicture* pRefPic; // pointer to current reference picture
|
||||
|
||||
SDqLayer*
|
||||
pCurDqLayer; // DQ layer context used to being encoded currently, for reference base layer to refer: pCurDqLayer->pRefLayer if applicable
|
||||
SDqLayer* pCurDqLayer; // DQ layer context used to being encoded currently, for reference base layer to refer: pCurDqLayer->pRefLayer if applicable
|
||||
SDqLayer** ppDqLayerList; // overall DQ layers encoded for storage
|
||||
|
||||
SRefList** ppRefPicListExt; // reference picture list for SVC
|
||||
@@ -213,8 +210,7 @@ typedef struct TagWelsEncCtx {
|
||||
* can aware idc of referencing layer and that idc of successive layer to be coded
|
||||
*/
|
||||
/* SVC only */
|
||||
SDqIdc*
|
||||
pDqIdcMap; // overall DQ map of full scalability in specific frame (All full D/T/Q layers involved) // pDqIdcMap[dq_index] for each SDqIdc pData
|
||||
SDqIdc* pDqIdcMap; // overall DQ map of full scalability in specific frame (All full D/T/Q layers involved) // pDqIdcMap[dq_index] for each SDqIdc pData
|
||||
|
||||
SParaSetOffset sPSOVector;
|
||||
SParaSetOffset* pPSOVector;
|
||||
|
||||
@@ -79,8 +79,7 @@ WELS_EVENT pReadySliceCodingEvent[MAX_THREADS_NUM]; // events for slice codi
|
||||
WELS_EVENT pUpdateMbListEvent[MAX_THREADS_NUM]; // signal to update mb list neighbor for various slices
|
||||
WELS_EVENT pFinUpdateMbListEvent[MAX_THREADS_NUM]; // signal to indicate finish updating mb list
|
||||
WELS_EVENT pExitEncodeEvent[MAX_THREADS_NUM]; // event for exit encoding event
|
||||
WELS_EVENT
|
||||
pThreadMasterEvent[MAX_THREADS_NUM]; // event for indicating that some event has been signalled to the thread
|
||||
WELS_EVENT pThreadMasterEvent[MAX_THREADS_NUM]; // event for indicating that some event has been signalled to the thread
|
||||
|
||||
WELS_MUTEX mutexSliceNumUpdate; // for dynamic slicing mode MT
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
|
||||
param.bEnableAdaptiveQuant = true; // adaptive quantization control
|
||||
param.bEnableFrameSkip = true; // frame skipping
|
||||
param.bEnableLongTermReference = false; // long term reference control
|
||||
param.eSpsPpsIdStrategy = INCREASING_ID; // pSps pPps id addition control
|
||||
param.eSpsPpsIdStrategy = INCREASING_ID;// pSps pPps id addition control
|
||||
param.bPrefixNalAddingCtrl = false; // prefix NAL adding control
|
||||
param.iSpatialLayerNum = 1; // number of dependency(Spatial/CGS) layers used to be encoded
|
||||
param.iTemporalLayerNum = 1; // number of temporal layer specified
|
||||
@@ -197,7 +197,7 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
|
||||
|
||||
pCurPath = NULL; // record current lib path such as:/pData/pData/com.wels.enc/lib/
|
||||
|
||||
bDeblockingParallelFlag = false; // deblocking filter parallelization control flag
|
||||
bDeblockingParallelFlag = false;// deblocking filter parallelization control flag
|
||||
|
||||
iCountThreadsNum = 1; // # derived from disable_multiple_slice_idc (=0 or >1) means;
|
||||
|
||||
@@ -437,8 +437,7 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
|
||||
* \return NONE (should ensure valid parameter before this procedure)
|
||||
*/
|
||||
int32_t DetermineTemporalSettings() {
|
||||
const int32_t iDecStages = WELS_LOG2 (
|
||||
uiGopSize); // (int8_t)GetLogFactor(1.0f, 1.0f * pcfg->uiGopSize); //log2(uiGopSize)
|
||||
const int32_t iDecStages = WELS_LOG2 (uiGopSize); // (int8_t)GetLogFactor(1.0f, 1.0f * pcfg->uiGopSize); //log2(uiGopSize)
|
||||
const uint8_t* pTemporalIdList = &g_kuiTemporalIdListTable[iDecStages][0];
|
||||
SSpatialLayerInternal* pDlp = &sDependencyLayers[0];
|
||||
SSpatialLayerConfig* pSpatialLayer = &sSpatialLayers[0];
|
||||
|
||||
@@ -85,8 +85,8 @@ int32_t iMbNumInFrame; /* count number of MBs in frame */
|
||||
uint16_t* pOverallMbMap; /* overall MB map in frame, store virtual slice idc; */
|
||||
int32_t* pFirstMbInSlice; /* first MB address top-left based in every slice respectively; */
|
||||
int32_t* pCountMbNumInSlice; /* count number of MBs in every slice respectively; */
|
||||
uint32_t uiSliceSizeConstraint;/*in byte*/
|
||||
int32_t iMaxSliceNumConstraint;/*maximal number of slices constraint*/
|
||||
uint32_t uiSliceSizeConstraint; /* in byte */
|
||||
int32_t iMaxSliceNumConstraint; /* maximal number of slices constraint */
|
||||
} SSliceCtx;
|
||||
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ typedef struct TagMVComponentUnit { // each LIST_0/LIST_1
|
||||
|
||||
|
||||
typedef struct TagParaSetOffsetVariable {
|
||||
int32_t iParaSetIdDelta[MAX_DQ_LAYER_NUM/*+1*/]; //mark delta between SPS_ID_in_bs and sps_id_in_encoder, can be minus, for each dq-layer
|
||||
int32_t iParaSetIdDelta[MAX_DQ_LAYER_NUM/*+1*/];//mark delta between SPS_ID_in_bs and sps_id_in_encoder, can be minus, for each dq-layer
|
||||
//need not extra +1 due no MGS and FMO case so far
|
||||
bool bUsedParaSetIdInBs[MAX_PPS_COUNT]; //mark the used SPS_ID with 1
|
||||
uint32_t uiNextParaSetIdToUseInBs; //mark the next SPS_ID_in_bs, for all layers
|
||||
|
||||
@@ -1105,8 +1105,7 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx, SExistingParasetList* p
|
||||
int32_t iPicWidth = WELS_ALIGN (kiWidth, MB_WIDTH_LUMA) + (PADDING_LENGTH << 1); // with iWidth of horizon
|
||||
int32_t iPicChromaWidth = iPicWidth >> 1;
|
||||
|
||||
iPicWidth = WELS_ALIGN (iPicWidth,
|
||||
32); // 32(or 16 for chroma below) to match original imp. here instead of iCacheLineSize
|
||||
iPicWidth = WELS_ALIGN (iPicWidth, 32); // 32(or 16 for chroma below) to match original imp. here instead of iCacheLineSize
|
||||
iPicChromaWidth = WELS_ALIGN (iPicChromaWidth, 16);
|
||||
|
||||
WelsGetEncBlockStrideOffset ((*ppCtx)->pStrideTab->pStrideEncBlockOffset[iDlayerIndex], iPicWidth, iPicChromaWidth);
|
||||
@@ -2379,8 +2378,7 @@ void OutputCpuFeaturesLog (SLogContext* pLogCtx, uint32_t uiCpuFeatureFlags, uin
|
||||
int32_t GetMultipleThreadIdc (SLogContext* pLogCtx, SWelsSvcCodingParam* pCodingParam, int16_t& iSliceNum,
|
||||
int32_t& iCacheLineSize, uint32_t& uiCpuFeatureFlags) {
|
||||
// for cpu features detection, Only detect once??
|
||||
int32_t uiCpuCores =
|
||||
0; // number of logic processors on physical processor package, zero logic processors means HTT not supported
|
||||
int32_t uiCpuCores = 0; // number of logic processors on physical processor package, zero logic processors means HTT not supported
|
||||
uiCpuFeatureFlags = WelsCPUFeatureDetect (&uiCpuCores); // detect cpu capacity features
|
||||
|
||||
#ifdef X86_ASM
|
||||
@@ -3137,9 +3135,9 @@ void ParasetIdAdditionIdAdjust (SParaSetOffsetVariable* sParaSetOffsetVariable,
|
||||
//2nd enter: next_spsid_in_bs == 1; spsid == 0; delta==1; //actual spsid_in_bs == 1
|
||||
//2nd finish: next_spsid_in_bs == 2;
|
||||
//31st enter: next_spsid_in_bs == 31; spsid == 0~2; delta==31~29; //actual spsid_in_bs == 31
|
||||
//31st finish: next_spsid_in_bs == 0;
|
||||
//31st finish:next_spsid_in_bs == 0;
|
||||
//31st enter: next_spsid_in_bs == 0; spsid == 0~2; delta==-2~0; //actual spsid_in_bs == 0
|
||||
//31st finish: next_spsid_in_bs == 1;
|
||||
//31st finish:next_spsid_in_bs == 1;
|
||||
|
||||
const int32_t kiEncId = kiCurEncoderParaSetId;
|
||||
uint32_t uiNextIdInBs = sParaSetOffsetVariable->uiNextParaSetIdToUseInBs;
|
||||
|
||||
@@ -104,8 +104,7 @@ void WelsI4x4LumaPredH_c (uint8_t* pPred, uint8_t* pRef, const int32_t kiStride)
|
||||
WelsFillingPred8x2to16 (pPred, uiSrc);
|
||||
}
|
||||
void WelsI4x4LumaPredDc_c (uint8_t* pPred, uint8_t* pRef, const int32_t kiStride) {
|
||||
const uint8_t kuiDcValue = (pRef[-1] + pRef[kiStride - 1] + pRef[ (kiStride << 1) - 1] + pRef[ (kiStride << 1) +
|
||||
kiStride - 1] +
|
||||
const uint8_t kuiDcValue = (pRef[-1] + pRef[kiStride - 1] + pRef[ (kiStride << 1) - 1] + pRef[ (kiStride << 1) + kiStride - 1] +
|
||||
pRef[-kiStride] + pRef[1 - kiStride] + pRef[2 - kiStride] + pRef[3 - kiStride] + 4) >> 3;
|
||||
|
||||
WelsFillingPred1to16 (pPred, kuiDcValue);
|
||||
|
||||
@@ -61,8 +61,7 @@ void WelsMdSpatialelInterMbIlfmdNoilp (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, S
|
||||
const bool kbMbLeftAvailPskip = ((kuiNeighborAvail & LEFT_MB_POS) ? IS_SKIP ((pCurMb - 1)->uiMbType) : false);
|
||||
const bool kbMbTopAvailPskip = ((kuiNeighborAvail & TOP_MB_POS) ? IS_SKIP (kpTopMb->uiMbType) : false);
|
||||
const bool kbMbTopLeftAvailPskip = ((kuiNeighborAvail & TOPLEFT_MB_POS) ? IS_SKIP ((kpTopMb - 1)->uiMbType) : false);
|
||||
const bool kbMbTopRightAvailPskip = ((kuiNeighborAvail & TOPRIGHT_MB_POS) ? IS_SKIP ((
|
||||
kpTopMb + 1)->uiMbType) : false);
|
||||
const bool kbMbTopRightAvailPskip = ((kuiNeighborAvail & TOPRIGHT_MB_POS) ? IS_SKIP ((kpTopMb + 1)->uiMbType) : false);
|
||||
|
||||
bool bTrySkip = kbMbLeftAvailPskip | kbMbTopAvailPskip | kbMbTopLeftAvailPskip | kbMbTopRightAvailPskip;
|
||||
bool bKeepSkip = kbMbLeftAvailPskip & kbMbTopAvailPskip & kbMbTopRightAvailPskip;
|
||||
|
||||
@@ -84,7 +84,7 @@ void BilateralLumaFilter8_c (uint8_t* pSample, int32_t iStride) {
|
||||
1 1 2 1 1
|
||||
***************************************************************************/
|
||||
#define SUM_LINE1(pSample) (pSample[0] +(pSample[1]) +(pSample[2]<<1) + pSample[3] + pSample[4])
|
||||
#define SUM_LINE2(pSample) (pSample[0] +(pSample[1]<<1) +(pSample[2]<<2) +(pSample[3]<<1) +pSample[4])
|
||||
#define SUM_LINE2(pSample) (pSample[0] +(pSample[1]<<1) +(pSample[2]<<2) +(pSample[3]<<1) + pSample[4])
|
||||
#define SUM_LINE3(pSample) ((pSample[0]<<1) +(pSample[1]<<2) +(pSample[2]*20) +(pSample[3]<<2) +(pSample[4]<<1))
|
||||
void WaverageChromaFilter8_c (uint8_t* pSample, int32_t iStride) {
|
||||
int32_t sum;
|
||||
|
||||
@@ -261,7 +261,7 @@ void WelsI4x4LumaPredVR_ref (uint8_t* pPred, const int32_t kiStride) {
|
||||
const int32_t kiStride3 = kiStride + kiStride2;
|
||||
const uint8_t kuiLT = pPred[-kiStride - 1];
|
||||
/*get pLeft and pTop*/
|
||||
const uint8_t kuiL0 = pPred[ -1];
|
||||
const uint8_t kuiL0 = pPred[ - 1];
|
||||
const uint8_t kuiL1 = pPred[kiStride - 1];
|
||||
const uint8_t kuiL2 = pPred[kiStride2 - 1];
|
||||
const uint8_t kuiT0 = pPred[ -kiStride];
|
||||
@@ -291,7 +291,7 @@ void WelsI4x4LumaPredHU_ref (uint8_t* pPred, const int32_t kiStride) {
|
||||
const int32_t kiStride2 = kiStride << 1;
|
||||
const int32_t kiStride3 = kiStride + kiStride2;
|
||||
/*get pLeft*/
|
||||
const uint8_t kuiL0 = pPred[ -1];
|
||||
const uint8_t kuiL0 = pPred[ - 1];
|
||||
const uint8_t kuiL1 = pPred[kiStride - 1];
|
||||
const uint8_t kuiL2 = pPred[kiStride2 - 1];
|
||||
const uint8_t kuiL3 = pPred[kiStride3 - 1];
|
||||
@@ -491,8 +491,7 @@ void WelsIChromaPredDcTop_ref (uint8_t* pPred, const int32_t kiStride) {
|
||||
int32_t iTmp = (kiStride << 3) - kiStride;
|
||||
/*caculate the kMean value*/
|
||||
const uint8_t kuiM1 = (pPred[-kiStride] + pPred[1 - kiStride] + pPred[2 - kiStride] + pPred[3 - kiStride] + 2) >> 2;
|
||||
const uint8_t kuiM2 = (pPred[4 - kiStride] + pPred[5 - kiStride] + pPred[6 - kiStride] + pPred[7 - kiStride] + 2) >>
|
||||
2;
|
||||
const uint8_t kuiM2 = (pPred[4 - kiStride] + pPred[5 - kiStride] + pPred[6 - kiStride] + pPred[7 - kiStride] + 2) >> 2;
|
||||
const uint8_t kuiM[8] = {kuiM1, kuiM1, kuiM1, kuiM1, kuiM2, kuiM2, kuiM2, kuiM2};
|
||||
|
||||
uint8_t i = 7;
|
||||
|
||||
Reference in New Issue
Block a user