xingzilong
2017-08-18 9e5babf9db52e64bdae60137be7696e56241fca6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// /opt/protobuf/src/protoc  PbFaceList  --cpp_out=./
 
syntax = "proto2";
 
message PbFaceList
{
    required uint32 magic = 1 [default = 0xB2A105];
    required uint32 image_count = 2;
    optional uint32 src_width = 3;
    optional uint32 src_height = 4;
 
    message FaceListImage
    {
        enum ImageType
        {
            MBFT_SDP            = 1;
            MBFT_FMTP           = 2;
 
            MBFT_INDEX            = 3;
            MBFT_PTR_AVFRAME    = 4;
 
            MBFT_H264_NALU      = 5;
            MBFT_H264_NALU_AUX  = 6;
 
            MBFT_JPEG           = 7;
 
            MBFT_YUV            = 8;
            MBFT_Y8             = 9;
            MBFT_YUV420         = 10;
            MBFT_NV12           = 11;
 
            MBFT_RGB            = 12;
            MBFT_RGB888         = 13;
            MBFT_RGB565         = 14;
 
            MBFT_RGBA           = 15;
 
            MBFT_BGRA           = 16;
            MBFT_BGRA8888       = 17;
            MBFT_ABGR8888       = 18;
 
            MBFT_ARGB8888       = 19;
        }
        
        required uint32 idx = 1;
        required uint32 st_track_id = 2;
        required uint32 size = 3;
        required ImageType type = 4 [default = MBFT_Y8];
 
        required uint32 width = 5;
        required uint32 height = 6;
        optional uint32 top_left_x = 7;
        optional uint32 top_left_y = 8;
        repeated bytes img = 9;
    }
    
    repeated FaceListImage images = 5;
}