From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: [FFmpeg-devel] [PATCH] avutil/vulkan: Remove unused ff_vk_create_avbuf() Date: Sun, 9 Mar 2025 17:53:41 +0100 Message-ID: <AS8P250MB074403562BD45C32CED412008FD72@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw) [-- Attachment #1: Type: text/plain, Size: 27 bytes --] Patch attached. - Andreas [-- Attachment #2: 0001-avutil-vulkan-Remove-unused-ff_vk_create_avbuf.patch --] [-- Type: text/x-patch, Size: 2488 bytes --] From cdeabdbc844e5283e0ff49fdd2dbdb2dfda6b05b Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Date: Sun, 9 Mar 2025 05:30:40 +0100 Subject: [PATCH] avutil/vulkan: Remove unused ff_vk_create_avbuf() Unused since aea4d4b423c62aecf326ef3ae1578710faa3eca6. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavutil/vulkan.c | 35 ----------------------------------- libavutil/vulkan.h | 3 --- 2 files changed, 38 deletions(-) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 2ae619967a..8f6ee8a276 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1025,41 +1025,6 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size, return 0; } -static void destroy_avvkbuf(void *opaque, uint8_t *data) -{ - FFVulkanContext *s = opaque; - FFVkBuffer *buf = (FFVkBuffer *)data; - ff_vk_free_buf(s, buf); - av_free(buf); -} - -int ff_vk_create_avbuf(FFVulkanContext *s, AVBufferRef **ref, size_t size, - void *pNext, void *alloc_pNext, - VkBufferUsageFlags usage, VkMemoryPropertyFlagBits flags) -{ - int err; - AVBufferRef *buf; - FFVkBuffer *vkb = av_mallocz(sizeof(*vkb)); - if (!vkb) - return AVERROR(ENOMEM); - - err = ff_vk_create_buf(s, vkb, size, pNext, alloc_pNext, usage, flags); - if (err < 0) { - av_free(vkb); - return err; - } - - buf = av_buffer_create((uint8_t *)vkb, sizeof(*vkb), destroy_avvkbuf, s, 0); - if (!buf) { - destroy_avvkbuf(s, (uint8_t *)vkb); - return AVERROR(ENOMEM); - } - - *ref = buf; - - return 0; -} - int ff_vk_map_buffers(FFVulkanContext *s, FFVkBuffer **buf, uint8_t *mem[], int nb_buffers, int invalidate) { diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h index 617df952c4..91510cbb69 100644 --- a/libavutil/vulkan.h +++ b/libavutil/vulkan.h @@ -481,9 +481,6 @@ int ff_vk_alloc_mem(FFVulkanContext *s, VkMemoryRequirements *req, int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size, void *pNext, void *alloc_pNext, VkBufferUsageFlags usage, VkMemoryPropertyFlagBits flags); -int ff_vk_create_avbuf(FFVulkanContext *s, AVBufferRef **ref, size_t size, - void *pNext, void *alloc_pNext, - VkBufferUsageFlags usage, VkMemoryPropertyFlagBits flags); /** * Buffer management code. -- 2.45.2 [-- Attachment #3: Type: text/plain, Size: 251 bytes --] _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
reply other threads:[~2025-03-09 16:53 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=AS8P250MB074403562BD45C32CED412008FD72@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \ --to=andreas.rheinhardt@outlook.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git