spex66 / RTSP-Camera-for-Android

Android based RTSP Server which is able to serve live camera view to multiple RTSP clients, such as VLC.
406 stars 257 forks source link

Can't change frame width/height #12

Open 4ntoine opened 9 years ago

4ntoine commented 9 years ago

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 commented 9 years ago

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; }