| 117 | } |
| 118 | |
| 119 | static int d3d12va_discard_command_allocator(AVCodecContext *avctx, ID3D12CommandAllocator *pAllocator, uint64_t fence_value) |
| 120 | { |
| 121 | D3D12VAEncodeContext *ctx = avctx->priv_data; |
| 122 | |
| 123 | CommandAllocator allocator = { |
| 124 | .command_allocator = pAllocator, |
| 125 | .fence_value = fence_value, |
| 126 | }; |
| 127 | |
| 128 | av_fifo_write(ctx->allocator_queue, &allocator, 1); |
| 129 | |
| 130 | return 0; |
| 131 | } |
| 132 | |
| 133 | static int d3d12va_encode_wait(AVCodecContext *avctx, |
| 134 | FFHWBaseEncodePicture *base_pic) |
no test coverage detected