History

Make some tables const where easily possible

Martin Storsjö committed 12 years ago

Commit f7ba0e41 parent 32d5c223 files · +6 −6Browse files

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

Unified · Split

codec/decoder/core/src/mc.cpp+2−2
@@ -892,7 +892,7 @@ void McHorVer33_neon (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, in · 891 unmodified lines
892 892
893void McLuma_neon (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,893void McLuma_neon (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
894 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) {894 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) {
895 static PWelsMcWidthHeightFunc pWelsMcFunc[4][4] = { //[x][y]895 static const PWelsMcWidthHeightFunc pWelsMcFunc[4][4] = { //[x][y]
896 {McCopy_neon, McHorVer01_neon, McHorVer02_neon, McHorVer03_neon},896 {McCopy_neon, McHorVer01_neon, McHorVer02_neon, McHorVer03_neon},
897 {McHorVer10_neon, McHorVer11_neon, McHorVer12_neon, McHorVer13_neon},897 {McHorVer10_neon, McHorVer11_neon, McHorVer12_neon, McHorVer13_neon},
898 {McHorVer20_neon, McHorVer21_neon, McHorVer22_neon, McHorVer23_neon},898 {McHorVer20_neon, McHorVer21_neon, McHorVer22_neon, McHorVer23_neon},
@@ -1143,7 +1143,7 @@ void McHorVer33_AArch64_neon (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* · 244 unmodified lines
1143 1143
1144void McLuma_AArch64_neon (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,1144void McLuma_AArch64_neon (const uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
1145 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) {1145 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) {
1146 static PWelsMcWidthHeightFunc pWelsMcFunc[4][4] = { //[x][y]1146 static const PWelsMcWidthHeightFunc pWelsMcFunc[4][4] = { //[x][y]
1147 {McCopy_AArch64_neon, McHorVer01_AArch64_neon, McHorVer02_AArch64_neon, McHorVer03_AArch64_neon},1147 {McCopy_AArch64_neon, McHorVer01_AArch64_neon, McHorVer02_AArch64_neon, McHorVer03_AArch64_neon},
1148 {McHorVer10_AArch64_neon, McHorVer11_AArch64_neon, McHorVer12_AArch64_neon, McHorVer13_AArch64_neon},1148 {McHorVer10_AArch64_neon, McHorVer11_AArch64_neon, McHorVer12_AArch64_neon, McHorVer13_AArch64_neon},
1149 {McHorVer20_AArch64_neon, McHorVer21_AArch64_neon, McHorVer22_AArch64_neon, McHorVer23_AArch64_neon},1149 {McHorVer20_AArch64_neon, McHorVer21_AArch64_neon, McHorVer22_AArch64_neon, McHorVer23_AArch64_neon},

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