Re: RAW Camera support (part 2)

Marcus Johnson <[email protected]> Sun, 7 Apr 2019 23:38:20 -0400
Newsgroups gmane.comp.graphics.png.general
Message-ID <[email protected]>
--===============0783269785477257247==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_2044087B-7201-410D-A601-4D20B0B7450D"


--Apple-Mail=_2044087B-7201-410D-A601-4D20B0B7450D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Oops, I didn't reply all, here's what I sent Chris.

> As for how to store the average and difference, I think we can take =
some inspiration from audio encoding, for example FLAC's mid/side =
coding.

> The Green channel could be stored as the average of (G1 + G2) / 2

> then the new side channel containing the data to reconstruct G1 and G2 =
could be stored as (G1 - G2) / 2

> G1 would then be reconstructed as G + chunk, and G2 would be =
reconstructed from G2 - chunk

> =
http://wiki.hydrogenaud.io/index.php?title=3DJoint_stereo#Mid-side_Stereo_=
.28MS.29 =
<http://wiki.hydrogenaud.io/index.php?title=3DJoint_stereo#Mid-side_Stereo=
_.28MS.29>=

--Apple-Mail=_2044087B-7201-410D-A601-4D20B0B7450D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D"">Oops, I didn't reply =
all, here's what I sent Chris.<div class=3D""><br class=3D""></div><div =
class=3D"">&gt;&nbsp;<span style=3D"font-size: large;" class=3D"">As for =
how to store the average and difference, I think we can take some =
inspiration from audio encoding, for example FLAC's mid/side =
coding.</span></div><br class=3D""><span style=3D"font-size: large;" =
class=3D"">&gt; The Green channel could be stored as the average of (G1 =
+ G2) / 2</span><br class=3D""><br class=3D""><span style=3D"font-size: =
large;" class=3D"">&gt; then the new side channel containing the data to =
reconstruct G1 and G2 could be stored as (G1 - G2) / 2</span><br =
class=3D""><br class=3D""><span style=3D"font-size: large;" =
class=3D"">&gt; G1 would then be reconstructed as G&nbsp;+ chunk, and G2 =
would be reconstructed from G2 - chunk</span><br class=3D""><br =
class=3D"">&gt;&nbsp;<a =
href=3D"http://wiki.hydrogenaud.io/index.php?title=3DJoint_stereo#Mid-side=
_Stereo_.28MS.29" =
class=3D"">http://wiki.hydrogenaud.io/index.php?title=3DJoint_stereo#Mid-s=
ide_Stereo_.28MS.29</a></body></html>=

--Apple-Mail=_2044087B-7201-410D-A601-4D20B0B7450D--


--===============0783269785477257247==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0783269785477257247==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
png-mng-misc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/png-mng-misc

--===============0783269785477257247==--