mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
left some debugging in ...
git-svn-id: https://zxing.googlecode.com/svn/trunk@2299 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
4a561f4599
commit
3eef60c308
|
@ -305,7 +305,9 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
|
||||||
// Gross, I know, but ...
|
// Gross, I know. But you can't use the device idiom because it's not iPad when running
|
||||||
|
// in zoomed iphone mode but the camera still acts like an ipad.
|
||||||
|
|
||||||
static bool isIPad() {
|
static bool isIPad() {
|
||||||
static int is_ipad = -1;
|
static int is_ipad = -1;
|
||||||
if (is_ipad < 0) {
|
if (is_ipad < 0) {
|
||||||
|
@ -341,11 +343,11 @@ static bool isIPad() {
|
||||||
isIPad() &&
|
isIPad() &&
|
||||||
[inputDevice
|
[inputDevice
|
||||||
supportsAVCaptureSessionPreset:AVCaptureSessionPresetiFrame960x540]) {
|
supportsAVCaptureSessionPreset:AVCaptureSessionPresetiFrame960x540]) {
|
||||||
NSLog(@"960");
|
// NSLog(@"960");
|
||||||
preset = AVCaptureSessionPresetiFrame960x540;
|
preset = AVCaptureSessionPresetiFrame960x540;
|
||||||
}
|
}
|
||||||
if (!preset) {
|
if (!preset) {
|
||||||
NSLog(@"MED");
|
// NSLog(@"MED");
|
||||||
preset = AVCaptureSessionPresetMedium;
|
preset = AVCaptureSessionPresetMedium;
|
||||||
}
|
}
|
||||||
self.captureSession.sessionPreset = preset;
|
self.captureSession.sessionPreset = preset;
|
||||||
|
|
Loading…
Reference in a new issue