History

astyle code style for enc

Guangwei Wang committed 9 years ago

Commit 3d150f01 parent bc8317915 files · +184 −172Browse files

Showing the changes to codec/encoder/core/src/au_set.cpp (1 of 15 files). Show all

Unified · Split

codec/encoder/core/src/au_set.cpp+5−5
@@ -76,7 +76,7 @@ static inline int32_t WelsCheckLevelLimitation (const SWelsSPS* kpSps, const SLe · 75 unmodified lines
76int32_t WelsAdjustLevel (SSpatialLayerConfig* pSpatialLayer, const SLevelLimits* pCurLevel) {76int32_t WelsAdjustLevel (SSpatialLayerConfig* pSpatialLayer, const SLevelLimits* pCurLevel) {
77 int32_t iMaxBitrate = pSpatialLayer->iMaxSpatialBitrate;77 int32_t iMaxBitrate = pSpatialLayer->iMaxSpatialBitrate;
78 do {78 do {
79 if (iMaxBitrate <= (int32_t)(pCurLevel->uiMaxBR * CpbBrNalFactor)) {79 if (iMaxBitrate <= (int32_t) (pCurLevel->uiMaxBR * CpbBrNalFactor)) {
80 pSpatialLayer->uiLevelIdc = pCurLevel->uiLevelIdc;80 pSpatialLayer->uiLevelIdc = pCurLevel->uiLevelIdc;
81 return 0;81 return 0;
82 }82 }
@@ -198,12 +198,12 @@ int32_t WelsWriteVUI (SWelsSPS* pSps, SBitStringAux* pBitStringAux) { · 115 unmodified lines
198 SBitStringAux* pLocalBitStringAux = pBitStringAux;198 SBitStringAux* pLocalBitStringAux = pBitStringAux;
199 assert (pSps != NULL && pBitStringAux != NULL);199 assert (pSps != NULL && pBitStringAux != NULL);
200 200
201 BsWriteOneBit(pLocalBitStringAux, pSps->bAspectRatioPresent); //aspect_ratio_info_present_flag201 BsWriteOneBit (pLocalBitStringAux, pSps->bAspectRatioPresent); //aspect_ratio_info_present_flag
202 if (pSps->bAspectRatioPresent) {202 if (pSps->bAspectRatioPresent) {
203 BsWriteBits(pLocalBitStringAux, 8, pSps->eAspectRatio); // aspect_ratio_idc203 BsWriteBits (pLocalBitStringAux, 8, pSps->eAspectRatio); // aspect_ratio_idc
204 if (pSps->eAspectRatio == ASP_EXT_SAR) {204 if (pSps->eAspectRatio == ASP_EXT_SAR) {
205 BsWriteBits(pLocalBitStringAux, 16, pSps->sAspectRatioExtWidth); // sar_width205 BsWriteBits (pLocalBitStringAux, 16, pSps->sAspectRatioExtWidth); // sar_width
206 BsWriteBits(pLocalBitStringAux, 16, pSps->sAspectRatioExtHeight); // sar_height206 BsWriteBits (pLocalBitStringAux, 16, pSps->sAspectRatioExtHeight); // sar_height
207 }207 }
208 }208 }
209 BsWriteOneBit (pLocalBitStringAux, false); //overscan_info_present_flag209 BsWriteOneBit (pLocalBitStringAux, false); //overscan_info_present_flag

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t