From fe86d1a65b1d7c78384f22db2e5cf09ffe8ad7a1 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期二, 25 四月 2017 15:35:50 +0800 Subject: [PATCH] --- FaceServer/face_daemon_proto.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/FaceServer/face_daemon_proto.h b/FaceServer/face_daemon_proto.h index ccda811..4bc6e34 100644 --- a/FaceServer/face_daemon_proto.h +++ b/FaceServer/face_daemon_proto.h @@ -25,12 +25,16 @@ struct FDP_Image { - int32_t school_id; + int32_t db_id; int16_t mb_type; // MB_Frame::MBFType int16_t width; int16_t height; uint8_t buff[0]; + + void hton(); + void ntoh(); }; +//sizeof(FDP_Image)=10 struct FDP_FaceDetectPB { @@ -38,6 +42,9 @@ FDP_FaceDetectPB(int32_t _db_id) : db_id(_db_id) {} + + void hton(); + void ntoh(); }; struct FDP_FaceDetectResult @@ -47,6 +54,9 @@ FDP_FaceDetectResult(int32_t _db_id, int32_t _st_id) : db_id(_db_id), st_id(_st_id) {} + + void hton(); + void ntoh(); }; #pragma pack() -- Gitblit v1.8.0