1. A method for generating high dynamic range (HDR)/wide color gamut (WCG) output from an image sensor, comprising: receiving a raw red, green, blue (RGB) image obtained by the image sensor; applying, by a processor, a plurality of color transform operations to the raw RGB image to generate a HDR/WCG image, wherein applying the plurality of color transform operations comprises: applying a wide-gamut RGB color space transform operation to the raw RGB image to produce a wide-gamut RGB image; applying a BT.2020 transform operation to hop the wide-gamut RGB image to a second wide-gamut RGB image; and converting the second wide-gamut RGB image to the HDR/WCG image in a YCbCr color space using a linear conversion matrix; and storing, by the processor, the HDR/WCG image in a memory.