17 "title" :
"Image Format",
18 "description" :
"Available formats when exporting images from Vuo.",
22 "VuoList_VuoImageFormat"
34 const char *valueAsString =
"";
35 if (json_object_get_type(js) == json_type_string)
36 valueAsString = json_object_get_string(js);
40 if (! strcmp(valueAsString,
"PNG")) {
41 value = VuoImageFormat_PNG;
42 }
else if (! strcmp(valueAsString,
"JPEG")) {
43 value = VuoImageFormat_JPEG;
44 }
else if (! strcmp(valueAsString,
"TIFF")) {
45 value = VuoImageFormat_TIFF;
46 }
else if (! strcmp(valueAsString,
"BMP")) {
47 value = VuoImageFormat_BMP;
48 }
else if (! strcmp(valueAsString,
"HDR")) {
49 value = VuoImageFormat_HDR;
50 }
else if (! strcmp(valueAsString,
"EXR")) {
51 value = VuoImageFormat_EXR;
52 }
else if (! strcmp(valueAsString,
"GIF")) {
53 value = VuoImageFormat_GIF;
54 }
else if (! strcmp(valueAsString,
"TARGA")) {
55 value = VuoImageFormat_TARGA;
57 else if (! strcmp(valueAsString,
"WEBP"))
58 value = VuoImageFormat_WEBP;
69 char *valueAsString =
"";
72 case VuoImageFormat_PNG:
73 valueAsString =
"PNG";
75 case VuoImageFormat_JPEG:
76 valueAsString =
"JPEG";
78 case VuoImageFormat_TIFF:
79 valueAsString =
"TIFF";
81 case VuoImageFormat_BMP:
82 valueAsString =
"BMP";
84 case VuoImageFormat_HDR:
85 valueAsString =
"HDR";
87 case VuoImageFormat_EXR:
88 valueAsString =
"EXR";
90 case VuoImageFormat_GIF:
91 valueAsString =
"GIF";
93 case VuoImageFormat_TARGA:
94 valueAsString =
"TARGA";
96 case VuoImageFormat_WEBP:
97 valueAsString =
"WEBP";
101 return json_object_new_string(valueAsString);
128 char *valueAsString =
"";
131 case VuoImageFormat_PNG:
132 valueAsString =
"PNG";
134 case VuoImageFormat_JPEG:
135 valueAsString =
"JPEG";
137 case VuoImageFormat_TIFF:
138 valueAsString =
"TIFF";
140 case VuoImageFormat_BMP:
141 valueAsString =
"BMP";
143 case VuoImageFormat_HDR:
144 valueAsString =
"HDR";
146 case VuoImageFormat_EXR:
147 valueAsString =
"EXR";
149 case VuoImageFormat_GIF:
150 valueAsString =
"GIF";
152 case VuoImageFormat_TARGA:
153 valueAsString =
"TARGA";
155 case VuoImageFormat_WEBP:
156 valueAsString =
"WEBP";
160 return strdup(valueAsString);
171 if (format == VuoImageFormat_PNG)
172 json_object_array_add(js, json_object_new_string(
"png"));
173 else if (format == VuoImageFormat_JPEG)
175 json_object_array_add(js, json_object_new_string(
"jpg"));
176 json_object_array_add(js, json_object_new_string(
"jpeg"));
178 else if (format == VuoImageFormat_TIFF)
180 json_object_array_add(js, json_object_new_string(
"tif"));
181 json_object_array_add(js, json_object_new_string(
"tiff"));
183 else if (format == VuoImageFormat_BMP)
184 json_object_array_add(js, json_object_new_string(
"bmp"));
185 else if (format == VuoImageFormat_HDR)
186 json_object_array_add(js, json_object_new_string(
"hdr"));
187 else if (format == VuoImageFormat_EXR)
188 json_object_array_add(js, json_object_new_string(
"exr"));
189 else if (format == VuoImageFormat_GIF)
190 json_object_array_add(js, json_object_new_string(
"gif"));
191 else if (format == VuoImageFormat_TARGA)
193 json_object_array_add(js, json_object_new_string(
"tga"));
194 json_object_array_add(js, json_object_new_string(
"targa"));
196 else if (format == VuoImageFormat_WEBP)
197 json_object_array_add(js, json_object_new_string(
"webp"));
208 char *valueAsString =
"";
211 case VuoImageFormat_PNG:
212 valueAsString =
"png";
214 case VuoImageFormat_JPEG:
215 valueAsString =
"jpeg";
217 case VuoImageFormat_TIFF:
218 valueAsString =
"tiff";
220 case VuoImageFormat_BMP:
221 valueAsString =
"bmp";
223 case VuoImageFormat_HDR:
224 valueAsString =
"hdr";
226 case VuoImageFormat_EXR:
227 valueAsString =
"exr";
229 case VuoImageFormat_GIF:
230 valueAsString =
"gif";
232 case VuoImageFormat_TARGA:
233 valueAsString =
"tga";
235 case VuoImageFormat_WEBP:
236 valueAsString =
"webp";
240 return strdup(valueAsString);
248 return value1 == value2;
256 return value1 < value2;