Almost all cameras apply gamma encoding to the images they output. Let’s talk about what gamma encoding is, why it happens and how it is decoded.