History

Rename the decoder WelsMalloc to WelsMallocz

This function actually zero-initializes the allocated memory, thus make this clear in the function name. This makes the function name match the same behaviour in the encoder.

Martin Storsjö committed 11 years ago

Commit 869870e1 parent 9b442b312 files · +58 −58Browse files

Showing the changes to test/decoder/DecUT_PredMv.cpp (1 of 12 files). Show all

Unified · Split

test/decoder/DecUT_PredMv.cpp+4−4
@@ -414,22 +414,22 @@ void AnchorPredPSkipMvFromNeighbor (PDqLayer pCurLayer, int16_t iMvp[2]) { · 413 unmodified lines
414414
415415 int32_t AllocLayerData (PDqLayer pDqLayer) {
416416
417− pDqLayer->pSliceIdc = (int32_t*) WelsMalloc (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (int32_t),
417+ pDqLayer->pSliceIdc = (int32_t*) WelsMallocz (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (int32_t),
418418 "pDqLayer->pSliceIdc");
419419 if (pDqLayer->pSliceIdc == NULL)
420420 return 1;
421421
422− pDqLayer->pMbType = (int8_t*) WelsMalloc (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (int8_t),
422+ pDqLayer->pMbType = (int8_t*) WelsMallocz (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (int8_t),
423423 "pDqLayer->pMbType");
424424 if (pDqLayer->pMbType == NULL)
425425 return 1;
426426
427− pDqLayer->pMv[0] = (int16_t (*)[MB_BLOCK4x4_NUM][MV_A]) WelsMalloc (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (
427+ pDqLayer->pMv[0] = (int16_t (*)[MB_BLOCK4x4_NUM][MV_A]) WelsMallocz (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (
428428 int16_t) * MV_A * MB_BLOCK4x4_NUM, "pDqLayer->pMv");
429429 if (pDqLayer->pMv[0] == NULL)
430430 return 1;
431431
432− pDqLayer->pRefIndex[0] = (int8_t (*)[MB_BLOCK4x4_NUM]) WelsMalloc (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (
432+ pDqLayer->pRefIndex[0] = (int8_t (*)[MB_BLOCK4x4_NUM]) WelsMallocz (pDqLayer->iMbWidth * pDqLayer->iMbHeight * sizeof (
433433 int8_t) * MB_BLOCK4x4_NUM, "pDqLayer->pRefIndex");
434434 if (pDqLayer->pRefIndex[0] == NULL)
435435 return 1;

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