shithub: openh264

Download patch

ref: 3052b7ac6428aaf47dbc28fe81a2dc68852d1f8c
parent: 764793d74bfcbf4a3cfc85e050be5f5c3a13c597
author: Martin Storsjö <martin@martin.st>
date: Wed Jun 3 08:14:30 EDT 2015

Remove tabs from vertically aligned function declarations and typedefs

--- a/codec/encoder/core/inc/encode_mb_aux.h
+++ b/codec/encoder/core/inc/encode_mb_aux.h
@@ -44,10 +44,10 @@
 /****************************************************************************
  * Scan and Score functions
  ****************************************************************************/
-void	WelsScan4x4Ac_c (int16_t* pZigValue, int16_t* pDct);
-void	WelsScan4x4Dc (int16_t* pLevel, int16_t* pDct);
-void	WelsScan4x4DcAc_c (int16_t* pLevel, int16_t* pDct);
-int32_t		WelsCalculateSingleCtr4x4_c (int16_t* pDct);
+void    WelsScan4x4Ac_c (int16_t* pZigValue, int16_t* pDct);
+void    WelsScan4x4Dc (int16_t* pLevel, int16_t* pDct);
+void    WelsScan4x4DcAc_c (int16_t* pLevel, int16_t* pDct);
+int32_t WelsCalculateSingleCtr4x4_c (int16_t* pDct);
 
 /****************************************************************************
  * HDM and Quant functions
--- a/codec/encoder/core/inc/svc_enc_frame.h
+++ b/codec/encoder/core/inc/svc_enc_frame.h
@@ -53,8 +53,8 @@
 
 ///////////////////////////////////DQ Layer level///////////////////////////////////
 
-typedef struct TagDqLayer	SDqLayer;
-typedef SDqLayer*            pDqLayer;
+typedef struct TagDqLayer   SDqLayer;
+typedef SDqLayer*           pDqLayer;
 
 typedef struct TagFeatureSearchPreparation {
 SScreenBlockFeatureStorage*     pRefBlockFeature;//point the the ref frame storage
--- a/codec/encoder/core/inc/svc_encode_mb.h
+++ b/codec/encoder/core/inc/svc_encode_mb.h
@@ -48,16 +48,16 @@
 #include "wels_func_ptr_def.h"
 
 namespace WelsEnc {
-void	WelsDctMb (int16_t* pRs, uint8_t* pEncMb, int32_t iEncStride, uint8_t* pBestPred, PDctFunc pfDctFourT4);
+void WelsDctMb (int16_t* pRs, uint8_t* pEncMb, int32_t iEncStride, uint8_t* pBestPred, PDctFunc pfDctFourT4);
 
-void	WelsEncRecI16x16Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache);
-void	WelsEncRecI4x4Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, uint8_t uiI4x4Idx);
-void	WelsEncInterY (SWelsFuncPtrList* func, SMB* pCurMb, SMbCache* pMbCache);
-void    WelsEncRecUV (SWelsFuncPtrList* func, SMB* pCurMb, SMbCache* pMbCache, int16_t* pRs, int32_t iUV);
-void    WelsRecPskip (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc, SMB* pCurMb, SMbCache* pMbCache);
+void WelsEncRecI16x16Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache);
+void WelsEncRecI4x4Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, uint8_t uiI4x4Idx);
+void WelsEncInterY (SWelsFuncPtrList* func, SMB* pCurMb, SMbCache* pMbCache);
+void WelsEncRecUV (SWelsFuncPtrList* func, SMB* pCurMb, SMbCache* pMbCache, int16_t* pRs, int32_t iUV);
+void WelsRecPskip (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc, SMB* pCurMb, SMbCache* pMbCache);
 
-bool	WelsTryPYskip (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache);
-bool    WelsTryPUVskip (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, int32_t iUV);
+bool WelsTryPYskip (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache);
+bool WelsTryPUVskip (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, int32_t iUV);
 }
 #endif
 
--- a/codec/encoder/core/inc/wels_preprocess.h
+++ b/codec/encoder/core/inc/wels_preprocess.h
@@ -150,7 +150,7 @@
  private:
   int32_t SingleLayerPreprocess (sWelsEncCtx* pEncCtx, const SSourcePicture* kpSrc, Scaled_Picture* m_sScaledPicture);
 
-  void	BilateralDenoising (SPicture* pSrc, const int32_t iWidth, const int32_t iHeight);
+  void  BilateralDenoising (SPicture* pSrc, const int32_t iWidth, const int32_t iHeight);
   bool  DetectSceneChange (SPicture* pCurPicture, SPicture* pRefPicture);
   int32_t DownsamplePadding (SPicture* pSrc, SPicture* pDstPic,  int32_t iSrcWidth, int32_t iSrcHeight,
                              int32_t iShrinkWidth, int32_t iShrinkHeight, int32_t iTargetWidth, int32_t iTargetHeight,
--- a/codec/processing/src/downsample/downsample.h
+++ b/codec/processing/src/downsample/downsample.h
@@ -58,8 +58,8 @@
                                       const int32_t kiDstHeight,
                                       uint8_t* pSrc, const int32_t kiSrcStride, const int32_t kiSrcWidth, const int32_t kiSrcHeight);
 
-typedef HalveDownsampleFunc*		PHalveDownsampleFunc;
-typedef GeneralDownsampleFunc*	PGeneralDownsampleFunc;
+typedef HalveDownsampleFunc*    PHalveDownsampleFunc;
+typedef GeneralDownsampleFunc*  PGeneralDownsampleFunc;
 
 HalveDownsampleFunc   DyadicBilinearDownsampler_c;
 GeneralDownsampleFunc GeneralBilinearFastDownsampler_c;
@@ -67,9 +67,9 @@
 
 typedef struct {
   // align_index: 0 = x32; 1 = x16; 2 = x8; 3 = common case left;
-  PHalveDownsampleFunc			pfHalfAverage[4];
-  PGeneralDownsampleFunc		pfGeneralRatioLuma;
-  PGeneralDownsampleFunc		pfGeneralRatioChroma;
+  PHalveDownsampleFunc          pfHalfAverage[4];
+  PGeneralDownsampleFunc        pfGeneralRatioLuma;
+  PGeneralDownsampleFunc        pfGeneralRatioChroma;
 } SDownsampleFuncs;
 
 
@@ -76,19 +76,19 @@
 #ifdef X86_ASM
 WELSVP_EXTERN_C_BEGIN
 // used for scr width is multipler of 8 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx8_sse;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx8_sse;
 // iSrcWidth= x16 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx16_sse;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx16_sse;
 // iSrcWidth= x32 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx32_sse;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx32_sse;
 // used for scr width is multipler of 16 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx16_ssse3;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx16_ssse3;
 // iSrcWidth= x32 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx32_ssse3;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx32_ssse3;
 // iSrcWidth= x16 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx16_sse4;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx16_sse4;
 // iSrcWidth= x32 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx32_sse4;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx32_sse4;
 
 GeneralDownsampleFunc GeneralBilinearFastDownsamplerWrap_sse2;
 GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_sse2;
@@ -103,9 +103,9 @@
 #ifdef HAVE_NEON
 WELSVP_EXTERN_C_BEGIN
 // iSrcWidth no limitation
-HalveDownsampleFunc		DyadicBilinearDownsampler_neon;
+HalveDownsampleFunc     DyadicBilinearDownsampler_neon;
 // iSrcWidth = x32 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx32_neon;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx32_neon;
 
 GeneralDownsampleFunc   GeneralBilinearAccurateDownsamplerWrap_neon;
 
@@ -119,9 +119,9 @@
 #ifdef HAVE_NEON_AARCH64
 WELSVP_EXTERN_C_BEGIN
 // iSrcWidth no limitation
-HalveDownsampleFunc		DyadicBilinearDownsampler_AArch64_neon;
+HalveDownsampleFunc     DyadicBilinearDownsampler_AArch64_neon;
 // iSrcWidth = x32 pixels
-HalveDownsampleFunc		DyadicBilinearDownsamplerWidthx32_AArch64_neon;
+HalveDownsampleFunc     DyadicBilinearDownsamplerWidthx32_AArch64_neon;
 
 GeneralDownsampleFunc   GeneralBilinearAccurateDownsamplerWrap_AArch64_neon;
 
--- a/codec/processing/src/vaacalc/vaacalculation.h
+++ b/codec/processing/src/vaacalc/vaacalculation.h
@@ -75,11 +75,11 @@
                                   int32_t* pFrameSad, int32_t* pSad8x8, int32_t* pSum16x16, int32_t* pSumSquare16x16, int32_t* pSsd16x16);
 
 
-typedef VAACalcSadBgdFunc*		 PVAACalcSadBgdFunc;
-typedef VAACalcSadSsdBgdFunc*	 PVAACalcSadSsdBgdFunc;
-typedef VAACalcSadFunc*			 PVAACalcSadFunc;
-typedef VAACalcSadVarFunc*		 PVAACalcSadVarFunc;
-typedef VAACalcSadSsdFunc*		 PVAACalcSadSsdFunc;
+typedef VAACalcSadBgdFunc*       PVAACalcSadBgdFunc;
+typedef VAACalcSadSsdBgdFunc*    PVAACalcSadSsdBgdFunc;
+typedef VAACalcSadFunc*          PVAACalcSadFunc;
+typedef VAACalcSadVarFunc*       PVAACalcSadVarFunc;
+typedef VAACalcSadSsdFunc*       PVAACalcSadSsdFunc;
 
 typedef  struct TagVaaFuncs {
   PVAACalcSadBgdFunc    pfVAACalcSadBgd;
@@ -90,40 +90,40 @@
 } SVaaFuncs;
 
 
-VAACalcSadBgdFunc		VAACalcSadBgd_c;
-VAACalcSadSsdBgdFunc	VAACalcSadSsdBgd_c;
-VAACalcSadFunc			    VAACalcSad_c;
-VAACalcSadVarFunc		VAACalcSadVar_c;
-VAACalcSadSsdFunc		VAACalcSadSsd_c;
+VAACalcSadBgdFunc       VAACalcSadBgd_c;
+VAACalcSadSsdBgdFunc    VAACalcSadSsdBgd_c;
+VAACalcSadFunc          VAACalcSad_c;
+VAACalcSadVarFunc       VAACalcSadVar_c;
+VAACalcSadSsdFunc       VAACalcSadSsd_c;
 
 
 #ifdef X86_ASM
 WELSVP_EXTERN_C_BEGIN
-VAACalcSadBgdFunc		VAACalcSadBgd_sse2;
-VAACalcSadSsdBgdFunc	VAACalcSadSsdBgd_sse2;
-VAACalcSadFunc			    VAACalcSad_sse2;
-VAACalcSadVarFunc		VAACalcSadVar_sse2;
-VAACalcSadSsdFunc		VAACalcSadSsd_sse2;
+VAACalcSadBgdFunc       VAACalcSadBgd_sse2;
+VAACalcSadSsdBgdFunc    VAACalcSadSsdBgd_sse2;
+VAACalcSadFunc          VAACalcSad_sse2;
+VAACalcSadVarFunc       VAACalcSadVar_sse2;
+VAACalcSadSsdFunc       VAACalcSadSsd_sse2;
 WELSVP_EXTERN_C_END
 #endif
 
 #ifdef HAVE_NEON
 WELSVP_EXTERN_C_BEGIN
-VAACalcSadBgdFunc		VAACalcSadBgd_neon;
-VAACalcSadSsdBgdFunc	VAACalcSadSsdBgd_neon;
-VAACalcSadFunc			    VAACalcSad_neon;
-VAACalcSadVarFunc		VAACalcSadVar_neon;
-VAACalcSadSsdFunc		VAACalcSadSsd_neon;
+VAACalcSadBgdFunc       VAACalcSadBgd_neon;
+VAACalcSadSsdBgdFunc    VAACalcSadSsdBgd_neon;
+VAACalcSadFunc          VAACalcSad_neon;
+VAACalcSadVarFunc       VAACalcSadVar_neon;
+VAACalcSadSsdFunc       VAACalcSadSsd_neon;
 WELSVP_EXTERN_C_END
 #endif
 
 #ifdef HAVE_NEON_AARCH64
 WELSVP_EXTERN_C_BEGIN
-VAACalcSadBgdFunc		VAACalcSadBgd_AArch64_neon;
-VAACalcSadSsdBgdFunc	VAACalcSadSsdBgd_AArch64_neon;
-VAACalcSadFunc			    VAACalcSad_AArch64_neon;
-VAACalcSadVarFunc		VAACalcSadVar_AArch64_neon;
-VAACalcSadSsdFunc		VAACalcSadSsd_AArch64_neon;
+VAACalcSadBgdFunc       VAACalcSadBgd_AArch64_neon;
+VAACalcSadSsdBgdFunc    VAACalcSadSsdBgd_AArch64_neon;
+VAACalcSadFunc          VAACalcSad_AArch64_neon;
+VAACalcSadVarFunc       VAACalcSadVar_AArch64_neon;
+VAACalcSadSsdFunc       VAACalcSadSsd_AArch64_neon;
 WELSVP_EXTERN_C_END
 #endif