From 482e0235f84ec483c57bab4cb16b5918d0821630 Mon Sep 17 00:00:00 2001 From: Ruben Brunk Date: Wed, 1 Oct 2014 12:59:57 -0700 Subject: camera2: Force DNG previews to render with LSC map. Bug: 17688063 Change-Id: I7f60a3465ab608a6b68d1e38493895cbd40bd7ae --- media/img_utils/src/DngUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'media/img_utils') 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; -- cgit v1.1