| 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 | |
| 88 | class VaapiFrame: public Frame |
nothing calls this directly
no outgoing calls
no test coverage detected