Add one ownership to FrameInfo

parent e86b10e7
......@@ -295,10 +295,10 @@ void CtBuffer::getDataFromHwFrameInfo(Data &fdata,
Buffer *fbuf = new Buffer();
fbuf->data = frame_info.frame_ptr;
if(frame_info.buffer_owner_ship == HwFrameInfoType::Transfer)
fbuf->owner = Buffer::SHARED;
if(frame_info.buffer_owner_ship == HwFrameInfoType::Managed)
fbuf->owner = Buffer::MAPPED;
else
fbuf->owner = Buffer::MAPPED;
fbuf->owner = Buffer::SHARED;
fdata.setBuffer(fbuf);
fbuf->unref();
......
......@@ -38,7 +38,7 @@ namespace lima
*******************************************************************/
typedef struct LIMACORE_API HwFrameInfo {
enum OwnerShip {Managed,Transfer};
enum OwnerShip {Managed,Transfer,Shared};
int acq_frame_nb;
void *frame_ptr;
......
......@@ -29,7 +29,7 @@ struct HwFrameInfoType
#include <sstream>
using namespace lima;
%End
enum OwnerShip {Managed,Transfer};
enum OwnerShip {Managed,Transfer,Shared};
int acq_frame_nb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment