1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 02:45:43 +00:00

Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29316 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
kostya 2009-05-19 17:26:22 +00:00
parent ae2c370375
commit 3da99d2524
2 changed files with 7 additions and 0 deletions

View File

@ -463,6 +463,10 @@ const char *sws_format_name(enum PixelFormat format)
return "rgb4";
case PIX_FMT_RGB4_BYTE:
return "rgb4 byte";
case PIX_FMT_RGB48BE:
return "rgb48be";
case PIX_FMT_RGB48LE:
return "rgb48le";
case PIX_FMT_NV12:
return "nv12";
case PIX_FMT_NV21:

View File

@ -376,6 +376,9 @@ const char *sws_format_name(int format);
static inline int fmt_depth(int fmt)
{
switch(fmt) {
case PIX_FMT_RGB48BE:
case PIX_FMT_RGB48LE:
return 48;
case PIX_FMT_BGRA:
case PIX_FMT_ABGR:
case PIX_FMT_RGBA: