-
Notifications
You must be signed in to change notification settings - Fork 7
/
PrefixHeader.pch
41 lines (28 loc) · 1.03 KB
/
PrefixHeader.pch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// PrefixHeader.pch
// FaceRig
//
// Created by zhoushiwei on 14/10/24.
// Copyright (c) 2014年 zhoushiwei. All rights reserved.
//
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#ifdef __cplusplus
#import <opencv2/opencv.hpp>
#include <opencv2/core/core_c.h>
#endif
#import <Availability.h>
//#define use_rotate_face
#define compute_eye
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
#define IS_IOS_7 ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)?YES:NO
#define StateBarHeight ((IS_IOS_7)?20:0)
#define NavBarHeight ((IS_IOS_7)?65:45)
#define BottomHeight ((IS_IOS_7)?49:0)
#define ScreenHeight ((IS_IOS_7)?([UIScreen mainScreen].bounds.size.height):([UIScreen mainScreen].bounds.size.height - 20))