I just have a silly question. I got a screenshot of my android phone made through ADB, a command line tool. The tool have 2 options, it takes a screenshot and saves it in png format or raw binary. I choose to save it as binary data since the conversion from raw data over png is too compute-expensive to calculate (It takes twice as much to generate a PNG with phone’s resources).
Anyway, I tried the following in a gmic-cli compilation I made a couple of years ago (2.0.0).
gmic -i screen.raw,int,720,1520,1,3
And I can get gmic to succesfully display a picture with the right dimensions but no color information, besides everything looking blue and white. I know all the color information is in the raw data since whenever a filter is applied tonality is affected.
I’m trying this because I want to “see” my phone’s screen (it’s damaged). So I made a loop that takes pictures and save them as raw data to later pull them through ADB and a sshfs setup. I got the data but I don’t know how to properly handle it.
Basically I don’t know how to set values to represent RGB from binary data.
How can I properly setup the input data to see the actual screenshot?
Any help is appreciated!
screen.raw (4.2 MB)