[FFmpeg-cvslog] avutil/hwcontext_d3d12va: remove an unused function
Tong Wu
git at videolan.org
Thu Dec 21 15:31:26 EET 2023
ffmpeg | branch: master | Tong Wu <tong1.wu-at-intel.com at ffmpeg.org> | Thu Dec 21 20:24:08 2023 +0800| [bc4592a7784ce35056dd44430765cf24194d23d6] | committer: James Almer
avutil/hwcontext_d3d12va: remove an unused function
It caused lacking a public declaration build error with
-Werror=missing-prototypes.
Since DXGI_FORMAT is moved to public since patch set V10, this function
is no longer useful. Now remove it.
Signed-off-by: Tong Wu <tong1.wu at intel.com>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc4592a7784ce35056dd44430765cf24194d23d6
---
libavutil/hwcontext_d3d12va.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/libavutil/hwcontext_d3d12va.c b/libavutil/hwcontext_d3d12va.c
index 1600d94cb0..4995518dbd 100644
--- a/libavutil/hwcontext_d3d12va.c
+++ b/libavutil/hwcontext_d3d12va.c
@@ -71,15 +71,6 @@ static void d3d12va_default_unlock(void *ctx)
ReleaseMutex(ctx);
}
-DXGI_FORMAT av_d3d12va_map_sw_to_hw_format(enum AVPixelFormat pix_fmt)
-{
- switch (pix_fmt) {
- case AV_PIX_FMT_NV12:return DXGI_FORMAT_NV12;
- case AV_PIX_FMT_P010:return DXGI_FORMAT_P010;
- default: return DXGI_FORMAT_UNKNOWN;
- }
-}
-
static int d3d12va_fence_completion(AVD3D12VASyncContext *psync_ctx)
{
uint64_t completion = ID3D12Fence_GetCompletedValue(psync_ctx->fence);
More information about the ffmpeg-cvslog
mailing list