shithub: openh264

Download patch

ref: 89728faf8d2adec1e41f6a5514fef5aca3911a24
parent: 599407531702c9bbdda679050cdd863d0c76a12c
parent: df994fa3f5840a48b8b651573c2394b671655ce8
author: sijchen <sijchen@cisco.com>
date: Fri May 15 14:09:02 EDT 2015

Merge pull request #1953 from mstorsjo/remove-tabs

Remove tabs from multiline comments, public headers, enums and lists of defines

--- a/codec/api/svc/codec_app_def.h
+++ b/codec/api/svc/codec_app_def.h
@@ -41,19 +41,19 @@
 
 #include "codec_def.h"
 /* Constants */
-#define MAX_TEMPORAL_LAYER_NUM		4
-#define MAX_SPATIAL_LAYER_NUM		4
-#define MAX_QUALITY_LAYER_NUM		4
+#define MAX_TEMPORAL_LAYER_NUM          4
+#define MAX_SPATIAL_LAYER_NUM           4
+#define MAX_QUALITY_LAYER_NUM           4
 
-#define MAX_LAYER_NUM_OF_FRAME		128
-#define MAX_NAL_UNITS_IN_LAYER		128	///< predetermined here, adjust it later if need
+#define MAX_LAYER_NUM_OF_FRAME          128
+#define MAX_NAL_UNITS_IN_LAYER          128     ///< predetermined here, adjust it later if need
 
-#define MAX_RTP_PAYLOAD_LEN		1000
-#define AVERAGE_RTP_PAYLOAD_LEN		800
+#define MAX_RTP_PAYLOAD_LEN             1000
+#define AVERAGE_RTP_PAYLOAD_LEN         800
 
 
-#define SAVED_NALUNIT_NUM_TMP		( (MAX_SPATIAL_LAYER_NUM*MAX_QUALITY_LAYER_NUM) + 1 + MAX_SPATIAL_LAYER_NUM )  ///< SPS/PPS + SEI/SSEI + PADDING_NAL
-#define MAX_SLICES_NUM_TMP			( ( MAX_NAL_UNITS_IN_LAYER - SAVED_NALUNIT_NUM_TMP ) / 3 )
+#define SAVED_NALUNIT_NUM_TMP           ( (MAX_SPATIAL_LAYER_NUM*MAX_QUALITY_LAYER_NUM) + 1 + MAX_SPATIAL_LAYER_NUM )  ///< SPS/PPS + SEI/SSEI + PADDING_NAL
+#define MAX_SLICES_NUM_TMP              ( ( MAX_NAL_UNITS_IN_LAYER - SAVED_NALUNIT_NUM_TMP ) / 3 )
 
 
 #define AUTO_REF_PIC_COUNT  -1          ///< encoder selects the number of reference frame automatically
@@ -65,10 +65,10 @@
 ///
 /// E.g. SDK version is 1.2.0.0, major version number is 1, minor version number is 2, and revision number is 0.
 typedef struct  _tagVersion {
-  unsigned int uMajor;				///< The major version number
-  unsigned int uMinor;				///< The minor version number
-  unsigned int uRevision;				///< The revision number
-  unsigned int uReserved;				///< The reserved number, it should be 0.
+  unsigned int uMajor;                  ///< The major version number
+  unsigned int uMinor;                  ///< The minor version number
+  unsigned int uRevision;               ///< The revision number
+  unsigned int uReserved;               ///< The reserved number, it should be 0.
 } OpenH264Version;
 
 /**
@@ -148,13 +148,13 @@
 */
 typedef enum {
   DECODER_OPTION_DATAFORMAT = 0,        ///< color format, now supports 23 only (I420)
-  DECODER_OPTION_END_OF_STREAM,	        ///< end of stream flag
+  DECODER_OPTION_END_OF_STREAM,         ///< end of stream flag
   DECODER_OPTION_VCL_NAL,               ///< feedback whether or not have VCL NAL in current AU for application layer
   DECODER_OPTION_TEMPORAL_ID,           ///< feedback temporal id for application layer
   DECODER_OPTION_FRAME_NUM,             ///< feedback current decoded frame number
-  DECODER_OPTION_IDR_PIC_ID,	        ///< feedback current frame belong to which IDR period
-  DECODER_OPTION_LTR_MARKING_FLAG,	    ///< feedback wether current frame mark a LTR
-  DECODER_OPTION_LTR_MARKED_FRAME_NUM,	///< feedback frame num marked by current Frame
+  DECODER_OPTION_IDR_PIC_ID,            ///< feedback current frame belong to which IDR period
+  DECODER_OPTION_LTR_MARKING_FLAG,      ///< feedback wether current frame mark a LTR
+  DECODER_OPTION_LTR_MARKED_FRAME_NUM,  ///< feedback frame num marked by current Frame
   DECODER_OPTION_ERROR_CON_IDC,         ///< not finished yet, indicate decoder error concealment status, in progress
   DECODER_OPTION_TRACE_LEVEL,
   DECODER_OPTION_TRACE_CALLBACK,        ///< a void (*)(void* context, int level, const char* message) function which receives log messages
@@ -267,12 +267,12 @@
 * @brief Enumerate the type of slice mode
 */
 typedef enum {
-  SM_SINGLE_SLICE         = 0, ///<	| SliceNum==1
-  SM_FIXEDSLCNUM_SLICE    = 1, ///<	| according to SliceNum        | enabled dynamic slicing for multi-thread
-  SM_RASTER_SLICE         = 2, ///<	| according to SlicesAssign    | need input of MB numbers each slice. In addition, if other constraint in SSliceArgument is presented, need to follow the constraints. Typically if MB num and slice size are both constrained, re-encoding may be involved.
+  SM_SINGLE_SLICE         = 0, ///< | SliceNum==1
+  SM_FIXEDSLCNUM_SLICE    = 1, ///< | according to SliceNum        | enabled dynamic slicing for multi-thread
+  SM_RASTER_SLICE         = 2, ///< | according to SlicesAssign    | need input of MB numbers each slice. In addition, if other constraint in SSliceArgument is presented, need to follow the constraints. Typically if MB num and slice size are both constrained, re-encoding may be involved.
   SM_ROWMB_SLICE          = 3, ///< | according to PictureMBHeight | typical of single row of mbs each slice + slice size constraint which including re-encoding
-  SM_DYN_SLICE            = 4, ///<	| according to SliceSize       | dynamic slicing (have no idea about slice_nums until encoding current frame)
-  SM_AUTO_SLICE           = 5, ///<	| according to thread number
+  SM_DYN_SLICE            = 4, ///< | according to SliceSize       | dynamic slicing (have no idea about slice_nums until encoding current frame)
+  SM_AUTO_SLICE           = 5, ///< | according to thread number
   SM_RESERVED             = 6
 } SliceModeEnum;
 
@@ -292,17 +292,17 @@
 */
 typedef enum {
   PRO_UNKNOWN   = 0,
-  PRO_BASELINE	= 66,
-  PRO_MAIN		= 77,
-  PRO_EXTENDED	= 88,
-  PRO_HIGH		= 100,
-  PRO_HIGH10	= 110,
-  PRO_HIGH422	= 122,
+  PRO_BASELINE  = 66,
+  PRO_MAIN      = 77,
+  PRO_EXTENDED  = 88,
+  PRO_HIGH      = 100,
+  PRO_HIGH10    = 110,
+  PRO_HIGH422   = 122,
   PRO_HIGH444   = 144,
-  PRO_CAVLC444	= 244,
+  PRO_CAVLC444  = 244,
 
-  PRO_SCALABLE_BASELINE	= 83,
-  PRO_SCALABLE_HIGH		= 86
+  PRO_SCALABLE_BASELINE = 83,
+  PRO_SCALABLE_HIGH     = 86
 } EProfileIdc;
 
 /**
@@ -341,7 +341,7 @@
   WELS_LOG_DETAIL      = 1 << 4,        ///< per packet/frame log
   WELS_LOG_RESV        = 1 << 5,        ///< resversed log iLevel
   WELS_LOG_LEVEL_COUNT = 6,
-  WELS_LOG_DEFAULT     = WELS_LOG_WARNING	///< default log iLevel in Wels codec
+  WELS_LOG_DEFAULT     = WELS_LOG_WARNING   ///< default log iLevel in Wels codec
 };
 
 /**
@@ -355,10 +355,10 @@
 * @brief  Structure for spatial layer configuration
 */
 typedef struct {
-  int	iVideoWidth;           ///< width of picture in luminance samples of a layer
-  int	iVideoHeight;          ///< height of picture in luminance samples of a layer
-  float	fFrameRate;            ///< frame rate specified for a layer
-  int	iSpatialBitrate;       ///< target bitrate for a spatial layer
+  int   iVideoWidth;           ///< width of picture in luminance samples of a layer
+  int   iVideoHeight;          ///< height of picture in luminance samples of a layer
+  float fFrameRate;            ///< frame rate specified for a layer
+  int   iSpatialBitrate;       ///< target bitrate for a spatial layer
   int   iMaxSpatialBitrate;    ///< maximum  bitrate for a spatial layer
   EProfileIdc  uiProfileIdc;   ///< value of profile IDC (PRO_UNKNOWN for auto-detection)
   ELevelIdc    uiLevelIdc;     ///< value of profile IDC (0 for auto-detection)
@@ -406,7 +406,7 @@
 
   int       iPicWidth;        ///< width of picture in luminance samples (the maximum of all layers if multiple spatial layers presents)
   int       iPicHeight;       ///< height of picture in luminance samples((the maximum of all layers if multiple spatial layers presents)
-  int       iTargetBitrate;	  ///< target bitrate desired
+  int       iTargetBitrate;   ///< target bitrate desired
   RC_MODES  iRCMode;          ///< rate control mode
   float     fMaxFrameRate;    ///< maximal input frame rate
 
@@ -420,7 +420,7 @@
   iUsageType;                          ///< application type;1.CAMERA_VIDEO_REAL_TIME:camera video signal;2.SCREEN_CONTENT_REAL_TIME:screen content signal;
 
   int       iPicWidth;                 ///< width of picture in luminance samples (the maximum of all layers if multiple spatial layers presents)
-  int       iPicHeight;			       ///< height of picture in luminance samples((the maximum of all layers if multiple spatial layers presents)
+  int       iPicHeight;                ///< height of picture in luminance samples((the maximum of all layers if multiple spatial layers presents)
   int       iTargetBitrate;            ///< target bitrate desired
   RC_MODES  iRCMode;                   ///< rate control mode
   float     fMaxFrameRate;             ///< maximal input frame rate
@@ -458,7 +458,7 @@
   /* Deblocking loop filter */
   int       iLoopFilterDisableIdc;     ///< 0: on, 1: off, 2: on except for slice boundaries
   int       iLoopFilterAlphaC0Offset;  ///< AlphaOffset: valid range [-6, 6], default 0
-  int       iLoopFilterBetaOffset;	   ///< BetaOffset:	valid range [-6, 6], default 0
+  int       iLoopFilterBetaOffset;     ///< BetaOffset: valid range [-6, 6], default 0
   /*pre-processing feature*/
   bool    bEnableDenoise;              ///< denoise control
   bool    bEnableBackgroundDetection;  ///< background detection control //VAA_BACKGROUND_DETECTION //BGD cmd
@@ -481,11 +481,11 @@
 * @brief SVC Decoding Parameters, reserved here and potential applicable in the future
 */
 typedef struct TagSVCDecodingParam {
-  char*		pFileNameRestructed;       ///< file name of reconstructed frame used for PSNR calculation based debug
+  char*     pFileNameRestructed;       ///< file name of reconstructed frame used for PSNR calculation based debug
 
   EVideoFormatType eOutputColorFormat; ///< color space format to be outputed, EVideoFormatType specified in codec_def.h
-  unsigned int	uiCpuLoad;             ///< CPU load
-  unsigned char	uiTargetDqLayer;       ///< setting target dq layer id
+  unsigned int  uiCpuLoad;             ///< CPU load
+  unsigned char uiTargetDqLayer;       ///< setting target dq layer id
 
   ERROR_CON_IDC eEcActiveIdc;          ///< whether active error concealment feature in decoder
   bool bParseOnly;                     ///< decoder for parse only, no reconstruction. When it is true, SPS/PPS size should not exceed SPS_PPS_BS_SIZE (128). Otherwise, it will return error info
@@ -504,8 +504,8 @@
   unsigned char uiLayerType;
 
   int   iNalCount;              ///< count number of NAL coded already
-  int*  pNalLengthInByte;	    ///< length of NAL size in byte from 0 to iNalCount-1
-  unsigned char*  pBsBuf;		///< buffer of bitstream contained
+  int*  pNalLengthInByte;       ///< length of NAL size in byte from 0 to iNalCount-1
+  unsigned char*  pBsBuf;       ///< buffer of bitstream contained
 } SLayerBSInfo, *PLayerBSInfo;
 
 /**
@@ -512,19 +512,19 @@
 * @brief Frame bit stream info
 */
 typedef struct {
-  int		iTemporalId;	   ///< temporal ID
+  int iTemporalId;              ///< temporal ID
 
   /**
   * The sub sequence layers are ordered hierarchically based on their dependency on each other so that any picture in a layer shall not be
   * predicted from any picture on any higher layer.
   */
-  int	    iSubSeqId;         ///< refer to D.2.11 Sub-sequence information SEI message semantics
+  int iSubSeqId;                ///< refer to D.2.11 Sub-sequence information SEI message semantics
 
-  int		iLayerNum;
-  SLayerBSInfo	sLayerInfo[MAX_LAYER_NUM_OF_FRAME];
+  int           iLayerNum;
+  SLayerBSInfo  sLayerInfo[MAX_LAYER_NUM_OF_FRAME];
 
   EVideoFrameType eFrameType;
-  int   iFrameSizeInBytes;
+  int iFrameSizeInBytes;
   long long uiTimeStamp;
 } SFrameBSInfo, *PFrameBSInfo;
 
@@ -532,9 +532,9 @@
 *  @brief Structure for source picture
 */
 typedef struct Source_Picture_s {
-  int       iColorFormat;	       ///< color space type
-  int       iStride[4];		       ///< stride for each plane pData
-  unsigned char*  pData[4];		   ///< plane pData
+  int       iColorFormat;          ///< color space type
+  int       iStride[4];            ///< stride for each plane pData
+  unsigned char*  pData[4];        ///< plane pData
   int       iPicWidth;             ///< luma picture width in x coordinate
   int       iPicHeight;            ///< luma picture height in y coordinate
   long long uiTimeStamp;
@@ -640,31 +640,30 @@
 * @brief  Structure for decoder statistics
 */
 typedef struct TagVideoDecoderStatistics {
-  unsigned int uiWidth;	                       ///< the width of encode/decode frame
+  unsigned int uiWidth;                        ///< the width of encode/decode frame
   unsigned int uiHeight;                       ///< the height of encode/decode frame
   float fAverageFrameSpeedInMs;                ///< average_Decoding_Time
   float fActualAverageFrameSpeedInMs;          ///< actual average_Decoding_Time, including freezing pictures
   unsigned int uiDecodedFrameCount;            ///< number of frames
   unsigned int uiResolutionChangeTimes;        ///< uiResolutionChangeTimes
-  unsigned int uiIDRCorrectNum;	               ///< number of correct IDR received
+  unsigned int uiIDRCorrectNum;                ///< number of correct IDR received
   //EC on related
   unsigned int
   uiAvgEcRatio;                                ///< when EC is on, the average ratio of total EC areas, can be an indicator of reconstruction quality
   unsigned int
-  uiAvgEcPropRatio;                                ///< when EC is on, the rough average ratio of propogate EC areas, can be an indicator of reconstruction quality
+  uiAvgEcPropRatio;                            ///< when EC is on, the rough average ratio of propogate EC areas, can be an indicator of reconstruction quality
   unsigned int uiEcIDRNum;                     ///< number of actual unintegrity IDR or not received but eced
   unsigned int uiEcFrameNum;                   ///<
   unsigned int uiIDRLostNum;                   ///< number of whole lost IDR
-  unsigned int
-  uiFreezingIDRNum;               ///< number of freezing IDR with error (partly received), under resolution change
+  unsigned int uiFreezingIDRNum;               ///< number of freezing IDR with error (partly received), under resolution change
   unsigned int uiFreezingNonIDRNum;            ///< number of freezing non-IDR with error
   int iAvgLumaQp;                              ///< average luma QP. default: -1, no correct frame outputted
-  int iSpsReportErrorNum;             ///< number of Sps Invalid report
-  int iSubSpsReportErrorNum;          ///< number of SubSps Invalid report
-  int iPpsReportErrorNum;             ///< number of Pps Invalid report
-  int			iSpsNoExistNalNum;          ///< number of Sps NoExist Nal
-  int			iSubSpsNoExistNalNum;       ///< number of SubSps NoExist Nal
-  int			iPpsNoExistNalNum;          ///< number of Pps NoExist Nal
+  int iSpsReportErrorNum;                      ///< number of Sps Invalid report
+  int iSubSpsReportErrorNum;                   ///< number of SubSps Invalid report
+  int iPpsReportErrorNum;                      ///< number of Pps Invalid report
+  int iSpsNoExistNalNum;                       ///< number of Sps NoExist Nal
+  int iSubSpsNoExistNalNum;                    ///< number of SubSps NoExist Nal
+  int iPpsNoExistNalNum;                       ///< number of Pps NoExist Nal
 } SDecoderStatistics; // in building, coming soon
 
 #endif//WELS_VIDEO_CODEC_APPLICATION_DEFINITION_H__
--- a/codec/api/svc/codec_def.h
+++ b/codec/api/svc/codec_def.h
@@ -118,8 +118,8 @@
 #define IS_IDR_NAL(eNalRefIdc, eNalType) \
 ( (eNalRefIdc == NAL_PRIORITY_HIGHEST) && (eNalType == NAL_SLICE_IDR) )
 
-#define FRAME_NUM_PARAM_SET		(-1)
-#define FRAME_NUM_IDR			0
+#define FRAME_NUM_PARAM_SET     (-1)
+#define FRAME_NUM_IDR           0
 
 /**
  * @brief eDeblockingIdc
@@ -146,7 +146,7 @@
   ET_IR_R2 = 0x08,          ///< Intra Refresh in predifined 5% MB
   ET_IR_R3 = 0x10,          ///< Intra Refresh in predifined 10% MB
   ET_FEC_HALF = 0x20,       ///< Forward Error Correction in 50% redundency mode
-  ET_FEC_FULL	= 0x40,     ///< Forward Error Correction in 100% redundency mode
+  ET_FEC_FULL = 0x40,       ///< Forward Error Correction in 100% redundency mode
   ET_RFS = 0x80             ///< Reference Frame Selection
 };
 
@@ -154,15 +154,15 @@
 * @brief Information of coded Slice(=NAL)(s)
 */
 typedef struct SliceInformation {
-  unsigned char* pBufferOfSlices;	 ///< base buffer of coded slice(s)
+  unsigned char* pBufferOfSlices;    ///< base buffer of coded slice(s)
   int            iCodedSliceCount;   ///< number of coded slices
-  unsigned int*	 pLengthOfSlices;	 ///< array of slices length accordingly by number of slice
+  unsigned int*  pLengthOfSlices;    ///< array of slices length accordingly by number of slice
   int            iFecType;           ///< FEC type[0, 50%FEC, 100%FEC]
-  unsigned char	 uiSliceIdx;         ///< index of slice in frame [FMO: 0,..,uiSliceCount-1; No FMO: 0]
-  unsigned char	 uiSliceCount;       ///< count number of slice in frame [FMO: 2-8; No FMO: 1]
+  unsigned char  uiSliceIdx;         ///< index of slice in frame [FMO: 0,..,uiSliceCount-1; No FMO: 0]
+  unsigned char  uiSliceCount;       ///< count number of slice in frame [FMO: 2-8; No FMO: 1]
   char           iFrameIndex;        ///< index of frame[-1, .., idr_interval-1]
-  unsigned char	 uiNalRefIdc;        ///< NRI, priority level of slice(NAL)
-  unsigned char	 uiNalType;          ///< NAL type
+  unsigned char  uiNalRefIdc;        ///< NRI, priority level of slice(NAL)
+  unsigned char  uiNalType;          ///< NAL type
   unsigned char
   uiContainingFinalNal;              ///< whether final NAL is involved in buffer of coded slices, flag used in Pause feature in T27
 } SliceInfo, *PSliceInfo;
--- a/codec/common/inc/WelsThreadLib.h
+++ b/codec/common/inc/WelsThreadLib.h
@@ -93,11 +93,11 @@
   int32_t    ProcessorCount;
 } WelsLogicalProcessInfo;
 
-#define    WELS_THREAD_ERROR_OK					0
-#define    WELS_THREAD_ERROR_GENERAL			((uint32_t)(-1))
-#define    WELS_THREAD_ERROR_WAIT_OBJECT_0		0
-#define	   WELS_THREAD_ERROR_WAIT_TIMEOUT		((uint32_t)0x00000102L)
-#define	   WELS_THREAD_ERROR_WAIT_FAILED		WELS_THREAD_ERROR_GENERAL
+#define    WELS_THREAD_ERROR_OK                                 0
+#define    WELS_THREAD_ERROR_GENERAL                    ((uint32_t)(-1))
+#define    WELS_THREAD_ERROR_WAIT_OBJECT_0              0
+#define    WELS_THREAD_ERROR_WAIT_TIMEOUT               ((uint32_t)0x00000102L)
+#define    WELS_THREAD_ERROR_WAIT_FAILED                WELS_THREAD_ERROR_GENERAL
 
 WELS_THREAD_ERROR_CODE    WelsMutexInit (WELS_MUTEX*    mutex);
 WELS_THREAD_ERROR_CODE    WelsMutexLock (WELS_MUTEX*    mutex);
--- a/codec/common/inc/cpu.h
+++ b/codec/common/inc/cpu.h
@@ -50,7 +50,7 @@
 
 #if defined(X86_ASM)
 /*
- *	cpuid support verify routine
+ *  cpuid support verify routine
  *  return 0 if cpuid is not supported by cpu
  */
 int32_t  WelsCPUIdVerify();
@@ -63,7 +63,7 @@
 void WelsEmms();
 
 /*
- *	clear FPU registers states for potential float based calculation if support
+ *  clear FPU registers states for potential float based calculation if support
  */
 void     WelsCPURestore (const uint32_t kuiCPU);
 
--- a/codec/common/inc/cpu_core.h
+++ b/codec/common/inc/cpu_core.h
@@ -41,7 +41,7 @@
 #define WELS_CPU_CORE_FEATURE_DETECTION_H__
 
 /*
- *	WELS CPU feature flags
+ *  WELS CPU feature flags
  */
 #define WELS_CPU_MMX        0x00000001    /* mmx */
 #define WELS_CPU_MMXEXT     0x00000002    /* mmx-ext*/
@@ -56,18 +56,18 @@
 #define WELS_CPU_SSE42      0x00000400    /* sse 4.2 */
 
 /* CPU features application extensive */
-#define WELS_CPU_AVX		0x00000800	/* Advanced Vector eXtentions */
-#define WELS_CPU_FPU		0x00001000	/* x87-FPU on chip */
-#define WELS_CPU_HTT		0x00002000	/* Hyper-Threading Technology (HTT), Multi-threading enabled feature:
-										   physical processor package is capable of supporting more than one logic processor
-										*/
-#define WELS_CPU_CMOV		0x00004000	/* Conditional Move Instructions,
-										   also if x87-FPU is present at indicated by the CPUID.FPU feature bit, then FCOMI and FCMOV are supported
-										*/
-#define WELS_CPU_MOVBE		0x00008000	/* MOVBE instruction */
-#define WELS_CPU_AES		0x00010000	/* AES instruction extensions */
-#define WELS_CPU_FMA		0x00020000	/* AVX VEX FMA instruction sets */
-#define WELS_CPU_AVX2		0x00040000	/* AVX2 */
+#define WELS_CPU_AVX        0x00000800  /* Advanced Vector eXtentions */
+#define WELS_CPU_FPU        0x00001000  /* x87-FPU on chip */
+#define WELS_CPU_HTT        0x00002000  /* Hyper-Threading Technology (HTT), Multi-threading enabled feature:
+                                           physical processor package is capable of supporting more than one logic processor
+                                        */
+#define WELS_CPU_CMOV       0x00004000  /* Conditional Move Instructions,
+                                           also if x87-FPU is present at indicated by the CPUID.FPU feature bit, then FCOMI and FCMOV are supported
+                                        */
+#define WELS_CPU_MOVBE      0x00008000  /* MOVBE instruction */
+#define WELS_CPU_AES        0x00010000  /* AES instruction extensions */
+#define WELS_CPU_FMA        0x00020000  /* AVX VEX FMA instruction sets */
+#define WELS_CPU_AVX2       0x00040000  /* AVX2 */
 
 #define WELS_CPU_CACHELINE_16    0x10000000    /* CacheLine Size 16 */
 #define WELS_CPU_CACHELINE_32    0x20000000    /* CacheLine Size 32 */
@@ -80,7 +80,7 @@
 #define WELS_CPU_NEON       0x000004    /* NEON */
 
 /*
- *	Interfaces for CPU core feature detection as below
+ *  Interfaces for CPU core feature detection as below
  */
 
 #endif//WELS_CPU_CORE_FEATURE_DETECTION_H__
--- a/codec/common/inc/golomb_common.h
+++ b/codec/common/inc/golomb_common.h
@@ -56,13 +56,13 @@
 
 
 /*!
- * \brief	initialize bitstream writing
+ * \brief   initialize bitstream writing
  *
- * \param	pBs		Bit string auxiliary pointer
- * \param	pBuf	bit-stream pBuffer
- * \param	iSize	iSize in bits for decoder; iSize in bytes for encoder
+ * \param   pBs     Bit string auxiliary pointer
+ * \param   pBuf    bit-stream pBuffer
+ * \param   iSize   iSize in bits for decoder; iSize in bytes for encoder
  *
- * \return	iSize of pBuffer pData in byte; failed in -1 return
+ * \return  iSize of pBuffer pData in byte; failed in -1 return
  */
 static inline int32_t InitBits (SBitStringAux* pBs, const uint8_t* kpBuf, const int32_t kiSize) {
   uint8_t* ptr = (uint8_t*)kpBuf;
@@ -92,7 +92,7 @@
 }
 
 /*
- *	Write 1 bit
+ *  Write 1 bit
  */
 static inline int32_t BsWriteOneBit (PBitStringAux pBitString, const uint32_t kuiValue) {
   BsWriteBits (pBitString, 1, kuiValue);
@@ -108,7 +108,7 @@
 }
 
 /*
- *	Write unsigned exp golomb codes
+ *  Write unsigned exp golomb codes
  */
 
 static inline int32_t BsWriteUE (PBitStringAux pBitString, const uint32_t kuiValue) {
@@ -135,7 +135,7 @@
 }
 
 /*
- *	Write signed exp golomb codes
+ *  Write signed exp golomb codes
  */
 static inline int32_t BsWriteSE (PBitStringAux pBitString, const int32_t kiValue) {
   uint32_t iTmpValue;
@@ -153,7 +153,7 @@
 
 
 /*
- *	Write RBSP trailing bits
+ *  Write RBSP trailing bits
  */
 static inline int32_t BsRbspTrailingBits (PBitStringAux pBitString) {
   BsWriteOneBit (pBitString, 1);
--- a/codec/common/inc/macros.h
+++ b/codec/common/inc/macros.h
@@ -207,8 +207,8 @@
 
 /*
  * Description: to check variable validation and return the specified result
- *	iResult:	value to be checked
- *	iExpected:	the expected value
+ *  iResult:    value to be checked
+ *  iExpected:  the expected value
  */
 #ifndef WELS_VERIFY_RETURN_IFNEQ
 #define WELS_VERIFY_RETURN_IFNEQ(iResult, iExpected) \
@@ -219,8 +219,8 @@
 
 /*
  * Description: to check variable validation and return the specified result
- *	iResult:	value to be return
- *	bCaseIf:	negative condition to be verified
+ *  iResult:    value to be return
+ *  bCaseIf:    negative condition to be verified
  */
 #ifndef WELS_VERIFY_RETURN_IF
 #define WELS_VERIFY_RETURN_IF(iResult, bCaseIf) \
@@ -230,11 +230,11 @@
 #endif//#if WELS_VERIFY_RETURN_IF
 
 /*
- *	Description: to check variable validation and return the specified result
- *		with correspoinding process advance.
- *	 result:	value to be return
- *	 case_if:	negative condition to be verified
- *	 proc:		process need perform
+ *  Description: to check variable validation and return the specified result
+ *      with correspoinding process advance.
+ *   result:    value to be return
+ *   case_if:   negative condition to be verified
+ *   proc:      process need perform
  */
 #ifndef WELS_VERIFY_RETURN_PROC_IF
 #define WELS_VERIFY_RETURN_PROC_IF(iResult, bCaseIf, fProc) \
--- a/codec/common/inc/measure_time.h
+++ b/codec/common/inc/measure_time.h
@@ -55,9 +55,9 @@
 #endif//__cplusplus
 
 /*!
- * \brief	time cost measure utilization
- * \param	void
- * \return	time elapsed since run (unit: microsecond)
+ * \brief   time cost measure utilization
+ * \param   void
+ * \return  time elapsed since run (unit: microsecond)
  */
 
 static inline int64_t WelsTime (void) {
--- a/codec/common/inc/utils.h
+++ b/codec/common/inc/utils.h
@@ -42,11 +42,11 @@
 #include <stdarg.h>
 #include "typedefs.h"
 
-#define MAX_LOG_SIZE	1024
+#define MAX_LOG_SIZE    1024
 #define MAX_WIDTH      (4096)
 #define MAX_HEIGHT     (2304)//MAX_FS_LEVEL51 (36864); MAX_FS_LEVEL51*256/4096 = 2304
 /*
- *	Function pointer declaration for various tool sets
+ *  Function pointer declaration for various tool sets
  */
 // wels log output
 typedef void (*PWelsLogCallbackFunc) (void* pCtx, const int32_t iLevel, const char* kpFmt, va_list argv);
@@ -67,22 +67,22 @@
 #endif
 
 /*
- *	PSNR calculation routines
+ *  PSNR calculation routines
  */
 /*!
  *************************************************************************************
- * \brief	PSNR calculation utilization in Wels
+ * \brief   PSNR calculation utilization in Wels
  *
- * \param	kpTarPic		target picture to be calculated in Picture pData format
- * \param	kiTarStride	stride of target picture pData pBuffer
- * \param 	kpRefPic		base referencing picture samples
- * \param	kiRefStride	stride of reference picture pData pBuffer
- * \param	kiWidth		picture iWidth in pixel
- * \param	kiHeight		picture iHeight in pixel
+ * \param   kpTarPic    target picture to be calculated in Picture pData format
+ * \param   kiTarStride stride of target picture pData pBuffer
+ * \param   kpRefPic    base referencing picture samples
+ * \param   kiRefStride stride of reference picture pData pBuffer
+ * \param   kiWidth     picture iWidth in pixel
+ * \param   kiHeight    picture iHeight in pixel
  *
- * \return	actual PSNR result;
+ * \return  actual PSNR result;
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 float WelsCalcPsnr (const void* kpTarPic,
--- a/codec/common/inc/wels_common_defs.h
+++ b/codec/common/inc/wels_common_defs.h
@@ -78,52 +78,52 @@
 extern const uint8_t g_kuiStateTransTable[64][2];
 extern const uint32_t g_kuiGolombUELength[256];
 /*
- *	NAL Unit Type (5 Bits)
+ *  NAL Unit Type (5 Bits)
  */
 enum EWelsNalUnitType {
   NAL_UNIT_UNSPEC_0             = 0,
-  NAL_UNIT_CODED_SLICE		= 1,
-  NAL_UNIT_CODED_SLICE_DPA	= 2,
-  NAL_UNIT_CODED_SLICE_DPB	= 3,
-  NAL_UNIT_CODED_SLICE_DPC	= 4,
-  NAL_UNIT_CODED_SLICE_IDR	= 5,
-  NAL_UNIT_SEI		        = 6,
-  NAL_UNIT_SPS		        = 7,
-  NAL_UNIT_PPS		        = 8,
-  NAL_UNIT_AU_DELIMITER		= 9,
-  NAL_UNIT_END_OF_SEQ		= 10,
-  NAL_UNIT_END_OF_STR		= 11,
-  NAL_UNIT_FILLER_DATA		= 12,
-  NAL_UNIT_SPS_EXT		= 13,
-  NAL_UNIT_PREFIX		= 14,
-  NAL_UNIT_SUBSET_SPS		= 15,
-  NAL_UNIT_RESV_16		= 16,
-  NAL_UNIT_RESV_17		= 17,
-  NAL_UNIT_RESV_18		= 18,
-  NAL_UNIT_AUX_CODED_SLICE	= 19,
-  NAL_UNIT_CODED_SLICE_EXT	= 20,
-  NAL_UNIT_RESV_21		= 21,
-  NAL_UNIT_RESV_22		= 22,
-  NAL_UNIT_RESV_23		= 23,
-  NAL_UNIT_UNSPEC_24		= 24,
-  NAL_UNIT_UNSPEC_25		= 25,
-  NAL_UNIT_UNSPEC_26		= 26,
-  NAL_UNIT_UNSPEC_27		= 27,
-  NAL_UNIT_UNSPEC_28		= 28,
-  NAL_UNIT_UNSPEC_29		= 29,
-  NAL_UNIT_UNSPEC_30		= 30,
-  NAL_UNIT_UNSPEC_31		= 31
+  NAL_UNIT_CODED_SLICE          = 1,
+  NAL_UNIT_CODED_SLICE_DPA      = 2,
+  NAL_UNIT_CODED_SLICE_DPB      = 3,
+  NAL_UNIT_CODED_SLICE_DPC      = 4,
+  NAL_UNIT_CODED_SLICE_IDR      = 5,
+  NAL_UNIT_SEI                  = 6,
+  NAL_UNIT_SPS                  = 7,
+  NAL_UNIT_PPS                  = 8,
+  NAL_UNIT_AU_DELIMITER         = 9,
+  NAL_UNIT_END_OF_SEQ           = 10,
+  NAL_UNIT_END_OF_STR           = 11,
+  NAL_UNIT_FILLER_DATA          = 12,
+  NAL_UNIT_SPS_EXT              = 13,
+  NAL_UNIT_PREFIX               = 14,
+  NAL_UNIT_SUBSET_SPS           = 15,
+  NAL_UNIT_RESV_16              = 16,
+  NAL_UNIT_RESV_17              = 17,
+  NAL_UNIT_RESV_18              = 18,
+  NAL_UNIT_AUX_CODED_SLICE      = 19,
+  NAL_UNIT_CODED_SLICE_EXT      = 20,
+  NAL_UNIT_RESV_21              = 21,
+  NAL_UNIT_RESV_22              = 22,
+  NAL_UNIT_RESV_23              = 23,
+  NAL_UNIT_UNSPEC_24            = 24,
+  NAL_UNIT_UNSPEC_25            = 25,
+  NAL_UNIT_UNSPEC_26            = 26,
+  NAL_UNIT_UNSPEC_27            = 27,
+  NAL_UNIT_UNSPEC_28            = 28,
+  NAL_UNIT_UNSPEC_29            = 29,
+  NAL_UNIT_UNSPEC_30            = 30,
+  NAL_UNIT_UNSPEC_31            = 31
 };
 
 /*
- *	NAL Reference IDC (2 Bits)
+ *  NAL Reference IDC (2 Bits)
  */
 
 enum EWelsNalRefIdc {
-  NRI_PRI_LOWEST	= 0,
-  NRI_PRI_LOW		= 1,
-  NRI_PRI_HIGH	        = 2,
-  NRI_PRI_HIGHEST	= 3
+  NRI_PRI_LOWEST        = 0,
+  NRI_PRI_LOW           = 1,
+  NRI_PRI_HIGH          = 2,
+  NRI_PRI_HIGHEST       = 3
 };
 
 /*
@@ -131,25 +131,25 @@
  */
 
 enum EVclType {
-  NON_VCL			= 0,
-  VCL				= 1,
-  NOT_APP			= 2
+  NON_VCL   = 0,
+  VCL       = 1,
+  NOT_APP   = 2
 };
 
 /*
- *	vcl type map for given NAL unit type and corresponding H264 type (0: AVC; 1: SVC).
+ *  vcl type map for given NAL unit type and corresponding H264 type (0: AVC; 1: SVC).
  */
 extern const EVclType g_keTypeMap[32][2];
 
-#define IS_VCL_NAL(t, ext_idx)			(g_keTypeMap[t][ext_idx] == VCL)
-#define IS_PARAM_SETS_NALS(t)			( (t) == NAL_UNIT_SPS || (t) == NAL_UNIT_PPS || (t) == NAL_UNIT_SUBSET_SPS )
-#define IS_SPS_NAL(t)				( (t) == NAL_UNIT_SPS )
-#define IS_SUBSET_SPS_NAL(t)			( (t) == NAL_UNIT_SUBSET_SPS )
-#define IS_PPS_NAL(t)				( (t) == NAL_UNIT_PPS )
-#define IS_SEI_NAL(t)				( (t) == NAL_UNIT_SEI )
-#define IS_PREFIX_NAL(t)			( (t) == NAL_UNIT_PREFIX )
-#define IS_SUBSET_SPS_USED(t)			( (t) == NAL_UNIT_SUBSET_SPS || (t) == NAL_UNIT_CODED_SLICE_EXT )
-#define IS_VCL_NAL_AVC_BASE(t)			( (t) == NAL_UNIT_CODED_SLICE || (t) == NAL_UNIT_CODED_SLICE_IDR )
+#define IS_VCL_NAL(t, ext_idx)                  (g_keTypeMap[t][ext_idx] == VCL)
+#define IS_PARAM_SETS_NALS(t)                   ( (t) == NAL_UNIT_SPS || (t) == NAL_UNIT_PPS || (t) == NAL_UNIT_SUBSET_SPS )
+#define IS_SPS_NAL(t)                           ( (t) == NAL_UNIT_SPS )
+#define IS_SUBSET_SPS_NAL(t)                    ( (t) == NAL_UNIT_SUBSET_SPS )
+#define IS_PPS_NAL(t)                           ( (t) == NAL_UNIT_PPS )
+#define IS_SEI_NAL(t)                           ( (t) == NAL_UNIT_SEI )
+#define IS_PREFIX_NAL(t)                        ( (t) == NAL_UNIT_PREFIX )
+#define IS_SUBSET_SPS_USED(t)                   ( (t) == NAL_UNIT_SUBSET_SPS || (t) == NAL_UNIT_CODED_SLICE_EXT )
+#define IS_VCL_NAL_AVC_BASE(t)                  ( (t) == NAL_UNIT_CODED_SLICE || (t) == NAL_UNIT_CODED_SLICE_IDR )
 #define IS_NEW_INTRODUCED_SVC_NAL(t)            ( (t) == NAL_UNIT_PREFIX || (t) == NAL_UNIT_CODED_SLICE_EXT )
 
 
@@ -160,9 +160,9 @@
  */
 
 enum EWelsSliceType {
-  P_SLICE	= 0,
-  B_SLICE	= 1,
-  I_SLICE	= 2,
+  P_SLICE       = 0,
+  B_SLICE       = 1,
+  I_SLICE       = 2,
   SP_SLICE      = 3,
   SI_SLICE      = 4,
   UNKNOWN_SLICE = 5
@@ -170,16 +170,16 @@
 
 /* SSlice Types in scalable extension */
 enum ESliceTypeExt {
-  EP_SLICE = 0,	// EP_SLICE: 0, 5
-  EB_SLICE = 1,	// EB_SLICE: 1, 6
-  EI_SLICE = 2	// EI_SLICE: 2, 7
+  EP_SLICE = 0, // EP_SLICE: 0, 5
+  EB_SLICE = 1, // EB_SLICE: 1, 6
+  EI_SLICE = 2  // EI_SLICE: 2, 7
 };
 
 /* List Index */
 enum EListIndex {
-  LIST_0	= 0,
-  LIST_1	= 1,
-  LIST_A	= 2
+  LIST_0    = 0,
+  LIST_1    = 1,
+  LIST_A    = 2
 };
 
 
@@ -186,36 +186,36 @@
 
 /* Motion Vector components */
 enum EMvComp {
-  MV_X	= 0,
-  MV_Y	= 1,
-  MV_A	= 2
+  MV_X  = 0,
+  MV_Y  = 1,
+  MV_A  = 2
 };
 
 /* Chroma Components */
 
 enum EChromaComp {
-  CHROMA_CB	= 0,
-  CHROMA_CR	= 1,
-  CHROMA_A	= 2
+  CHROMA_CB     = 0,
+  CHROMA_CR     = 1,
+  CHROMA_A      = 2
 };
 
 
 
 /*
- *	Memory Management Control Operation (MMCO) code
+ *  Memory Management Control Operation (MMCO) code
  */
 enum EMmcoCode {
-  MMCO_END		= 0,
-  MMCO_SHORT2UNUSED	= 1,
-  MMCO_LONG2UNUSED	= 2,
-  MMCO_SHORT2LONG	= 3,
-  MMCO_SET_MAX_LONG	= 4,
-  MMCO_RESET		= 5,
-  MMCO_LONG		= 6
+  MMCO_END          = 0,
+  MMCO_SHORT2UNUSED = 1,
+  MMCO_LONG2UNUSED  = 2,
+  MMCO_SHORT2LONG   = 3,
+  MMCO_SET_MAX_LONG = 4,
+  MMCO_RESET        = 5,
+  MMCO_LONG         = 6
 };
 
 /*
- *	Bit-stream auxiliary reading / writing
+ *  Bit-stream auxiliary reading / writing
  */
 typedef struct TagBitStringAux {
   uint8_t* pStartBuf;	// buffer to start position
--- a/codec/common/inc/wels_const_common.h
+++ b/codec/common/inc/wels_const_common.h
@@ -35,29 +35,29 @@
 
 // Miscellaneous sizing infos
 #ifndef MAX_FNAME_LEN
-#define MAX_FNAME_LEN		256	// maximal length of file name in char size
+#define MAX_FNAME_LEN           256     // maximal length of file name in char size
 #endif//MAX_FNAME_LEN
 
 #ifndef WELS_LOG_BUF_SIZE
-#define WELS_LOG_BUF_SIZE	4096
+#define WELS_LOG_BUF_SIZE       4096
 #endif//WELS_LOG_BUF_SIZE
 
 #ifndef MAX_TRACE_LOG_SIZE
-#define MAX_TRACE_LOG_SIZE	(50 * (1<<20))	// max trace log size: 50 MB, overwrite occur if log file size exceeds this size
+#define MAX_TRACE_LOG_SIZE      (50 * (1<<20))  // max trace log size: 50 MB, overwrite occur if log file size exceeds this size
 #endif//MAX_TRACE_LOG_SIZE
 
 /* MB width in pixels for specified colorspace I420 usually used in codec */
-#define MB_WIDTH_LUMA		16
-#define MB_WIDTH_CHROMA		(MB_WIDTH_LUMA>>1)
+#define MB_WIDTH_LUMA           16
+#define MB_WIDTH_CHROMA         (MB_WIDTH_LUMA>>1)
 /* MB height in pixels for specified colorspace I420 usually used in codec */
-#define MB_HEIGHT_LUMA		16
-#define MB_HEIGHT_CHROMA	(MB_HEIGHT_LUMA>>1)
-#define MB_COEFF_LIST_SIZE	(256+((MB_WIDTH_CHROMA*MB_HEIGHT_CHROMA)<<1))
-#define MB_PARTITION_SIZE       4	// Macroblock partition size in 8x8 sub-blocks
-#define MB_BLOCK4x4_NUM	        16
-#define MB_BLOCK8x8_NUM	        4
-#define MAX_SPS_COUNT	        32	// Count number of SPS
-#define BASE_QUALITY_ID	        0
+#define MB_HEIGHT_LUMA          16
+#define MB_HEIGHT_CHROMA        (MB_HEIGHT_LUMA>>1)
+#define MB_COEFF_LIST_SIZE      (256+((MB_WIDTH_CHROMA*MB_HEIGHT_CHROMA)<<1))
+#define MB_PARTITION_SIZE       4       // Macroblock partition size in 8x8 sub-blocks
+#define MB_BLOCK4x4_NUM         16
+#define MB_BLOCK8x8_NUM         4
+#define MAX_SPS_COUNT           32      // Count number of SPS
+#define BASE_QUALITY_ID         0
 
 
 #endif//WELS_CONST_COMMON_H__
--- a/codec/common/src/common_tables.cpp
+++ b/codec/common/src/common_tables.cpp
@@ -146,7 +146,7 @@
 };
 
 /*
- *	vcl type map for given NAL unit type and corresponding H264 type (0: AVC; 1: SVC).
+ *  vcl type map for given NAL unit type and corresponding H264 type (0: AVC; 1: SVC).
  */
 const EVclType g_keTypeMap[32][2] = {
   { NON_VCL,    NON_VCL },      // 0: NAL_UNIT_UNSPEC_0
--- a/codec/common/src/utils.cpp
+++ b/codec/common/src/utils.cpp
@@ -75,27 +75,27 @@
 }
 
 #ifndef CALC_PSNR
-#define CONST_FACTOR_PSNR	(10.0 / log(10.0))	// for good computation
-#define CALC_PSNR(w, h, s)	((float)(CONST_FACTOR_PSNR * log( 65025.0 * w * h / iSqe )))
+#define CONST_FACTOR_PSNR       (10.0 / log(10.0))      // for good computation
+#define CALC_PSNR(w, h, s)      ((float)(CONST_FACTOR_PSNR * log( 65025.0 * w * h / iSqe )))
 #endif//CALC_PSNR
 
 /*
- *	PSNR calculation routines
+ *  PSNR calculation routines
  */
 /*!
  *************************************************************************************
- * \brief	PSNR calculation utilization in Wels
+ * \brief   PSNR calculation utilization in Wels
  *
- * \param	pTarPic		target picture to be calculated in Picture pData format
- * \param	iTarStride	stride of target picture pData pBuffer
- * \param 	pRefPic		base referencing picture samples
- * \param	iRefStride	stride of reference picture pData pBuffer
- * \param	iWidth		picture iWidth in pixel
- * \param	iHeight		picture iHeight in pixel
+ * \param   pTarPic     target picture to be calculated in Picture pData format
+ * \param   iTarStride  stride of target picture pData pBuffer
+ * \param   pRefPic     base referencing picture samples
+ * \param   iRefStride  stride of reference picture pData pBuffer
+ * \param   iWidth      picture iWidth in pixel
+ * \param   iHeight     picture iHeight in pixel
  *
- * \return	actual PSNR result;
+ * \return  actual PSNR result;
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 float WelsCalcPsnr (const void* kpTarPic,
--- a/codec/console/dec/src/d3d9_utils.cpp
+++ b/codec/console/dec/src/d3d9_utils.cpp
@@ -39,11 +39,11 @@
 #ifdef ENABLE_DISPLAY_MODULE
 
 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#define IDM_ABOUT						104
-#define IDM_EXIT						105
-#define IDI_TESTSHARESURFACE	        107
-#define IDI_SMALL						108
-#define IDC_TESTSHARESURFACE	        109
+#define IDM_ABOUT                       104
+#define IDM_EXIT                        105
+#define IDI_TESTSHARESURFACE            107
+#define IDI_SMALL                       108
+#define IDC_TESTSHARESURFACE            109
 
 #define NV12_FORMAT  MAKEFOURCC('N','V','1','2')
 
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -93,7 +93,7 @@
 using namespace WelsEnc;
 
 /*
- *	Layer Context
+ *  Layer Context
  */
 typedef struct LayerpEncCtx_s {
   int32_t				iDLayerQp;
--- a/codec/decoder/core/inc/au_parser.h
+++ b/codec/decoder/core/inc/au_parser.h
@@ -50,16 +50,16 @@
 
 /*!
  *************************************************************************************
- * \brief	Start Code Prefix (0x 00 00 00 01) detection
+ * \brief   Start Code Prefix (0x 00 00 00 01) detection
  *
- * \param 	pBuf		bitstream payload buffer
- * \param	pOffset		offset between NAL rbsp and original bitsteam that
- * 				start code prefix is seperated from.
- * \param	iBufSize	count size of buffer
+ * \param   pBuf        bitstream payload buffer
+ * \param   pOffset     offset between NAL rbsp and original bitsteam that
+ *                      start code prefix is seperated from.
+ * \param   iBufSize    count size of buffer
  *
- * \return	RBSP buffer of start code prefix exclusive
+ * \return  RBSP buffer of start code prefix exclusive
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 uint8_t* DetectStartCodePrefix (const uint8_t* kpBuf, int32_t* pOffset, int32_t iBufSize);
@@ -66,21 +66,21 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse network abstraction layer unit,
- *			escape emulation_prevention_three_byte within it
- 	former name is parse_nal
+ * \brief   to parse network abstraction layer unit,
+ *          escape emulation_prevention_three_byte within it
+    former name is parse_nal
  *
- * \param	pCtx		    decoder context
- * \param 	pNalUnitHeader	parsed result of NAL Unit Header to output
+ * \param   pCtx            decoder context
+ * \param   pNalUnitHeader  parsed result of NAL Unit Header to output
  * \param   pSrcRbsp        bitstream buffer to input
  * \param   iSrcRbspLen     length size of bitstream buffer payload
- * \param	pSrcNal
- * \param	iSrcNalLen
- * \param	pConsumedBytes	consumed bytes during parsing
+ * \param   pSrcNal
+ * \param   iSrcNalLen
+ * \param   pConsumedBytes  consumed bytes during parsing
  *
- * \return	decoded bytes payload, might be (pSrcRbsp+1) if no escapes
+ * \return  decoded bytes payload, might be (pSrcRbsp+1) if no escapes
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeader, uint8_t* pSrcRbsp,
@@ -100,17 +100,17 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse Sequence Parameter Set (SPS)
+ * \brief   to parse Sequence Parameter Set (SPS)
  *
- * \param	pCtx		Decoder context
- * \param	pBsAux		bitstream reader auxiliary
- * \param	pPicWidth	picture width current Sps represented
- * \param	pPicHeight	picture height current Sps represented
+ * \param   pCtx        Decoder context
+ * \param   pBsAux      bitstream reader auxiliary
+ * \param   pPicWidth   picture width current Sps represented
+ * \param   pPicHeight  picture height current Sps represented
  *
- * \return	0 - successed
- *		1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case eNalUnitType is SPS.
+ * \note    Call it in case eNalUnitType is SPS.
  *************************************************************************************
  */
 int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicWidth, int32_t* pPicHeight, uint8_t* pSrcNal, const int32_t kSrcNalLen);
@@ -117,16 +117,16 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse Picture Parameter Set (PPS)
+ * \brief   to parse Picture Parameter Set (PPS)
  *
- * \param	pCtx		Decoder context
- * \param 	pPpsList	pps list
- * \param	pBsAux		bitstream reader auxiliary
+ * \param   pCtx        Decoder context
+ * \param   pPpsList    pps list
+ * \param   pBsAux      bitstream reader auxiliary
  *
- * \return	0 - successed
- *		1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case eNalUnitType is PPS.
+ * \note    Call it in case eNalUnitType is PPS.
  *************************************************************************************
  */
 int32_t ParsePps (PWelsDecoderContext pCtx, PPps pPpsList, PBitStringAux pBsAux, uint8_t* pSrcNal, const int32_t kSrcNalLen);
@@ -148,15 +148,15 @@
 int32_t ParseScalingList(PSps pSps,PBitStringAux pBs,bool bPPS,bool *bScalingListPresentFlag,uint8_t(*iScalingList4x4)[16],uint8_t(*iScalingList8x8)[64]);
 /*!
  *************************************************************************************
- * \brief	to parse SEI message payload
+ * \brief   to parse SEI message payload
  *
- * \param	pSei		sei message to be parsed output
- * \param	pBsAux		bitstream reader auxiliary
+ * \param   pSei        sei message to be parsed output
+ * \param   pBsAux      bitstream reader auxiliary
  *
- * \return	0 - successed
- *		1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case eNalUnitType is NAL_UNIT_SEI.
+ * \note    Call it in case eNalUnitType is NAL_UNIT_SEI.
  *************************************************************************************
  */
 int32_t ParseSei (void* pSei, PBitStringAux pBsAux);	// reserved Sei_Msg type
@@ -163,11 +163,11 @@
 
 /*!
  *************************************************************************************
- * \brief	reset fmo list due to got Sps now
+ * \brief   reset fmo list due to got Sps now
  *
- * \param	pCtx	decoder context
+ * \param   pCtx    decoder context
  *
- * \return	count number of fmo context units are reset
+ * \return  count number of fmo context units are reset
  *************************************************************************************
  */
 int32_t ResetFmoList (PWelsDecoderContext pCtx);
--- a/codec/decoder/core/inc/bit_stream.h
+++ b/codec/decoder/core/inc/bit_stream.h
@@ -43,13 +43,13 @@
 namespace WelsDec {
 
 /*!
- * \brief	input bits for decoder or initialize bitstream writing in encoder
+ * \brief   input bits for decoder or initialize bitstream writing in encoder
  *
- * \param	pBitString	Bit string auxiliary pointer
- * \param	kpBuf		bit-stream buffer
- * \param	kiSize	    size in bits for decoder; size in bytes for encoder
+ * \param   pBitString  Bit string auxiliary pointer
+ * \param   kpBuf       bit-stream buffer
+ * \param   kiSize      size in bits for decoder; size in bytes for encoder
  *
- * \return	size of buffer data in byte; failed in -1 return
+ * \return  size of buffer data in byte; failed in -1 return
  */
 int32_t DecInitBits (PBitStringAux pBitString, const uint8_t* kpBuf, const int32_t kiSize);
 
--- a/codec/decoder/core/inc/deblocking.h
+++ b/codec/decoder/core/inc/deblocking.h
@@ -46,12 +46,12 @@
 namespace WelsDec {
 
 /*!
- * \brief	deblocking module initialize
+ * \brief   deblocking module initialize
  *
- * \param	pf
+ * \param   pf
  *          cpu
  *
- * \return	NONE
+ * \return  NONE
  */
 
 void  DeblockingInit (PDeblockingFunc pDeblockingFunc,  int32_t iCpu);
@@ -58,23 +58,23 @@
 
 
 /*!
- * \brief	deblocking filtering target slice
+ * \brief   deblocking filtering target slice
  *
- * \param	dec			Wels decoder context
+ * \param   dec         Wels decoder context
  *
- * \return	NONE
+ * \return  NONE
  */
 void WelsDeblockingFilterSlice (PWelsDecoderContext pCtx, PDeblockingFilterMbFunc pDeblockMb);
 
 /*!
- * \brief	pixel deblocking filtering
+ * \brief   pixel deblocking filtering
  *
- * \param	filter			      deblocking filter
- * \param	pix	                  pixel value
- * \param	stride	              frame stride
- * \param	bs	                  boundary strength
+ * \param   filter                deblocking filter
+ * \param   pix                   pixel value
+ * \param   stride                frame stride
+ * \param   bs                    boundary strength
  *
- * \return	NONE
+ * \return  NONE
  */
 
 uint32_t DeblockingBsMarginalMBAvcbase (PDqLayer pCurDqLayer, int32_t iEdge, int32_t iNeighMb, int32_t iMbXy);
--- a/codec/decoder/core/inc/dec_golomb.h
+++ b/codec/decoder/core/inc/dec_golomb.h
@@ -84,7 +84,7 @@
 }
 
 /*
- *	Exponential Golomb codes decoding routines
+ *  Exponential Golomb codes decoding routines
  */
 
 // for data sharing cross modules and try to reduce size of binary generated, 12/10/2009
@@ -122,7 +122,7 @@
 }
 
 /*
- *	Read one bit from bit stream followed
+ *  Read one bit from bit stream followed
  */
 static inline uint32_t BsGetOneBit (PBitStringAux pBs, uint32_t* pCode) {
   return (BsGetBits (pBs, 1, pCode));
@@ -185,7 +185,7 @@
 
 
 /*
- *	Read signed exp golomb codes
+ *  Read signed exp golomb codes
  */
 static inline int32_t BsGetSe (PBitStringAux pBs, int32_t* pCode) {
   uint32_t uiCodeNum;
@@ -216,7 +216,7 @@
 }
 
 /*
- *	Get number of trailing bits
+ *  Get number of trailing bits
  */
 static inline int32_t BsGetTrailingBits (uint8_t* pBuf) {
 // TODO
--- a/codec/decoder/core/inc/decoder.h
+++ b/codec/decoder/core/inc/decoder.h
@@ -50,22 +50,22 @@
 #endif//__cplusplus
 
 /*!
- * \brief	configure decoder parameters
+ * \brief   configure decoder parameters
  */
 int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpParam);
 
 /*!
  *************************************************************************************
- * \brief	Initialize Wels decoder parameters and memory
+ * \brief   Initialize Wels decoder parameters and memory
  *
- * \param 	pCtx	        input context to be initialized at first stage
+ * \param   pCtx            input context to be initialized at first stage
  * \param   pTraceHandle    handle for trace
  * \param   pLo             log info pointer
  *
- * \return	0 - successed
- * \return	1 - failed
+ * \return  0 - successed
+ * \return  1 - failed
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 int32_t WelsInitDecoder (PWelsDecoderContext pCtx, const bool bParseOnly, SLogContext* pLogCtx);
@@ -72,13 +72,13 @@
 
 /*!
  *************************************************************************************
- * \brief	Uninitialize Wels decoder parameters and memory
+ * \brief   Uninitialize Wels decoder parameters and memory
  *
- * \param 	pCtx	input context to be uninitialized at release stage
+ * \param   pCtx    input context to be uninitialized at release stage
  *
- * \return	NONE
+ * \return  NONE
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 void WelsEndDecoder (PWelsDecoderContext pCtx);
@@ -85,18 +85,18 @@
 
 /*!
  *************************************************************************************
- * \brief	First entrance to decoding core interface.
+ * \brief   First entrance to decoding core interface.
  *
- * \param 	pCtx	        decoder context
- * \param	pBufBs	        bit streaming buffer
- * \param	kBsLen	        size in bytes length of bit streaming buffer input
- * \param	ppDst	        picture payload data to be output
- * \param	pDstBufInfo	    buf information of ouput data
+ * \param   pCtx            decoder context
+ * \param   pBufBs          bit streaming buffer
+ * \param   kBsLen          size in bytes length of bit streaming buffer input
+ * \param   ppDst           picture payload data to be output
+ * \param   pDstBufInfo     buf information of ouput data
  *
- * \return	0 - successed
- * \return	1 - failed
+ * \return  0 - successed
+ * \return  1 - failed
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 
@@ -104,13 +104,13 @@
                       uint8_t** ppDst, SBufferInfo* pDstBufInfo, SParserBsInfo* pDstBsInfo);
 
 /*
- *	request memory blocks for decoder avc part
+ *  request memory blocks for decoder avc part
  */
 int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight);
 
 
 /*
- *	free memory blocks in avc
+ *  free memory blocks in avc
  */
 void WelsFreeMem (PWelsDecoderContext pCtx);
 
@@ -120,13 +120,13 @@
 int32_t DecoderSetCsp (PWelsDecoderContext pCtx, const int32_t kiColorFormat);
 
 /*!
- * \brief	make sure synchonozization picture resolution (get from slice header) among different parts (i.e, memory related and so on)
- *			over decoder internal
+ * \brief   make sure synchonozization picture resolution (get from slice header) among different parts (i.e, memory related and so on)
+ *          over decoder internal
  * ( MB coordinate and parts of data within decoder context structure )
- * \param	pCtx		Wels decoder context
- * \param	iMbWidth	MB width
- * \pram	iMbHeight	MB height
- * \return	0 - successful; none 0 - something wrong
+ * \param   pCtx        Wels decoder context
+ * \param   iMbWidth    MB width
+ * \pram    iMbHeight   MB height
+ * \return  0 - successful; none 0 - something wrong
  */
 int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight);
 
--- a/codec/decoder/core/inc/decoder_context.h
+++ b/codec/decoder/core/inc/decoder_context.h
@@ -127,7 +127,7 @@
 //#endif//__cplusplus
 
 /*
- *	Need move below structures to function pointer to seperate module/file later
+ *  Need move below structures to function pointer to seperate module/file later
  */
 
 //typedef int32_t (*rec_mb) (Mb *cur_mb, PWelsDecoderContext pCtx);
@@ -226,7 +226,7 @@
 };
 
 /*
- *	SWelsDecoderContext: to maintail all modules data over decoder@framework
+ *  SWelsDecoderContext: to maintail all modules data over decoder@framework
  */
 
 typedef struct TagWelsDecoderContext {
--- a/codec/decoder/core/inc/decoder_core.h
+++ b/codec/decoder/core/inc/decoder_core.h
@@ -52,7 +52,7 @@
  * InitBsBuffer
  * Memory allocation for Bitstream Buffer
  * return:
- *	0 - success; otherwise returned error_no defined in error_no.h.
+ *  0 - success; otherwise returned error_no defined in error_no.h.
  */
 int32_t InitBsBuffer (PWelsDecoderContext pCtx);
 
@@ -61,7 +61,7 @@
  * Expand current BS buffer and copy its content
  * new buffer size will consider input size as a reference
  * return:
- *	0 - success; otherwise returned error_no defined in error_no.h.
+ *  0 - success; otherwise returned error_no defined in error_no.h.
  */
 int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int32_t kiSrcLen);
 
@@ -77,7 +77,7 @@
  * Especially for:
  * rbsp_au_buffer, cur_dq_layer_ptr and ref_dq_layer_ptr in MB info cache.
  * return:
- *	0 - success; otherwise returned error_no defined in error_no.h.
+ *  0 - success; otherwise returned error_no defined in error_no.h.
  */
 int32_t WelsInitMemory (PWelsDecoderContext pCtx);
 
@@ -89,33 +89,33 @@
 void WelsFreeMemory (PWelsDecoderContext pCtx);
 
 /*!
- * \brief	request memory when maximal picture width and height are available
+ * \brief   request memory when maximal picture width and height are available
  */
 int32_t InitialDqLayersContext (PWelsDecoderContext pCtx, const int32_t kiMaxWidth, const int32_t kiMaxHeight);
 
 /*!
- * \brief	free dq layer context memory related
+ * \brief   free dq layer context memory related
  */
 void UninitialDqLayersContext (PWelsDecoderContext pCtx);
 
 /*
- *	DecodeNalHeaderExt
- *	Trigger condition: NAL_UNIT_TYPE = NAL_UNIT_PREFIX or NAL_UNIT_CODED_SLICE_EXT
- *	Parameter:
- *	pNal:	target NALUnit ptr
- *	pSrc:	NAL Unit bitstream
+ *  DecodeNalHeaderExt
+ *  Trigger condition: NAL_UNIT_TYPE = NAL_UNIT_PREFIX or NAL_UNIT_CODED_SLICE_EXT
+ *  Parameter:
+ *  pNal:   target NALUnit ptr
+ *  pSrc:   NAL Unit bitstream
  */
 void DecodeNalHeaderExt (PNalUnit pNal, uint8_t* pSrc);
 
 /*
- *	ParseSliceHeaderSyntaxs
- *	Parse slice header of bitstream
+ *  ParseSliceHeaderSyntaxs
+ *  Parse slice header of bitstream
  */
 int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool kbExtensionFlag);
 /*
- *	Copy relative syntax elements of NALUnitHeaderExt, sRefPicBaseMarking and bStoreRefBasePicFlag in prefix nal unit.
- *	pSrc:	mark as decoded prefix NAL
- *	pDst:	succeeded VCL NAL based AVC (I/P Slice)
+ *  Copy relative syntax elements of NALUnitHeaderExt, sRefPicBaseMarking and bStoreRefBasePicFlag in prefix nal unit.
+ *  pSrc:   mark as decoded prefix NAL
+ *  pDst:   succeeded VCL NAL based AVC (I/P Slice)
  */
 bool PrefetchNalHeaderExtSyntax (PWelsDecoderContext pCtx, PNalUnit const kpDst, PNalUnit const kpSrc);
 
@@ -125,12 +125,12 @@
  * construct an access unit for given input bitstream, maybe partial NAL Unit, one or more Units are involved to
  * joint a collective access unit.
  * parameter\
- *	buf:		bitstream data buffer
- *	bit_len:	size in bit length of data
- *	buf_len:	size in byte length of data
- *	coded_au:	mark an Access Unit decoding finished
+ *  buf:        bitstream data buffer
+ *  bit_len:    size in bit length of data
+ *  buf_len:    size in byte length of data
+ *  coded_au:   mark an Access Unit decoding finished
  * return:
- *	0 - success; otherwise returned error_no defined in error_no.h
+ *  0 - success; otherwise returned error_no defined in error_no.h
  */
 int32_t ConstructAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstInfo);
 
@@ -146,7 +146,7 @@
  */
 bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** pDst, SBufferInfo* pDstInfo);
 /*
- *	Prepare current dq layer context initialization.
+ *  Prepare current dq layer context initialization.
  */
 void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pSps, PPps pPps);
 
--- a/codec/decoder/core/inc/error_code.h
+++ b/codec/decoder/core/inc/error_code.h
@@ -43,12 +43,12 @@
 namespace WelsDec {
 
 typedef enum TagWelsErr {
-ERR_NONE				= 0,
-ERR_INVALID_PARAMETERS	= 1,
-ERR_MALLOC_FAILED		= 2,
-ERR_API_FAILED			= 3,
+ERR_NONE                = 0,
+ERR_INVALID_PARAMETERS  = 1,
+ERR_MALLOC_FAILED       = 2,
+ERR_API_FAILED          = 3,
 
-ERR_BOUND				= 31
+ERR_BOUND               = 31
 } EWelsErr;
 
 /*
@@ -75,12 +75,12 @@
 
 /* More detailed error information, maximal value is 65535 */
 //-----------------------------------------------------------------------------------------------------------
-#define ERR_INFO_COMMON_BASE		1
-#define ERR_INFO_SYNTAX_BASE		1001
-#define ERR_INFO_LOGIC_BASE		10001
+#define ERR_INFO_COMMON_BASE        1
+#define ERR_INFO_SYNTAX_BASE        1001
+#define ERR_INFO_LOGIC_BASE         10001
 enum {
 /* Error from common system level: 1-1000 */
-ERR_INFO_OUT_OF_MEMORY		= ERR_INFO_COMMON_BASE,
+ERR_INFO_OUT_OF_MEMORY      = ERR_INFO_COMMON_BASE,
 ERR_INFO_INVALID_ACCESS,
 ERR_INFO_INVALID_PTR,
 ERR_INFO_INVALID_PARAM,
@@ -93,9 +93,9 @@
 ERR_INFO_READ_OVERFLOW,
 ERR_INFO_READ_LEADING_ZERO,
 /* Error from H.264 syntax elements parser: 1001-10000 */
-ERR_INFO_NO_PREFIX_CODE		= ERR_INFO_SYNTAX_BASE,	// No start prefix code indication
-ERR_INFO_NO_PARAM_SETS, 					// No SPS and/ PPS before sequence header
-ERR_INFO_PARAM_SETS_NOT_INTEGRATED,			// Parameters sets (sps/pps) are not integrated at all before to decode VCL nal
+ERR_INFO_NO_PREFIX_CODE         = ERR_INFO_SYNTAX_BASE, // No start prefix code indication
+ERR_INFO_NO_PARAM_SETS,                                 // No SPS and/ PPS before sequence header
+ERR_INFO_PARAM_SETS_NOT_INTEGRATED,                     // Parameters sets (sps/pps) are not integrated at all before to decode VCL nal
 ERR_INFO_SPS_ID_OVERFLOW,
 ERR_INFO_PPS_ID_OVERFLOW,
 ERR_INFO_INVALID_PROFILE_IDC,
@@ -179,7 +179,7 @@
 ERR_INFO_INVALID_REF_REORDERING,
 
 /* Error from corresponding logic, 10001-65535 */
-ERR_INFO_NO_IDR_PIC		= ERR_INFO_LOGIC_BASE,	// NO IDR picture available before sequence header
+ERR_INFO_NO_IDR_PIC             = ERR_INFO_LOGIC_BASE,  // NO IDR picture available before sequence header
 ERR_INFO_EC_NO_NEIGHBOUR_MBS,
 ERR_INFO_EC_UNEXPECTED_MB_TYPE,
 ERR_INFO_EC_NO_ENOUGH_NEIGHBOUR_MBS,
--- a/codec/decoder/core/inc/fmo.h
+++ b/codec/decoder/core/inc/fmo.h
@@ -51,7 +51,7 @@
 #endif//MB_XY_T
 
 /*!
- * \brief	Wels Flexible Macroblock Ordering (FMO)
+ * \brief   Wels Flexible Macroblock Ordering (FMO)
  */
 typedef struct TagFmo {
 uint8_t*		pMbAllocMap;
@@ -64,47 +64,47 @@
 
 
 /*!
- * \brief	Initialize Wels Flexible Macroblock Ordering (FMO)
+ * \brief   Initialize Wels Flexible Macroblock Ordering (FMO)
  *
- * \param	pFmo		Wels fmo to be initialized
- * \param	pPps		PPps
- * \param	kiMbWidth	mb width
- * \param	kiMbHeight	mb height
+ * \param   pFmo        Wels fmo to be initialized
+ * \param   pPps        PPps
+ * \param   kiMbWidth   mb width
+ * \param   kiMbHeight  mb height
  *
- * \return	0 - successful; none 0 - failed;
+ * \return  0 - successful; none 0 - failed;
  */
 int32_t	InitFmo (PFmo pFmo, PPps pPps, const int32_t kiMbWidth, const int32_t kiMbHeight);
 
 /*!
- * \brief	Uninitialize Wels Flexible Macroblock Ordering (FMO) list
+ * \brief   Uninitialize Wels Flexible Macroblock Ordering (FMO) list
  *
- * \param	pFmo		Wels base fmo ptr to be uninitialized
- * \param	kiCnt		count number of PPS per list
- * \param	kiAvail		count available number of PPS in list
+ * \param   pFmo        Wels base fmo ptr to be uninitialized
+ * \param   kiCnt       count number of PPS per list
+ * \param   kiAvail     count available number of PPS in list
  *
- * \return	NONE
+ * \return  NONE
  */
 void UninitFmoList (PFmo pFmo, const int32_t kiCnt, const int32_t kiAvail);
 
 /*!
- * \brief	update/insert FMO parameter unit
+ * \brief   update/insert FMO parameter unit
  *
- * \param	pFmo	FMO context
- * \param	pSps	PSps
- * \param	pPps	PPps
- * \param	pActiveFmoNum	int32_t* [in/out]
+ * \param   pFmo    FMO context
+ * \param   pSps    PSps
+ * \param   pPps    PPps
+ * \param   pActiveFmoNum   int32_t* [in/out]
  *
- * \return	true - update/insert successfully; false - failed;
+ * \return  true - update/insert successfully; false - failed;
  */
 bool FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum);
 
 /*!
- * \brief	Get successive mb to be processed with given current mb_xy
+ * \brief   Get successive mb to be processed with given current mb_xy
  *
- * \param	pFmo			Wels fmo context
- * \param	iMbXy			current mb_xy
+ * \param   pFmo            Wels fmo context
+ * \param   iMbXy           current mb_xy
  *
- * \return	iNextMb - successful; -1 - failed;
+ * \return  iNextMb - successful; -1 - failed;
  */
 MB_XY_T FmoNextMb (PFmo pFmo, const MB_XY_T kiMbXy);
 
--- a/codec/decoder/core/inc/mb_cache.h
+++ b/codec/decoder/core/inc/mb_cache.h
@@ -42,15 +42,15 @@
 #define REF_NOT_IN_LIST  -1  //intra
 
 /*
- *	MB Cache information, such one cache should be defined within a slice
+ *  MB Cache information, such one cache should be defined within a slice
  */
 /*
- * Cache for Luma				Cache for Chroma(Cb, Cr)
+ * Cache for Luma               Cache for Chroma(Cb, Cr)
  *
- *	TL T T T T					TL T T
- *	 L - - - -					 L - -
- *	 L - - - -					 L - - TR
- *	 L - - - -
+ *  TL T T T T                  TL T T
+ *   L - - - -                   L - -
+ *   L - - - -                   L - - TR
+ *   L - - - -
  *   L - - - - TR
  *
  */
--- a/codec/decoder/core/inc/memmgr_nal_unit.h
+++ b/codec/decoder/core/inc/memmgr_nal_unit.h
@@ -52,9 +52,9 @@
 int32_t MemFreeNalList (PAccessUnit* ppAu);
 
 /*
- *	MemGetNextNal
- *	Get next NAL Unit for using.
- *	Need expand NAL Unit list if exceeding count number of available NAL Units withing an Access Unit
+ *  MemGetNextNal
+ *  Get next NAL Unit for using.
+ *  Need expand NAL Unit list if exceeding count number of available NAL Units withing an Access Unit
  */
 PNalUnit MemGetNextNal (PAccessUnit* ppAu);
 
--- a/codec/decoder/core/inc/mv_pred.h
+++ b/codec/decoder/core/inc/mv_pred.h
@@ -46,7 +46,7 @@
 namespace WelsDec {
 
 /*!
-* \brief	 update mv and ref_index cache for current MB, only for P_16x16 (SKIP inclusive)
+* \brief     update mv and ref_index cache for current MB, only for P_16x16 (SKIP inclusive)
 * \param
 * \param
 */
@@ -63,7 +63,7 @@
 
 
 /*!
- * \brief	 update mv and ref_index cache for current MB, only for P_8x16
+ * \brief    update mv and ref_index cache for current MB, only for P_8x16
  * \param
  * \param
  */
@@ -74,7 +74,7 @@
 /*!
  * \brief   get the motion predictor for skip mode
  * \param
- * \param 	output iMvp[]
+ * \param   output iMvp[]
  */
 void PredPSkipMvFromNeighbor (PDqLayer pCurLayer, int16_t iMvp[2]);
 
@@ -81,7 +81,7 @@
 /*!
  * \brief   get the motion predictor for 4*4 or 8*8 or 16*16 block
  * \param
- * \param 	output iMvp[]
+ * \param   output iMvp[]
  */
 void PredMv (int16_t iMotionVector[LIST_A][30][MV_A], int8_t iRefIndex[LIST_A][30],
              int32_t iPartIdx, int32_t iPartWidth, int8_t iRef, int16_t iMVP[2]);
@@ -89,7 +89,7 @@
 /*!
  * \brief   get the motion predictor for inter16x8 MB
  * \param
- * \param 	output mvp_x and mvp_y
+ * \param   output mvp_x and mvp_y
  */
 void PredInter16x8Mv (int16_t iMotionVector[LIST_A][30][MV_A], int8_t iRefIndex[LIST_A][30],
                       int32_t iPartIdx, int8_t iRef, int16_t iMVP[2]);
@@ -97,7 +97,7 @@
 /*!
  * \brief   get the motion predictor for inter8x16 MB
  * \param
- * \param 	output mvp_x and mvp_y
+ * \param   output mvp_x and mvp_y
  */
 void PredInter8x16Mv (int16_t iMotionVector[LIST_A][30][MV_A], int8_t iRefIndex[LIST_A][30],
                       int32_t iPartIdx, int8_t iRef, int16_t iMVP[2]);
--- a/codec/decoder/core/inc/pic_queue.h
+++ b/codec/decoder/core/inc/pic_queue.h
@@ -49,7 +49,7 @@
 } SPicBuff, *PPicBuff;
 
 /*
- *	Interfaces
+ *  Interfaces
  */
 
 PPicture PrefetchPic (PPicBuff pPicBuff);  // To get current node applicable
--- a/codec/decoder/core/inc/picture.h
+++ b/codec/decoder/core/inc/picture.h
@@ -39,8 +39,8 @@
 namespace WelsDec {
 
 /*
- *	Reconstructed Picture definition
- *	It is used to express reference picture, also consequent reconstruction picture for output
+ *  Reconstructed Picture definition
+ *  It is used to express reference picture, also consequent reconstruction picture for output
  */
 typedef struct TagPicture {
 /************************************payload data*********************************/
--- a/codec/decoder/core/inc/slice.h
+++ b/codec/decoder/core/inc/slice.h
@@ -43,7 +43,7 @@
 namespace WelsDec {
 
 /*
- *	Reference picture list reordering syntax, refer to page 64 in JVT X201wcm
+ *  Reference picture list reordering syntax, refer to page 64 in JVT X201wcm
  */
 typedef struct TagRefPicListReorderSyntax {
 struct {
@@ -55,7 +55,7 @@
 } SRefPicListReorderSyn, *PRefPicListReorderSyn;
 
 /*
- *	Prediction weight table syntax, refer to page 65 in JVT X201wcm
+ *  Prediction weight table syntax, refer to page 65 in JVT X201wcm
  */
 typedef struct TagPredWeightTabSyntax {
 uint32_t	uiLumaLog2WeightDenom;
--- a/codec/decoder/core/inc/wels_const.h
+++ b/codec/decoder/core/inc/wels_const.h
@@ -38,25 +38,25 @@
 
 /* Some list size */
 
-#define MB_SUB_PARTITION_SIZE	4	// Sub partition size in a 8x8 sub-block
-#define NAL_UNIT_HEADER_EXT_SIZE	3	// Size of NAL unit header for extension in byte
-#define MAX_PPS_COUNT                   256	// Count number of PPS
+#define MB_SUB_PARTITION_SIZE           4       // Sub partition size in a 8x8 sub-block
+#define NAL_UNIT_HEADER_EXT_SIZE        3       // Size of NAL unit header for extension in byte
+#define MAX_PPS_COUNT                   256     // Count number of PPS
 
-#define MAX_REF_PIC_COUNT		16		// MAX Short + Long reference pictures
-#define MIN_REF_PIC_COUNT		1		// minimal count number of reference pictures, 1 short + 2 key reference based?
-#define MAX_SHORT_REF_COUNT		16		// maximal count number of short reference pictures
-#define MAX_LONG_REF_COUNT		16		// maximal count number of long reference pictures
+#define MAX_REF_PIC_COUNT               16              // MAX Short + Long reference pictures
+#define MIN_REF_PIC_COUNT               1               // minimal count number of reference pictures, 1 short + 2 key reference based?
+#define MAX_SHORT_REF_COUNT             16              // maximal count number of short reference pictures
+#define MAX_LONG_REF_COUNT              16              // maximal count number of long reference pictures
 
-#define MAX_MMCO_COUNT			66
+#define MAX_MMCO_COUNT                  66
 
-#define MAX_SLICEGROUP_IDS		8	// Count number of Slice Groups
+#define MAX_SLICEGROUP_IDS              8       // Count number of Slice Groups
 
-#define MAX_LAYER_NUM   8
+#define MAX_LAYER_NUM                   8
 
-#define LAYER_NUM_EXCHANGEABLE	1
+#define LAYER_NUM_EXCHANGEABLE          1
 
-#define MAX_NAL_UNIT_NUM_IN_AU	32	// predefined maximal number of NAL Units in an access unit
-#define MIN_ACCESS_UNIT_CAPACITY	1048576	// Min AU capacity in bytes: (1<<20) = 1024 KB predefined
+#define MAX_NAL_UNIT_NUM_IN_AU          32      // predefined maximal number of NAL Units in an access unit
+#define MIN_ACCESS_UNIT_CAPACITY        1048576 // Min AU capacity in bytes: (1<<20) = 1024 KB predefined
 #define MAX_BUFFERED_NUM 3 //mamixum stored number of AU|packet to prevent overwrite
 #define MAX_ACCESS_UNIT_CAPACITY 7077888 //Maximum AU size in bytes for level 5.2 for single frame
 #define MAX_MACROBLOCK_CAPACITY 5000 //Maximal legal MB capacity, 15000 bits is enough
--- a/codec/decoder/core/src/au_parser.cpp
+++ b/codec/decoder/core/src/au_parser.cpp
@@ -49,16 +49,16 @@
 namespace WelsDec {
 /*!
  *************************************************************************************
- * \brief	Start Code Prefix (0x 00 00 00 01) detection
+ * \brief   Start Code Prefix (0x 00 00 00 01) detection
  *
- * \param 	pBuf		bitstream payload buffer
- * \param	pOffset		offset between NAL rbsp and original bitsteam that
- * 				start code prefix is seperated from.
- * \param	iBufSize	count size of buffer
+ * \param   pBuf        bitstream payload buffer
+ * \param   pOffset     offset between NAL rbsp and original bitsteam that
+ *                      start code prefix is seperated from.
+ * \param   iBufSize    count size of buffer
  *
- * \return	RBSP buffer of start code prefix exclusive
+ * \return  RBSP buffer of start code prefix exclusive
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 uint8_t* DetectStartCodePrefix (const uint8_t* kpBuf, int32_t* pOffset, int32_t iBufSize) {
@@ -88,19 +88,19 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse nal unit
+ * \brief   to parse nal unit
  *
- * \param	pCtx		    decoder context
- * \param 	pNalUnitHeader	parsed result of NAL Unit Header to output
+ * \param   pCtx            decoder context
+ * \param   pNalUnitHeader  parsed result of NAL Unit Header to output
  * \param   pSrcRbsp        bitstream buffer to input
  * \param   iSrcRbspLen     length size of bitstream buffer payload
- * \param	pSrcNal
- * \param	iSrcNalLen
- * \param	pConsumedBytes	consumed bytes during parsing
+ * \param   pSrcNal
+ * \param   iSrcNalLen
+ * \param   pConsumedBytes  consumed bytes during parsing
  *
- * \return	decoded bytes payload, might be (pSrcRbsp+1) if no escapes
+ * \return  decoded bytes payload, might be (pSrcRbsp+1) if no escapes
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeader, uint8_t* pSrcRbsp,
@@ -563,14 +563,14 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse NON VCL NAL Units
+ * \brief   to parse NON VCL NAL Units
  *
- * \param 	pCtx		decoder context
- * \param	rbsp		rbsp buffer of NAL Unit
- * \param	src_len		length of rbsp buffer
+ * \param   pCtx        decoder context
+ * \param   rbsp        rbsp buffer of NAL Unit
+ * \param   src_len     length of rbsp buffer
  *
- * \return	0 - successed
- *	    	1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
  *************************************************************************************
  */
@@ -887,17 +887,17 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse Sequence Parameter Set (SPS)
+ * \brief   to parse Sequence Parameter Set (SPS)
  *
- * \param	pCtx		Decoder context
- * \param	pBsAux		bitstream reader auxiliary
- * \param	pPicWidth	picture width current Sps represented
- * \param	pPicHeight	picture height current Sps represented
+ * \param   pCtx        Decoder context
+ * \param   pBsAux      bitstream reader auxiliary
+ * \param   pPicWidth   picture width current Sps represented
+ * \param   pPicHeight  picture height current Sps represented
  *
- * \return	0 - successed
- *		1 - failed
+ * \return  0 - successed
+ *      1 - failed
  *
- * \note	Call it in case eNalUnitType is SPS.
+ * \note    Call it in case eNalUnitType is SPS.
  *************************************************************************************
  */
 
@@ -1263,16 +1263,16 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse Picture Parameter Set (PPS)
+ * \brief   to parse Picture Parameter Set (PPS)
  *
- * \param	pCtx		Decoder context
- * \param 	pPpsList	pps list
- * \param	pBsAux		bitstream reader auxiliary
+ * \param   pCtx        Decoder context
+ * \param   pPpsList    pps list
+ * \param   pBsAux      bitstream reader auxiliary
  *
- * \return	0 - successed
- *		1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case eNalUnitType is PPS.
+ * \note    Call it in case eNalUnitType is PPS.
  *************************************************************************************
  */
 int32_t ParsePps (PWelsDecoderContext pCtx, PPps pPpsList, PBitStringAux pBsAux, uint8_t* pSrcNal,
@@ -1440,15 +1440,15 @@
 
 /*!
  *************************************************************************************
- * \brief	to parse SEI message payload
+ * \brief   to parse SEI message payload
  *
- * \param 	pSei		sei message to be parsed output
- * \param	pBsAux		bitstream reader auxiliary
+ * \param   pSei        sei message to be parsed output
+ * \param   pBsAux      bitstream reader auxiliary
  *
- * \return	0 - successed
- *		1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case eNalUnitType is NAL_UNIT_SEI.
+ * \note    Call it in case eNalUnitType is NAL_UNIT_SEI.
  *************************************************************************************
  */
 int32_t ParseSei (void* pSei, PBitStringAux pBsAux) {	// reserved Sei_Msg type
@@ -1458,15 +1458,15 @@
 }
 /*
  *************************************************************************************
- * \brief	to parse scalinglist message payload
+ * \brief   to parse scalinglist message payload
  *
- * \param	pps sps scaling list matrix		 message to be parsed output
- * \param	pBsAux		bitstream reader auxiliary
+ * \param   pps sps scaling list matrix      message to be parsed output
+ * \param   pBsAux      bitstream reader auxiliary
  *
- * \return	0 - successed
- *		1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case scaling list matrix present at sps or pps level
+ * \note    Call it in case scaling list matrix present at sps or pps level
  *************************************************************************************
  */
 int32_t SetScalingListValue (uint8_t* pScalingList, int iScalingListNum, bool* bUseDefaultScalingMatrixFlag,
@@ -1561,11 +1561,11 @@
 
 /*!
  *************************************************************************************
- * \brief	reset fmo list due to got Sps now
+ * \brief   reset fmo list due to got Sps now
  *
- * \param	pCtx	decoder context
+ * \param   pCtx    decoder context
  *
- * \return	count number of fmo context units are reset
+ * \return  count number of fmo context units are reset
  *************************************************************************************
  */
 int32_t ResetFmoList (PWelsDecoderContext pCtx) {
--- a/codec/decoder/core/src/bit_stream.cpp
+++ b/codec/decoder/core/src/bit_stream.cpp
@@ -59,13 +59,13 @@
 }
 
 /*!
- * \brief	input bits for decoder or initialize bitstream writing in encoder
+ * \brief   input bits for decoder or initialize bitstream writing in encoder
  *
- * \param	pBitString	Bit string auxiliary pointer
- * \param	kpBuf		bit-stream buffer
- * \param	kiSize	    size in bits for decoder; size in bytes for encoder
+ * \param   pBitString  Bit string auxiliary pointer
+ * \param   kpBuf       bit-stream buffer
+ * \param   kiSize      size in bits for decoder; size in bytes for encoder
  *
- * \return	0: success, other: fail
+ * \return  0: success, other: fail
  */
 int32_t DecInitBits (PBitStringAux pBitString, const uint8_t* kpBuf, const int32_t kiSize) {
   const int32_t kiSizeBuf = (kiSize + 7) >> 3;
--- a/codec/decoder/core/src/deblocking.cpp
+++ b/codec/decoder/core/src/deblocking.cpp
@@ -863,11 +863,11 @@
 }
 
 /*!
- * \brief	AVC slice deblocking filtering target layer
+ * \brief   AVC slice deblocking filtering target layer
  *
- * \param	dec			Wels avc decoder context
+ * \param   dec         Wels avc decoder context
  *
- * \return	NONE
+ * \return  NONE
  */
 void WelsDeblockingFilterSlice (PWelsDecoderContext pCtx, PDeblockingFilterMbFunc pDeblockMb) {
   PDqLayer pCurDqLayer = pCtx->pCurDqLayer;
@@ -932,12 +932,12 @@
   }
 }
 /*!
- * \brief	deblocking module initialize
+ * \brief   deblocking module initialize
  *
- * \param	pf
+ * \param   pf
  *          cpu
  *
- * \return	NONE
+ * \return  NONE
  */
 
 void  DeblockingInit (SDeblockingFunc*  pFunc,  int32_t iCpu) {
--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -323,12 +323,12 @@
 }
 
 /*
- *	destory_mb_blocks
+ *  destory_mb_blocks
  */
 
 
 /*
- *	get size of reference picture list in target layer incoming, = (iNumRefFrames
+ *  get size of reference picture list in target layer incoming, = (iNumRefFrames
  */
 static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {
   int32_t iNumRefFrames	= 0;
@@ -350,7 +350,7 @@
 }
 
 /*
- *	request memory blocks for decoder avc part
+ *  request memory blocks for decoder avc part
  */
 int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) {
   const int32_t kiPicWidth	= kiMbWidth << 4;
@@ -431,7 +431,7 @@
 }
 
 /*
- *	free memory blocks in avc
+ *  free memory blocks in avc
  */
 void WelsFreeMem (PWelsDecoderContext pCtx) {
   int32_t iListIdx = 0;
@@ -460,7 +460,7 @@
 }
 
 /*!
- * \brief	Open decoder
+ * \brief   Open decoder
  */
 int32_t WelsOpenDecoder (PWelsDecoderContext pCtx) {
   // function pointers
@@ -492,7 +492,7 @@
 }
 
 /*!
- * \brief	Close decoder
+ * \brief   Close decoder
  */
 void WelsCloseDecoder (PWelsDecoderContext pCtx) {
   WelsFreeMem (pCtx);
@@ -511,7 +511,7 @@
 }
 
 /*!
- * \brief	configure decoder parameters
+ * \brief   configure decoder parameters
  */
 int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpParam) {
   if (NULL == pCtx || NULL == kpParam)
@@ -549,14 +549,14 @@
 
 /*!
  *************************************************************************************
- * \brief	Initialize Wels decoder parameters and memory
+ * \brief   Initialize Wels decoder parameters and memory
  *
- * \param 	pCtx input context to be initialized at first stage
+ * \param   pCtx input context to be initialized at first stage
  *
- * \return	0 - successed
- * \return	1 - failed
+ * \return  0 - successed
+ * \return  1 - failed
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 int32_t WelsInitDecoder (PWelsDecoderContext pCtx, const bool bParseOnly, SLogContext* pLogCtx) {
@@ -574,13 +574,13 @@
 
 /*!
  *************************************************************************************
- * \brief	Uninitialize Wels decoder parameters and memory
+ * \brief   Uninitialize Wels decoder parameters and memory
  *
- * \param 	pCtx input context to be uninitialized at release stage
+ * \param   pCtx input context to be uninitialized at release stage
  *
- * \return	NONE
+ * \return  NONE
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 void WelsEndDecoder (PWelsDecoderContext pCtx) {
@@ -598,18 +598,18 @@
 
 /*!
  *************************************************************************************
- * \brief	First entrance to decoding core interface.
+ * \brief   First entrance to decoding core interface.
  *
- * \param 	pCtx	        decoder context
- * \param	pBufBs	        bit streaming buffer
- * \param	kBsLen	        size in bytes length of bit streaming buffer input
- * \param	ppDst	        picture payload data to be output
- * \param	pDstBufInfo	    buf information of ouput data
+ * \param   pCtx            decoder context
+ * \param   pBufBs          bit streaming buffer
+ * \param   kBsLen          size in bytes length of bit streaming buffer input
+ * \param   ppDst           picture payload data to be output
+ * \param   pDstBufInfo     buf information of ouput data
  *
- * \return	0 - successed
- * \return	1 - failed
+ * \return  0 - successed
+ * \return  1 - failed
  *
- * \note	N/A
+ * \note    N/A
  *************************************************************************************
  */
 int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const int32_t kiBsLen,
@@ -807,13 +807,13 @@
 }
 
 /*!
- * \brief	make sure synchonozization picture resolution (get from slice header) among different parts (i.e, memory related and so on)
- *			over decoder internal
+ * \brief   make sure synchonozization picture resolution (get from slice header) among different parts (i.e, memory related and so on)
+ *          over decoder internal
  * ( MB coordinate and parts of data within decoder context structure )
- * \param	pCtx		Wels decoder context
- * \param	iMbWidth	MB width
- * \pram	iMbHeight	MB height
- * \return	0 - successful; none 0 - something wrong
+ * \param   pCtx        Wels decoder context
+ * \param   iMbWidth    MB width
+ * \pram    iMbHeight   MB height
+ * \return  0 - successful; none 0 - something wrong
  */
 int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) {
   int32_t iErr = ERR_NONE;
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -315,7 +315,7 @@
 }
 
 /*
- *	Predeclared function routines ..
+ *  Predeclared function routines ..
  */
 int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) {
   int32_t iList = 0;
@@ -538,7 +538,7 @@
  * Especially for:
  * rbsp_au_buffer, cur_dq_layer_ptr and ref_dq_layer_ptr in MB info cache.
  * return:
- *	0 - success; otherwise returned error_no defined in error_no.h.
+ *  0 - success; otherwise returned error_no defined in error_no.h.
 */
 int32_t WelsInitMemory (PWelsDecoderContext pCtx) {
   if (pCtx == NULL) {
@@ -600,11 +600,11 @@
   }
 }
 /*
- *	DecodeNalHeaderExt
- *	Trigger condition: NAL_UNIT_TYPE = NAL_UNIT_PREFIX or NAL_UNIT_CODED_SLICE_EXT
- *	Parameter:
- *	pNal:	target NALUnit ptr
- *	pSrc:	NAL Unit bitstream
+ *  DecodeNalHeaderExt
+ *  Trigger condition: NAL_UNIT_TYPE = NAL_UNIT_PREFIX or NAL_UNIT_CODED_SLICE_EXT
+ *  Parameter:
+ *  pNal:   target NALUnit ptr
+ *  pSrc:   NAL Unit bitstream
  */
 void DecodeNalHeaderExt (PNalUnit pNal, uint8_t* pSrc) {
   PNalUnitHeaderExt pHeaderExt = &pNal->sNalHeaderExt;
@@ -636,8 +636,8 @@
 #define MAX_NUM_REF_IDX_L0_ACTIVE_MINUS1 15
 #define SLICE_HEADER_CABAC_INIT_IDC_MAX 2
 /*
- *	decode_slice_header_avc
- *	Parse slice header of bitstream in avc for storing data structure
+ *  decode_slice_header_avc
+ *  Parse slice header of bitstream in avc for storing data structure
  */
 int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool kbExtensionFlag) {
   PNalUnit const kpCurNal				= pCtx->pAccessUnitList->pNalUnitsList[pCtx->pAccessUnitList->uiAvailUnitsNum - 1];
@@ -1108,9 +1108,9 @@
 }
 
 /*
- *	Copy relative syntax elements of NALUnitHeaderExt, sRefPicBaseMarking and bStoreRefBasePicFlag in prefix nal unit.
- *	pSrc:	mark as decoded prefix NAL
- *	ppDst:	succeeded VCL NAL based AVC (I/P Slice)
+ *  Copy relative syntax elements of NALUnitHeaderExt, sRefPicBaseMarking and bStoreRefBasePicFlag in prefix nal unit.
+ *  pSrc:   mark as decoded prefix NAL
+ *  ppDst:  succeeded VCL NAL based AVC (I/P Slice)
  */
 bool PrefetchNalHeaderExtSyntax (PWelsDecoderContext pCtx, PNalUnit const kppDst, PNalUnit const kpSrc) {
   PNalUnitHeaderExt pNalHdrExtD	= NULL, pNalHdrExtS = NULL;
@@ -1507,9 +1507,9 @@
 }
 
 /*!
- * \brief	Force reset current Acess Unit Nal list in case error parsing/decoding in current AU
+ * \brief   Force reset current Acess Unit Nal list in case error parsing/decoding in current AU
  * \author
- * \history	11/16/2009
+ * \history 11/16/2009
  */
 void ForceResetCurrentAccessUnit (PAccessUnit pAu) {
   uint32_t uiSucAuIdx	= pAu->uiEndPos + 1;
@@ -1929,12 +1929,12 @@
  * construct an access unit for given input bitstream, maybe partial NAL Unit, one or more Units are involved to
  * joint a collective access unit.
  * parameter\
- *	buf:		bitstream data buffer
- *	bit_len:	size in bit length of data
- *	buf_len:	size in byte length of data
- *	coded_au:	mark an Access Unit decoding finished
+ *  buf:        bitstream data buffer
+ *  bit_len:    size in bit length of data
+ *  buf_len:    size in byte length of data
+ *  coded_au:   mark an Access Unit decoding finished
  * return:
- *	0 - success; otherwise returned error_no defined in error_no.h
+ *  0 - success; otherwise returned error_no defined in error_no.h
  */
 int32_t ConstructAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstInfo) {
   int32_t iErr;
@@ -2152,7 +2152,7 @@
     memset (&pLayerInfo, 0, sizeof (SLayerInfo));
 
     /*
-     *	Loop decoding for slices (even FMO and/ multiple slices) within a dq layer
+     *  Loop decoding for slices (even FMO and/ multiple slices) within a dq layer
      */
     while (iIdx <= iEndIdx) {
       bool         bReconstructSlice;
--- a/codec/decoder/core/src/fmo.cpp
+++ b/codec/decoder/core/src/fmo.cpp
@@ -44,12 +44,12 @@
 namespace WelsDec {
 
 /*!
- * \brief	Generate MB allocated map for interleaved slice group (TYPE 0)
+ * \brief   Generate MB allocated map for interleaved slice group (TYPE 0)
  *
- * \param	pFmo	fmo context
- * \param	pPps	pps context
+ * \param   pFmo    fmo context
+ * \param   pPps    pps context
  *
- * \return	0 - successful; none 0 - failed
+ * \return  0 - successful; none 0 - failed
  */
 static inline int32_t FmoGenerateMbAllocMapType0 (PFmo pFmo, PPps pPps) {
   uint32_t uiNumSliceGroups = 0;
@@ -79,13 +79,13 @@
 }
 
 /*!
- * \brief	Generate MB allocated map for dispersed slice group (TYPE 1)
+ * \brief   Generate MB allocated map for dispersed slice group (TYPE 1)
  *
- * \param	pFmo	fmo context
- * \param	pPps	pps context
- * \param	iMbWidth	MB width
+ * \param   pFmo        fmo context
+ * \param   pPps        pps context
+ * \param   iMbWidth    MB width
  *
- * \return	0 - successful; none 0 - failed
+ * \return  0 - successful; none 0 - failed
  */
 static inline int32_t FmoGenerateMbAllocMapType1 (PFmo pFmo, PPps pPps, const int32_t kiMbWidth) {
   uint32_t uiNumSliceGroups = 0;
@@ -106,14 +106,14 @@
 }
 
 /*!
- * \brief	Generate MB allocated map for various type of slice group cases (TYPE 0, .., 6)
+ * \brief   Generate MB allocated map for various type of slice group cases (TYPE 0, .., 6)
  *
- * \param	pFmo		fmo context
- * \param	pPps		pps context
- * \param	kiMbWidth	MB width
- * \param	kiMbHeight	MB height
+ * \param   pFmo        fmo context
+ * \param   pPps        pps context
+ * \param   kiMbWidth   MB width
+ * \param   kiMbHeight  MB height
  *
- * \return	0 - successful; none 0 - failed
+ * \return  0 - successful; none 0 - failed
  */
 static inline int32_t FmoGenerateSliceGroup (PFmo pFmo, const PPps kpPps, const int32_t kiMbWidth,
     const int32_t kiMbHeight) {
@@ -177,14 +177,14 @@
 }
 
 /*!
- * \brief	Initialize Wels Flexible Macroblock Ordering (FMO)
+ * \brief   Initialize Wels Flexible Macroblock Ordering (FMO)
  *
- * \param	pFmo		Wels fmo to be initialized
- * \param	pPps	pps argument
- * \param	kiMbWidth	mb width
- * \param	kiMbHeight	mb height
+ * \param   pFmo        Wels fmo to be initialized
+ * \param   pPps        pps argument
+ * \param   kiMbWidth   mb width
+ * \param   kiMbHeight  mb height
  *
- * \return	0 - successful; none 0 - failed;
+ * \return  0 - successful; none 0 - failed;
  */
 int32_t	InitFmo (PFmo pFmo, PPps pPps, const int32_t kiMbWidth, const int32_t kiMbHeight) {
   return FmoGenerateSliceGroup (pFmo, pPps, kiMbWidth, kiMbHeight);
@@ -192,13 +192,13 @@
 
 
 /*!
- * \brief	Uninitialize Wels Flexible Macroblock Ordering (FMO) list
+ * \brief   Uninitialize Wels Flexible Macroblock Ordering (FMO) list
  *
- * \param	pFmo		Wels base fmo ptr to be uninitialized
- * \param	kiCnt		count number of PPS per list
- * \param	kiAvail		count available number of PPS in list
+ * \param   pFmo        Wels base fmo ptr to be uninitialized
+ * \param   kiCnt       count number of PPS per list
+ * \param   kiAvail     count available number of PPS in list
  *
- * \return	NONE
+ * \return  NONE
  */
 void UninitFmoList (PFmo pFmo, const int32_t kiCnt, const int32_t kiAvail) {
   PFmo pIter = pFmo;
@@ -229,14 +229,14 @@
 }
 
 /*!
- * \brief	detect parameter sets are changed or not
+ * \brief   detect parameter sets are changed or not
  *
- * \param	pFmo				fmo context
- * \param	kiCountNumMb		(iMbWidth * iMbHeight) in Sps
- * \param	iSliceGroupType	slice group type if fmo is exactly enabled
- * \param	iSliceGroupCount	slice group count if fmo is exactly enabled
+ * \param   pFmo                fmo context
+ * \param   kiCountNumMb        (iMbWidth * iMbHeight) in Sps
+ * \param   iSliceGroupType     slice group type if fmo is exactly enabled
+ * \param   iSliceGroupCount    slice group count if fmo is exactly enabled
  *
- * \return	true - changed or not initialized yet; false - not change at all
+ * \return  true - changed or not initialized yet; false - not change at all
  */
 bool FmoParamSetsChanged (PFmo pFmo, const int32_t kiCountNumMb, const int32_t kiSliceGroupType,
                           const int32_t kiSliceGroupCount) {
@@ -249,14 +249,14 @@
 }
 
 /*!
- * \brief	update/insert FMO parameter unit
+ * \brief   update/insert FMO parameter unit
  *
- * \param	_fmo	FMO context
- * \param	_sps	PSps
- * \param	_pps	PPps
- * \param	pActiveFmoNum	int32_t* [in/out]
+ * \param   _fmo    FMO context
+ * \param   _sps    PSps
+ * \param   _pps    PPps
+ * \param   pActiveFmoNum   int32_t* [in/out]
  *
- * \return	true - update/insert successfully; false - failed;
+ * \return  true - update/insert successfully; false - failed;
  */
 bool FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum) {
   const uint32_t kuiMbWidth = pSps->iMbWidth;
@@ -281,12 +281,12 @@
 }
 
 /*!
- * \brief	Convert kMbXy to slice group idc correspondingly
+ * \brief   Convert kMbXy to slice group idc correspondingly
  *
- * \param	pFmo		Wels fmo context
- * \param	kMbXy		kMbXy to be converted
+ * \param   pFmo        Wels fmo context
+ * \param   kMbXy       kMbXy to be converted
  *
- * \return	slice group idc - successful; -1 - failed;
+ * \return  slice group idc - successful; -1 - failed;
  */
 int32_t FmoMbToSliceGroup (PFmo pFmo, const MB_XY_T kiMbXy) {
   const int32_t kiMbNum	= pFmo->iCountMbNum;
@@ -299,12 +299,12 @@
 }
 
 /*!
- * \brief	Get successive mb to be processed with given current kMbXy
+ * \brief   Get successive mb to be processed with given current kMbXy
  *
- * \param	pFmo			Wels fmo context
- * \param	kMbXy			current kMbXy
+ * \param   pFmo            Wels fmo context
+ * \param   kMbXy           current kMbXy
  *
- * \return	iNextMb - successful; -1 - failed;
+ * \return  iNextMb - successful; -1 - failed;
  */
 MB_XY_T FmoNextMb (PFmo pFmo, const MB_XY_T kiMbXy) {
   const int32_t kiTotalMb			= pFmo->iCountMbNum;
--- a/codec/decoder/core/src/memmgr_nal_unit.cpp
+++ b/codec/decoder/core/src/memmgr_nal_unit.cpp
@@ -122,9 +122,9 @@
 }
 
 /*
- *	MemGetNextNal
- *	Get next NAL Unit for using.
- *	Need expand NAL Unit list if exceeding count number of available NAL Units withing an Access Unit
+ *  MemGetNextNal
+ *  Get next NAL Unit for using.
+ *  Need expand NAL Unit list if exceeding count number of available NAL Units withing an Access Unit
  */
 PNalUnit MemGetNextNal (PAccessUnit* ppAu) {
   PAccessUnit pAu = *ppAu;
--- a/codec/decoder/core/src/pic_queue.cpp
+++ b/codec/decoder/core/src/pic_queue.cpp
@@ -48,12 +48,12 @@
 
 
 ///////////////////////////////////Recycled queue management for pictures///////////////////////////////////
-/*	 ______________________________________
+/*   ______________________________________
   -->| P0 | P1 | P2 | P3 | P4 | .. | Pn-1 |-->
-	 --------------------------------------
+     --------------------------------------
  *
- *	How does it work?
- *	node <- next; ++ next;
+ *  How does it work?
+ *  node <- next; ++ next;
  *
 */
 
--- a/codec/decoder/plus/inc/welsDecoderExt.h
+++ b/codec/decoder/plus/inc/welsDecoderExt.h
@@ -63,16 +63,16 @@
 virtual long EXTAPI Uninitialize();
 
 /***************************************************************************
-*	Description:
-*		Decompress one frame, and output I420 or RGB24(in the future) decoded stream and its length.
-*	Input parameters:
-*       Parameter		TYPE			       Description
-*       pSrc             unsigned char*         the h264 stream to decode
+*   Description:
+*       Decompress one frame, and output I420 or RGB24(in the future) decoded stream and its length.
+*   Input parameters:
+*       Parameter       TYPE                   Description
+*       pSrc            unsigned char*         the h264 stream to decode
 *       srcLength       int                    the length of h264 steam
-*       pDst             unsigned char*         buffer pointer of decoded data
+*       pDst            unsigned char*         buffer pointer of decoded data
 *       pDstInfo        SBufferInfo&           information provided to API including width, height, SW/HW option, etc
 *
-*	return: if decode frame success return 0, otherwise corresponding error returned.
+*   return: if decode frame success return 0, otherwise corresponding error returned.
 ***************************************************************************/
 virtual DECODING_STATE EXTAPI DecodeFrame (const unsigned char* kpSrc,
     const int kiSrcLen,
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -78,13 +78,13 @@
 //////////////////////////////////////////////////////////////////////
 
 /***************************************************************************
-*	Description:
-*			class CWelsDecoder constructor function, do initialization	and
+*   Description:
+*       class CWelsDecoder constructor function, do initialization  and
 *       alloc memory required
 *
-*	Input parameters: none
+*   Input parameters: none
 *
-*	return: none
+*   return: none
 ***************************************************************************/
 CWelsDecoder::CWelsDecoder (void)
   :	m_pDecContext (NULL),
@@ -155,12 +155,12 @@
 }
 
 /***************************************************************************
-*	Description:
-*			class CWelsDecoder destructor function, destroy allocced memory
+*   Description:
+*       class CWelsDecoder destructor function, destroy allocced memory
 *
-*	Input parameters: none
+*   Input parameters: none
 *
-*	return: none
+*   return: none
 ***************************************************************************/
 CWelsDecoder::~CWelsDecoder() {
   if (m_pWelsTrace != NULL) {
@@ -327,7 +327,7 @@
 }
 
 /*
- *	Get Option
+ *  Get Option
  */
 long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) {
   int iVal = 0;
@@ -669,8 +669,8 @@
 /* WINAPI is indeed in prefix due to sync to application layer callings!! */
 
 /*
-*	WelsCreateDecoder
-*	@return:	success in return 0, otherwise failed.
+*   WelsCreateDecoder
+*   @return:    success in return 0, otherwise failed.
 */
 long WelsCreateDecoder (ISVCDecoder** ppDecoder) {
 
@@ -688,7 +688,7 @@
 }
 
 /*
-*	WelsDestroyDecoder
+*   WelsDestroyDecoder
 */
 void WelsDestroyDecoder (ISVCDecoder* pDecoder) {
   if (NULL != pDecoder) {
--- a/codec/encoder/core/inc/au_set.h
+++ b/codec/encoder/core/inc/au_set.h
@@ -48,15 +48,15 @@
 namespace WelsEnc {
 /*!
  *************************************************************************************
- * \brief	to write Sequence Parameter Set (SPS)
+ * \brief   to write Sequence Parameter Set (SPS)
  *
- * \param 	pSps     	SWelsSPS to be wrote
- * \param	bs_aux		bitstream writer auxiliary
+ * \param   pSps        SWelsSPS to be wrote
+ * \param   bs_aux      bitstream writer auxiliary
  *
- * \return	0 - successed
- *		    1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case EWelsNalUnitType is SPS.
+ * \note    Call it in case EWelsNalUnitType is SPS.
  *************************************************************************************
  */
 
@@ -65,15 +65,15 @@
 
 /*!
  *************************************************************************************
- * \brief	to write SubSet Sequence Parameter Set
+ * \brief   to write SubSet Sequence Parameter Set
  *
- * \param 	sub_sps		subset pSps parsed
- * \param	bs_aux		bitstream writer auxiliary
+ * \param   sub_sps     subset pSps parsed
+ * \param   bs_aux      bitstream writer auxiliary
  *
- * \return	0 - successed
- *		    1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case EWelsNalUnitType is SubSet SPS.
+ * \note    Call it in case EWelsNalUnitType is SubSet SPS.
  *************************************************************************************
  */
 int32_t WelsWriteSubsetSpsSyntax (SSubsetSps* pSubsetSps, SBitStringAux* pBitStringAux , int32_t* pSpsIdDelta);
@@ -81,27 +81,27 @@
 
 /*!
  *************************************************************************************
- * \brief	to write Picture Parameter Set (PPS)
+ * \brief   to write Picture Parameter Set (PPS)
  *
- * \param 	pPps     	pPps
- * \param	bs_aux		bitstream writer auxiliary
+ * \param   pPps        pPps
+ * \param   bs_aux      bitstream writer auxiliary
  *
- * \return	0 - successed
- *		    1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case EWelsNalUnitType is PPS.
+ * \note    Call it in case EWelsNalUnitType is PPS.
  *************************************************************************************
  */
 int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaSetOffset* sPSOVector);
 
 /*!
- * \brief	initialize pSps based on configurable parameters in svc
- * \param	pSps				SWelsSPS*
- * \param   pLayerParam     SSpatialLayerConfig  dependency layer parameter
- * \param	pLayerParamInternal		SSpatialLayerInternal*, internal dependency layer parameter
- * \param	iSpsId			SPS Id
- * \return	0 - successful
- *			1 - failed
+ * \brief   initialize pSps based on configurable parameters in svc
+ * \param   pSps                SWelsSPS*
+ * \param   pLayerParam         SSpatialLayerConfig  dependency layer parameter
+ * \param   pLayerParamInternal SSpatialLayerInternal*, internal dependency layer parameter
+ * \param   iSpsId              SPS Id
+ * \return  0 - successful
+ *          1 - failed
  */
 int32_t WelsInitSps (SWelsSPS* pSps, SSpatialLayerConfig* pLayerParam, SSpatialLayerInternal* pLayerParamInternal,
                      const uint32_t kuiIntraPeriod, const int32_t kiNumRefFrame,
@@ -109,13 +109,13 @@
                      const int32_t kiDlayerCount,bool bSVCBaselayer);
 
 /*!
- * \brief	initialize subset pSps based on configurable parameters in svc
- * \param	pSubsetSps		SSubsetSps*
- * \param   pLayerParam     SSpatialLayerConfig  dependency layer parameter
- * \param	pLayerParamInternal		SSpatialLayerInternal*, internal dependency layer parameter
- * \param	kiSpsId			SPS Id
- * \return	0 - successful
- *			1 - failed
+ * \brief   initialize subset pSps based on configurable parameters in svc
+ * \param   pSubsetSps          SSubsetSps*
+ * \param   pLayerParam         SSpatialLayerConfig  dependency layer parameter
+ * \param   pLayerParamInternal SSpatialLayerInternal*, internal dependency layer parameter
+ * \param   kiSpsId             SPS Id
+ * \return  0 - successful
+ *          1 - failed
  */
 int32_t WelsInitSubsetSps (SSubsetSps* pSubsetSps, SSpatialLayerConfig* pLayerParam,
                            SSpatialLayerInternal* pLayerParamInternal,
@@ -124,15 +124,15 @@
                            const int32_t kiDlayerCount);
 
 /*!
- * \brief	initialize pPps based on configurable parameters and pSps(subset pSps) in svc
- * \param	pPps							SWelsPPS*
- * \param	pSps							SWelsSPS*
- * \param	pSubsetSps					SSubsetSps*
- * \param   kbDeblockingFilterPresentFlag			bool
- * \param	kiPpsId						PPS Id
- * \param	kbUsingSubsetSps					bool
- * \return	0 - successful
- *			1 - failed
+ * \brief   initialize pPps based on configurable parameters and pSps(subset pSps) in svc
+ * \param   pPps                            SWelsPPS*
+ * \param   pSps                            SWelsSPS*
+ * \param   pSubsetSps                      SSubsetSps*
+ * \param   kbDeblockingFilterPresentFlag   bool
+ * \param   kiPpsId                         PPS Id
+ * \param   kbUsingSubsetSps                bool
+ * \return  0 - successful
+ *          1 - failed
  */
 int32_t WelsInitPps (SWelsPPS* pPps,
                      SWelsSPS* pSps,
@@ -148,15 +148,15 @@
 int32_t WelsAdjustLevel (SSpatialLayerConfig* pSpatialLayer);
 
 /*!
- * \brief	check if the current parameter can found a presenting sps
- * \param	pParam		      the current encoding paramter in SWelsSvcCodingParam
- * \param	kbUseSubsetSps	bool
- * \param	iDlayerIndex		int, the index of current D layer
- * \param	iDlayerCount	  int, the number of total D layer
- * \param pSpsArray			  array of all the stored SPSs
- * \param	pSubsetArray		array of all the stored Subset-SPSs
- * \return	0 - successful
- *			   -1 - cannot find existing SPS for current encoder parameter
+ * \brief   check if the current parameter can found a presenting sps
+ * \param   pParam          the current encoding paramter in SWelsSvcCodingParam
+ * \param   kbUseSubsetSps  bool
+ * \param   iDlayerIndex    int, the index of current D layer
+ * \param   iDlayerCount    int, the number of total D layer
+ * \param pSpsArray         array of all the stored SPSs
+ * \param   pSubsetArray    array of all the stored Subset-SPSs
+ * \return  0 - successful
+ *         -1 - cannot find existing SPS for current encoder parameter
  */
 int32_t FindExistingSps (SWelsSvcCodingParam* pParam, const bool kbUseSubsetSps, const int32_t iDlayerIndex,
                          const int32_t iDlayerCount,  const int32_t iSpsNumInUse,
--- a/codec/encoder/core/inc/dq_map.h
+++ b/codec/encoder/core/inc/dq_map.h
@@ -44,7 +44,7 @@
 
 namespace WelsEnc {
 /*
- *	Dependency Quality IDC
+ *  Dependency Quality IDC
  */
 
 typedef struct TagDqIdc {
--- a/codec/encoder/core/inc/encoder.h
+++ b/codec/encoder/core/inc/encoder.h
@@ -44,22 +44,22 @@
 
 namespace WelsEnc {
 /*!
- * \brief	request specific memory for SVC
- * \param	pEncCtx		sWelsEncCtx*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   request specific memory for SVC
+ * \param   pEncCtx     sWelsEncCtx*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t RequestMemorySvc (sWelsEncCtx** ppCtx, SExistingParasetList* pExistingParasetList);
 
 /*!
- * \brief	free memory	in SVC core encoder
- * \param	pEncCtx		sWelsEncCtx**
- * \return	none
+ * \brief   free memory in SVC core encoder
+ * \param   pEncCtx     sWelsEncCtx**
+ * \return  none
  */
 void FreeMemorySvc (sWelsEncCtx** ppCtx);
 
 /*!
- * \brief	 allocate or reallocate the output bs buffer
- * \return:		successful - 0; otherwise none 0 for failed
+ * \brief    allocate or reallocate the output bs buffer
+ * \return:  successful - 0; otherwise none 0 for failed
  */
 int32_t AllocateBsOutputBuffer (CMemoryAlign* pMa, const int32_t iNeededLen, int32_t iOrigLen, const char* kpTag,
                                 uint8_t*& pOutputBuffer);
@@ -66,21 +66,21 @@
 //TODO: to finish this function and call it
 
 /*!
- * \brief	initialize function pointers that potentially used in Wels encoding
- * \param	pEncCtx		sWelsEncCtx*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   initialize function pointers that potentially used in Wels encoding
+ * \param   pEncCtx     sWelsEncCtx*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t InitFunctionPointers (sWelsEncCtx* pEncCtx, SWelsSvcCodingParam* _param, uint32_t  uiCpuFlag);
 
 ///*!
-// * \brief	decide frame type (IDR/P frame)
-// * \param	uiFrameType	frame type output
-// * \param	frame_idx	frame index elapsed currently
-// * \param	idr			IDR interval
-// * \return	successful - 0; otherwise none 0 for failed
+// * \brief decide frame type (IDR/P frame)
+// * \param uiFrameType frame type output
+// * \param frame_idx   frame index elapsed currently
+// * \param idr         IDR interval
+// * \return    successful - 0; otherwise none 0 for failed
 // */
 /*!
- * \brief	initialize frame coding
+ * \brief   initialize frame coding
  */
 void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType);
 
@@ -88,24 +88,24 @@
 
 int32_t GetTemporalLevel (SSpatialLayerInternal* fDlp, const int32_t kiFrameNum, const int32_t kiGopSize);
 /*!
- * \brief	Dump reconstruction for dependency layer
+ * \brief   Dump reconstruction for dependency layer
  */
 
 extern "C" void DumpDependencyRec (SPicture* pSrcPic, const char* kpFileName, const int8_t kiDid, bool bAppend, SDqLayer* pDqLayer);
 
 /*!
- * \brief	Dump the reconstruction pictures
+ * \brief   Dump the reconstruction pictures
  */
 void DumpRecFrame (SPicture* pSrcPic, const char* kpFileName, const int8_t kiDid, bool bAppend, SDqLayer* pDqLayer);
 
 
 /*!
- * \brief	encode overall slices pData in a frame
- * \param	pEncCtx			sWelsEncCtx*, encoder context
- * \param	count_slice_num		count number of slices in a frame
- * \param	eNalType			EWelsNalUnitType for a frame
- * \param	nal_idc				EWelsNalRefIdc for a frame
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   encode overall slices pData in a frame
+ * \param   pEncCtx             sWelsEncCtx*, encoder context
+ * \param   count_slice_num     count number of slices in a frame
+ * \param   eNalType            EWelsNalUnitType for a frame
+ * \param   nal_idc             EWelsNalRefIdc for a frame
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t EncodeFrame (sWelsEncCtx* pEncCtx,
                      const int32_t kiSliceNumCount,
--- a/codec/encoder/core/inc/encoder_context.h
+++ b/codec/encoder/core/inc/encoder_context.h
@@ -61,7 +61,7 @@
 namespace WelsEnc {
 
 /*
- *	reference list for each quality layer in SVC
+ *  reference list for each quality layer in SVC
  */
 typedef struct TagRefList {
   SPicture*					pShortRefList[1 + MAX_SHORT_REF_COUNT]; // reference list 0 - int16_t
--- a/codec/encoder/core/inc/extern.h
+++ b/codec/encoder/core/inc/extern.h
@@ -46,23 +46,23 @@
 namespace WelsEnc {
 
 /*!
- * \brief	initialize source picture body
- * \param	kpSrc		SSourcePicture*
- * \param	kiCsp		internal csp format
- * \param	kiWidth	widht of picture in pixels
- * \param	kiHeight	height of picture in pixels
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   initialize source picture body
+ * \param   kpSrc       SSourcePicture*
+ * \param   kiCsp       internal csp format
+ * \param   kiWidth widht of picture in pixels
+ * \param   kiHeight    height of picture in pixels
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t InitPic (const void* kpSrc, const int32_t kiCsp, const int32_t kiWidth, const int32_t kiHeight);
 
 /*
- *	SVC core encoder external interfaces
+ *  SVC core encoder external interfaces
  */
 
 /*!
- * \brief	validate checking in parameter configuration
- * \pParam	pParam		SWelsSvcCodingParam*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   validate checking in parameter configuration
+ * \pParam  pParam      SWelsSvcCodingParam*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t ParamValidationExt (SLogContext* pCtx, SWelsSvcCodingParam* pParam);
 
@@ -70,28 +70,28 @@
 void GomValidCheck (const int32_t kiMbWidth, const int32_t kiMbHeight, int32_t* pSliceNum);
 
 /*!
- * \brief	initialize Wels avc encoder core library
- * \param	ppCtx		sWelsEncCtx**
- * \param	para		SWelsSvcCodingParam*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   initialize Wels avc encoder core library
+ * \param   ppCtx       sWelsEncCtx**
+ * \param   para        SWelsSvcCodingParam*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pPara, SLogContext* pLogCtx,
                             SExistingParasetList* pExistingParasetList);
 
 /*!
- * \brief	uninitialize Wels encoder core library
- * \param	pEncCtx		sWelsEncCtx*
- * \return	none
+ * \brief   uninitialize Wels encoder core library
+ * \param   pEncCtx     sWelsEncCtx*
+ * \return  none
  */
 void WelsUninitEncoderExt (sWelsEncCtx** ppCtx);
 
 /*!
- * \brief	core svc encoding process
+ * \brief   core svc encoding process
  *
- * \param	h			sWelsEncCtx*, encoder context
- * \param	pFbi			FrameBSInfo*
- * \param	kpSrcPic		Source picture
- * \return	EFrameType (videoFrameTypeIDR/videoFrameTypeI/videoFrameTypeP)
+ * \param   h           sWelsEncCtx*, encoder context
+ * \param   pFbi        FrameBSInfo*
+ * \param   kpSrcPic    Source picture
+ * \return  EFrameType (videoFrameTypeIDR/videoFrameTypeI/videoFrameTypeP)
  */
 int32_t WelsEncoderEncodeExt (sWelsEncCtx*, SFrameBSInfo* pFbi, const SSourcePicture* kpSrcPic);
 
@@ -103,8 +103,8 @@
 int32_t ForceCodingIDR (sWelsEncCtx* pCtx);
 
 /*!
- * \brief	Wels SVC encoder parameters adjustment
- *			SVC adjustment results in new requirement in memory blocks adjustment
+ * \brief   Wels SVC encoder parameters adjustment
+ *          SVC adjustment results in new requirement in memory blocks adjustment
  */
 int32_t WelsBitRateVerification(SLogContext* pLogCtx,SSpatialLayerConfig* pLayerParam,int32_t iLayerId);
 int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNew);
--- a/codec/encoder/core/inc/mb_cache.h
+++ b/codec/encoder/core/inc/mb_cache.h
@@ -41,15 +41,15 @@
 namespace WelsEnc {
 
 /*
- *	MB Cache information, such one cache should be defined within a slice
+ *  MB Cache information, such one cache should be defined within a slice
  */
 /*
- * Cache for Luma				Cache for Chroma(Cb, Cr)
+ * Cache for Luma               Cache for Chroma(Cb, Cr)
  *
- *	TL T T T T					TL T T
- *	 L - - - -					 L - -
- *	 L - - - -					 L - - TR
- *	 L - - - -
+ *  TL T T T T                  TL T T
+ *   L - - - -                   L - -
+ *   L - - - -                   L - - TR
+ *   L - - - -
  *   L - - - - TR
  *
  */
--- a/codec/encoder/core/inc/mt_defs.h
+++ b/codec/encoder/core/inc/mt_defs.h
@@ -46,7 +46,7 @@
 #include "WelsThreadLib.h"
 
 /*
- *	MT_DEBUG: output trace MT related into log file
+ *  MT_DEBUG: output trace MT related into log file
  */
 //#define MT_DEBUG
 //#define ENABLE_TRACE_MT
@@ -54,9 +54,9 @@
 
 #define DYNAMIC_DETECT_CPU_CORES
 
-#define THRESHOLD_RMSE_CORE8	0.0320f	// v1.1: 0.0320f; v1.0: 0.02f
-#define THRESHOLD_RMSE_CORE4	0.0215f	// v1.1: 0.0215f; v1.0: 0.03f
-#define THRESHOLD_RMSE_CORE2	0.0200f	// v1.1: 0.0200f; v1.0: 0.04f
+#define THRESHOLD_RMSE_CORE8    0.0320f // v1.1: 0.0320f; v1.0: 0.02f
+#define THRESHOLD_RMSE_CORE4    0.0215f // v1.1: 0.0215f; v1.0: 0.03f
+#define THRESHOLD_RMSE_CORE2    0.0200f // v1.1: 0.0200f; v1.0: 0.04f
 
 typedef struct TagSliceThreadPrivateData {
 void*		pWelsPEncCtx;
--- a/codec/encoder/core/inc/mv_pred.h
+++ b/codec/encoder/core/inc/mv_pred.h
@@ -86,7 +86,7 @@
 /*!
  * \brief   get the motion predictor for 4*4 or 8*8 or 16*16 block
  * \param
- * \param 	output mvp_x and mvp_y
+ * \param   output mvp_x and mvp_y
  */
 void PredMv (const SMVComponentUnit* kpMvComp, int8_t iPartIdx, int8_t iPartW, int32_t iRef, SMVUnitXY* sMvp);
 
@@ -94,7 +94,7 @@
 /*!
  * \brief   get the motion predictor for SKIP MB
  * \param
- * \param 	output mvp_x and mvp_y
+ * \param   output mvp_x and mvp_y
  */
 void PredSkipMv (SMbCache* pMbCache, SMVUnitXY* sMvp);
 
@@ -102,7 +102,7 @@
 /*!
  * \brief   get the motion predictor for inter16x8 MB
  * \param
- * \param 	output mvp_x and mvp_y
+ * \param   output mvp_x and mvp_y
  */
 void PredInter16x8Mv (SMbCache* pMbCache, int32_t iPartIdx, int8_t iRef, SMVUnitXY* sMvp);
 
@@ -110,7 +110,7 @@
 /*!
  * \brief   get the motion predictor for inter8x16 MB
  * \param
- * \param 	output mvp_x and mvp_y
+ * \param   output mvp_x and mvp_y
  */
 void PredInter8x16Mv (SMbCache* pMbCache, int32_t iPartIdx, int8_t iRef, SMVUnitXY* sMvp);
 
--- a/codec/encoder/core/inc/nal_encap.h
+++ b/codec/encoder/core/inc/nal_encap.h
@@ -51,7 +51,7 @@
 
 #define NAL_HEADER_SIZE (4)
 /*
- *	Raw payload pData for NAL unit, AVC/SVC compatible
+ *  Raw payload pData for NAL unit, AVC/SVC compatible
  */
 typedef struct TagWelsNalRaw {
 uint8_t*				pRawData;		// pRawNal payload for slice pData
@@ -63,7 +63,7 @@
 } SWelsNalRaw;
 
 /*
- *	Encoder majoy output pData
+ *  Encoder majoy output pData
  */
 typedef struct TagWelsEncoderOutput {
 uint8_t*				pBsBuffer;			// overall bitstream pBuffer allocation for a coded picture, recycling use intend.
@@ -103,40 +103,40 @@
 } SWelsSliceBs;
 
 /*!
- * \brief	load an initialize NAL pRawNal pData
+ * \brief   load an initialize NAL pRawNal pData
  */
 void WelsLoadNal (SWelsEncoderOutput* pEncoderOuput, const int32_t/*EWelsNalUnitType*/ kiType,
                   const int32_t/*EWelsNalRefIdc*/ kiNalRefIdc);
 
 /*!
- * \brief	unload pRawNal NAL
+ * \brief   unload pRawNal NAL
  */
 void WelsUnloadNal (SWelsEncoderOutput* pEncoderOuput);
 
 /*!
- * \brief	load an initialize NAL pRawNal pData
+ * \brief   load an initialize NAL pRawNal pData
  */
 void WelsLoadNalForSlice (SWelsSliceBs* pSliceBs, const int32_t/*EWelsNalUnitType*/ kiType,
                           const int32_t/*EWelsNalRefIdc*/ kiNalRefIdc);
 
 /*!
- * \brief	unload pRawNal NAL
+ * \brief   unload pRawNal NAL
  */
 void WelsUnloadNalForSlice (SWelsSliceBs* pSliceBs);
 
 /*!
- * \brief	encode NAL with emulation forbidden three bytes checking
- * \param	pDst			pDst NAL pData
- * \param	pDstLen		length of pDst NAL output
- * \param	annexeb		annexeb flag
- * \param	pRawNal			pRawNal NAL pData
- * \return	ERR_CODE
+ * \brief   encode NAL with emulation forbidden three bytes checking
+ * \param   pDst        pDst NAL pData
+ * \param   pDstLen     length of pDst NAL output
+ * \param   annexeb     annexeb flag
+ * \param   pRawNal     pRawNal NAL pData
+ * \return  ERR_CODE
  */
 int32_t WelsEncodeNal (SWelsNalRaw* pRawNal, void* pNalHeaderExt, const int32_t kiDstBufferLen, void* pDst,
                        int32_t* pDstLen);
 
 /*!
- * \brief	write prefix nal
+ * \brief   write prefix nal
  */
 int32_t WelsWriteSVCPrefixNal (SBitStringAux* pBitStringAux, const int32_t keNalRefIdc, const bool kbIdrFlag);
 }
--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -57,10 +57,10 @@
 extern const uint8_t   g_kuiTemporalIdListTable[MAX_TEMPORAL_LEVEL][MAX_GOP_SIZE + 1];
 
 /*!
-* \brief	get Logarithms base 2 of (upper/base)
-* \param	base	based scaler
-* \param	upper	input upper value
-* \return	2 based scaling factor
+* \brief    get Logarithms base 2 of (upper/base)
+* \param    base    based scaler
+* \param    upper   input upper value
+* \return   2 based scaling factor
 */
 static inline uint32_t GetLogFactor (float base, float upper) {
   const double dLog2factor	= log10 (1.0 * upper / base) / log10 (2.0);
@@ -74,7 +74,7 @@
 }
 
 /*
- *	Dependency Layer Parameter
+ *  Dependency Layer Parameter
  */
 typedef struct TagDLayerParam {
   int32_t		iActualWidth;			// input source picture actual width
@@ -93,7 +93,7 @@
 } SSpatialLayerInternal;
 
 /*
- *	Cisco OpenH264 Encoder Parameter Configuration
+ *  Cisco OpenH264 Encoder Parameter Configuration
  */
 typedef struct TagWelsSvcCodingParam: SEncParamExt {
   SSpatialLayerInternal	sDependencyLayers[MAX_DEPENDENCY_LAYER];
@@ -432,9 +432,9 @@
   }
 
   /*!
-  * \brief	determined key coding tables for temporal scalability, uiProfileIdc etc for each spatial layer settings
-  * \param	SWelsSvcCodingParam, and carried with known GOP size, max, input and output frame rate of each spatial
-  * \return	NONE (should ensure valid parameter before this procedure)
+  * \brief  determined key coding tables for temporal scalability, uiProfileIdc etc for each spatial layer settings
+  * \param  SWelsSvcCodingParam, and carried with known GOP size, max, input and output frame rate of each spatial
+  * \return NONE (should ensure valid parameter before this procedure)
   */
   int32_t DetermineTemporalSettings() {
     const int32_t iDecStages		= WELS_LOG2 (
--- a/codec/encoder/core/inc/picture.h
+++ b/codec/encoder/core/inc/picture.h
@@ -101,7 +101,7 @@
 SScreenBlockFeatureStorage* pScreenBlockFeatureStorage;
 
   /*
-   *	set picture as unreferenced
+   *    set picture as unreferenced
    */
   void SetUnref () {
       iFramePoc		= -1;
--- a/codec/encoder/core/inc/picture_handle.h
+++ b/codec/encoder/core/inc/picture_handle.h
@@ -45,20 +45,20 @@
 
 namespace WelsEnc {
 /*!
- * \brief	alloc picture pData with borders for each plane based width and height of picture
- * \param	kiWidth				width of picture in pixels
- * \param	kiHeight				height of picture in pixels
- * \param	bNeedMbInfo		need pData allocation
- * \pram	iNeedFeatureStorage		need storage for FME
- * \return	successful if effective picture pointer returned, otherwise failed with NULL
+ * \brief   alloc picture pData with borders for each plane based width and height of picture
+ * \param   kiWidth                 width of picture in pixels
+ * \param   kiHeight                height of picture in pixels
+ * \param   bNeedMbInfo             need pData allocation
+ * \pram    iNeedFeatureStorage     need storage for FME
+ * \return  successful if effective picture pointer returned, otherwise failed with NULL
  */
 SPicture* AllocPicture (CMemoryAlign* pMa, const int32_t kiWidth, const int32_t kiHeight, bool bNeedMbInfo,
                         int32_t iNeedFeatureStorage);
 
 /*!
- * \brief	free picture pData planes
- * \param	pic		picture pointer to be destoryed
- * \return	none
+ * \brief   free picture pData planes
+ * \param   pic     picture pointer to be destoryed
+ * \return  none
  */
 void FreePicture (CMemoryAlign* pMa, SPicture** ppPic);
 
--- a/codec/encoder/core/inc/property.h
+++ b/codec/encoder/core/inc/property.h
@@ -46,34 +46,34 @@
 
 
 /*!
- * \brief	get code name
- * \param	pBuf	pBuffer to restore code name
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get code name
+ * \param   pBuf    pBuffer to restore code name
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetCodeName (char* pBuf, int32_t iSize);
 
 /*!
- * \brief	get library/module name
- * \param	pBuf	pBuffer to restore module name
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get library/module name
+ * \param   pBuf    pBuffer to restore module name
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetLibName (char* pBuf, int32_t iSize);
 
 /*!
- * \brief	get version number
- * \param	pBuf	pBuffer to restore version number
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get version number
+ * \param   pBuf    pBuffer to restore version number
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetVerNum (char* pBuf, int32_t iSize);
 
 /*!
- * \brief	get identify information
- * \param	pBuf	pBuffer to restore indentify information
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get identify information
+ * \param   pBuf    pBuffer to restore indentify information
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetIdentInfo (char* pBuf, int32_t iSize);
 }
--- a/codec/encoder/core/inc/rc.h
+++ b/codec/encoder/core/inc/rc.h
@@ -69,7 +69,7 @@
 //qp information
   GOM_MIN_QP_MODE       = 12,
   GOM_MAX_QP_MODE       = 36,
-  MAX_LOW_BR_QP			= 42,
+  MAX_LOW_BR_QP         = 42,
   MIN_IDR_QP            = 26,
   MAX_IDR_QP            = 32,
   MIN_SCREEN_QP         = 26,
--- a/codec/encoder/core/inc/ref_list_mgr_svc.h
+++ b/codec/encoder/core/inc/ref_list_mgr_svc.h
@@ -61,25 +61,25 @@
 } COMPARE_FRAME_NUM;
 
 /*
-*	reset LTR marking , recovery ,feedback state to default
+*   reset LTR marking , recovery ,feedback state to default
 */
 void ResetLtrState (SLTRState* pLtr);
 /*
- *	reset reference picture list
+ *  reset reference picture list
  */
 void WelsResetRefList (sWelsEncCtx* pCtx);
 
 /*
- *	update reference picture list
+ *  update reference picture list
  */
 bool WelsUpdateRefList (sWelsEncCtx* pCtx);
 /*
- *	build reference picture list
+ *  build reference picture list
  */
 bool WelsBuildRefList (sWelsEncCtx* pCtx, const int32_t kiPOC, int32_t iBestLtrRefIdx);
 
 /*
- *	update syntax for reference base related
+ *  update syntax for reference base related
  */
 void WelsUpdateRefSyntax (sWelsEncCtx* pCtx, const int32_t kiPOC, const int32_t kiFrameType);
 
@@ -89,7 +89,7 @@
 */
 bool CheckCurMarkFrameNumUsed (sWelsEncCtx* pCtx);
 /*
-*	decide whether current frame include long term reference mark and update long term reference mark syntax
+*   decide whether current frame include long term reference mark and update long term reference mark syntax
 */
 void WelsMarkPic (sWelsEncCtx* pCtx);
 
--- a/codec/encoder/core/inc/slice.h
+++ b/codec/encoder/core/inc/slice.h
@@ -49,7 +49,7 @@
 
 
 /*
- *	Reference picture list reordering syntax, refer to page 64 in JVT X201wcm
+ *  Reference picture list reordering syntax, refer to page 64 in JVT X201wcm
  */
 typedef struct TagRefPicListReorderSyntax {
 struct {
--- a/codec/encoder/core/inc/stat.h
+++ b/codec/encoder/core/inc/stat.h
@@ -43,7 +43,7 @@
 namespace WelsEnc {
 
 /*
- *	Stat quality
+ *  Stat quality
  */
 typedef struct TagStatQuality {
 
@@ -54,7 +54,7 @@
 } SStatQuality;
 
 /*
- *	Stat complexity pData
+ *  Stat complexity pData
  */
 typedef struct TagComplexityStat {
 
@@ -70,7 +70,7 @@
 } SComplexityStat;
 
 /*
- *	Stat slice details information
+ *  Stat slice details information
  */
 typedef struct TagStatSliceInfo {
 
@@ -82,7 +82,7 @@
 } SStatSliceInfo;
 
 /*
- *	For overall statistical pData
+ *  For overall statistical pData
  */
 typedef struct TagStatData {
 
--- a/codec/encoder/core/inc/svc_enc_frame.h
+++ b/codec/encoder/core/inc/svc_enc_frame.h
@@ -47,8 +47,8 @@
 namespace WelsEnc {
 
 /*
- *	Frame level in SVC DQLayer instead.
- *	Dependency-Quaility layer struction definition for SVC extension of H.264/AVC
+ *  Frame level in SVC DQLayer instead.
+ *  Dependency-Quaility layer struction definition for SVC extension of H.264/AVC
  */
 
 ///////////////////////////////////DQ Layer level///////////////////////////////////
--- a/codec/encoder/core/inc/svc_enc_golomb.h
+++ b/codec/encoder/core/inc/svc_enc_golomb.h
@@ -53,7 +53,7 @@
 
 
 /*
- *	Get size of unsigned exp golomb codes
+ *  Get size of unsigned exp golomb codes
  */
 static inline uint32_t BsSizeUE (const uint32_t kiValue) {
 if (256 > kiValue) {
@@ -79,7 +79,7 @@
 }
 
 /*
- *	Get size of signed exp golomb codes
+ *  Get size of signed exp golomb codes
  */
 static inline uint32_t BsSizeSE (const int32_t kiValue) {
 uint32_t iTmpValue;
@@ -95,7 +95,7 @@
 }
 
 /*
- *	Write truncated exp golomb codes
+ *  Write truncated exp golomb codes
  */
 static inline void BsWriteTE (SBitStringAux* pBs, const int32_t kiX, const uint32_t kuiValue) {
 if (1 == kiX) {
--- a/codec/encoder/core/inc/svc_enc_slice_segment.h
+++ b/codec/encoder/core/inc/svc_enc_slice_segment.h
@@ -58,22 +58,22 @@
 // in case MT and PACKING_ONE_SLICE_PER_LAYER, MAX_SLICES_NUM should not be exceeding MAX_LAYER_NUM_OF_FRAME
 // for AVC cases, maximal resolution we can support up to (?x1024) for SM_ROWMB_SLICE slice mode
 // fine solution for MAX_SLICES_NUM, need us use the variable instead of MACRO for any resolution combining any multiple-slice mode adaptive
-#define SAVED_NALUNIT_NUM			( (MAX_SPATIAL_LAYER_NUM*MAX_QUALITY_LAYER_NUM) + 1 + MAX_SPATIAL_LAYER_NUM ) // SPS/PPS + SEI/SSEI + PADDING_NAL
-#define MAX_SLICES_NUM				( ( MAX_NAL_UNITS_IN_LAYER - SAVED_NALUNIT_NUM ) / 3 )	// Also MAX_SLICES_NUM need constrained by implementation: uiSliceIdc allocated in SSliceCtx.pOverallMbMap need a byte range as expected
-#define AVERSLICENUM_CONSTRAINT		(MAX_SLICES_NUM)			// used in sNalList initialization,
+#define SAVED_NALUNIT_NUM                       ( (MAX_SPATIAL_LAYER_NUM*MAX_QUALITY_LAYER_NUM) + 1 + MAX_SPATIAL_LAYER_NUM ) // SPS/PPS + SEI/SSEI + PADDING_NAL
+#define MAX_SLICES_NUM                          ( ( MAX_NAL_UNITS_IN_LAYER - SAVED_NALUNIT_NUM ) / 3 )  // Also MAX_SLICES_NUM need constrained by implementation: uiSliceIdc allocated in SSliceCtx.pOverallMbMap need a byte range as expected
+#define AVERSLICENUM_CONSTRAINT         (MAX_SLICES_NUM)                        // used in sNalList initialization,
 
-#define MIN_NUM_MB_PER_SLICE		48							// (128/16 * 96/16), addressing the lowest resolution for multiple slicing is 128x96 above
+#define MIN_NUM_MB_PER_SLICE                    48                                                      // (128/16 * 96/16), addressing the lowest resolution for multiple slicing is 128x96 above
 
-#define DEFAULT_MAXPACKETSIZE_CONSTRAINT	(1200)		//in bytes
-//#define MINPACKETSIZE_CONSTRAINT			(1200)
+#define DEFAULT_MAXPACKETSIZE_CONSTRAINT        (1200)          //in bytes
+//#define MINPACKETSIZE_CONSTRAINT                (1200)
 
-#define AVER_MARGIN_BYTES						( 100 ) //in bytes
-#define JUMPPACKETSIZE_CONSTRAINT(max_byte)			( max_byte - AVER_MARGIN_BYTES ) //in bytes
-#define JUMPPACKETSIZE_JUDGE(len,mb_idx,max_byte)	 ( (len) > JUMPPACKETSIZE_CONSTRAINT(max_byte) ) //( (mb_idx+1)%40/*16slice for compare*/ == 0 )	//
+#define AVER_MARGIN_BYTES                       ( 100 ) //in bytes
+#define JUMPPACKETSIZE_CONSTRAINT(max_byte)             ( max_byte - AVER_MARGIN_BYTES ) //in bytes
+#define JUMPPACKETSIZE_JUDGE(len,mb_idx,max_byte)       ( (len) > JUMPPACKETSIZE_CONSTRAINT(max_byte) ) //( (mb_idx+1)%40/*16slice for compare*/ == 0 )        //
 //cur_mb_idx is for early tests, can be omit in optimization
 
 /*!
- * \brief	SSlice context
+ * \brief   SSlice context
  */
 /* Single/multiple slices */
 typedef struct SlicepEncCtx_s {
@@ -104,17 +104,17 @@
 } SDynamicSlicingStack;
 
 /*!
- * \brief	Initialize Wels SSlice context (Single/multiple slices and FMO)
+ * \brief   Initialize Wels SSlice context (Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context to be initialized
- * \param	bFmoUseFlag	flag of using fmo
- * \param	iMbWidth		MB width
- * \param	iMbHeight		MB height
- * \param	uiSliceMode		slice mode
- * \param	mul_slice_arg	argument for multiple slice if it is applicable
- * \param	pPpsArg			argument for pPps parameter
+ * \param   pSliceCtx       SSlice context to be initialized
+ * \param   bFmoUseFlag     flag of using fmo
+ * \param   iMbWidth        MB width
+ * \param   iMbHeight       MB height
+ * \param   uiSliceMode     slice mode
+ * \param   mul_slice_arg   argument for multiple slice if it is applicable
+ * \param   pPpsArg         argument for pPps parameter
  *
- * \return	0 - successful; none 0 - failed;
+ * \return  0 - successful; none 0 - failed;
  */
 int32_t InitSlicePEncCtx (SSliceCtx* pSliceCtx,
                           CMemoryAlign* pMa,
@@ -126,66 +126,66 @@
 
 
 /*!
- * \brief	Uninitialize Wels SSlice context (Single/multiple slices and FMO)
+ * \brief   Uninitialize Wels SSlice context (Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context to be initialized
+ * \param   pSliceCtx       SSlice context to be initialized
  *
- * \return	NONE;
+ * \return  NONE;
  */
 void UninitSlicePEncCtx (SSliceCtx* pSliceCtx, CMemoryAlign* pMa);
 
 /*!
- * \brief	Get slice idc for given iMbXY (apply in Single/multiple slices and FMO)
+ * \brief   Get slice idc for given iMbXY (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiMbXY			MB xy index
+ * \param   pSliceCtx       SSlice context
+ * \param   kiMbXY          MB xy index
  *
- * \return	uiSliceIdc - successful; (uint8_t)(-1) - failed;
+ * \return  uiSliceIdc - successful; (uint8_t)(-1) - failed;
  */
 uint16_t WelsMbToSliceIdc (SSliceCtx* pSliceCtx, const int32_t kiMbXY);
 
 /*!
- * \brief	Get first mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get first mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiSliceIdc		slice idc
+ * \param   pSliceCtx       SSlice context
+ * \param   kiSliceIdc      slice idc
  *
- * \return	first_mb - successful; -1 - failed;
+ * \return  first_mb - successful; -1 - failed;
  */
 int32_t WelsGetFirstMbOfSlice (SSliceCtx* pSliceCtx, const int32_t kiSliceIdc);
 
 /*!
- * \brief	Get successive mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get successive mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiMbXY			MB xy index
+ * \param   pSliceCtx       SSlice context
+ * \param   kiMbXY          MB xy index
  *
- * \return	next_mb - successful; -1 - failed;
+ * \return  next_mb - successful; -1 - failed;
  */
 int32_t WelsGetNextMbOfSlice (SSliceCtx* pSliceCtx, const int32_t kiMbXY);
 
 /*!
- * \brief	Get previous mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get previous mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiMbXY			MB xy index
+ * \param   pSliceCtx       SSlice context
+ * \param   kiMbXY          MB xy index
  *
- * \return	prev_mb - successful; -1 - failed;
+ * \return  prev_mb - successful; -1 - failed;
  */
 int32_t WelsGetPrevMbOfSlice (SSliceCtx* pSliceCtx, const int32_t kiMbXY);
 
 /*!
- * \brief	Get number of mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get number of mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiSliceIdc		slice/slice_group idc
+ * \param   pSliceCtx       SSlice context
+ * \param   kiSliceIdc      slice/slice_group idc
  *
- * \return	count_num_of_mb - successful; -1 - failed;
+ * \return  count_num_of_mb - successful; -1 - failed;
  */
 int32_t WelsGetNumMbInSlice (SSliceCtx* pSliceCtx, const int32_t kiSliceIdc);
 
 /*!
- *	Get slice count for multiple slice segment
+ *  Get slice count for multiple slice segment
  *
  */
 int32_t GetInitialSliceNum (const int32_t kiMbWidth, const int32_t kiMbHeight, SSliceConfig* pMso);
--- a/codec/encoder/core/inc/wels_common_basis.h
+++ b/codec/encoder/core/inc/wels_common_basis.h
@@ -112,46 +112,46 @@
 /* Transform Type */
 
 enum ETransType {
-  T_4x4	= 0,
-  T_8x8	= 1,
-  T_16x16	= 2,
-  T_PCM	= 3
+  T_4x4     = 0,
+  T_8x8     = 1,
+  T_16x16   = 2,
+  T_PCM     = 3
 };
 
 enum EMbPosition {
-  LEFT_MB_POS     = 0x01,	// A
-  TOP_MB_POS      = 0x02,	// B
-  TOPRIGHT_MB_POS = 0x04,	// C
-  TOPLEFT_MB_POS	= 0x08,	// D,
-  RIGHT_MB_POS	= 0x10,	//  add followed four case to reuse when intra up-sample
-  BOTTOM_MB_POS	= 0x20,	//
-  BOTTOMRIGHT_MB_POS = 0x40,	//
-  BOTTOMLEFT_MB_POS	= 0x80,	//
-  MB_POS_A  = 0x100
+  LEFT_MB_POS           = 0x01, // A
+  TOP_MB_POS            = 0x02, // B
+  TOPRIGHT_MB_POS       = 0x04, // C
+  TOPLEFT_MB_POS        = 0x08, // D,
+  RIGHT_MB_POS          = 0x10, //  add followed four case to reuse when intra up-sample
+  BOTTOM_MB_POS         = 0x20, //
+  BOTTOMRIGHT_MB_POS    = 0x40, //
+  BOTTOMLEFT_MB_POS     = 0x80, //
+  MB_POS_A              = 0x100
 };
 
 /* MB Type & Sub-MB Type */
 typedef uint32_t Mb_Type;
 
-#define	MB_LEFT_BIT			0// add to use in intra up-sample
-#define	MB_TOP_BIT			1
-#define	MB_TOPRIGHT_BIT		2
-#define	MB_TOPLEFT_BIT		3
-#define	MB_RIGHT_BIT		4
-#define	MB_BOTTOM_BIT		5
-#define	MB_BTMRIGHT_BIT		6
-#define	MB_BTMLEFT_BIT		7
+#define MB_LEFT_BIT             0// add to use in intra up-sample
+#define MB_TOP_BIT              1
+#define MB_TOPRIGHT_BIT         2
+#define MB_TOPLEFT_BIT          3
+#define MB_RIGHT_BIT            4
+#define MB_BOTTOM_BIT           5
+#define MB_BTMRIGHT_BIT         6
+#define MB_BTMLEFT_BIT          7
 
-#define MB_TYPE_BACKGROUND		0x00010000  // conditional BG skip_mb
+#define MB_TYPE_BACKGROUND      0x00010000  // conditional BG skip_mb
 
 enum {
-  Intra4x4			= 0,
-  Intra16x16			= 1,
-  Inter16x16			= 2,
-  Inter16x8			= 3,
-  Inter8x16			= 4,
-  Inter8x8			= 5,
-  PSkip				= 6
+  Intra4x4      = 0,
+  Intra16x16    = 1,
+  Inter16x16    = 2,
+  Inter16x8     = 3,
+  Inter8x16     = 4,
+  Inter8x8      = 5,
+  PSkip         = 6
 };
 
 
--- a/codec/encoder/core/inc/wels_const.h
+++ b/codec/encoder/core/inc/wels_const.h
@@ -45,105 +45,105 @@
 
 #define STATISTICS_LOG_INTERVAL_MS (5000) // output statistics log every 5s
 
-#define INTRA_4x4_MODE_NUM		8
-#define MB_LUMA_CHROMA_BLOCK4x4_NUM  24
+#define INTRA_4x4_MODE_NUM              8
+#define MB_LUMA_CHROMA_BLOCK4x4_NUM     24
 
 #define MAX_PPS_COUNT_LIMITED           57// limit the max ID of PPS because of known limitation of receiver endpoints
-#define MAX_PPS_COUNT                   (MAX_PPS_COUNT_LIMITED)//in Standard is 256	// Count number of PPS
+#define MAX_PPS_COUNT                   (MAX_PPS_COUNT_LIMITED)//in Standard is 256     // Count number of PPS
 
-#define PARA_SET_TYPE			3 // SPS+PPS
-#define PARA_SET_TYPE_AVCSPS	        0
+#define PARA_SET_TYPE                   3 // SPS+PPS
+#define PARA_SET_TYPE_AVCSPS            0
 #define PARA_SET_TYPE_SUBSETSPS         1
-#define PARA_SET_TYPE_PPS		2
+#define PARA_SET_TYPE_PPS               2
 
-#define MAX_VERTICAL_MV_RANGE   1024  //TODO, for allocate enough memory for transpose
-#define MAX_FRAME_RATE			60	// maximal frame rate to support
-#define MIN_FRAME_RATE			1	// minimal frame rate need support
+#define MAX_VERTICAL_MV_RANGE           1024  //TODO, for allocate enough memory for transpose
+#define MAX_FRAME_RATE                  60      // maximal frame rate to support
+#define MIN_FRAME_RATE                  1       // minimal frame rate need support
 
-#define MAX_BIT_RATE			INT_MAX	// maximal bit rate to support
+#define MAX_BIT_RATE                    INT_MAX // maximal bit rate to support
 //TODO {Sijia}: 30fps*MaxCPB in level5.1 = 30*240000*1000bits = 7 200 000 000, larger than INT_MAX which is 2147483647, but this is also very big and abnormal number, should figure out a reasonable number after discussion
-#define MIN_BIT_RATE			1	// minimal bit rate need support
+#define MIN_BIT_RATE                    1       // minimal bit rate need support
 
-#define SVC_QUALITY_BASE_QP		26
-#define MAX_SLICEGROUP_IDS		8	// Count number of SSlice Groups
-#define MAX_THREADS_NUM			4	// assume to support up to 4 logical cores(threads)
+#define SVC_QUALITY_BASE_QP             26
+#define MAX_SLICEGROUP_IDS              8       // Count number of SSlice Groups
+#define MAX_THREADS_NUM                 4       // assume to support up to 4 logical cores(threads)
 
-#define INTPEL_NEEDED_MARGIN	(3)  // for safe sub-pel MC
+#define INTPEL_NEEDED_MARGIN            (3)  // for safe sub-pel MC
 
-#define I420_PLANES				3
+#define I420_PLANES                     3
 
-#define COMPRESS_RATIO_THR (1.0f)	//set to size of the original data, which will be large enough considering MinCR
+#define COMPRESS_RATIO_THR (1.0f)       //set to size of the original data, which will be large enough considering MinCR
 
 #if !defined(SSEI_BUFFER_SIZE)
-#define SSEI_BUFFER_SIZE	128
+#define SSEI_BUFFER_SIZE        128
 #endif//SSEI_BUFFER_SIZE
 
 #if !defined(SPS_BUFFER_SIZE)
-#define SPS_BUFFER_SIZE		32
+#define SPS_BUFFER_SIZE         32
 #endif//SPS_BUFFER_SIZE
 
 #if !defined(PPS_BUFFER_SIZE)
-#define PPS_BUFFER_SIZE		16
+#define PPS_BUFFER_SIZE         16
 #endif//PPS_BUFFER_SIZE
 
 #if !defined(MAX_MACROBLOCK_SIZE_IN_BYTE)
-#define MAX_MACROBLOCK_SIZE_IN_BYTE		400 //3200/8, 3200 is from Annex A.3.1.(n)
+#define MAX_MACROBLOCK_SIZE_IN_BYTE     400 //3200/8, 3200 is from Annex A.3.1.(n)
 #endif
 
 #define MAX_MACROBLOCK_SIZE_IN_BYTE_x2 (MAX_MACROBLOCK_SIZE_IN_BYTE<<1)
 
 #if defined(NUM_SPATIAL_LAYERS_CONSTRAINT)
-#define MAX_DEPENDENCY_LAYER		MAX_SPATIAL_LAYER_NUM	// Maximal dependency layer
+#define MAX_DEPENDENCY_LAYER            MAX_SPATIAL_LAYER_NUM   // Maximal dependency layer
 #else
-#define MAX_DEPENDENCY_LAYER		8	// Maximal dependency layer
+#define MAX_DEPENDENCY_LAYER            8       // Maximal dependency layer
 #endif//NUM_SPATIAL_LAYERS_CONSTRAINT
 
 //The max temporal level support is equal or less than MAX_TEMPORAL_LAYER_NUM defined @ codec_app_def.h
-#define MAX_TEMPORAL_LEVEL		MAX_TEMPORAL_LAYER_NUM	// Maximal temporal level
+#define MAX_TEMPORAL_LEVEL              MAX_TEMPORAL_LAYER_NUM  // Maximal temporal level
 
 #if defined(NUM_QUALITY_LAYERS_CONSTRAINT)
-#define MAX_QUALITY_LEVEL		MAX_QUALITY_LAYER_NUM		// Maximal quality level
+#define MAX_QUALITY_LEVEL               MAX_QUALITY_LAYER_NUM           // Maximal quality level
 #else
-#define MAX_QUALITY_LEVEL		16	// Maximal quality level
+#define MAX_QUALITY_LEVEL               16      // Maximal quality level
 #endif//NUM_QUALITY_LAYERS_CONSTRAINT
 
 #if defined(MAX_GOP_SIZE)
 #undef MAX_GOP_SIZE
 #endif//MAX_GOP_SIZE
-#define MAX_GOP_SIZE	(1<<(MAX_TEMPORAL_LEVEL-1))
+#define MAX_GOP_SIZE    (1<<(MAX_TEMPORAL_LEVEL-1))
 
-#define MAX_SHORT_REF_COUNT		(MAX_GOP_SIZE>>1) // 16 in standard, maximal count number of short reference pictures
-#define LONG_TERM_REF_NUM       2
-#define LONG_TERM_REF_NUM_SCREEN 4
-#define MAX_REF_PIC_COUNT		16 // 32 in standard, maximal Short + Long reference pictures
-#define MIN_REF_PIC_COUNT		1		// minimal count number of reference pictures, 1 short + 2 key reference based?
-#define MAX_MULTI_REF_PIC_COUNT	1	//maximum multi-reference number
-//#define TOTAL_REF_MINUS_HALF_GOP	1	// last t0 in last gop
-#define MAX_MMCO_COUNT			66
+#define MAX_SHORT_REF_COUNT             (MAX_GOP_SIZE>>1) // 16 in standard, maximal count number of short reference pictures
+#define LONG_TERM_REF_NUM               2
+#define LONG_TERM_REF_NUM_SCREEN        4
+#define MAX_REF_PIC_COUNT               16 // 32 in standard, maximal Short + Long reference pictures
+#define MIN_REF_PIC_COUNT               1               // minimal count number of reference pictures, 1 short + 2 key reference based?
+#define MAX_MULTI_REF_PIC_COUNT         1       //maximum multi-reference number
+//#define TOTAL_REF_MINUS_HALF_GOP      1       // last t0 in last gop
+#define MAX_MMCO_COUNT                  66
 
 // adjusted numbers reference picture functionality related definition
-#define MAX_REFERENCE_MMCO_COUNT_NUM		4	// adjusted MAX_MMCO_COUNT(66 in standard) definition per encoder design
-#define MAX_REFERENCE_REORDER_COUNT_NUM		2	// adjusted MAX_REF_PIC_COUNT(32 in standard) for reference reordering definition per encoder design
-#define MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA		(MAX_SHORT_REF_COUNT+LONG_TERM_REF_NUM)	// <= MAX_REF_PIC_COUNT, memory saved if <
-#define MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN		(MAX_SHORT_REF_COUNT+LONG_TERM_REF_NUM_SCREEN)	// <= MAX_REF_PIC_COUNT, memory saved if <
+#define MAX_REFERENCE_MMCO_COUNT_NUM            4       // adjusted MAX_MMCO_COUNT(66 in standard) definition per encoder design
+#define MAX_REFERENCE_REORDER_COUNT_NUM         2       // adjusted MAX_REF_PIC_COUNT(32 in standard) for reference reordering definition per encoder design
+#define MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA          (MAX_SHORT_REF_COUNT+LONG_TERM_REF_NUM) // <= MAX_REF_PIC_COUNT, memory saved if <
+#define MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN          (MAX_SHORT_REF_COUNT+LONG_TERM_REF_NUM_SCREEN)  // <= MAX_REF_PIC_COUNT, memory saved if <
 
-#define BASE_DEPENDENCY_ID		0
-#define MAX_DQ_LAYER_NUM		(MAX_DEPENDENCY_LAYER/**MAX_QUALITY_LEVEL*/)
+#define BASE_DEPENDENCY_ID              0
+#define MAX_DQ_LAYER_NUM                (MAX_DEPENDENCY_LAYER/**MAX_QUALITY_LEVEL*/)
 
-#define INVALID_ID		(-1)
+#define INVALID_ID                      (-1)
 
-#define NAL_HEADER_ADD_0X30BYTES 50
+#define NAL_HEADER_ADD_0X30BYTES        50
 
-#define SLICE_NUM_EXPAND_COEF 2
+#define SLICE_NUM_EXPAND_COEF           2
 
 enum {
-BLOCK_16x16 = 0,
-BLOCK_16x8  = 1,
-BLOCK_8x16  = 2,
-BLOCK_8x8   = 3,
-BLOCK_4x4   = 4,
-//    BLOCK_8x4   = 5,
-//    BLOCK_4x8   = 6,
+BLOCK_16x16    = 0,
+BLOCK_16x8     = 1,
+BLOCK_8x16     = 2,
+BLOCK_8x8      = 3,
+BLOCK_4x4      = 4,
+// BLOCK_8x4      = 5,
+// BLOCK_4x8      = 6,
 BLOCK_SIZE_ALL = 5
 };
 
@@ -154,8 +154,8 @@
 } LTR_MARKING_RECEIVE_STATE;
 
 enum {
-  CUR_AU_IDX	= 0,			// index symbol for current access unit
-  SUC_AU_IDX	= 1				// index symbol for successive access unit
+  CUR_AU_IDX    = 0,                    // index symbol for current access unit
+  SUC_AU_IDX    = 1                     // index symbol for successive access unit
 };
 
 enum {
--- a/codec/encoder/core/inc/wels_preprocess.h
+++ b/codec/encoder/core/inc/wels_preprocess.h
@@ -185,10 +185,10 @@
   void SaveBestRefToVaa (SRefInfoParam& sRefSaved, SRefInfoParam* pVaaBestRef);
 
   /*!
-  * \brief	exchange two picture pData planes
-  * \param	ppPic1		picture pointer to picture 1
-  * \param	ppPic2		picture pointer to picture 2
-  * \return	none
+  * \brief  exchange two picture pData planes
+  * \param  ppPic1      picture pointer to picture 1
+  * \param  ppPic2      picture pointer to picture 2
+  * \return none
   */
   void WelsExchangeSpatialPictures (SPicture** ppPic1, SPicture** ppPic2);
 
--- a/codec/encoder/core/src/au_set.cpp
+++ b/codec/encoder/core/src/au_set.cpp
@@ -225,15 +225,15 @@
 
 /*!
  *************************************************************************************
- * \brief	to set Sequence Parameter Set (SPS)
+ * \brief   to set Sequence Parameter Set (SPS)
  *
- * \param 	pSps 	SWelsSPS to be wrote, update iSpsId dependency
- * \param	pBitStringAux		bitstream writer auxiliary
+ * \param   pSps            SWelsSPS to be wrote, update iSpsId dependency
+ * \param   pBitStringAux   bitstream writer auxiliary
  *
- * \return	0 - successed
- *	    	1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case EWelsNalUnitType is SPS.
+ * \note    Call it in case EWelsNalUnitType is SPS.
  *************************************************************************************
  */
 int32_t WelsWriteSpsSyntax (SWelsSPS* pSps, SBitStringAux* pBitStringAux, int32_t* pSpsIdDelta, bool bBaseLayer) {
@@ -300,15 +300,15 @@
 
 /*!
  *************************************************************************************
- * \brief	to write SubSet Sequence Parameter Set
+ * \brief   to write SubSet Sequence Parameter Set
  *
- * \param 	sub_sps		subset pSps parsed
- * \param	pBitStringAux		bitstream writer auxiliary
+ * \param   sub_sps         subset pSps parsed
+ * \param   pBitStringAux   bitstream writer auxiliary
  *
- * \return	0 - successed
- *		    1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case EWelsNalUnitType is SubSet SPS.
+ * \note    Call it in case EWelsNalUnitType is SubSet SPS.
  *************************************************************************************
  */
 
@@ -349,15 +349,15 @@
 
 /*!
  *************************************************************************************
- * \brief	to write Picture Parameter Set (PPS)
+ * \brief   to write Picture Parameter Set (PPS)
  *
- * \param 	pPps     	pPps
- * \param	pBitStringAux		bitstream writer auxiliary
+ * \param   pPps            pPps
+ * \param   pBitStringAux   bitstream writer auxiliary
  *
- * \return	0 - successed
- *	    	1 - failed
+ * \return  0 - successed
+ *          1 - failed
  *
- * \note	Call it in case EWelsNalUnitType is PPS.
+ * \note    Call it in case EWelsNalUnitType is PPS.
  *************************************************************************************
  */
 int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaSetOffset* pPSOVector) {
--- a/codec/encoder/core/src/encoder.cpp
+++ b/codec/encoder/core/src/encoder.cpp
@@ -61,12 +61,12 @@
 
 
 /*!
- * \brief	initialize source picture body
- * \param	pSrc		SSourcePicture*
- * \param	csp		internal csp format
- * \param	iWidth	widht of picture in pixels
- * \param	iHeight	iHeight of picture in pixels
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   initialize source picture body
+ * \param   pSrc        SSourcePicture*
+ * \param   csp         internal csp format
+ * \param   iWidth      widht of picture in pixels
+ * \param   iHeight     iHeight of picture in pixels
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t InitPic (const void* kpSrc, const int32_t kiColorspace, const int32_t kiWidth, const int32_t kiHeight) {
   SSourcePicture* pSrcPic = (SSourcePicture*)kpSrc;
@@ -149,9 +149,9 @@
 }
 
 /*!
- * \brief	initialize function pointers that potentially used in Wels encoding
- * \param	pEncCtx		sWelsEncCtx*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   initialize function pointers that potentially used in Wels encoding
+ * \param   pEncCtx     sWelsEncCtx*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t InitFunctionPointers (sWelsEncCtx* pEncCtx, SWelsSvcCodingParam* pParam, uint32_t uiCpuFlag) {
   int32_t iReturn = ENC_RETURN_SUCCESS;
@@ -227,7 +227,7 @@
 }
 
 /*!
- * \brief	initialize frame coding
+ * \brief   initialize frame coding
  */
 void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) {
   // for bitstream writing
@@ -364,7 +364,7 @@
 }
 
 /*!
- * \brief	Dump reconstruction for dependency layer
+ * \brief   Dump reconstruction for dependency layer
  */
 
 extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName, const int8_t kiDid, bool bAppend,
@@ -432,7 +432,7 @@
 }
 
 /*!
- * \brief	Dump the reconstruction pictures
+ * \brief   Dump the reconstruction pictures
  */
 
 void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t kiDid, bool bAppend,
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -166,9 +166,9 @@
   }
 }
 /*!
- * \brief	validate checking in parameter configuration
- * \pParam	pParam		SWelsSvcCodingParam*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   validate checking in parameter configuration
+ * \pParam  pParam      SWelsSvcCodingParam*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) {
   const float fEpsn = 0.000001f;
@@ -654,12 +654,12 @@
 }
 
 /*!
- * \brief	acquire count number of layers and NALs based on configurable paramters dependency
- * \pParam	pCtx				sWelsEncCtx*
- * \pParam	pParam			SWelsSvcCodingParam*
- * \pParam	pCountLayers	pointer of count number of layers indeed
- * \pParam	iCountNals		pointer of count number of nals indeed
- * \return	0 - successful; otherwise failed
+ * \brief   acquire count number of layers and NALs based on configurable paramters dependency
+ * \pParam  pCtx            sWelsEncCtx*
+ * \pParam  pParam          SWelsSvcCodingParam*
+ * \pParam  pCountLayers    pointer of count number of layers indeed
+ * \pParam  iCountNals      pointer of count number of nals indeed
+ * \return  0 - successful; otherwise failed
  */
 static inline int32_t AcquireLayersNals (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pParam, int32_t* pCountLayers,
     int32_t* pCountNals) {
@@ -1054,9 +1054,9 @@
 }
 
 /*!
- * \brief	initialize ppDqLayerList and slicepEncCtx_list due to count number of layers available
- * \pParam	pCtx			sWelsEncCtx*
- * \return	0 - successful; otherwise failed
+ * \brief   initialize ppDqLayerList and slicepEncCtx_list due to count number of layers available
+ * \pParam  pCtx            sWelsEncCtx*
+ * \return  0 - successful; otherwise failed
  */
 static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx, SExistingParasetList* pExistingParasetList) {
   SWelsSvcCodingParam* pParam	= NULL;
@@ -1671,9 +1671,9 @@
   }
 }
 /*!
- * \brief	request specific memory for SVC
- * \pParam	pEncCtx		sWelsEncCtx*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   request specific memory for SVC
+ * \pParam  pEncCtx     sWelsEncCtx*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 void GetMvMvdRange (SWelsSvcCodingParam* pParam, int32_t& iMvRange, int32_t& iMvdRange) {
   ELevelIdc iMinLevelIdc = LEVEL_5_2;
@@ -1941,9 +1941,9 @@
 
 
 /*!
- * \brief	free memory	in SVC core encoder
- * \pParam	pEncCtx		sWelsEncCtx*
- * \return	none
+ * \brief   free memory in SVC core encoder
+ * \pParam  pEncCtx     sWelsEncCtx*
+ * \return  none
  */
 void FreeMemorySvc (sWelsEncCtx** ppCtx) {
   if (NULL != *ppCtx) {
@@ -2316,7 +2316,7 @@
 }
 
 /*!
- * \brief	log output for cpu features/capabilities
+ * \brief   log output for cpu features/capabilities
  */
 void OutputCpuFeaturesLog (SLogContext* pLogCtx, uint32_t uiCpuFeatureFlags, uint32_t uiCpuCores,
                            int32_t iCacheLineSize) {
@@ -2412,10 +2412,10 @@
 }
 
 /*!
- * \brief	initialize Wels avc encoder core library
- * \pParam	ppCtx		sWelsEncCtx**
- * \pParam	pParam		SWelsSvcCodingParam*
- * \return	successful - 0; otherwise none 0 for failed
+ * \brief   initialize Wels avc encoder core library
+ * \pParam  ppCtx       sWelsEncCtx**
+ * \pParam  pParam      SWelsSvcCodingParam*
+ * \return  successful - 0; otherwise none 0 for failed
  */
 int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingParam, SLogContext* pLogCtx,
                             SExistingParasetList* pExistingParasetList) {
@@ -2605,9 +2605,9 @@
 }
 #endif
 /*!
- * \brief	uninitialize Wels encoder core library
- * \pParam	pEncCtx		sWelsEncCtx*
- * \return	none
+ * \brief   uninitialize Wels encoder core library
+ * \pParam  pEncCtx     sWelsEncCtx*
+ * \return  none
  */
 void WelsUninitEncoderExt (sWelsEncCtx** ppCtx) {
   if (NULL == ppCtx || NULL == *ppCtx)
@@ -2650,7 +2650,7 @@
 }
 
 /*!
- * \brief	get temporal level due to configuration and coding context
+ * \brief   get temporal level due to configuration and coding context
  */
 int32_t GetTemporalLevel (SSpatialLayerInternal* fDlp, const int32_t kiFrameNum, const int32_t kiGopSize) {
   const int32_t kiCodingIdx	= kiFrameNum & (kiGopSize - 1);
@@ -2810,7 +2810,7 @@
 }
 
 /*!
- * \brief	initialize current layer
+ * \brief   initialize current layer
  */
 void WelsInitCurrentLayer (sWelsEncCtx* pCtx,
                            const int32_t kiWidth,
@@ -3072,7 +3072,7 @@
 }
 
 /*!
- * \brief	swap pDq layers between current pDq layer and reference pDq layer
+ * \brief   swap pDq layers between current pDq layer and reference pDq layer
  */
 
 static inline void WelsSwapDqLayers (sWelsEncCtx* pCtx) {
@@ -3087,7 +3087,7 @@
 }
 
 /*!
- * \brief	prefetch reference picture after WelsBuildRefList
+ * \brief   prefetch reference picture after WelsBuildRefList
  */
 static inline void PrefetchReferencePicture (sWelsEncCtx* pCtx, const EVideoFrameType keFrameType) {
   SSlice* pSliceBase = &pCtx->pCurDqLayer->sLayerInfo.pSliceInLayer[0];
@@ -3208,8 +3208,8 @@
 }
 
 /*!
- * \brief	write all parameter sets introduced in SVC extension
- * \return	writing results, success or error
+ * \brief   write all parameter sets introduced in SVC extension
+ * \return  writing results, success or error
  */
 int32_t WelsWriteParameterSets (sWelsEncCtx* pCtx, int32_t* pNalLen, int32_t* pNumNal, int32_t* pTotalLength) {
   int32_t iSize	= 0;
@@ -3652,12 +3652,12 @@
 }
 
 /*!
- * \brief	core svc encoding process
+ * \brief   core svc encoding process
  *
- * \pParam	pCtx			sWelsEncCtx*, encoder context
- * \pParam	pFbi			FrameBSInfo*
- * \pParam	pSrcPic			Source Picture
- * \return	EFrameType (videoFrameTypeIDR/videoFrameTypeI/videoFrameTypeP)
+ * \pParam  pCtx            sWelsEncCtx*, encoder context
+ * \pParam  pFbi            FrameBSInfo*
+ * \pParam  pSrcPic         Source Picture
+ * \return  EFrameType (videoFrameTypeIDR/videoFrameTypeI/videoFrameTypeP)
  */
 int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSourcePicture* pSrcPic) {
   if (pCtx == NULL) {
@@ -4364,8 +4364,8 @@
 }
 
 /*!
- * \brief	Wels SVC encoder parameters adjustment
- *			SVC adjustment results in new requirement in memory blocks adjustment
+ * \brief   Wels SVC encoder parameters adjustment
+ *          SVC adjustment results in new requirement in memory blocks adjustment
  */
 int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewParam) {
   SWelsSvcCodingParam* pOldParam		= NULL;
--- a/codec/encoder/core/src/nal_encap.cpp
+++ b/codec/encoder/core/src/nal_encap.cpp
@@ -41,7 +41,7 @@
 #include "ls_defines.h"
 namespace WelsEnc {
 /*!
- * \brief	load an initialize NAL pRawNal pData
+ * \brief   load an initialize NAL pRawNal pData
  */
 void WelsLoadNal (SWelsEncoderOutput* pEncoderOuput, const int32_t/*EWelsNalUnitType*/ kiType,
                   const int32_t/*EWelsNalRefIdc*/ kiNalRefIdc) {
@@ -60,7 +60,7 @@
 }
 
 /*!
- * \brief	unload pRawNal NAL
+ * \brief   unload pRawNal NAL
  */
 void WelsUnloadNal (SWelsEncoderOutput* pEncoderOuput) {
   SWelsEncoderOutput*	pWelsEncoderOuput = pEncoderOuput;
@@ -75,7 +75,7 @@
 }
 
 /*!
- * \brief	load an initialize NAL pRawNal pData
+ * \brief   load an initialize NAL pRawNal pData
  */
 void WelsLoadNalForSlice (SWelsSliceBs* pSliceBsIn, const int32_t/*EWelsNalUnitType*/ kiType,
                           const int32_t/*EWelsNalRefIdc*/ kiNalRefIdc) {
@@ -95,7 +95,7 @@
 }
 
 /*!
- * \brief	unload pRawNal NAL
+ * \brief   unload pRawNal NAL
  */
 void WelsUnloadNalForSlice (SWelsSliceBs* pSliceBsIn) {
   SWelsSliceBs* pSliceBs	        = pSliceBsIn;
@@ -111,12 +111,12 @@
 }
 
 /*!
- * \brief	encode NAL with emulation forbidden three bytes checking
- * \param	pDst			pDst NAL pData
- * \param	pDstLen		length of pDst NAL output
- * \param	annexeb		annexeb flag
- * \param	pRawNal			pRawNal NAL pData
- * \return	ERRCODE
+ * \brief   encode NAL with emulation forbidden three bytes checking
+ * \param   pDst        pDst NAL pData
+ * \param   pDstLen     length of pDst NAL output
+ * \param   annexeb     annexeb flag
+ * \param   pRawNal     pRawNal NAL pData
+ * \return  ERRCODE
  */
 //TODO 1: refactor the calling of this func in multi-thread
 //TODO 2: complete the realloc&copy
@@ -186,7 +186,7 @@
 }
 
 /*!
- * \brief	write prefix nal
+ * \brief   write prefix nal
  */
 int32_t WelsWriteSVCPrefixNal (SBitStringAux* pBitStringAux, const int32_t kiNalRefIdc,
                                const bool kbIdrFlag) {
--- a/codec/encoder/core/src/picture_handle.cpp
+++ b/codec/encoder/core/src/picture_handle.cpp
@@ -41,12 +41,12 @@
 
 namespace WelsEnc {
 /*!
- * \brief	alloc picture pData with borders for each plane based width and height of picture
- * \param	cx				width of picture in pixels
- * \param	cy				height of picture in pixels
- * \param	need_data		need pData allocation
- * \pram	need_expand		need borders expanding
- * \return	successful if effective picture pointer returned, otherwise failed with NULL
+ * \brief   alloc picture pData with borders for each plane based width and height of picture
+ * \param   cx              width of picture in pixels
+ * \param   cy              height of picture in pixels
+ * \param   need_data       need pData allocation
+ * \pram    need_expand     need borders expanding
+ * \return  successful if effective picture pointer returned, otherwise failed with NULL
  */
 SPicture* AllocPicture (CMemoryAlign* pMa, const int32_t kiWidth , const int32_t kiHeight,
                         bool bNeedMbInfo, int32_t iNeedFeatureStorage) {
@@ -122,9 +122,9 @@
 }
 
 /*!
- * \brief	free picture pData planes
- * \param	pPic		picture pointer to be destoryed
- * \return	none
+ * \brief   free picture pData planes
+ * \param   pPic        picture pointer to be destoryed
+ * \return  none
  */
 void FreePicture (CMemoryAlign* pMa, SPicture** ppPic) {
   if (NULL != ppPic && NULL != *ppPic) {
--- a/codec/encoder/core/src/property.cpp
+++ b/codec/encoder/core/src/property.cpp
@@ -40,23 +40,23 @@
 #include "property.h"
 #include "crt_util_safe_x.h"	// Safe CRT routines like utils for cross_platforms
 namespace WelsEnc {
-#define WELS_CODE_NAME	"Wels"
-#define WELS_LIB_NAME	"Encoder"
+#define WELS_CODE_NAME  "Wels"
+#define WELS_LIB_NAME   "Encoder"
 
-#define WELS_VERSION_INT	0x000001	// v 0.0.1
-#define WELS_VERSION_STR	"0.0.1"
+#define WELS_VERSION_INT        0x000001        // v 0.0.1
+#define WELS_VERSION_STR        "0.0.1"
 
-#define WELS_BUILD_NUM		"090420"	// yymmdd
+#define WELS_BUILD_NUM          "090420"        // yymmdd
 
 //////////////summary information//////////////
 
-#define WELS_IDENT		WELS_CODE_NAME WELS_LIB_NAME "v" WELS_VERSION_STR "b" WELS_BUILD_NUM
+#define WELS_IDENT              WELS_CODE_NAME WELS_LIB_NAME "v" WELS_VERSION_STR "b" WELS_BUILD_NUM
 
 /*!
- * \brief	get code name
- * \param	pBuf	pBuffer to restore code name
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get code name
+ * \param   pBuf    pBuffer to restore code name
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetCodeName (char* pBuf, int32_t iSize) {
   int32_t iLen = 0;
@@ -74,10 +74,10 @@
 }
 
 /*!
- * \brief	get library/module name
- * \param	pBuf	pBuffer to restore module name
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get library/module name
+ * \param   pBuf    pBuffer to restore module name
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetLibName (char* pBuf, int32_t iSize) {
   int32_t iLen = 0;
@@ -95,10 +95,10 @@
 }
 
 /*!
- * \brief	get version number
- * \param	pBuf	pBuffer to restore version number
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get version number
+ * \param   pBuf    pBuffer to restore version number
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetVerNum (char* pBuf, int32_t iSize) {
   int32_t iLen = 0;
@@ -116,10 +116,10 @@
 }
 
 /*!
- * \brief	get identify information
- * \param	pBuf	pBuffer to restore indentify information
- * \param	iSize	size of pBuffer overall
- * \return	actual size of pBuffer used; 0 returned in failure
+ * \brief   get identify information
+ * \param   pBuf    pBuffer to restore indentify information
+ * \param   iSize   size of pBuffer overall
+ * \return  actual size of pBuffer used; 0 returned in failure
  */
 int32_t GetIdentInfo (char* pBuf, int32_t iSize) {
   int32_t iLen = 0;
--- a/codec/encoder/core/src/ref_list_mgr_svc.cpp
+++ b/codec/encoder/core/src/ref_list_mgr_svc.cpp
@@ -37,7 +37,7 @@
 namespace WelsEnc {
 
 /*
-*	reset LTR marking , recovery ,feedback state to default
+*   reset LTR marking , recovery ,feedback state to default
 */
 void ResetLtrState (SLTRState* pLtr) {
   pLtr->bReceivedT0LostFlag	= false;
@@ -60,7 +60,7 @@
 }
 
 /*
- *	reset reference picture list
+ *  reset reference picture list
  */
 void WelsResetRefList (sWelsEncCtx* pCtx) {
   SRefList* pRefList = pCtx->ppRefPicListExt[pCtx->uiDependencyId];
@@ -146,7 +146,7 @@
 
 }
 /*
-*	delete failed mark according LTR recovery pRequest
+*   delete failed mark according LTR recovery pRequest
 */
 static inline void DeleteInvalidLTR (sWelsEncCtx* pCtx) {
   SRefList* pRefList		= pCtx->ppRefPicListExt[pCtx->uiDependencyId];
@@ -188,7 +188,7 @@
 
 }
 /*
-*	handle LTR Mark feedback message
+*   handle LTR Mark feedback message
 */
 static inline void HandleLTRMarkFeedback (sWelsEncCtx* pCtx) {
   SRefList* pRefList		= pCtx->ppRefPicListExt[pCtx->uiDependencyId];
@@ -243,7 +243,7 @@
   }
 }
 /*
- *	LTR mark process
+ *  LTR mark process
  */
 static inline void LTRMarkProcess (sWelsEncCtx* pCtx) {
   SRefList* pRefList		= pCtx->ppRefPicListExt[pCtx->uiDependencyId];
@@ -344,7 +344,7 @@
 }
 
 /*
- *	update reference picture list
+ *  update reference picture list
  */
 bool WelsUpdateRefList (sWelsEncCtx* pCtx) {
   SRefList* pRefList		= pCtx->ppRefPicListExt[pCtx->uiDependencyId];
@@ -552,7 +552,7 @@
 }
 
 /*
- *	build reference picture list
+ *  build reference picture list
  */
 bool WelsBuildRefList (sWelsEncCtx* pCtx, const int32_t iPOC, int32_t iBestLtrRefIdx) {
   SRefList* pRefList		=  pCtx->ppRefPicListExt[pCtx->uiDependencyId];
@@ -562,9 +562,9 @@
   uint32_t i				= 0;
 
   // to support any type of cur_dq->mgs_control
-  //	[ 0:	using current layer to do ME/MC;
-  //	  -1:	using store base layer to do ME/MC;
-  //	  2:	using highest layer to do ME/MC; ]
+  //    [ 0:    using current layer to do ME/MC;
+  //     -1:    using store base layer to do ME/MC;
+  //      2:    using highest layer to do ME/MC; ]
 
   // build reference list 0/1 if applicable
 
@@ -623,7 +623,7 @@
 }
 
 /*
- *	update syntax for reference base related
+ *  update syntax for reference base related
  */
 void WelsUpdateRefSyntax (sWelsEncCtx* pCtx, const int32_t iPOC, const int32_t uiFrameType) {
   SLTRState* pLtr = &pCtx->pLtr[pCtx->uiDependencyId];
--- a/codec/encoder/core/src/set_mb_syn_cavlc.cpp
+++ b/codec/encoder/core/src/set_mb_syn_cavlc.cpp
@@ -51,7 +51,7 @@
 
 
 /*
- *	Exponential Golomb codes encoding routines
+ *  Exponential Golomb codes encoding routines
  */
 
 #define    CAVLC_BS_INIT( pBs )  \
--- a/codec/encoder/core/src/svc_enc_slice_segment.cpp
+++ b/codec/encoder/core/src/svc_enc_slice_segment.cpp
@@ -42,12 +42,12 @@
 
 namespace WelsEnc {
 /*!
- * \brief	Assign MB map for single slice segment
+ * \brief   Assign MB map for single slice segment
  *
- * \param	pMbMap			overall MB map
- * \param	iCountMbNum	count number of MB
+ * \param   pMbMap          overall MB map
+ * \param   iCountMbNum     count number of MB
  *
- * \return	0 - successful; none 0 - failed
+ * \return  0 - successful; none 0 - failed
  */
 int32_t AssignMbMapSingleSlice (void* pMbMap, const int32_t kiCountMbNum, const int32_t kiMapUnitSize) {
   if (NULL == pMbMap || kiCountMbNum <= 0)
@@ -59,12 +59,12 @@
 }
 
 /*!
- * \brief	Assign MB map for multiple slice(s) segment
+ * \brief   Assign MB map for multiple slice(s) segment
  *
- * \param	pMbMap			overall MB map
- * \param	iCountMbNum	count number of MB
+ * \param   pMbMap          overall MB map
+ * \param   iCountMbNum     count number of MB
  *
- * \return	0 - successful; none 0 - failed
+ * \return  0 - successful; none 0 - failed
  */
 int32_t AssignMbMapMultipleSlices (SSliceCtx* pSliceSeg, const SSliceConfig* kpMso) {
   if (NULL == pSliceSeg || SM_SINGLE_SLICE == pSliceSeg->uiSliceMode)
@@ -315,7 +315,7 @@
 
 
 /*!
- *	Get slice count for multiple slice segment
+ *  Get slice count for multiple slice segment
  *
  */
 int32_t GetInitialSliceNum (const int32_t kiMbWidth, const int32_t kiMbHeight, SSliceConfig* pMso) {
@@ -343,15 +343,15 @@
 }
 
 /*!
- * \brief	Initialize slice segment (Single/multiple slices)
+ * \brief   Initialize slice segment (Single/multiple slices)
  *
- * \param	pSliceSeg			SSlice segment to be initialized
- * \param	uiSliceMode			SSlice mode
- * \param	multi_slice_argv	Multiple slices argument
- * \param	iMbWidth			MB width
- * \param	iMbHeight			MB height
+ * \param   pSliceSeg           SSlice segment to be initialized
+ * \param   uiSliceMode         SSlice mode
+ * \param   multi_slice_argv    Multiple slices argument
+ * \param   iMbWidth            MB width
+ * \param   iMbHeight           MB height
  *
- * \return	0 - successful; none 0 - failed;
+ * \return  0 - successful; none 0 - failed;
  */
 int32_t InitSliceSegment (SSliceCtx* pSliceSeg,
                           CMemoryAlign* pMa,
@@ -467,11 +467,11 @@
 }
 
 /*!
- * \brief	Uninitialize slice segment (Single/multiple slices)
+ * \brief   Uninitialize slice segment (Single/multiple slices)
  *
- * \param	pSliceSeg			SSlice segment to be uninitialized
+ * \param   pSliceSeg           SSlice segment to be uninitialized
  *
- * \return	none;
+ * \return  none;
  */
 void UninitSliceSegment (SSliceCtx* pSliceSeg, CMemoryAlign* pMa) {
   if (NULL != pSliceSeg) {
@@ -501,17 +501,17 @@
 
 
 /*!
- * \brief	Initialize Wels SSlice context (Single/multiple slices and FMO)
+ * \brief   Initialize Wels SSlice context (Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context to be initialized
- * \param	bFmoUseFlag	flag of using fmo
- * \param	iMbWidth		MB width
- * \param	iMbHeight		MB height
- * \param	uiSliceMode		slice mode
- * \param	mul_slice_arg	argument for multiple slice if it is applicable
- * \param	pPpsArg			argument for pPps parameter
+ * \param   pSliceCtx       SSlice context to be initialized
+ * \param   bFmoUseFlag     flag of using fmo
+ * \param   iMbWidth        MB width
+ * \param   iMbHeight       MB height
+ * \param   uiSliceMode     slice mode
+ * \param   mul_slice_arg   argument for multiple slice if it is applicable
+ * \param   pPpsArg         argument for pPps parameter
  *
- * \return	0 - successful; none 0 - failed;
+ * \return  0 - successful; none 0 - failed;
  */
 int32_t InitSlicePEncCtx (SSliceCtx* pSliceCtx,
                           CMemoryAlign* pMa,
@@ -532,11 +532,11 @@
 }
 
 /*!
- * \brief	Uninitialize Wels SSlice context (Single/multiple slices and FMO)
+ * \brief   Uninitialize Wels SSlice context (Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context to be initialized
+ * \param   pSliceCtx       SSlice context to be initialized
  *
- * \return	NONE;
+ * \return  NONE;
  */
 void UninitSlicePEncCtx (SSliceCtx* pSliceCtx, CMemoryAlign* pMa) {
   if (NULL != pSliceCtx) {
@@ -545,12 +545,12 @@
 }
 
 /*!
- * \brief	Get slice idc for given iMbXY (apply in Single/multiple slices and FMO)
+ * \brief   Get slice idc for given iMbXY (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiMbXY			MB xy index
+ * \param   pSliceCtx       SSlice context
+ * \param   kiMbXY          MB xy index
  *
- * \return	uiSliceIdc - successful; -1 - failed;
+ * \return  uiSliceIdc - successful; -1 - failed;
  */
 uint16_t WelsMbToSliceIdc (SSliceCtx* pSliceCtx, const int32_t kiMbXY) {
   if (NULL != pSliceCtx && kiMbXY < pSliceCtx->iMbNumInFrame && kiMbXY >= 0)
@@ -559,12 +559,12 @@
 }
 
 /*!
- * \brief	Get first mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get first mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kuiSliceIdc		slice idc
+ * \param   pSliceCtx       SSlice context
+ * \param   kuiSliceIdc     slice idc
  *
- * \return	iFirstMb - successful; -1 - failed;
+ * \return  iFirstMb - successful; -1 - failed;
  */
 int32_t WelsGetFirstMbOfSlice (SSliceCtx* pSliceCtx, const int32_t kuiSliceIdc) {
   return pSliceCtx->pFirstMbInSlice[ kuiSliceIdc ];
@@ -571,12 +571,12 @@
 }
 
 /*!
- * \brief	Get successive mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get successive mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiMbXY			MB xy index
+ * \param   pSliceCtx       SSlice context
+ * \param   kiMbXY          MB xy index
  *
- * \return	next_mb - successful; -1 - failed;
+ * \return  next_mb - successful; -1 - failed;
  */
 int32_t WelsGetNextMbOfSlice (SSliceCtx* pSliceCtx, const int32_t kiMbXY) {
   if (NULL != pSliceCtx) {
@@ -605,12 +605,12 @@
 }
 
 /*!
- * \brief	Get previous mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get previous mb to be processed in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kiMbXY			MB xy index
+ * \param   pSliceCtx       SSlice context
+ * \param   kiMbXY          MB xy index
  *
- * \return	prev_mb - successful; -1 - failed;
+ * \return  prev_mb - successful; -1 - failed;
  */
 int32_t WelsGetPrevMbOfSlice (SSliceCtx* pSliceCtx, const int32_t kiMbXY) {
   if (NULL != pSliceCtx) {
@@ -635,12 +635,12 @@
 }
 
 /*!
- * \brief	Get number of mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
+ * \brief   Get number of mb in slice/slice_group: uiSliceIdc (apply in Single/multiple slices and FMO)
  *
- * \param	pSliceCtx		SSlice context
- * \param	kuiSliceIdc		slice/slice_group idc
+ * \param   pSliceCtx       SSlice context
+ * \param   kuiSliceIdc     slice/slice_group idc
  *
- * \return	count_num_of_mb - successful; -1 - failed;
+ * \return  count_num_of_mb - successful; -1 - failed;
  */
 int32_t WelsGetNumMbInSlice (SSliceCtx* pSliceCtx, const int32_t kuiSliceIdc) {
   if (NULL == pSliceCtx || kuiSliceIdc < 0)
--- a/codec/encoder/core/src/svc_encode_slice.cpp
+++ b/codec/encoder/core/src/svc_encode_slice.cpp
@@ -175,7 +175,7 @@
 #endif//MB_TYPES_CHECK
 
 /*!
-* \brief	write reference picture list on reordering syntax in Slice header
+* \brief    write reference picture list on reordering syntax in Slice header
 */
 void WriteReferenceReorder (SBitStringAux* pBs, SSliceHeader* sSliceHeader) {
   SRefPicListReorderSyntax* pRefOrdering	= &sSliceHeader->sRefReordering;
@@ -201,7 +201,7 @@
 }
 
 /*!
-* \brief	write reference picture marking syntax in pSlice header
+* \brief    write reference picture marking syntax in pSlice header
 */
 void WriteRefPicMarking (SBitStringAux* pBs, SSliceHeader* pSliceHeader, SNalUnitHeaderExt* pNalHdrExt) {
   SRefPicMarking* sRefMarking	= &pSliceHeader->sRefMarking;
--- a/codec/encoder/core/src/wels_preprocess.cpp
+++ b/codec/encoder/core/src/wels_preprocess.cpp
@@ -68,7 +68,7 @@
 
 /***************************************************************************
 *
-*	implement of the interface
+*   implement of the interface
 *
 ***************************************************************************/
 
@@ -285,8 +285,8 @@
 
 
 /*
-*	SingleLayerPreprocess: down sampling if applicable
-*  @return:	exact number of spatial layers need to encoder indeed
+*   SingleLayerPreprocess: down sampling if applicable
+*  @return: exact number of spatial layers need to encoder indeed
 */
 int32_t CWelsPreProcess::SingleLayerPreprocess (sWelsEncCtx* pCtx, const SSourcePicture* kpSrc,
     Scaled_Picture* pScaledPicture) {
@@ -405,7 +405,7 @@
 
 
 /*!
- * \brief	Whether input picture need be scaled?
+ * \brief   Whether input picture need be scaled?
  */
 bool JudgeNeedOfScaling (SWelsSvcCodingParam* pParam, Scaled_Picture* pScaledPicture) {
   const int32_t kiInputPicWidth	= pParam->SUsedPicRect.iWidth;
@@ -1195,10 +1195,10 @@
 }
 
 /*!
-* \brief	exchange two picture pData planes
-* \param	ppPic1		picture pointer to picture 1
-* \param	ppPic2		picture pointer to picture 2
-* \return	none
+* \brief    exchange two picture pData planes
+* \param    ppPic1      picture pointer to picture 1
+* \param    ppPic2      picture pointer to picture 2
+* \return   none
 */
 void CWelsPreProcess::WelsExchangeSpatialPictures (SPicture** ppPic1, SPicture** ppPic2) {
   SPicture* tmp	= *ppPic1;
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -57,7 +57,7 @@
 namespace WelsEnc {
 
 /*
- *	CWelsH264SVCEncoder class implementation
+ *  CWelsH264SVCEncoder class implementation
  */
 CWelsH264SVCEncoder::CWelsH264SVCEncoder()
   :	m_pEncContext (NULL),
@@ -178,7 +178,7 @@
 }
 
 /*
- *	SVC Encoder Initialization
+ *  SVC Encoder Initialization
  */
 int CWelsH264SVCEncoder::Initialize (const SEncParamBase* argv) {
   if (m_pWelsTrace == NULL) {
@@ -348,7 +348,7 @@
 }
 
 /*
- *	SVC Encoder Uninitialization
+ *  SVC Encoder Uninitialization
  */
 int32_t CWelsH264SVCEncoder::Uninitialize() {
   if (!m_bInitialFlag) {
@@ -370,7 +370,7 @@
 
 
 /*
- *	SVC core encoding
+ *  SVC core encoding
  */
 int CWelsH264SVCEncoder::EncodeFrame (const SSourcePicture* kpSrcPic, SFrameBSInfo* pBsInfo) {
   if (! (kpSrcPic && m_bInitialFlag && pBsInfo)) {
@@ -469,7 +469,7 @@
 }
 
 /*
- *	Force key frame
+ *  Force key frame
  */
 int CWelsH264SVCEncoder::ForceIntraFrame (bool bIDR) {
   if (! (m_pEncContext && m_bInitialFlag)) {
--- a/codec/processing/interface/IWelsVP.h
+++ b/codec/processing/interface/IWelsVP.h
@@ -56,9 +56,9 @@
   RET_FAILED           = -1,
   RET_INVALIDPARAM     = -2,
   RET_OUTOFMEMORY      = -3,
-  RET_NOTSUPPORTED       = -4,
+  RET_NOTSUPPORTED     = -4,
   RET_UNEXPECTED       = -5,
-  RET_NEEDREINIT		  = -6
+  RET_NEEDREINIT       = -6
 } EResult;
 
 typedef enum {
@@ -80,7 +80,7 @@
   VIDEO_FORMAT_I420       = 23,   /* yuv 4:2:0 planar */
   VIDEO_FORMAT_YV12       = 24,   /* yuv 4:2:0 planar */
   VIDEO_FORMAT_INTERNAL   = 25,   /* Only Used for SVC decoder testbed */
-  VIDEO_FORMAT_NV12		= 26,	/* y planar + uv packed */
+  VIDEO_FORMAT_NV12       = 26,   /* y planar + uv packed */
   VIDEO_FORMAT_I422       = 27,   /* yuv 4:2:2 planar */
   VIDEO_FORMAT_I444       = 28,   /* yuv 4:4:4 planar */
   VIDEO_FORMAT_YUYV       = 20,   /* yuv 4:2:2 packed */
@@ -124,13 +124,13 @@
   METHOD_DENOISE              ,
   METHOD_SCENE_CHANGE_DETECTION_VIDEO ,
   METHOD_SCENE_CHANGE_DETECTION_SCREEN ,
-  METHOD_DOWNSAMPLE			  ,
+  METHOD_DOWNSAMPLE            ,
   METHOD_VAA_STATISTICS        ,
   METHOD_BACKGROUND_DETECTION  ,
   METHOD_ADAPTIVE_QUANT ,
   METHOD_COMPLEXITY_ANALYSIS   ,
   METHOD_COMPLEXITY_ANALYSIS_SCREEN,
-  METHOD_IMAGE_ROTATE		  ,
+  METHOD_IMAGE_ROTATE          ,
   METHOD_SCROLL_DETECTION,
   METHOD_MASK
 } EMethods;
--- a/codec/processing/src/backgrounddetection/BackgroundDetection.cpp
+++ b/codec/processing/src/backgrounddetection/BackgroundDetection.cpp
@@ -39,16 +39,16 @@
 #define BGD_OU_SIZE         (1<<LOG2_BGD_OU_SIZE)
 #define BGD_OU_SIZE_UV      (BGD_OU_SIZE>>1)
 #define BGD_THD_SAD         (2*BGD_OU_SIZE*BGD_OU_SIZE)
-#define	BGD_THD_ASD_UV      (4*BGD_OU_SIZE_UV)
+#define BGD_THD_ASD_UV      (4*BGD_OU_SIZE_UV)
 #define LOG2_MB_SIZE        (4)
 #define OU_SIZE_IN_MB       (BGD_OU_SIZE >> 4)
 #define Q_FACTOR            (8)
 #define BGD_DELTA_QP_THD    (3)
 
-#define OU_LEFT		(0x01)
-#define OU_RIGHT	(0x02)
-#define OU_TOP		(0x04)
-#define OU_BOTTOM	(0x08)
+#define OU_LEFT         (0x01)
+#define OU_RIGHT        (0x02)
+#define OU_TOP          (0x04)
+#define OU_BOTTOM       (0x08)
 
 CBackgroundDetection::CBackgroundDetection (int32_t iCpuFlag) {
   m_eMethod = METHOD_BACKGROUND_DETECTION;
--- a/codec/processing/src/common/memory.h
+++ b/codec/processing/src/common/memory.h
@@ -61,13 +61,13 @@
 
 /*!
 *************************************************************************************
-* \brief	malloc with zero filled utilization in Wels
+* \brief    malloc with zero filled utilization in Wels
 *
-* \param 	i_size	uiSize of memory block required
+* \param    i_size  uiSize of memory block required
 *
-* \return	allocated memory pointer exactly, failed in case of NULL return
+* \return   allocated memory pointer exactly, failed in case of NULL return
 *
-* \note	N/A
+* \note N/A
 *************************************************************************************
 */
 void* WelsMalloc (const uint32_t kuiSize, char* pTag = NULL);
@@ -74,14 +74,14 @@
 
 /*!
 *************************************************************************************
-* \brief	free utilization in Wels
+* \brief    free utilization in Wels
 *
-* \param 	p	data pointer to be free.
-*			i.e, uint8_t *p = actual data to be free, argv = &p.
+* \param    p   data pointer to be free.
+*           i.e, uint8_t *p = actual data to be free, argv = &p.
 *
-* \return	NONE
+* \return   NONE
 *
-* \note	N/A
+* \note N/A
 *************************************************************************************
 */
 void WelsFree (void* pPointer, char* pTag = NULL);
@@ -88,16 +88,16 @@
 
 /*!
 *************************************************************************************
-* \brief	reallocation in Wels. Do nothing and continue using old block
-*		in case the block is large enough currently
+* \brief    reallocation in Wels. Do nothing and continue using old block
+*       in case the block is large enough currently
 *
-* \param 	p	    memory block required in old time
-* \param	i_size	new uiSize of memory block requested
-* \param	sz_real	pointer to the old uiSize of memory block
+* \param    p       memory block required in old time
+* \param    i_size  new uiSize of memory block requested
+* \param    sz_real pointer to the old uiSize of memory block
 *
-* \return	reallocated memory pointer exactly, failed in case of NULL return
+* \return   reallocated memory pointer exactly, failed in case of NULL return
 *
-* \note	N/A
+* \note N/A
 *************************************************************************************
 */
 void* WelsRealloc (void*  pPointer, uint32_t* pRealSize, const uint32_t kuiSize, char* pTag = NULL);
--- a/codec/processing/src/common/util.h
+++ b/codec/processing/src/common/util.h
@@ -58,16 +58,16 @@
 #define MAX_HEIGHT     (2304)//MAX_FS_LEVEL51 (36864); MAX_FS_LEVEL51*256/4096 = 2304
 
 #define MB_WIDTH_LUMA  (16)
-#define PESN		   (1e-6)	// desired float precision
+#define PESN               (1e-6)       // desired float precision
 #define AQ_INT_MULTIPLY                   10000000
 #define AQ_TIME_INT_MULTIPLY                   10000
 #define AQ_QSTEP_INT_MULTIPLY                   100
 #define AQ_PESN 10 // (1e-6)*AQ_INT_MULTIPLY
 
-#define MB_TYPE_INTRA4x4		0x00000001
-#define MB_TYPE_INTRA16x16	0x00000002
-#define MB_TYPE_INTRA_PCM		0x00000004
-#define MB_TYPE_INTRA			  (MB_TYPE_INTRA4x4 | MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM)
+#define MB_TYPE_INTRA4x4                0x00000001
+#define MB_TYPE_INTRA16x16              0x00000002
+#define MB_TYPE_INTRA_PCM               0x00000004
+#define MB_TYPE_INTRA                     (MB_TYPE_INTRA4x4 | MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM)
 #define IS_INTRA(type) ((type)&MB_TYPE_INTRA)
 
 #define WELS_MAX(x, y)	((x) > (y) ? (x) : (y))
--- a/codec/processing/src/denoise/denoise.h
+++ b/codec/processing/src/denoise/denoise.h
@@ -52,7 +52,7 @@
 #define DENOISE_GRAY_SIGMA  (2)
 
 #define UV_WINDOWS_RADIUS   (2)
-#define TAIL_OF_LINE8		(7)
+#define TAIL_OF_LINE8       (7)
 
 #define DENOISE_Y_COMPONENT (1)
 #define DENOISE_U_COMPONENT (2)