ios - while showing low quality video preview, taking high quality photo -
i'm using avcapturesessionpreset640x480 when showing video preview. , want take photo avcapturesessionpresetphoto (full quality).when pressed take photo button removing avcapturevideodataoutput , adding avcapturestillimageoutput.
[session removeoutput:captureoutputvideo]; [session addoutput:captureoutputphoto]; problem is, taked photo being dark. if take photo after wait 0.4 sec, photo better.
usleep(400000); how can without wait?
Comments
Post a Comment