houxiao
2017-06-28 4cb4bd77e9ae50929f628c36f62a1923c0787f67
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,6 +49,7 @@
   mb_type = ntohs(mb_type);
   width = ntohs(width);
   height = ntohs(height);
   size = ntohs(size);
}
void FDP_FaceDetectPB::hton()
@@ -64,10 +66,12 @@
{
   db_id = htonl(db_id);
   st_id = htonl(st_id);
   confidence = htons(confidence);
}
void FDP_FaceDetectResult::ntoh()
{
   db_id = ntohl(db_id);
   st_id = ntohl(st_id);
   confidence = ntohs(confidence);
}