This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * It took me a whole 6 hours to finally get the color conversion right. | |
| * I have a fairly good understanding of the various color formats (YUV420P, SP, 422, etc etc), | |
| * and how to access individual Y, U, and V components. | |
| * I however struggled because of a very simple yet hair-pulling gotcha. | |
| * All primitives in Java are signed! If you come from a Python-like world where 0xFF prints 255, | |
| * you see yourself struggle just the same. I am however embarrassed at spending 6 hours on this. | |
| * | |
| * @author rish | |
| */ |