151 |
pEnc->current->mbs = NULL; |
pEnc->current->mbs = NULL; |
152 |
pEnc->reference->mbs = NULL; |
pEnc->reference->mbs = NULL; |
153 |
|
|
154 |
|
#ifdef _DEBUG |
155 |
|
#ifdef WIN32 |
156 |
OutputDebugString("malloc mbs"); |
OutputDebugString("malloc mbs"); |
157 |
|
#endif |
158 |
|
#endif |
159 |
|
|
160 |
if ((pEnc->current->mbs = xvid_malloc(sizeof(MACROBLOCK) * pEnc->mbParam.mb_width * pEnc->mbParam.mb_height, CACHE_LINE)) == NULL || |
if ((pEnc->current->mbs = xvid_malloc(sizeof(MACROBLOCK) * pEnc->mbParam.mb_width * pEnc->mbParam.mb_height, CACHE_LINE)) == NULL || |
161 |
(pEnc->reference->mbs = xvid_malloc(sizeof(MACROBLOCK) * pEnc->mbParam.mb_width * pEnc->mbParam.mb_height, CACHE_LINE)) == NULL) |
(pEnc->reference->mbs = xvid_malloc(sizeof(MACROBLOCK) * pEnc->mbParam.mb_width * pEnc->mbParam.mb_height, CACHE_LINE)) == NULL) |
162 |
{ |
{ |
179 |
image_null(&pEnc->vInterHV); |
image_null(&pEnc->vInterHV); |
180 |
image_null(&pEnc->vInterHVf); |
image_null(&pEnc->vInterHVf); |
181 |
|
|
182 |
|
#ifdef _DEBUG |
183 |
|
#ifdef WIN32 |
184 |
OutputDebugString("malloc images"); |
OutputDebugString("malloc images"); |
185 |
|
#endif |
186 |
|
#endif |
187 |
if ( |
if ( |
188 |
#ifdef _DEBUG |
#ifdef _DEBUG |
189 |
image_create(&pEnc->sOriginal, pEnc->mbParam.edged_width, pEnc->mbParam.edged_height) < 0 || |
image_create(&pEnc->sOriginal, pEnc->mbParam.edged_width, pEnc->mbParam.edged_height) < 0 || |