RTSP-Camera-for-Android icon indicating copy to clipboard operation
RTSP-Camera-for-Android copied to clipboard

Can't change frame width/height

Open 4ntoine opened this issue 11 years ago • 1 comments

I've tried to set RtspConstants.WIDTH and .HEIGHT but no luck. It shows picture if width=352 and height = 288 (default value), but shows red-green-blue corrupted image if set another values. The values i've tried are from camera parameters getSupportedPreviewSizes();

4ntoine avatar Nov 21 '14 10:11 4ntoine

i've searched in sources and found lot's of hardcoded values 352/288 for width and heights (both in java and c++ source). Can anybody fix it? It's pretty difficult as there are some related values, f.e.:

else if (video->PicWidthInSamplesL == 352) { L1 = 0.2; L2 = 0.6; L3 = 1.2; }

4ntoine avatar Nov 21 '14 11:11 4ntoine