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/plus/src/welsDecoderExt.cpp (1 of 55 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+11−11
@@ -83,7 +83,7 @@ namespace WelsDec { · 82 unmodified lines
8383 *
8484 * return: none
8585 ***************************************************************************/
86−CWelsDecoder::CWelsDecoder (void_t)
86+CWelsDecoder::CWelsDecoder (void)
8787 : m_pDecContext (NULL),
8888 m_pTrace (NULL) {
8989 #ifdef OUTPUT_BIT_STREAM
@@ -108,8 +108,8 @@ CWelsDecoder::CWelsDecoder (void_t) · 18 unmodified lines
108108
109109 WelsGetTimeOfDay (&sCurTime);
110110
111− iCurUsed = WelsSnprintf (chFileName, iBufLeft, "bs_0x%p_", (void_t*)this);
112− iCurUsedSize = WelsSnprintf (chFileNameSize, iBufLeftSize, "size_0x%p_", (void_t*)this);
111+ iCurUsed = WelsSnprintf (chFileName, iBufLeft, "bs_0x%p_", (void*)this);
112+ iCurUsedSize = WelsSnprintf (chFileNameSize, iBufLeftSize, "size_0x%p_", (void*)this);
113113
114114 if (iCurUsed > 0) {
115115 iBufUsed += iCurUsed;
@@ -186,7 +186,7 @@ CWelsDecoder::~CWelsDecoder() { · 70 unmodified lines
186186 }
187187 }
188188
189−long CWelsDecoder::Initialize (void_t* pParam, const INIT_TYPE keInitType) {
189+long CWelsDecoder::Initialize (void* pParam, const INIT_TYPE keInitType) {
190190 if (pParam == NULL || keInitType != INIT_TYPE_PARAMETER_BASED) {
191191 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::Initialize(), invalid input argument.");
192192 return cmInitParaError;
@@ -206,7 +206,7 @@ long CWelsDecoder::Uninitialize() { · 13 unmodified lines
206206 return ERR_NONE;
207207 }
208208
209−void_t CWelsDecoder::UninitDecoder (void_t) {
209+void CWelsDecoder::UninitDecoder (void) {
210210 if (NULL == m_pDecContext)
211211 return;
212212
@@ -224,7 +224,7 @@ void_t CWelsDecoder::UninitDecoder (void_t) { · 11 unmodified lines
224224 }
225225
226226 // the return value of this function is not suitable, it need report failure info to upper layer.
227−void_t CWelsDecoder::InitDecoder (void_t) {
227+void CWelsDecoder::InitDecoder (void) {
228228 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::init_decoder()..");
229229
230230 m_pDecContext = (PWelsDecoderContext)WelsMalloc (sizeof (SWelsDecoderContext), "m_pDecContext");
@@ -237,7 +237,7 @@ void_t CWelsDecoder::InitDecoder (void_t) { · 6 unmodified lines
237237 /*
238238 * Set Option
239239 */
240−long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void_t* pOption) {
240+long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) {
241241 int iVal = 0;
242242
243243 if (m_pDecContext == NULL)
@@ -294,7 +294,7 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void_t* pOption) { · 50 unmodified lines
294294 /*
295295 * Get Option
296296 */
297−long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void_t* pOption) {
297+long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) {
298298 int iVal = 0;
299299
300300 if (m_pDecContext == NULL)
@@ -359,7 +359,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void_t* pOption) { · 58 unmodified lines
359359
360360 DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc,
361361 const int kiSrcLen,
362− void_t** ppDst,
362+ void** ppDst,
363363 SBufferInfo* pDstInfo) {
364364 if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY) {
365365 m_pDecContext->iErrorCode |= dsOutOfMemory;
@@ -449,7 +449,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame (const unsigned char* kpSrc, · 83 unmodified lines
449449 DstInfo.UsrData.sSystemBuffer.iHeight = iHeight;
450450 DstInfo.eBufferProperty = BUFFER_HOST;
451451
452− eDecState = DecodeFrame2 (kpSrc, kiSrcLen, (void_t**)ppDst, &DstInfo);
452+ eDecState = DecodeFrame2 (kpSrc, kiSrcLen, (void**)ppDst, &DstInfo);
453453 if (eDecState == dsErrorFree) {
454454 pStride[0] = DstInfo.UsrData.sSystemBuffer.iStride[0];
455455 pStride[1] = DstInfo.UsrData.sSystemBuffer.iStride[1];
@@ -503,7 +503,7 @@ long CreateDecoder (ISVCDecoder** ppDecoder) { · 47 unmodified lines
503503 /*
504504 * DestroyDecoder
505505 */
506−void_t DestroyDecoder (ISVCDecoder* pDecoder) {
506+void DestroyDecoder (ISVCDecoder* pDecoder) {
507507 if (NULL != pDecoder) {
508508 delete (CWelsDecoder*)pDecoder;
509509 }

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