summaryrefslogtreecommitdiffstats
path: root/media/img_utils
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2014-10-01 12:59:57 -0700
committerRuben Brunk <rubenbrunk@google.com>2014-10-01 12:59:57 -0700
commit482e0235f84ec483c57bab4cb16b5918d0821630 (patch)
treee40503e499201fc74a04e8db2baa55a7e024495b /media/img_utils
parent955e24d3a8e218d4711cabc6558781e095011132 (diff)
downloadframeworks_av-482e0235f84ec483c57bab4cb16b5918d0821630.zip
frameworks_av-482e0235f84ec483c57bab4cb16b5918d0821630.tar.gz
frameworks_av-482e0235f84ec483c57bab4cb16b5918d0821630.tar.bz2
camera2: Force DNG previews to render with LSC map.
Bug: 17688063 Change-Id: I7f60a3465ab608a6b68d1e38493895cbd40bd7ae
Diffstat (limited to 'media/img_utils')
-rw-r--r--media/img_utils/src/DngUtils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/img_utils/src/DngUtils.cpp b/media/img_utils/src/DngUtils.cpp
index 14b31ec..d3b4a35 100644
--- a/media/img_utils/src/DngUtils.cpp
+++ b/media/img_utils/src/DngUtils.cpp
@@ -229,7 +229,9 @@ status_t OpcodeListBuilder::addGainMap(uint32_t top,
err = mEndianOut.write(version, 0, NELEMS(version));
if (err != OK) return err;
- uint32_t flags = FLAG_OPTIONAL | FLAG_OPTIONAL_FOR_PREVIEW;
+ // Do not include optional flag for preview, as this can have a large effect on the output.
+ uint32_t flags = FLAG_OPTIONAL;
+
err = mEndianOut.write(&flags, 0, 1);
if (err != OK) return err;