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

Method free

src/vaapi_rgb_packet_processor.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 virtual void free(Buffer *b)
75 {
76 if (b == NULL)
77 return;
78 VaapiImage *vi = static_cast<VaapiImage *>(b);
79 if (vi->data) {
80 CALL_VA(vaUnmapBuffer(display, vi->image.buf));
81 vi->data = NULL;
82 }
83 CALL_VA(vaDestroyImage(display, vi->image.image_id));
84 delete vi;
85 }
86};
87
88class VaapiFrame: public Frame

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected