summaryrefslogtreecommitdiffstats
path: root/media/jni
diff options
context:
space:
mode:
authorZhijun He <zhijunhe@google.com>2014-04-24 14:08:51 -0700
committerZhijun He <zhijunhe@google.com>2014-04-24 14:08:51 -0700
commita5e1528f80f0472701dcbfc42d2f45ffc4a16466 (patch)
treeb8db9947541f9030cf4e114f4cdd420e8a432f88 /media/jni
parent2ca3962bc0168d360cf9567a313608347da51944 (diff)
downloadframeworks_base-a5e1528f80f0472701dcbfc42d2f45ffc4a16466.zip
frameworks_base-a5e1528f80f0472701dcbfc42d2f45ffc4a16466.tar.gz
frameworks_base-a5e1528f80f0472701dcbfc42d2f45ffc4a16466.tar.bz2
ImageReader: remove RAW_SENSOR format translation
Really not needed to have this, as both native and managed values are matched. Change-Id: I175cbafbf88a80781a478c7aa87471fb977625b6
Diffstat (limited to 'media/jni')
-rw-r--r--media/jni/android_media_ImageReader.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/media/jni/android_media_ImageReader.cpp b/media/jni/android_media_ImageReader.cpp
index 716418c..7a86811 100644
--- a/media/jni/android_media_ImageReader.cpp
+++ b/media/jni/android_media_ImageReader.cpp
@@ -274,17 +274,11 @@ static int Image_getPixelFormat(JNIEnv* env, int format)
fid = env->GetStaticFieldID(imageFormatClazz, "JPEG", "I");
jpegFormat = env->GetStaticIntField(imageFormatClazz, fid);
- fid = env->GetStaticFieldID(imageFormatClazz, "RAW_SENSOR", "I");
- rawSensorFormat = env->GetStaticIntField(imageFormatClazz, fid);
- // Translate the JPEG to BLOB for camera purpose, an add more if more mismatch is found.
+ // Translate the JPEG to BLOB for camera purpose.
if (format == jpegFormat) {
format = HAL_PIXEL_FORMAT_BLOB;
}
- // Same thing for RAW_SENSOR format
- if (format == rawSensorFormat) {
- format = HAL_PIXEL_FORMAT_RAW_SENSOR;
- }
return format;
}