1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

vulkan_decode: remove unused fields

This commit is contained in:
Lynne 2023-06-20 03:22:27 +02:00
parent d9af84426b
commit 237c400727
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
2 changed files with 0 additions and 8 deletions

View File

@ -136,7 +136,6 @@ int ff_vk_decode_prepare_frame(FFVulkanDecodeContext *dec, AVFrame *pic,
int err;
FFVulkanDecodeShared *ctx = (FFVulkanDecodeShared *)dec->shared_ref->data;
vkpic->nb_slices = 0;
vkpic->slices_size = 0;
/* If the decoder made a blank frame to make up for a missing ref, or the
@ -247,7 +246,6 @@ int ff_vk_decode_add_slice(AVCodecContext *avctx, FFVulkanDecodePicture *vp,
memcpy(slices + vp->slices_size + startcode_len, data, size);
*nb_slices = nb + 1;
vp->nb_slices++;
vp->slices_size += startcode_len + size;
return 0;

View File

@ -80,10 +80,6 @@ typedef struct FFVulkanDecodePicture {
VkSemaphore sem;
uint64_t sem_value;
/* State */
int update_params;
AVBufferRef *session_params;
/* Current picture */
VkVideoPictureResourceInfoKHR ref;
VkVideoReferenceSlotInfoKHR ref_slot;
@ -93,7 +89,6 @@ typedef struct FFVulkanDecodePicture {
VkVideoReferenceSlotInfoKHR ref_slots[36];
/* Main decoding struct */
AVBufferRef *params_buf;
VkVideoDecodeInfoKHR decode_info;
/* Slice data */
@ -101,7 +96,6 @@ typedef struct FFVulkanDecodePicture {
size_t slices_size;
uint32_t *slice_off;
unsigned int slice_off_max;
uint32_t nb_slices;
} FFVulkanDecodePicture;
/**