iveview (Session session){ 1896 1894
 		Log.d(TAG, "Set setMetering");
1897 1895
 		boolean result = session.isActive();
1898
-		if (bi.device == null) {log("NO DEVICE OPENED"); return false;}
1896
+		if (bi.getDevice() == null) {log("NO DEVICE OPENED"); return false;}
1899 1897
 		if (!bi.isSessionActive())
1900 1898
 			try {
1901 1899
 				bi.openSession();
@@ -1918,7 +1916,7 @@ public class USBCameraTest extends Activity { //implements Runnable {
1918 1916
 
1919 1917
 		Log.d(TAG, "Starting releaseShutter");
1920 1918
 		boolean result = session.isActive();
1921
-		if (bi.device == null) {log("NO DEVICE OPENED"); return result;}
1919
+		if (bi.getDevice() == null) {log("NO DEVICE OPENED"); return result;}
1922 1920
 		if (!bi.isSessionActive())
1923 1921
 			try {
1924 1922
 				bi.openSession();
@@ -2042,58 +2040,58 @@ public class USBCameraTest extends Activity { //implements Runnable {
2042 2040
 		public void run() {
2043 2041
 //			Log.d(TAG, "running thread " +thread.getName());
2044 2042
 			if (thread.getName().equals(THREAD_SHUTTER)) { 
2045
-				releaseShutter (bi.session);
2043
+				releaseShutter (bi.getSession());
2046 2044
 			}; 		
2047 2045
 			if (thread.getName().equals(THREAD_TEST)) { 
2048
-				testFunction(bi.session);
2046
+				testFunction(bi.getSession());
2049 2047
 			};
2050 2048
 			if (thread.getName().equals(THREAD_STARTBULB)) { 
2051
-				startBulb(bi.session);
2049
+				startBulb(bi.getSession());
2052 2050
 			};
2053 2051
 			if (thread.getName().equals(THREAD_STOPBULB)) { 
2054
-				stopBulb(bi.session);
2052
+				stopBulb(bi.getSession());
2055 2053
 			};
2056 2054
 			if (thread.getName().equals(THREAD_SETSHUTTER)) { 
2057
-				setShutter(bi.session, shutter_value);
2055
+				setShutter(bi.getSession(), shutter_value);
2058 2056
 			};		
2059 2057
 			if (thread.getName().equals(THREAD_SETISO)) { 
2060
-				setISO(bi.session, iso_value);
2058
+				setISO(bi.getSession(), iso_value);
2061 2059
 			};
2062 2060
 			if (thread.getName().equals(THREAD_SETAPERTURE)) { 
2063
-				setAperture(bi.session, aperture_value);
2061
+				setAperture(bi.getSession(), aperture_value);
2064 2062
 			};
2065 2063
 			if (thread.getName().equals(THREAD_FOCUSFORWARD)) { 
2066
-				moveFocusForward(bi.session);
2064
+				moveFocusForward(bi.getSession());
2067 2065
 			};
2068 2066
 			if (thread.getName().equals(THREAD_FOCUSBACKWARD)) { 
2069
-				moveFocusBackward(bi.session);
2067
+				moveFocusBackward(bi.getSession());
2070 2068
 			};
2071 2069
 			if (thread.getName().equals(THREAD_SETPICTURESTYLE)) { 
2072
-				setPictureSyle(bi.session, picturestyle_value);
2070
+				setPictureSyle(bi.getSession(), picturestyle_value);
2073 2071
 			};
2074 2072
 			if (thread.getName().equals(THREAD_SETWHITEBALANCE)) { 
2075
-				setWhiteBalance(bi.session,whitebalance_value);
2073
+				setWhiteBalance(bi.getSession(),whitebalance_value);
2076 2074
 			};
2077 2075
 			if (thread.getName().equals(THREAD_SETEXPOSURE)) { 
2078
-				setExposure(bi.session, exposure_value);
2076
+				setExposure(bi.getSession(), exposure_value);
2079 2077
 			};
2080 2078
 			if (thread.getName().equals(THREAD_SETDRIVEMODE)) { 
2081
-				setDriveMode(bi.session, drivemode_value);
2079
+				setDriveMode(bi.getSession(), drivemode_value);
2082 2080
 			};		
2083 2081
 			
2084 2082
 			if (thread.getName().equals(THREAD_SETMETERING)) { 
2085
-				setMetering(bi.session, metering_value);
2083
+				setMetering(bi.getSession(), metering_value);
2086 2084
 			};
2087 2085
 			
2088 2086
 			if (thread.getName().equals(THREAD_INITLIVEVIEW)) { 
2089
-				initLiveview(bi.session);
2087
+				initLiveview(bi.getSession());
2090 2088
 				liveViewTurnedOn = true;
2091 2089
 			};
2092 2090
 			
2093 2091
 			if (thread.getName().equals(THREAD_STARTLIVEVIEW)) { 
2094 2092
 				while(liveViewTurnedOn)
2095 2093
 				{
2096
-					startLiveview(bi.session);
2094
+					startLiveview(bi.getSession());
2097 2095
 				}
2098 2096
 			};
2099 2097
 			

Kodo/kodo - Gogs: Go Git Service

60 Commits (6c14c2d26ae6b9a386c7e8a2da0328467b088571)

Author SHA1 Message Date
  Brightcells 018d52f61d Update package django_xxx 7 years ago
  Brightcells 6cc1a44274 Change curtail_uuid to django_curtail_uuid 7 years ago
  Brightcells 0edbc92c74 Add Clerk Api 7 years ago
  Brightcells 627187a7d7 Update Kodo 7 years ago
  Brightcells 208fc20a24 Change to use django-response 8 years ago
  Brightcells 3b92e37156 Add field has_watermark for GroupPhotoInfo 8 years ago
  Brightcells e38c2defaf Upload photo to qiniu 8 years ago
  Brightcells 57206d9cbd Fix Bug: change default ext from 'jpeg' to '.jpeg' 8 years ago
  Brightcells 680f424408 Update water mark 8 years ago
  Brightcells 220efd7cc7 Fix Bug: some session group admin_id not exists 8 years ago
  Brightcells 16d5ad8aa8 Group name set error 8 years ago
  Brightcells 14d5d63e3b Add nomark/origin price for GroupPhotoInfo 8 years ago
  Brightcells f6bdf82918 Set group info after photo upload & Add group photo num in group info 8 years ago
  Brightcells 136346961f Fix Bug: UnboundLocalError at /s/join -- local variable 'group_photo' referenced before assignment 8 years ago
  Brightcells 2eba3ed7f9 Add guest login for tourguide 8 years ago
  Brightcells 5ec8568418 Remove unused import lib 8 years ago
  Brightcells 90fd7187d8 file md5 8 years ago
  Brightcells ae70dce3ef file md5 8 years ago
  Brightcells 42f466c0a5 Change to use django-ip to get client ip 9 years ago
  Brightcells 246a9ff4b8 Change to 'from utils.redis.connect import r' 9 years ago
  Brightcells 0ab056c3fd Change ip_addr to get_client_ip 9 years ago
  Brightcells 25b296f848 Add attentions/schedules for GroupInfo 9 years ago
  Brightcells f818f4127f Docstring simplify 9 years ago
  Brightcells 8e7c94e2ef Add parameter group_id for lensman_photo_upload_api 9 years ago
  Brightcells f40ea0a414 Fix call session_join_api after group_quit_api 9 years ago
  Brightcells 48995aae69 update redis_extensions —— class StrictRedisExtensions(StrictRedis) 9 years ago
  Brightcells d73fdb7cd2 async/multi_pop uuids 9 years ago
  Brightcells f07f4fc893 JsonResponse to response 9 years ago
  Brightcells 72890dc75c user to user_id 9 years ago
  Brightcells 7161824a44 session to session_id 9 years ago
  Brightcells d3fd6adf70 add api lensman_login_api/lensman_upload_photo_api 9 years ago
  Brightcells 80a3496489 fix user join group by session after remove 9 years ago
  Brightcells fabef63211 set line_length=200 for isort 9 years ago
  Brightcells f72ccb1875 isort import 9 years ago
  Brightcells 102152ca4a add api lensman_photo_bought & modify api wx_order_create_api and adjust return field 9 years ago
  Brightcells d0f8b5ce5c larger image file 403 forbidden 9 years ago
  Brightcells d64b3c216b add and return photo_thumbnail2 relative 9 years ago
  Brightcells ed5ee99a08 Fix Bug: get_group_info wrong use as get_group_users_info 9 years ago
  Brightcells 5301e7237e unify join group logic 9 years ago
  Brightcells 15772543dd add return field thumbup for api flyimg_upload_api/flyimg_list_api/session_detail_api/pai2_home_api 9 years ago
  Brightcells f0113f2b5c Fix Bug: get group_info/group_users when not created 9 years ago
  Brightcells a53a8a8312 modify session_detail_api to deal with group/group_user/group_photo 9 years ago
  Brightcells 454f8cd8ec change some info store in redis & remove some unnecessary params check & add some return for some api 9 years ago
  Brightcells 7d85bed0b0 move errno_utils.py/response_utils.py into error file 9 years ago
  Brightcells 62aff0cb2f move status code into errno_utils.py to unified management 9 years ago
  Brightcells 0786f22bad order_by('-pk') replace of order_by('-created_at') 10 years ago
  Brightcells df1df69fe3 add api upgrade/splash 10 years ago
  Brightcells 4afdb94e20 add avatar for GroupUserInfo 10 years ago
  Brightcells 5ef425fee7 add api wx_authorize_api 10 years ago
  Brightcells d3798a39f1 update session_detail_api 10 years ago