v1.0.0-rc.36
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
#include "ThreadSafeFIFO.h"
|
||||
|
||||
ZeroCopyReturnValue::ZeroCopyReturnValue(void *in_ptr, ImageBuffer &in_ctrl, uint32_t in_handle)
|
||||
: ptr(in_ptr), handle(in_handle), buf_ctrl(in_ctrl), image_number(-1), payload_size(0) {
|
||||
: ptr(in_ptr), handle(in_handle), buf_ctrl(in_ctrl), image_number(-1), payload_size(0),
|
||||
indexed(false) {
|
||||
}
|
||||
|
||||
void ZeroCopyReturnValue::SetImageNumber(int64_t in_image_number) {
|
||||
@@ -27,9 +28,17 @@ void * ZeroCopyReturnValue::GetImage() const {
|
||||
}
|
||||
|
||||
void ZeroCopyReturnValue::release() const {
|
||||
buf_ctrl.ReleaseSlot(handle, image_number, payload_size);
|
||||
buf_ctrl.ReleaseSlot(handle, image_number, payload_size, indexed);
|
||||
}
|
||||
|
||||
int64_t ZeroCopyReturnValue::GetImageNumber() const {
|
||||
return image_number;
|
||||
}
|
||||
|
||||
void ZeroCopyReturnValue::SetIndexed(bool input) {
|
||||
indexed = input;
|
||||
}
|
||||
|
||||
bool ZeroCopyReturnValue::IsIndexed() const {
|
||||
return indexed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user