repeated image and depth
This commit is contained in:
parent
b681530525
commit
8ead5d0b2c
|
@ -46,11 +46,13 @@ namespace server {
|
|||
tjCompress2(jpegCompressor, color_image.data(), width, 0, height, TJPF_RGB,
|
||||
&compressedImage, &jpegSize, TJSAMP_444, jpeg_quality, TJFLAG_FASTDCT);
|
||||
tjDestroy(jpegCompressor);
|
||||
|
||||
if (!depth) {
|
||||
rwd.set_image(compressedImage, jpegSize);
|
||||
rwd.add_image((char*)compressedImage);
|
||||
} else {
|
||||
rwd.set_depth(compressedImage, jpegSize);
|
||||
rwd.add_depth((char*)compressedImage);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -100,6 +100,6 @@ message Reward {
|
|||
optional float ori_x = 13;
|
||||
optional float ori_y = 14;
|
||||
optional float ori_z = 15;
|
||||
optional bytes image = 16;
|
||||
optional bytes depth = 17;
|
||||
repeated bytes image = 16;
|
||||
repeated bytes depth = 17;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue