summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPosselwhite <christopher.posselwhite@sonyericsson.com>2011-06-21 12:41:01 +0200
committerJohan Redestig <johan.redestig@sonymobile.com>2012-12-04 09:48:02 +0100
commit45e4584a0f92b0bc69797714f651b12569d7fe85 (patch)
tree254d33863a58e4b7ddaef2f84753bd24f3bc64ac /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent4299f63e54dceeaaa44a057ba03f0881834491ec (diff)
Performance increase in thumbnail handling
Allow for 160*120 thumbnails which is what cameras commonly generates. The constants for the micro thumbnail were set to other values, resulting in recalculations of the thumbnais, which takes time. This change only affects the maximum size of the temporary image, when choosing whether to use the EXIF thumbnail or decoding and downsampling the full image. Without this change, it will choose an x16 downsampling of the full image over an x2 downsampling of the EXIF thumbnail, after the change it will prefer the EXIF thumbnail. Cf the DCF specifications at http://www.exif.org/dcf.PDF, "3.3.6. DCF basic thumbnail data structure, (C) Pixel count" Tested by running DDMS and measuring the time required to create a thumbnail. This was 220-280 ms prior to change, < 20 ms after. Change-Id: I59c753493f947e920bad3fde5eeed5d49d509863
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions