History

Use void instead of void_t

There's really no reason for adding a typedef for void.

Martin Storsjö committed 12 years ago

Commit 7b96c671 parent 2b77fe755 files · +400 −404Browse files

Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 55 files). Show all

Unified · Split

codec/decoder/core/src/decoder.cpp+12−12
@@ -57,9 +57,9 @@ namespace WelsDec { · 56 unmodified lines
5757
5858 extern PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const int32_t kiPicHeight);
5959
60−extern void_t FreePicture (PPicture pPic);
60+extern void FreePicture (PPicture pPic);
6161
62−inline void_t GetValueOf4Bytes (uint8_t* pDstNal, int32_t iDdstIdx) {
62+inline void GetValueOf4Bytes (uint8_t* pDstNal, int32_t iDdstIdx) {
6363 ST32(pDstNal, iDdstIdx);
6464 }
6565
@@ -98,7 +98,7 @@ static int32_t CreatePicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, cons · 32 unmodified lines
9898 return 0;
9999 }
100100
101−static void_t DestroyPicBuff (PPicBuff* ppPicBuf) {
101+static void DestroyPicBuff (PPicBuff* ppPicBuf) {
102102 PPicBuff pPicBuf = NULL;
103103
104104 if (NULL == ppPicBuf || NULL == *ppPicBuf)
@@ -131,7 +131,7 @@ static void_t DestroyPicBuff (PPicBuff* ppPicBuf) { · 26 unmodified lines
131131 /*
132132 * fill data fields in default for decoder context
133133 */
134−void_t WelsDecoderDefaults (PWelsDecoderContext pCtx) {
134+void WelsDecoderDefaults (PWelsDecoderContext pCtx) {
135135 int32_t iCpuCores = 1;
136136 memset (pCtx, 0, sizeof (SWelsDecoderContext)); // fill zero first
137137
@@ -282,7 +282,7 @@ int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const · 144 unmodified lines
282282 /*
283283 * free memory blocks in avc
284284 */
285−void_t WelsFreeMem (PWelsDecoderContext pCtx) {
285+void WelsFreeMem (PWelsDecoderContext pCtx) {
286286 int32_t iListIdx = 0;
287287
288288 /* TODO: free memory blocks introduced in avc */
@@ -308,7 +308,7 @@ void_t WelsFreeMem (PWelsDecoderContext pCtx) { · 19 unmodified lines
308308 /*!
309309 * \brief Open decoder
310310 */
311−void_t WelsOpenDecoder (PWelsDecoderContext pCtx) {
311+void WelsOpenDecoder (PWelsDecoderContext pCtx) {
312312 // function pointers
313313 //initial MC function pointer--
314314 InitMcFunc (& (pCtx->sMcFunc), pCtx->uiCpuFlag);
@@ -333,7 +333,7 @@ void_t WelsOpenDecoder (PWelsDecoderContext pCtx) { · 18 unmodified lines
333333 /*!
334334 * \brief Close decoder
335335 */
336−void_t WelsCloseDecoder (PWelsDecoderContext pCtx) {
336+void WelsCloseDecoder (PWelsDecoderContext pCtx) {
337337 WelsFreeMem (pCtx);
338338
339339 WelsFreeMemory (pCtx);
@@ -350,7 +350,7 @@ void_t WelsCloseDecoder (PWelsDecoderContext pCtx) { · 10 unmodified lines
350350 /*!
351351 * \brief configure decoder parameters
352352 */
353−int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const void_t* kpParam) {
353+int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const void* kpParam) {
354354 if (NULL == pCtx || NULL == kpParam)
355355 return 1;
356356
@@ -387,7 +387,7 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const void_t* kpParam) { · 30 unmodified lines
387387 * \note N/A
388388 *************************************************************************************
389389 */
390−int32_t WelsInitDecoder (PWelsDecoderContext pCtx, void_t* pTraceHandle, PWelsLogCallbackFunc pLog) {
390+int32_t WelsInitDecoder (PWelsDecoderContext pCtx, void* pTraceHandle, PWelsLogCallbackFunc pLog) {
391391 if (pCtx == NULL) {
392392 return ERR_INFO_INVALID_PTR;
393393 }
@@ -423,12 +423,12 @@ int32_t WelsInitDecoder (PWelsDecoderContext pCtx, void_t* pTraceHandle, PWelsLo · 29 unmodified lines
423423 * \note N/A
424424 *************************************************************************************
425425 */
426−void_t WelsEndDecoder (PWelsDecoderContext pCtx) {
426+void WelsEndDecoder (PWelsDecoderContext pCtx) {
427427 // close decoder
428428 WelsCloseDecoder (pCtx);
429429 }
430430
431−void_t GetVclNalTemporalId (PWelsDecoderContext pCtx) {
431+void GetVclNalTemporalId (PWelsDecoderContext pCtx) {
432432 PAccessUnit pAccessUnit = pCtx->pAccessUnitList;
433433 int32_t idx = pAccessUnit->uiStartPos;
434434
@@ -661,7 +661,7 @@ int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWi · 226 unmodified lines
661661 return iErr;
662662 }
663663
664−void_t AssignFuncPointerForRec (PWelsDecoderContext pCtx) {
664+void AssignFuncPointerForRec (PWelsDecoderContext pCtx) {
665665 pCtx->pGetI16x16LumaPredFunc[I16_PRED_V ] = WelsI16x16LumaPredV_c;
666666 pCtx->pGetI16x16LumaPredFunc[I16_PRED_H ] = WelsI16x16LumaPredH_c;
667667 pCtx->pGetI16x16LumaPredFunc[I16_PRED_DC ] = WelsI16x16LumaPredDc_c;

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