From 3a233b6f416cc51c64a56b7f648a6164ae14c393 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 20 七月 2017 15:45:20 +0800
Subject: [PATCH]
---
FaceServer/proto_hton_ntoh.cpp | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/FaceServer/proto_hton_ntoh.cpp b/FaceServer/proto_hton_ntoh.cpp
index 02ce433..1aaa892 100644
--- a/FaceServer/proto_hton_ntoh.cpp
+++ b/FaceServer/proto_hton_ntoh.cpp
@@ -40,6 +40,7 @@
mb_type = htons(mb_type);
width = htons(width);
height = htons(height);
+ size = htons(size);
}
void FDP_Image::ntoh()
@@ -48,26 +49,35 @@
mb_type = ntohs(mb_type);
width = ntohs(width);
height = ntohs(height);
+ size = ntohs(size);
}
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()
{
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()
{
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