Showing the changes to codec/encoder/core/src/mc.cpp (1 of 14 files). Show all
Unified · Split
| @@ -213,28 +213,28 @@ static inline void McHorVer22WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 212 unmodified lines | ||
| 213 | 213 | /////////////////////luma MC////////////////////////// |
| 214 | 214 | |
| 215 | 215 | static inline void McHorVer01WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 216 | − int32_t iHeight) { | |
| 216 | + int32_t iHeight) { | |
| 217 | 217 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 218 | 218 | |
| 219 | 219 | McHorVer02WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 220 | 220 | PixelAvgWidthEq16_c (pDst, iDstStride, pSrc, iSrcStride, pTmp, 16, iHeight); |
| 221 | 221 | } |
| 222 | 222 | static inline void McHorVer03WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 223 | − int32_t iHeight) { | |
| 223 | + int32_t iHeight) { | |
| 224 | 224 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 225 | 225 | |
| 226 | 226 | McHorVer02WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 227 | 227 | PixelAvgWidthEq16_c (pDst, iDstStride, pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |
| 228 | 228 | } |
| 229 | 229 | static inline void McHorVer10WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 230 | − int32_t iHeight) { | |
| 230 | + int32_t iHeight) { | |
| 231 | 231 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 232 | 232 | |
| 233 | 233 | McHorVer20WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 234 | 234 | PixelAvgWidthEq16_c (pDst, iDstStride, pSrc, iSrcStride, pTmp, 16, iHeight); |
| 235 | 235 | } |
| 236 | 236 | static inline void McHorVer11WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 237 | − int32_t iHeight) { | |
| 237 | + int32_t iHeight) { | |
| 238 | 238 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 239 | 239 | |
| 240 | 240 | McHorVer20WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -242,7 +242,7 @@ static inline void McHorVer11WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 1 unmodified line | ||
| 242 | 242 | PixelAvgWidthEq16_c (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 243 | 243 | } |
| 244 | 244 | static inline void McHorVer12WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 245 | − int32_t iHeight) { | |
| 245 | + int32_t iHeight) { | |
| 246 | 246 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 247 | 247 | |
| 248 | 248 | McHorVer02WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -250,7 +250,7 @@ static inline void McHorVer12WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 1 unmodified line | ||
| 250 | 250 | PixelAvgWidthEq16_c (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 251 | 251 | } |
| 252 | 252 | static inline void McHorVer13WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 253 | − int32_t iHeight) { | |
| 253 | + int32_t iHeight) { | |
| 254 | 254 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 255 | 255 | |
| 256 | 256 | McHorVer20WidthEq16_c (pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |
| @@ -258,7 +258,7 @@ static inline void McHorVer13WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 1 unmodified line | ||
| 258 | 258 | PixelAvgWidthEq16_c (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 259 | 259 | } |
| 260 | 260 | static inline void McHorVer21WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 261 | − int32_t iHeight) { | |
| 261 | + int32_t iHeight) { | |
| 262 | 262 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 263 | 263 | |
| 264 | 264 | McHorVer20WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -266,7 +266,7 @@ static inline void McHorVer21WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 1 unmodified line | ||
| 266 | 266 | PixelAvgWidthEq16_c (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 267 | 267 | } |
| 268 | 268 | static inline void McHorVer23WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 269 | − int32_t iHeight) { | |
| 269 | + int32_t iHeight) { | |
| 270 | 270 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 271 | 271 | |
| 272 | 272 | McHorVer20WidthEq16_c (pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |
| @@ -274,14 +274,14 @@ static inline void McHorVer23WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 1 unmodified line | ||
| 274 | 274 | PixelAvgWidthEq16_c (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 275 | 275 | } |
| 276 | 276 | static inline void McHorVer30WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 277 | − int32_t iHeight) { | |
| 277 | + int32_t iHeight) { | |
| 278 | 278 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 279 | 279 | |
| 280 | 280 | McHorVer20WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 281 | 281 | PixelAvgWidthEq16_c (pDst, iDstStride, pSrc + 1, iSrcStride, pTmp, 16, iHeight); |
| 282 | 282 | } |
| 283 | 283 | static inline void McHorVer31WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 284 | − int32_t iHeight) { | |
| 284 | + int32_t iHeight) { | |
| 285 | 285 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 286 | 286 | |
| 287 | 287 | McHorVer20WidthEq16_c (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -289,7 +289,7 @@ static inline void McHorVer31WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 1 unmodified line | ||
| 289 | 289 | PixelAvgWidthEq16_c (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 290 | 290 | } |
| 291 | 291 | static inline void McHorVer32WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 292 | − int32_t iHeight) { | |
| 292 | + int32_t iHeight) { | |
| 293 | 293 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 294 | 294 | |
| 295 | 295 | McHorVer02WidthEq16_c (pSrc + 1, iSrcStride, pTmp, 16, iHeight); |
| @@ -297,7 +297,7 @@ static inline void McHorVer32WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStrid · 1 unmodified line | ||
| 297 | 297 | PixelAvgWidthEq16_c (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 298 | 298 | } |
| 299 | 299 | static inline void McHorVer33WidthEq16_c (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 300 | − int32_t iHeight) { | |
| 300 | + int32_t iHeight) { | |
| 301 | 301 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 302 | 302 | |
| 303 | 303 | McHorVer20WidthEq16_c (pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |
| @@ -430,28 +430,28 @@ void McHorVer22Width9Or17Height9Or17_sse2 (const uint8_t* pSrc, int32_t iSrcStri · 126 unmodified lines | ||
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | static inline void McHorVer01WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 433 | − int32_t iHeight) { | |
| 433 | + int32_t iHeight) { | |
| 434 | 434 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 435 | 435 | |
| 436 | 436 | McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 437 | 437 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc, iSrcStride, pTmp, 16, iHeight); |
| 438 | 438 | } |
| 439 | 439 | static inline void McHorVer03WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 440 | − int32_t iHeight) { | |
| 440 | + int32_t iHeight) { | |
| 441 | 441 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 442 | 442 | |
| 443 | 443 | McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 444 | 444 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |
| 445 | 445 | } |
| 446 | 446 | static inline void McHorVer10WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 447 | − int32_t iHeight) { | |
| 447 | + int32_t iHeight) { | |
| 448 | 448 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 449 | 449 | |
| 450 | 450 | McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 451 | 451 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc, iSrcStride, pTmp, 16, iHeight); |
| 452 | 452 | } |
| 453 | 453 | static inline void McHorVer11WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 454 | − int32_t iHeight) { | |
| 454 | + int32_t iHeight) { | |
| 455 | 455 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 456 | 456 | |
| 457 | 457 | McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -459,7 +459,7 @@ static inline void McHorVer11WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcSt · 1 unmodified line | ||
| 459 | 459 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 460 | 460 | } |
| 461 | 461 | static inline void McHorVer12WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 462 | − int32_t iHeight) { | |
| 462 | + int32_t iHeight) { | |
| 463 | 463 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 464 | 464 | |
| 465 | 465 | McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -467,7 +467,7 @@ static inline void McHorVer12WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcSt · 1 unmodified line | ||
| 467 | 467 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 468 | 468 | } |
| 469 | 469 | static inline void McHorVer13WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 470 | − int32_t iHeight) { | |
| 470 | + int32_t iHeight) { | |
| 471 | 471 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 472 | 472 | |
| 473 | 473 | McHorVer20WidthEq16_sse2 (pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |
| @@ -475,7 +475,7 @@ static inline void McHorVer13WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcSt · 1 unmodified line | ||
| 475 | 475 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 476 | 476 | } |
| 477 | 477 | static inline void McHorVer21WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 478 | − int32_t iHeight) { | |
| 478 | + int32_t iHeight) { | |
| 479 | 479 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 480 | 480 | |
| 481 | 481 | McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -483,7 +483,7 @@ static inline void McHorVer21WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcSt · 1 unmodified line | ||
| 483 | 483 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 484 | 484 | } |
| 485 | 485 | static inline void McHorVer23WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 486 | − int32_t iHeight) { | |
| 486 | + int32_t iHeight) { | |
| 487 | 487 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 488 | 488 | |
| 489 | 489 | McHorVer20WidthEq16_sse2 (pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |
| @@ -491,14 +491,14 @@ static inline void McHorVer23WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcSt · 1 unmodified line | ||
| 491 | 491 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 492 | 492 | } |
| 493 | 493 | static inline void McHorVer30WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 494 | − int32_t iHeight) { | |
| 494 | + int32_t iHeight) { | |
| 495 | 495 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16) |
| 496 | 496 | |
| 497 | 497 | McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| 498 | 498 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc + 1, iSrcStride, pTmp, 16, iHeight); |
| 499 | 499 | } |
| 500 | 500 | static inline void McHorVer31WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 501 | − int32_t iHeight) { | |
| 501 | + int32_t iHeight) { | |
| 502 | 502 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 503 | 503 | |
| 504 | 504 | McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight); |
| @@ -506,7 +506,7 @@ static inline void McHorVer31WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcSt · 1 unmodified line | ||
| 506 | 506 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 507 | 507 | } |
| 508 | 508 | static inline void McHorVer32WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 509 | − int32_t iHeight) { | |
| 509 | + int32_t iHeight) { | |
| 510 | 510 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 511 | 511 | |
| 512 | 512 | McHorVer02WidthEq16_sse2 (pSrc + 1, iSrcStride, pTmp, 16, iHeight); |
| @@ -514,7 +514,7 @@ static inline void McHorVer32WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcSt · 1 unmodified line | ||
| 514 | 514 | PixelAvgWidthEq16_sse2 (pDst, iDstStride, pTmp, 16, &pTmp[256], 16, iHeight); |
| 515 | 515 | } |
| 516 | 516 | static inline void McHorVer33WidthEq16_sse2 (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride, |
| 517 | − int32_t iHeight) { | |
| 517 | + int32_t iHeight) { | |
| 518 | 518 | ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 512, 16) |
| 519 | 519 | |
| 520 | 520 | McHorVer20WidthEq16_sse2 (pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight); |