Loading media/libstagefright/ACodec.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,10 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "ACodec" #ifdef __LP64__ #define OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS #endif #include <inttypes.h> #include <utils/Trace.h> Loading media/libstagefright/OMXClient.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,11 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "OMXClient" #ifdef __LP64__ #define OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS #endif #include <utils/Log.h> #include <binder/IServiceManager.h> Loading Loading @@ -165,7 +170,14 @@ bool MuxOMX::isLocalNode_l(node_id node) const { // static bool MuxOMX::CanLiveLocally(const char *name) { #ifdef __LP64__ (void)name; // disable unused parameter warning // 64 bit processes always run OMX remote on MediaServer return false; #else // 32 bit processes run only OMX.google.* components locally return !strncasecmp(name, "OMX.google.", 11); #endif } const sp<IOMX> &MuxOMX::getOMX(node_id node) const { Loading media/libstagefright/OMXCodec.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,11 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "OMXCodec" #ifdef __LP64__ #define OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS #endif #include <utils/Log.h> #include "include/AACEncoder.h" Loading Loading @@ -130,6 +135,7 @@ private: template<class T> static void InitOMXParams(T *params) { COMPILE_TIME_ASSERT_FUNCTION_SCOPE(sizeof(OMX_PTR) == 4); // check OMX_PTR is 4 bytes. params->nSize = sizeof(T); params->nVersion.s.nVersionMajor = 1; params->nVersion.s.nVersionMinor = 0; Loading Loading
media/libstagefright/ACodec.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,10 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "ACodec" #ifdef __LP64__ #define OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS #endif #include <inttypes.h> #include <utils/Trace.h> Loading
media/libstagefright/OMXClient.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,11 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "OMXClient" #ifdef __LP64__ #define OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS #endif #include <utils/Log.h> #include <binder/IServiceManager.h> Loading Loading @@ -165,7 +170,14 @@ bool MuxOMX::isLocalNode_l(node_id node) const { // static bool MuxOMX::CanLiveLocally(const char *name) { #ifdef __LP64__ (void)name; // disable unused parameter warning // 64 bit processes always run OMX remote on MediaServer return false; #else // 32 bit processes run only OMX.google.* components locally return !strncasecmp(name, "OMX.google.", 11); #endif } const sp<IOMX> &MuxOMX::getOMX(node_id node) const { Loading
media/libstagefright/OMXCodec.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,11 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "OMXCodec" #ifdef __LP64__ #define OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS #endif #include <utils/Log.h> #include "include/AACEncoder.h" Loading Loading @@ -130,6 +135,7 @@ private: template<class T> static void InitOMXParams(T *params) { COMPILE_TIME_ASSERT_FUNCTION_SCOPE(sizeof(OMX_PTR) == 4); // check OMX_PTR is 4 bytes. params->nSize = sizeof(T); params->nVersion.s.nVersionMajor = 1; params->nVersion.s.nVersionMinor = 0; Loading