From d9125b1f5e3bfd1c657d75c4ef812f1202dc406d Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期一, 10 七月 2017 10:12:44 +0800
Subject: [PATCH] proto support st_track_id

---
 FaceServer/proto_hton_ntoh.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/FaceServer/proto_hton_ntoh.cpp b/FaceServer/proto_hton_ntoh.cpp
index ccc2da9..1aaa892 100644
--- a/FaceServer/proto_hton_ntoh.cpp
+++ b/FaceServer/proto_hton_ntoh.cpp
@@ -55,11 +55,13 @@
 void FDP_FaceDetectPB::hton()
 {
 	db_id = htonl(db_id);
+	camera_id = htons(camera_id);
 }
 
 void FDP_FaceDetectPB::ntoh()
 {
 	db_id = ntohl(db_id);
+	camera_id = ntohs(camera_id);
 }
 
 void FDP_FaceDetectResult::hton()
@@ -67,6 +69,8 @@
 	db_id = htonl(db_id);
 	st_id = htonl(st_id);
 	confidence = htons(confidence);
+	camera_id = htons(camera_id);
+	st_track_id = htonl(st_track_id);
 }
 
 void FDP_FaceDetectResult::ntoh()
@@ -74,4 +78,6 @@
 	db_id = ntohl(db_id);
 	st_id = ntohl(st_id);
 	confidence = ntohs(confidence);
+	camera_id = ntohs(camera_id);
+	st_track_id = ntohl(st_track_id);
 }

--
Gitblit v1.8.0