Open simonschmeisser opened 10 months ago
gst-inspect-1.0 droidcamsrc
gives the following formats for the viewfinder:
SRC template: 'vfsrc'
Availability: Always
Capabilities:
video/x-raw(memory:DroidMediaQueueBuffer)
format: { (string)NV12_64Z32, (string)YV12, (string)NV16, (string)NV12, (string)NV21, (string)YUY2, (string)RGBA, (string)RGBx, (string)RGB, (string)RGB16, (string)BGRA, (string)ENCODED }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
video/x-raw
format: { (string)NV21 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
Fun fact: I reverted to camera1 and while sf-camera and fennec browser (via android app support) show the correct colors, sf-browser does not. It has the inverted colors on master/camera1.
I managed to find a bit hacky way to get the colors correct on Xperia 10 III but needs to be tested it doesn't break any other devices.
I tested your latest branch and it looks good here!
Currently the colors in camera preview are inverted.
For Xperia 10 III camera2 reports the following supported formats:
@mal dropped
AIMAGE_FORMAT_YUV_420_888
in some places but commented it out, commenting it back in does not make it work unfortunately