Always require aligned memory for interleaved codec.
This commit is contained in:
parent
2973ec6f1c
commit
722790f4ca
@ -936,10 +936,6 @@ if(MBEDTLS_FOUND)
|
||||
add_definitions("-DWITH_MBEDTLS")
|
||||
endif()
|
||||
|
||||
if (TARGET_ARCH MATCHES "sparc")
|
||||
set(HAVE_ALIGNED_REQUIRED 1)
|
||||
endif()
|
||||
|
||||
if (WITH_X264 OR WITH_OPENH264 OR WITH_MEDIA_FOUNDATION OR WITH_FFMPEG)
|
||||
set(WITH_GFX_H264 ON)
|
||||
else()
|
||||
|
@ -26,7 +26,6 @@
|
||||
#cmakedefine HAVE_EXECINFO_H
|
||||
|
||||
/* Features */
|
||||
#cmakedefine HAVE_ALIGNED_REQUIRED
|
||||
#cmakedefine SWRESAMPLE_FOUND
|
||||
#cmakedefine AVRESAMPLE_FOUND
|
||||
|
||||
|
@ -272,11 +272,7 @@ static INLINE void write_pixel_16(BYTE* _buf, UINT16 _pix)
|
||||
#define WHITE_PIXEL 0xFFFF
|
||||
#define DESTWRITEPIXEL(_buf, _pix) write_pixel_16(_buf, _pix)
|
||||
#define DESTREADPIXEL(_pix, _buf) _pix = ((UINT16*)(_buf))[0]
|
||||
#ifdef HAVE_ALIGNED_REQUIRED
|
||||
#define SRCREADPIXEL(_pix, _buf) _pix = (_buf)[0] | ((_buf)[1] << 8)
|
||||
#else
|
||||
#define SRCREADPIXEL(_pix, _buf) _pix = ((UINT16*)(_buf))[0]
|
||||
#endif
|
||||
#define DESTNEXTPIXEL(_buf) _buf += 2
|
||||
#define SRCNEXTPIXEL(_buf) _buf += 2
|
||||
#define WRITEFGBGIMAGE WriteFgBgImage16to16
|
||||
|
Loading…
Reference in New Issue
Block a user