| 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 | |
| 143 | public: |
| 144 | VaapiAllocator(VADisplay display, VAContextID context): |
nothing calls this directly
no outgoing calls
no test coverage detected