repeated image and depth

This commit is contained in:
Xisco Bosch 2017-04-05 16:08:17 +02:00
parent b681530525
commit 8ead5d0b2c
2 changed files with 6 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}