mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2025-01-09 20:30:15 +00:00
camera: clean up format table some more
Move the common formats outside of the ifdef
This commit is contained in:
parent
55d4b44441
commit
3c7bccfb2b
@ -448,15 +448,6 @@ static struct {
|
||||
{ SDL_PIXELFORMAT_ARGB8888, SPA_VIDEO_FORMAT_ARGB,},
|
||||
{ SDL_PIXELFORMAT_BGRA8888, SPA_VIDEO_FORMAT_BGRA,},
|
||||
{ SDL_PIXELFORMAT_ABGR8888, SPA_VIDEO_FORMAT_ABGR,},
|
||||
{ SDL_PIXELFORMAT_YV12, SPA_VIDEO_FORMAT_YV12,},
|
||||
{ SDL_PIXELFORMAT_IYUV, SPA_VIDEO_FORMAT_I420,},
|
||||
{ SDL_PIXELFORMAT_YUY2, SPA_VIDEO_FORMAT_YUY2,},
|
||||
{ SDL_PIXELFORMAT_UYVY, SPA_VIDEO_FORMAT_UYVY,},
|
||||
{ SDL_PIXELFORMAT_YVYU, SPA_VIDEO_FORMAT_YVYU,},
|
||||
#if SDL_VERSION_ATLEAST(2,0,4)
|
||||
{ SDL_PIXELFORMAT_NV12, SPA_VIDEO_FORMAT_NV12,},
|
||||
{ SDL_PIXELFORMAT_NV21, SPA_VIDEO_FORMAT_NV21,},
|
||||
#endif
|
||||
#else
|
||||
{ SDL_PIXELFORMAT_RGB24, SPA_VIDEO_FORMAT_BGR,},
|
||||
{ SDL_PIXELFORMAT_RGBX8888, SPA_VIDEO_FORMAT_xBGR,},
|
||||
@ -466,6 +457,7 @@ static struct {
|
||||
{ SDL_PIXELFORMAT_ARGB8888, SPA_VIDEO_FORMAT_BGRA,},
|
||||
{ SDL_PIXELFORMAT_BGRA8888, SPA_VIDEO_FORMAT_ARGB,},
|
||||
{ SDL_PIXELFORMAT_ABGR8888, SPA_VIDEO_FORMAT_RGBA,},
|
||||
#endif
|
||||
{ SDL_PIXELFORMAT_YV12, SPA_VIDEO_FORMAT_YV12,},
|
||||
{ SDL_PIXELFORMAT_IYUV, SPA_VIDEO_FORMAT_I420,},
|
||||
{ SDL_PIXELFORMAT_YUY2, SPA_VIDEO_FORMAT_YUY2,},
|
||||
@ -475,7 +467,6 @@ static struct {
|
||||
{ SDL_PIXELFORMAT_NV12, SPA_VIDEO_FORMAT_NV12,},
|
||||
{ SDL_PIXELFORMAT_NV21, SPA_VIDEO_FORMAT_NV21,},
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
static inline uint32_t sdl_format_to_id(Uint32 format)
|
||||
|
Loading…
Reference in New Issue
Block a user