Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc84c3e6 authored by Sam Hasinoff's avatar Sam Hasinoff Committed by android-build-merger
Browse files

Fix definition of Bayer phase to match DNG SDK

am: a1dee6e3

Change-Id: I0374e84e9d372efe0fe613c221594127f4447528
parents 93d14080 a1dee6e3
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -39,11 +39,16 @@ namespace img_utils {
 */
class ANDROID_API OpcodeListBuilder : public LightRefBase<OpcodeListBuilder> {
    public:
        // Note that the Adobe DNG 1.4 spec for Bayer phase (defined for the
        // FixBadPixelsConstant and FixBadPixelsList opcodes) is incorrect. It's
        // inconsistent with the DNG SDK (cf. dng_negative::SetBayerMosaic and
        // dng_opcode_FixBadPixelsList::IsGreen), and Adobe confirms that the
        // spec should be updated to match the SDK.
        enum CfaLayout {
            CFA_RGGB = 0,
            CFA_GRBG,
            CFA_GBRG,
            CFA_GRBG = 0,
            CFA_RGGB,
            CFA_BGGR,
            CFA_GBRG,
        };

        OpcodeListBuilder();