[vlc-commits] [Git][videolan/vlc][master] dxgi_fmt: remove unused DxgiFourccFormat()

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Aug 19 12:49:45 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
82cb2290 by Steve Lhomme at 2023-08-19T12:30:20+00:00
dxgi_fmt: remove unused DxgiFourccFormat()

- - - - -


2 changed files:

- modules/video_chroma/dxgi_fmt.c
- modules/video_chroma/dxgi_fmt.h


Changes:

=====================================
modules/video_chroma/dxgi_fmt.c
=====================================
@@ -125,16 +125,6 @@ vlc_fourcc_t DxgiFormatFourcc(DXGI_FORMAT format)
     return 0;
 }
 
-DXGI_FORMAT DxgiFourccFormat(vlc_fourcc_t fcc)
-{
-    for (const dxgi_format_t *f = dxgi_formats; f->name != NULL; ++f)
-    {
-        if (f->vlc_format == fcc)
-            return f->format;
-    }
-    return DXGI_FORMAT_UNKNOWN;
-}
-
 const d3d_format_t *DxgiGetRenderFormatList(void)
 {
     return d3d_formats;


=====================================
modules/video_chroma/dxgi_fmt.h
=====================================
@@ -59,7 +59,6 @@ const char *DxgiFormatToStr(DXGI_FORMAT format);
 vlc_fourcc_t DxgiFormatFourcc(DXGI_FORMAT format);
 const d3d_format_t *DxgiGetRenderFormatList(void);
 void DxgiFormatMask(DXGI_FORMAT format, video_format_t *);
-DXGI_FORMAT DxgiFourccFormat(vlc_fourcc_t fcc);
 const char *DxgiVendorStr(unsigned int gpu_vendor);
 UINT DxgiResourceCount(const d3d_format_t *);
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/82cb2290b132defbfe31bba271ca78003ec436d7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/82cb2290b132defbfe31bba271ca78003ec436d7
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list