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

Method draw

src/vaapi_rgb_packet_processor.cpp:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 bool draw(VADisplay display, VASurfaceID surface)
106 {
107 VaapiImage *vi = reinterpret_cast<VaapiImage *>(rawdata);
108 VAImage &image = vi->image;
109 data = NULL;
110 if (vi->data != NULL) {
111 vi->data = NULL;
112 CHECK_VA(vaUnmapBuffer(display, image.buf));
113 }
114 CHECK_VA(vaGetImage(display, surface, 0, 0, image.width, image.height, image.image_id));
115 CHECK_VA(vaMapBuffer(display, image.buf, (void**)&vi->data));
116 data = vi->data;
117 return true;
118 }
119};
120
121class VaapiBuffer: public Buffer

Callers 1

decompressMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected