[FFmpeg-cvslog] vulkan_decode: remove unused fields

Lynne git at videolan.org
Thu Jun 22 19:22:43 EEST 2023


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Tue Jun 20 03:22:27 2023 +0200| [237c400727c9bfb7b0c50221bcd17864b2b8ade3] | committer: Lynne

vulkan_decode: remove unused fields

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=237c400727c9bfb7b0c50221bcd17864b2b8ade3
---

 libavcodec/vulkan_decode.c | 2 --
 libavcodec/vulkan_decode.h | 6 ------
 2 files changed, 8 deletions(-)

diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c
index afcdcd8021..d4395e32e4 100644
--- a/libavcodec/vulkan_decode.c
+++ b/libavcodec/vulkan_decode.c
@@ -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;
diff --git a/libavcodec/vulkan_decode.h b/libavcodec/vulkan_decode.h
index 3ac103f6b4..bb53100429 100644
--- a/libavcodec/vulkan_decode.h
+++ b/libavcodec/vulkan_decode.h
@@ -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;
 
 /**



More information about the ffmpeg-cvslog mailing list