repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / mediaplayer / support / ColorSpaceToString.cpp
blob9cd1449e4c4409cb07d7186871d320131a193bd4
1 /*
2 * Copyright 2007-2008, Haiku. Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #include "ColorSpaceToString.h"
8 const char*
9 color_space_to_string(color_space format)
11 const char* name = "<unkown format>";
12 switch (format) {
13 case B_RGB32:
14 name = "B_RGB32";
15 break;
16 case B_RGBA32:
17 name = "B_RGBA32";
18 break;
19 case B_RGB32_BIG:
20 name = "B_RGB32_BIG";
21 break;
22 case B_RGBA32_BIG:
23 name = "B_RGBA32_BIG";
24 break;
25 case B_RGB24:
26 name = "B_RGB24";
27 break;
28 case B_RGB24_BIG:
29 name = "B_RGB24_BIG";
30 break;
31 case B_CMAP8:
32 name = "B_CMAP8";
33 break;
34 case B_GRAY8:
35 name = "B_GRAY8";
36 break;
37 case B_GRAY1:
38 name = "B_GRAY1";
39 break;
41 // YCbCr
42 case B_YCbCr422:
43 name = "B_YCbCr422";
44 break;
45 case B_YCbCr411:
46 name = "B_YCbCr411";
47 break;
48 case B_YCbCr444:
49 name = "B_YCbCr444";
50 break;
51 case B_YCbCr420:
52 name = "B_YCbCr420";
53 break;
55 // YUV
56 case B_YUV422:
57 name = "B_YUV422";
58 break;
59 case B_YUV411:
60 name = "B_YUV411";
61 break;
62 case B_YUV444:
63 name = "B_YUV444";
64 break;
65 case B_YUV420:
66 name = "B_YUV420";
67 break;
69 case B_YUV9:
70 name = "B_YUV9";
71 break;
72 case B_YUV12:
73 name = "B_YUV12";
74 break;
76 default:
77 break;
79 return name;