diff options
author | Steve Kondik <shade@chemlab.org> | 2012-07-17 10:08:41 +0400 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.cyanogenmod.com> | 2012-07-17 10:08:41 +0400 |
commit | a2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96 (patch) | |
tree | d6eb0784705c671cc4cb9bbfe9ec4fba459524e9 | |
parent | 529fcdfdc328aafdda401b2d7de9edbb16ae699c (diff) | |
parent | 123baf6c964f9f2cd8f347ff3302009b1346eaaa (diff) | |
download | frameworks_base-a2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96.zip frameworks_base-a2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96.tar.gz frameworks_base-a2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96.tar.bz2 |
Merge "libstagefright: Use proper mangled name for color convert API" into ics
-rw-r--r-- | media/libstagefright/colorconversion/ColorConverter.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/media/libstagefright/colorconversion/ColorConverter.cpp b/media/libstagefright/colorconversion/ColorConverter.cpp index 0ef85e6..5bda1f6 100644 --- a/media/libstagefright/colorconversion/ColorConverter.cpp +++ b/media/libstagefright/colorconversion/ColorConverter.cpp @@ -136,9 +136,21 @@ status_t ColorConverter::convert( case QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka: { void * lib = dlopen("libmm-color-convertor.so", RTLD_NOW); + + if (!lib) { + LOGE("dlopen for libmm-color-convertor failed with errno %d", errno); + return ERROR_UNSUPPORTED; + } + + typedef int (*convertFn)(ColorConvertParams src, ColorConvertParams dst, uint8_t *adjustedClip); - convertFn convertNV12Tile = (convertFn)dlsym(lib, "_Z7convertN7android18ColorConvertParamsES0_Ph"); + convertFn convertNV12Tile = (convertFn)dlsym(lib, "_ZN7android7convertENS_18ColorConvertParamsES0_Ph"); + if (!convertNV12Tile) { + dlclose(lib); + LOGE("dlsym on libmm-color-convertor failed with errno %d", errno); + return ERROR_UNSUPPORTED; + } struct ColorConvertParams srcTemp; srcTemp.width = srcWidth; |