It doesn&#x27;t fare that well. Proper RAW encoders have tens of manyears of dedicated work put in, intimate knowledge of the camera sensors (often with the assistance of camera makers), expensive labs for color tests etc, and top it with several patented proprietary techniques for the image processing part (Photoshop has tons of those).