Mercurial > mplayer.hg
comparison libvo/vo_jpeg.c @ 8148:5b39e79af5fe
removed get_info, using the same sheme as in libmpcodecs instead
author | alex |
---|---|
date | Mon, 11 Nov 2002 15:22:10 +0000 |
parents | e60109dfc85c |
children | 1ac2523775ad |
comparison
equal
deleted
inserted
replaced
8147:538f88a49b50 | 8148:5b39e79af5fe |
---|---|
20 #include "sub.h" | 20 #include "sub.h" |
21 | 21 |
22 #include "../postproc/swscale.h" | 22 #include "../postproc/swscale.h" |
23 #include "../postproc/rgb2rgb.h" | 23 #include "../postproc/rgb2rgb.h" |
24 | 24 |
25 LIBVO_EXTERN (jpeg) | 25 static vo_info_t info= |
26 | |
27 static vo_info_t vo_info= | |
28 { | 26 { |
29 "JPEG file", | 27 "JPEG file", |
30 "jpeg", | 28 "jpeg", |
31 "Zoltan Ponekker (pontscho@makacs.poliod.hu)", | 29 "Zoltan Ponekker (pontscho@makacs.poliod.hu)", |
32 "" | 30 "" |
33 }; | 31 }; |
32 | |
33 LIBVO_EXTERN (jpeg) | |
34 | 34 |
35 #define RGB 0 | 35 #define RGB 0 |
36 #define BGR 1 | 36 #define BGR 1 |
37 | 37 |
38 extern int verbose; | 38 extern int verbose; |
102 } | 102 } |
103 | 103 |
104 return 0; | 104 return 0; |
105 } | 105 } |
106 | 106 |
107 static const vo_info_t* | |
108 get_info(void) | |
109 { | |
110 return &vo_info; | |
111 } | |
112 | |
113 static uint32_t jpeg_write( uint8_t * name,uint8_t * buffer ) | 107 static uint32_t jpeg_write( uint8_t * name,uint8_t * buffer ) |
114 { | 108 { |
115 FILE * o; | 109 FILE * o; |
116 struct jpeg_compress_struct cinfo; | 110 struct jpeg_compress_struct cinfo; |
117 struct jpeg_error_mgr jerr; | 111 struct jpeg_error_mgr jerr; |