diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2017-03-06 22:48:05 +0300 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2017-03-07 00:57:28 +0300 |
commit | d24881fc0ee6816241979723dadcc5ea998bcbb9 (patch) | |
tree | cd3e089c51a6f25deb5d432e11443395cbf22c7a /src/thirdparty/VirtualDub | |
parent | 11a263c1f4f8278c973b61b31351f891e48ec737 (diff) |
Mark arrays as const to move them to the .rdata section.
Diffstat (limited to 'src/thirdparty/VirtualDub')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/thirdparty/VirtualDub/Kasumi/source/blt_reference_yuv.cpp b/src/thirdparty/VirtualDub/Kasumi/source/blt_reference_yuv.cpp index 51c8afe28..de6ac77b0 100644 --- a/src/thirdparty/VirtualDub/Kasumi/source/blt_reference_yuv.cpp +++ b/src/thirdparty/VirtualDub/Kasumi/source/blt_reference_yuv.cpp @@ -66,7 +66,7 @@ namespace { cliptab16[i+277] = 0x801 * ((unsigned)i>>3) + 0x20 * ((unsigned)i>>2);
}
}
- } colorconv;
+ } static const colorconv;
struct YCbCrFormatInfo {
ptrdiff_t ystep;
diff --git a/src/thirdparty/VirtualDub/Kasumi/source/pixmaputils.cpp b/src/thirdparty/VirtualDub/Kasumi/source/pixmaputils.cpp index 185b39c8d..c16e7bbc1 100644 --- a/src/thirdparty/VirtualDub/Kasumi/source/pixmaputils.cpp +++ b/src/thirdparty/VirtualDub/Kasumi/source/pixmaputils.cpp @@ -22,7 +22,7 @@ #include <vd2/Kasumi/pixmaputils.h>
#include <vd2/system/memory.h>
-extern VDPixmapFormatInfo g_vdPixmapFormats[] = {
+extern VDPixmapFormatInfo const g_vdPixmapFormats[] = {
// name qchnk qw qh qwb qhb qs ab aw ah as ps
/* Null */ { "null", false, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
/* Pal1 */ { "Pal1", true, 8, 1, 3, 0, 1, 0, 0, 0, 0, 2 },
diff --git a/src/thirdparty/VirtualDub/h/vd2/Kasumi/pixmaputils.h b/src/thirdparty/VirtualDub/h/vd2/Kasumi/pixmaputils.h index bf5fd6203..c572b52ae 100644 --- a/src/thirdparty/VirtualDub/h/vd2/Kasumi/pixmaputils.h +++ b/src/thirdparty/VirtualDub/h/vd2/Kasumi/pixmaputils.h @@ -20,7 +20,7 @@ struct VDPixmapFormatInfo { int subformats; // number of subformats for this format
};
-extern VDPixmapFormatInfo g_vdPixmapFormats[];
+extern const VDPixmapFormatInfo g_vdPixmapFormats[];
inline const VDPixmapFormatInfo& VDPixmapGetInfo(sint32 format) {
VDASSERT((uint32)format < nsVDPixmap::kPixFormat_Max_Standard);
|