Mercurial > mplayer.hg
annotate libvo/vo_jpeg.c @ 13252:7dfd84faaa09
Some minor vo_jpeg fixes:
Removed unused variable dst.
MPlayer now exits if it is unable to create a file for JPEG output and prints
an appropriate message, instead of going on if all is right (which is not).
Added line to authors file.
author | ivo |
---|---|
date | Sun, 05 Sep 2004 17:54:09 +0000 |
parents | 933b45ad31d5 |
children | 858b7e04718c |
rev | line source |
---|---|
13217 | 1 /* ------------------------------------------------------------------------- */ |
2 | |
5648 | 3 /* |
12857 | 4 * vo_jpeg.c, JPEG Renderer for MPlayer |
5648 | 5 * |
13217 | 6 * |
7 * Changelog | |
8 * | |
9 * Original version: Copyright 2002 by Pontscho (pontscho@makacs.poliod.hu) | |
10 * 2003-04-25 Spring cleanup -- Alex | |
11 * 2004-08-04 Added multiple subdirectory support -- Ivo (ivop@euronet.nl) | |
12 * 2004-09-01 Cosmetics update -- Ivo | |
13252 | 13 * 2004-09-05 Added suboptions parser -- Ivo |
5648 | 14 * |
15 */ | |
16 | |
13217 | 17 /* ------------------------------------------------------------------------- */ |
18 | |
19 /* Global Includes */ | |
20 | |
5648 | 21 #include <stdio.h> |
22 #include <stdlib.h> | |
23 #include <string.h> | |
24 #include <errno.h> | |
13217 | 25 #include <jpeglib.h> |
26 #include <sys/stat.h> | |
27 #include <sys/types.h> | |
28 #include <unistd.h> | |
13247 | 29 #include <math.h> /* for log10() */ |
5648 | 30 |
13217 | 31 /* ------------------------------------------------------------------------- */ |
32 | |
33 /* Local Includes */ | |
5648 | 34 |
35 #include "config.h" | |
13158 | 36 #include "mp_msg.h" |
5648 | 37 #include "video_out.h" |
38 #include "video_out_internal.h" | |
13158 | 39 #include "mplayer.h" /* for exit_player() */ |
40 #include "help_mp.h" | |
41 | |
13217 | 42 /* ------------------------------------------------------------------------- */ |
43 | |
44 /* Defines */ | |
13158 | 45 |
46 /* Used for temporary buffers to store file- and pathnames */ | |
47 #define BUFLENGTH 512 | |
5648 | 48 |
13217 | 49 /* ------------------------------------------------------------------------- */ |
50 | |
51 /* Info */ | |
52 | |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
7487
diff
changeset
|
53 static vo_info_t info= |
5648 | 54 { |
55 "JPEG file", | |
56 "jpeg", | |
57 "Zoltan Ponekker (pontscho@makacs.poliod.hu)", | |
58 "" | |
59 }; | |
60 | |
8148
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
7487
diff
changeset
|
61 LIBVO_EXTERN (jpeg) |
5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
alex
parents:
7487
diff
changeset
|
62 |
13217 | 63 /* ------------------------------------------------------------------------- */ |
64 | |
65 /* Global Variables */ | |
66 | |
5648 | 67 static int image_width; |
68 static int image_height; | |
69 | |
70 int jpeg_baseline = 1; | |
71 int jpeg_progressive_mode = 0; | |
72 int jpeg_optimize = 100; | |
73 int jpeg_smooth = 0; | |
74 int jpeg_quality = 75; | |
13217 | 75 char *jpeg_outdir = "."; |
76 char *jpeg_subdirs = NULL; | |
77 int jpeg_maxfiles = 1000; | |
5648 | 78 |
13217 | 79 static int framenum = 0; |
80 | |
81 /* ------------------------------------------------------------------------- */ | |
5648 | 82 |
13217 | 83 static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, |
84 uint32_t d_height, uint32_t fullscreen, char *title, | |
85 uint32_t format) | |
5648 | 86 { |
13217 | 87 char buf[BUFLENGTH]; |
88 struct stat stat_p; | |
13158 | 89 |
13217 | 90 /* Create outdir. |
91 * If it already exists, test if it's a writable directory */ | |
92 | |
93 snprintf(buf, BUFLENGTH, "%s", jpeg_outdir); | |
13158 | 94 |
13217 | 95 if ( mkdir(buf, 0755) < 0 ) { |
96 switch (errno) { /* use switch in case other errors need to be caught | |
97 and handled in the future */ | |
98 case EEXIST: | |
99 if ( stat(buf, &stat_p ) < 0 ) { | |
100 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", info.short_name, | |
101 MSGTR_VO_JPEG_GenericError, strerror(errno) ); | |
102 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s %s\n", info.short_name, | |
103 MSGTR_VO_JPEG_UnableToAccess,buf); | |
104 exit_player(MSGTR_Exit_error); | |
105 } | |
106 if ( !S_ISDIR(stat_p.st_mode) ) { | |
107 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s %s\n", info.short_name, | |
108 buf, MSGTR_VO_JPEG_ExistsButNoDirectory); | |
109 exit_player(MSGTR_Exit_error); | |
110 } | |
111 if ( !(stat_p.st_mode & S_IWUSR) ) { | |
112 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s\n", info.short_name, | |
113 MSGTR_VO_JPEG_DirExistsButNotWritable); | |
114 exit_player(MSGTR_Exit_error); | |
115 } | |
116 | |
117 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
118 MSGTR_VO_JPEG_DirExistsAndIsWritable); | |
119 break; | |
13158 | 120 |
13217 | 121 default: |
122 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", info.short_name, | |
123 MSGTR_VO_JPEG_GenericError, strerror(errno) ); | |
124 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s\n", info.short_name, | |
125 MSGTR_VO_JPEG_CantCreateDirectory); | |
126 exit_player(MSGTR_Exit_error); | |
127 } /* end switch */ | |
128 } else { | |
129 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
130 MSGTR_VO_JPEG_DirectoryCreateSuccess); | |
131 } /* end if */ | |
13158 | 132 |
13217 | 133 image_height = height; |
134 image_width = width; | |
5648 | 135 |
13217 | 136 return 0; |
5648 | 137 } |
138 | |
13217 | 139 /* ------------------------------------------------------------------------- */ |
5648 | 140 |
13217 | 141 static uint32_t jpeg_write(uint8_t * name, uint8_t * buffer) |
142 { | |
143 FILE *outfile; | |
144 struct jpeg_compress_struct cinfo; | |
145 struct jpeg_error_mgr jerr; | |
146 JSAMPROW row_pointer[1]; | |
147 int row_stride; | |
5648 | 148 |
13217 | 149 if ( !buffer ) return 1; |
150 if ( (outfile = fopen(name, "wb") ) == NULL ) { | |
13252 | 151 mp_msg(MSGT_VO, MSGL_ERR, "\n%s: %s\n", info.short_name, |
152 MSGTR_VO_JPEG_CantCreateFile); | |
153 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", | |
154 info.short_name, MSGTR_VO_JPEG_GenericError, | |
155 strerror(errno) ); | |
156 exit_player(MSGTR_Exit_error); | |
13217 | 157 } |
8267 | 158 |
13217 | 159 cinfo.err = jpeg_std_error(&jerr); |
160 jpeg_create_compress(&cinfo); | |
161 jpeg_stdio_dest(&cinfo, outfile); | |
162 | |
163 cinfo.image_width = image_width; | |
164 cinfo.image_height = image_height; | |
165 cinfo.input_components = 3; | |
166 cinfo.in_color_space = JCS_RGB; | |
167 | |
168 jpeg_set_defaults(&cinfo); | |
169 jpeg_set_quality(&cinfo,jpeg_quality, jpeg_baseline); | |
170 cinfo.optimize_coding = jpeg_optimize; | |
171 cinfo.smoothing_factor = jpeg_smooth; | |
5648 | 172 |
13217 | 173 if ( jpeg_progressive_mode ) { |
174 jpeg_simple_progression(&cinfo); | |
175 } | |
176 | |
177 jpeg_start_compress(&cinfo, TRUE); | |
178 | |
179 row_stride = image_width * 3; | |
180 while (cinfo.next_scanline < cinfo.image_height) { | |
181 row_pointer[0] = &buffer[cinfo.next_scanline * row_stride]; | |
182 (void)jpeg_write_scanlines(&cinfo, row_pointer,1); | |
183 } | |
5648 | 184 |
13217 | 185 jpeg_finish_compress(&cinfo); |
186 fclose(outfile); | |
187 jpeg_destroy_compress(&cinfo); | |
188 | |
189 return 0; | |
5648 | 190 } |
191 | |
13217 | 192 /* ------------------------------------------------------------------------- */ |
193 | |
194 static uint32_t draw_frame(uint8_t *src[]) | |
5648 | 195 { |
13217 | 196 static uint32_t framecounter = 0, subdircounter = 0; |
197 char buf[BUFLENGTH]; | |
198 static char subdirname[BUFLENGTH] = ""; | |
199 struct stat stat_p; | |
13158 | 200 |
13217 | 201 /* Start writing to new subdirectory after a certain amount of frames */ |
202 if ( framecounter == jpeg_maxfiles ) { | |
203 framecounter = 0; | |
204 } | |
13158 | 205 |
13217 | 206 /* If framecounter is zero (or reset to zero), increment subdirectory |
207 * number and create the subdirectory. | |
208 * If jpeg_subdirs is not set, do nothing and resort to old behaviour. */ | |
209 if ( !framecounter && jpeg_subdirs ) { | |
210 snprintf(subdirname, BUFLENGTH, "%s%08d", jpeg_subdirs, | |
211 ++subdircounter); | |
212 snprintf(buf, BUFLENGTH, "%s/%s", jpeg_outdir, subdirname); | |
213 if ( mkdir(buf, 0755) < 0 ) { | |
214 switch (errno) { /* use switch in case other errors need to be | |
215 caught and handled in the future */ | |
216 case EEXIST: | |
217 if ( stat(buf, &stat_p) < 0 ) { | |
218 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", | |
219 info.short_name, MSGTR_VO_JPEG_GenericError, | |
220 strerror(errno) ); | |
221 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s %s\n", | |
222 info.short_name, MSGTR_VO_JPEG_UnableToAccess, | |
223 buf); | |
224 exit_player(MSGTR_Exit_error); | |
225 } | |
226 if ( !S_ISDIR(stat_p.st_mode) ) { | |
227 mp_msg(MSGT_VO, MSGL_ERR, "\n%s: %s %s\n", | |
228 info.short_name, buf, | |
229 MSGTR_VO_JPEG_ExistsButNoDirectory); | |
230 exit_player(MSGTR_Exit_error); | |
231 } | |
232 if ( !(stat_p.st_mode & S_IWUSR) ) { | |
233 mp_msg(MSGT_VO, MSGL_ERR, "\n%s: %s - %s\n", | |
234 info.short_name, buf, | |
235 MSGTR_VO_JPEG_DirExistsButNotWritable); | |
236 exit_player(MSGTR_Exit_error); | |
237 } | |
238 | |
239 mp_msg(MSGT_VO, MSGL_INFO, "\n%s: %s - %s\n", | |
240 info.short_name, buf, | |
241 MSGTR_VO_JPEG_DirExistsAndIsWritable); | |
242 break; | |
243 | |
244 default: | |
245 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", info.short_name, | |
246 MSGTR_VO_JPEG_GenericError, strerror(errno) ); | |
247 mp_msg(MSGT_VO, MSGL_ERR, "\n%s: %s - %s.\n", | |
248 info.short_name, buf, | |
249 MSGTR_VO_JPEG_CantCreateDirectory); | |
250 exit_player(MSGTR_Exit_error); | |
251 break; | |
252 } | |
253 } /* switch */ | |
254 } /* if !framecounter && jpeg_subdirs */ | |
255 | |
256 framenum++; | |
13158 | 257 |
13217 | 258 /* snprintf the full pathname of the outputfile */ |
259 snprintf(buf, BUFLENGTH, "%s/%s/%08d.jpg", jpeg_outdir, subdirname, | |
260 framenum); | |
261 | |
262 framecounter++; | |
263 | |
264 return jpeg_write(buf, src[0]); | |
265 } | |
13158 | 266 |
13217 | 267 /* ------------------------------------------------------------------------- */ |
5648 | 268 |
269 static void draw_osd(void) | |
270 { | |
271 } | |
272 | |
13217 | 273 /* ------------------------------------------------------------------------- */ |
274 | |
5648 | 275 static void flip_page (void) |
276 { | |
277 } | |
278 | |
13217 | 279 /* ------------------------------------------------------------------------- */ |
280 | |
281 static uint32_t draw_slice(uint8_t *src[], int stride[], int w, int h, | |
282 int x, int y) | |
5648 | 283 { |
13217 | 284 return 0; |
5648 | 285 } |
286 | |
13217 | 287 /* ------------------------------------------------------------------------- */ |
288 | |
5648 | 289 static uint32_t query_format(uint32_t format) |
290 { | |
13217 | 291 if (format == IMGFMT_RGB24) { |
292 return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW; | |
293 } | |
294 | |
9989
98791b90215a
Spring cleanup: supporting only RGB24 as input (native jpeg lib supports only that, maybe we could later add nativ YCbCr (YUV) support, but not swscale ones)
alex
parents:
9019
diff
changeset
|
295 return 0; |
5648 | 296 } |
297 | |
13217 | 298 /* ------------------------------------------------------------------------- */ |
299 | |
5648 | 300 static void uninit(void) |
301 { | |
302 } | |
303 | |
13217 | 304 /* ------------------------------------------------------------------------- */ |
305 | |
5648 | 306 static void check_events(void) |
307 { | |
308 } | |
309 | |
13217 | 310 /* ------------------------------------------------------------------------- */ |
311 | |
5648 | 312 static uint32_t preinit(const char *arg) |
313 { | |
13247 | 314 char *buf; /* buf is used to store parsed string values */ |
315 int length; /* length is used when calculating the length of buf */ | |
316 int value; /* storage for parsed integer values */ | |
317 | |
318 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
319 MSGTR_VO_JPEG_ParsingSuboptions); | |
320 | |
321 if (arg) { | |
322 | |
323 while (*arg != '\0') { | |
324 if (!strncmp(arg, ":", 1)) { | |
325 arg++; | |
326 continue; /* multiple ':' is not really an error */ | |
327 } if (!strncmp(arg, "progressive", 11)) { | |
328 arg += 11; | |
329 jpeg_progressive_mode = 1; | |
330 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
331 MSGTR_VO_JPEG_ProgressiveJPEG); | |
332 } else if (!strncmp(arg, "noprogressive", 13)) { | |
333 arg += 13; | |
334 jpeg_progressive_mode = 0; | |
335 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
336 MSGTR_VO_JPEG_NoProgressiveJPEG); | |
337 } else if (!strncmp(arg, "baseline", 8)) { | |
338 arg += 8; | |
339 jpeg_baseline = 1; | |
340 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
341 MSGTR_VO_JPEG_BaselineJPEG); | |
342 } else if (!strncmp(arg, "nobaseline", 10)) { | |
343 arg += 10; | |
344 jpeg_baseline = 0; | |
345 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
346 MSGTR_VO_JPEG_NoBaselineJPEG); | |
347 } else if (!strncmp(arg, "optimize=", 9)) { | |
348 arg += 9; | |
349 if (sscanf(arg, "%d", &value) == 1) { | |
350 if ( (value < 0 ) || (value > 100) ) { | |
351 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s %s.\n", | |
352 info.short_name, "optimize", | |
353 MSGTR_VO_JPEG_ValueOutOfRange, "[0-100]"); | |
354 exit_player(MSGTR_Exit_error); | |
355 } else { | |
356 jpeg_optimize = value; | |
357 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s --> %d\n", | |
358 info.short_name, "optimize", value); | |
359 } | |
360 } else { | |
361 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", | |
362 info.short_name, "optimize", | |
363 MSGTR_VO_JPEG_NoValueSpecified); | |
364 exit_player(MSGTR_Exit_error); | |
365 } | |
366 /* only here if value is set and sane */ | |
367 if (value) { | |
368 arg += (int)log10(value) + 1; | |
369 } else { | |
370 arg++; /* log10(0) fails */ | |
371 } | |
372 } else if (!strncmp(arg, "smooth=", 7)) { | |
373 arg += 7; | |
374 if (sscanf(arg, "%d", &value) == 1 ) { | |
375 if ( (value < 0) || (value > 100) ) { | |
376 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s %s.\n", | |
377 info.short_name, "smooth", | |
378 MSGTR_VO_JPEG_ValueOutOfRange, "[0-100]"); | |
379 exit_player(MSGTR_Exit_error); | |
380 } else { | |
381 jpeg_smooth = value; | |
382 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s --> %d\n", | |
383 info.short_name, "smooth", value); | |
384 } | |
385 } else { | |
386 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", | |
387 info.short_name, "smooth", | |
388 MSGTR_VO_JPEG_NoValueSpecified); | |
389 exit_player(MSGTR_Exit_error); | |
390 } | |
391 /* only here if value is set and sane */ | |
392 if (value) { | |
393 arg += (int)log10(value) + 1; | |
394 } else { | |
395 arg++; /* log10(0) fails */ | |
396 } | |
397 } else if (!strncmp(arg, "quality=", 8)) { | |
398 arg += 8; | |
399 if (sscanf(arg, "%d", &value) == 1) { | |
400 if ( (value < 0) || (value > 100) ) { | |
401 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s %s.\n", | |
402 info.short_name, "quality", | |
403 MSGTR_VO_JPEG_ValueOutOfRange, "[0-100]"); | |
404 exit_player(MSGTR_Exit_error); | |
405 } else { | |
406 jpeg_quality = value; | |
407 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s --> %d\n", | |
408 info.short_name, "quality", value); | |
409 } | |
410 } else { | |
411 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", | |
412 info.short_name, "quality", | |
413 MSGTR_VO_JPEG_NoValueSpecified); | |
414 exit_player(MSGTR_Exit_error); | |
415 } | |
416 /* only here if value is set and sane */ | |
417 if (value) { | |
418 arg += (int)log10(value) + 1; | |
419 } else { | |
420 arg++; /* log10(0) fails */ | |
421 } | |
422 } else if (!strncmp(arg, "outdir=", 7)) { | |
423 arg += 7; | |
424 buf = malloc(strlen(arg)+1); /* maximum length possible */ | |
425 if (!buf) { | |
426 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s\n", info.short_name, | |
427 MSGTR_MemAllocFailed); | |
428 exit_player(MSGTR_Exit_error); | |
429 } | |
430 if (sscanf(arg, "%[^:]", buf) == 1) { | |
431 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s --> %s\n", | |
432 info.short_name, "outdir", buf); | |
433 length = strlen(buf); | |
434 arg += length; | |
435 jpeg_outdir = malloc(length+1); | |
436 strncpy(jpeg_outdir, buf, length+1); | |
437 free(buf); | |
438 } else { | |
439 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", | |
440 info.short_name, "outdir", | |
441 MSGTR_VO_JPEG_NoValueSpecified); | |
442 exit_player(MSGTR_Exit_error); | |
443 } | |
444 } else if (!strncmp(arg, "subdirs=", 8)) { | |
445 arg += 8; | |
446 buf = malloc(strlen(arg)+1); /* maximum length possible */ | |
447 if (!buf) { | |
448 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s\n", info.short_name, | |
449 MSGTR_MemAllocFailed); | |
450 exit_player(MSGTR_Exit_error); | |
451 } | |
452 if (sscanf(arg, "%[^:]", buf) == 1) { | |
453 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s --> %s\n", | |
454 info.short_name, "subdirs", buf); | |
455 length = strlen(buf); | |
456 arg += length; | |
457 jpeg_subdirs = malloc(length+1); | |
458 strncpy(jpeg_subdirs, buf, length+1); | |
459 free(buf); | |
460 } else { | |
461 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", | |
462 info.short_name, "subdirs", | |
463 MSGTR_VO_JPEG_NoValueSpecified); | |
464 exit_player(MSGTR_Exit_error); | |
465 } | |
466 } else if (!strncmp(arg, "maxfiles=", 9)) { | |
467 arg += 9; | |
468 if (sscanf(arg, "%d", &value) == 1) { | |
469 if (value < 1) { | |
470 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s %s.\n", | |
471 info.short_name, "maxfiles", | |
472 MSGTR_VO_JPEG_ValueOutOfRange, ">=1"); | |
473 exit_player(MSGTR_Exit_error); | |
474 } else { | |
475 jpeg_maxfiles = value; | |
476 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s --> %d\n", | |
477 info.short_name, "maxfiles", value); | |
478 } | |
479 } else { | |
480 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", | |
481 info.short_name, "maxfiles", | |
482 MSGTR_VO_JPEG_NoValueSpecified); | |
483 exit_player(MSGTR_Exit_error); | |
484 } | |
485 /* only here if value is set and sane */ | |
486 if (value) { | |
487 arg += (int)log10(value) + 1; | |
488 } else { | |
489 arg++; /* log10(0) fails */ | |
490 } | |
491 } else { | |
492 mp_msg(MSGT_VO, MSGL_ERR, "%s: %s %-20s...\n", info.short_name, | |
493 MSGTR_VO_JPEG_UnknownOptions, arg); | |
494 exit_player(MSGTR_Exit_error); | |
495 } | |
496 } /* end while */ | |
497 } /* endif */ | |
498 | |
499 mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, | |
500 MSGTR_VO_JPEG_SuboptionsParsedOK); | |
13217 | 501 return 0; |
5648 | 502 } |
503 | |
13217 | 504 /* ------------------------------------------------------------------------- */ |
505 | |
5648 | 506 static uint32_t control(uint32_t request, void *data, ...) |
507 { | |
13217 | 508 switch (request) { |
509 case VOCTRL_QUERY_FORMAT: | |
510 return query_format(*((uint32_t*)data)); | |
511 } | |
512 return VO_NOTIMPL; | |
5648 | 513 } |
13158 | 514 |
13217 | 515 /* ------------------------------------------------------------------------- */ |
516 | |
13158 | 517 #undef BUFLENGTH |
518 | |
13217 | 519 /* ------------------------------------------------------------------------- */ |
520 |