From 9e5babf9db52e64bdae60137be7696e56241fca6 Mon Sep 17 00:00:00 2001 From: xingzilong <xingzilong@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 18 八月 2017 18:12:17 +0800 Subject: [PATCH] H264 NALU解析 并在RTSPServer判断 --- VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java | 287 +++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 258 insertions(+), 29 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java index 22acb74..00be9c0 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/DeviceQueryItem.java @@ -5,12 +5,40 @@ // 璁惧涓婚敭 private String deviceId; - // 鍏徃涓婚敭 - private String deviceCompanyId; - // 璁惧鍦扮偣 + // 璁惧鎵�灞炲叕鍙� + private String companyId; + // 璁惧鍚嶇О private String deviceName; - // 璁惧鎺堟潈鐮� - private String authorizationId; + // 璁惧绫诲瀷锛歝amera1, camera2, main_device + private String type; + // 璁惧鍦板潃 + private String installAddress; + // 瀛︽牎鍚嶇О + private String schoolName; + // 鍝佺墝 + private String brandId; + // IP + private String ip; + // 绔彛 + private String port; + // 鍒嗚鲸鐜� + private String resolutionId; + // 鐢ㄦ埛鍚� + private String username; + // 瀵嗙爜 + private String password; + // 閫氳鍗忚 + private String protocolId; + // 搴忓垪鍙� + private String sn; + // 鎵�灞炶澶噄d + private String belongId; + // 鍚嶇О + private String brandName; + // 鍚嶇О + private String resolution; + // 鍚嶇О + private String protocol; /** * Get 璁惧涓婚敭 @@ -18,7 +46,7 @@ public String getDeviceId() { return deviceId; } - + /** * Set 璁惧涓婚敭 */ @@ -27,50 +55,251 @@ } /** - * Get 鍏徃涓婚敭 + * Get 璁惧鎵�灞炲叕鍙� */ - public String getDeviceCompanyId() { - return deviceCompanyId; - } - - /** - * Set 鍏徃涓婚敭 - */ - public void setDeviceCompanyId(String deviceCompanyId) { - this.deviceCompanyId = deviceCompanyId; + public String getCompanyId() { + return companyId; } /** - * Get 璁惧鍦扮偣 + * Set 璁惧鎵�灞炲叕鍙� + */ + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + /** + * Get 璁惧鍚嶇О */ public String getDeviceName() { return deviceName; } - + /** - * Set 璁惧鍦扮偣 + * Set 璁惧鍚嶇О */ public void setDeviceName(String deviceName) { this.deviceName = deviceName; } /** - * Get 璁惧鎺堟潈鐮� + * Get 璁惧绫诲瀷锛歝amera1, camera2, main_device */ - public String getAuthorizationId() { - return authorizationId; + public String getType() { + return type; } - + /** - * Set 璁惧鎺堟潈鐮� + * Set 璁惧绫诲瀷锛歝amera1, camera2, main_device */ - public void setAuthorizationId(String authorizationId) { - this.authorizationId = authorizationId; + public void setType(String type) { + this.type = type; + } + + /** + * Get 璁惧鍦板潃 + */ + public String getInstallAddress() { + return installAddress; + } + + /** + * Set 璁惧鍦板潃 + */ + public void setInstallAddress(String installAddress) { + this.installAddress = installAddress; + } + + /** + * Get 瀛︽牎鍚嶇О + */ + public String getSchoolName() { + return schoolName; + } + + /** + * Set 瀛︽牎鍚嶇О + */ + public void setSchoolName(String schoolName) { + this.schoolName = schoolName; + } + + /** + * Get 鍝佺墝 + */ + public String getBrandId() { + return brandId; + } + + /** + * Set 鍝佺墝 + */ + public void setBrandId(String brandId) { + this.brandId = brandId; + } + + /** + * Get IP + */ + public String getIp() { + return ip; + } + + /** + * Set IP + */ + public void setIp(String ip) { + this.ip = ip; + } + + /** + * Get 绔彛 + */ + public String getPort() { + return port; + } + + /** + * Set 绔彛 + */ + public void setPort(String port) { + this.port = port; + } + + /** + * Get 鍒嗚鲸鐜� + */ + public String getResolutionId() { + return resolutionId; + } + + /** + * Set 鍒嗚鲸鐜� + */ + public void setResolutionId(String resolutionId) { + this.resolutionId = resolutionId; + } + + /** + * Get 鐢ㄦ埛鍚� + */ + public String getUsername() { + return username; + } + + /** + * Set 鐢ㄦ埛鍚� + */ + public void setUsername(String username) { + this.username = username; + } + + /** + * Get 瀵嗙爜 + */ + public String getPassword() { + return password; + } + + /** + * Set 瀵嗙爜 + */ + public void setPassword(String password) { + this.password = password; + } + + /** + * Get 閫氳鍗忚 + */ + public String getProtocolId() { + return protocolId; + } + + /** + * Set 閫氳鍗忚 + */ + public void setProtocolId(String protocolId) { + this.protocolId = protocolId; + } + + /** + * Get 搴忓垪鍙� + */ + public String getSn() { + return sn; + } + + /** + * Set 搴忓垪鍙� + */ + public void setSn(String sn) { + this.sn = sn; + } + + /** + * Get 鎵�灞炶澶噄d + */ + public String getBelongId() { + return belongId; + } + + /** + * Set 鎵�灞炶澶噄d + */ + public void setBelongId(String belongId) { + this.belongId = belongId; + } + + /** + * Get 鍚嶇О + */ + public String getBrandName() { + return brandName; + } + + /** + * Set 鍚嶇О + */ + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + /** + * Get 鍚嶇О + */ + public String getResolution() { + return resolution; + } + + /** + * Set 鍚嶇О + */ + public void setResolution(String resolution) { + this.resolution = resolution; + } + + /** + * Get 鍚嶇О + */ + public String getProtocol() { + return protocol; + } + + /** + * Set 鍚嶇О + */ + public void setProtocol(String protocol) { + this.protocol = protocol; } public String toString() { - return - ",璁惧涓婚敭 =" + deviceId + ",鍏徃涓婚敭 =" + deviceCompanyId + ",璁惧鍦扮偣 =" + deviceName + - ",璁惧鎺堟潈鐮� ="+ authorizationId; + return + ",璁惧涓婚敭 =" + deviceId + ",璁惧鎵�灞炲叕鍙� ="+ companyId + ",璁惧鍚嶇О =" + deviceName + + ",璁惧绫诲瀷锛歝amera1, camera2, main_device ="+ type + ",璁惧鍦板潃 =" + installAddress + ",瀛︽牎鍚嶇О =" + schoolName + + ",鍝佺墝 =" + brandId + ",IP =" + ip + ",绔彛 =" + port + + ",鍒嗚鲸鐜� =" + resolutionId + ",鐢ㄦ埛鍚� =" + username + ",瀵嗙爜 =" + password + + ",閫氳鍗忚 =" + protocolId + ",搴忓垪鍙� =" + sn + ",鎵�灞炶澶噄d ="+ belongId + + ",鍚嶇О =" + brandName + ",鍚嶇О =" + resolution + ",鍚嶇О =" + protocol + ; } } -- Gitblit v1.8.0