| 84 | } |
| 85 | |
| 86 | static int vk_dpx_decode_slice(AVCodecContext *avctx, |
| 87 | const uint8_t *data, |
| 88 | uint32_t size) |
| 89 | { |
| 90 | DPXDecContext *dpx = avctx->priv_data; |
| 91 | |
| 92 | DPXVulkanDecodePicture *pp = dpx->hwaccel_picture_private; |
| 93 | FFVulkanDecodePicture *vp = &pp->vp; |
| 94 | |
| 95 | if (!vp->slices_buf) { |
| 96 | int err = ff_vk_decode_add_slice(avctx, vp, data, size, 0, |
| 97 | NULL, NULL); |
| 98 | if (err < 0) |
| 99 | return err; |
| 100 | } |
| 101 | |
| 102 | return 0; |
| 103 | } |
| 104 | |
| 105 | static int vk_dpx_end_frame(AVCodecContext *avctx) |
| 106 | { |
nothing calls this directly
no test coverage detected