MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / allocate_va

Method allocate_va

src/vaapi_rgb_packet_processor.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 VAContextID context;
134
135 bool allocate_va(VaapiBuffer *b, size_t size)
136 {
137 CHECK_VA(vaCreateBuffer(display, context, VASliceDataBufferType, size, 1, NULL, &b->id));
138 CHECK_VA(vaMapBuffer(display, b->id, (void**)&b->data));
139 b->capacity = size;
140 return true;
141 }
142
143public:
144 VaapiAllocator(VADisplay display, VAContextID context):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected