Mercurial > mplayer.hg
annotate dec_video.c @ 1430:1728d249c783
missing unistd.h (requires for off_t under freebsd)
author | arpi |
---|---|
date | Wed, 01 Aug 2001 09:14:02 +0000 |
parents | 8986d06b2816 |
children | d1f9cc72a87f |
rev | line source |
---|---|
1294 | 1 |
2 #include <stdio.h> | |
3 #include <stdlib.h> | |
1430 | 4 #include <unistd.h> |
1294 | 5 |
6 #include "config.h" | |
7 | |
8 extern int verbose; // defined in mplayer.c | |
9 extern int divx_quality; | |
10 | |
11 extern double video_time_usage; | |
12 extern double vout_time_usage; | |
13 | |
1375
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
14 extern int frameratecode2framerate[16]; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
15 |
1327
b12e1817bcc2
some cleanup - fixed warnings, removed old stuff, moved audio resync to dec_audio
arpi
parents:
1309
diff
changeset
|
16 #include "linux/timer.h" |
b12e1817bcc2
some cleanup - fixed warnings, removed old stuff, moved audio resync to dec_audio
arpi
parents:
1309
diff
changeset
|
17 |
1294 | 18 #include "stream.h" |
19 #include "demuxer.h" | |
1375
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
20 #include "parse_es.h" |
1294 | 21 |
22 #include "wine/mmreg.h" | |
23 #include "wine/avifmt.h" | |
24 #include "wine/vfw.h" | |
25 | |
26 #include "codec-cfg.h" | |
27 #include "stheader.h" | |
28 | |
29 //#include <inttypes.h> | |
30 //#include "libvo/img_format.h" | |
31 | |
1422 | 32 #ifdef USE_LIBVO2 |
33 #include "libvo2/libvo2.h" | |
34 #else | |
1294 | 35 #include "libvo/video_out.h" |
1422 | 36 #endif |
1294 | 37 |
38 #include "libmpeg2/mpeg2.h" | |
39 #include "libmpeg2/mpeg2_internal.h" | |
40 | |
41 extern picture_t *picture; // exported from libmpeg2/decode.c | |
42 | |
1297 | 43 extern int init_video_codec(sh_video_t *sh_video,int ex); |
1294 | 44 |
45 #ifdef USE_DIRECTSHOW | |
46 #include "loader/DirectShow/DS_VideoDec.h" | |
47 #endif | |
48 | |
49 #ifdef USE_LIBAVCODEC | |
50 #include "libavcodec/avcodec.h" | |
51 AVCodec *lavc_codec=NULL; | |
52 AVCodecContext lavc_context; | |
53 AVPicture lavc_picture; | |
54 #endif | |
55 | |
1349 | 56 #ifndef NEW_DECORE |
1294 | 57 #include "opendivx/decore.h" |
1349 | 58 #else |
59 #include <decore.h> | |
60 #endif | |
1294 | 61 |
62 //**************************************************************************// | |
63 // The OpenDivX stuff: | |
64 //**************************************************************************// | |
65 | |
66 #ifndef NEW_DECORE | |
67 | |
68 static unsigned char *opendivx_src[3]; | |
69 static int opendivx_stride[3]; | |
70 | |
71 // callback, the opendivx decoder calls this for each frame: | |
72 void convert_linux(unsigned char *puc_y, int stride_y, | |
73 unsigned char *puc_u, unsigned char *puc_v, int stride_uv, | |
74 unsigned char *bmp, int width_y, int height_y){ | |
75 | |
76 // printf("convert_yuv called %dx%d stride: %d,%d\n",width_y,height_y,stride_y,stride_uv); | |
77 | |
78 opendivx_src[0]=puc_y; | |
79 opendivx_src[1]=puc_u; | |
80 opendivx_src[2]=puc_v; | |
81 | |
82 opendivx_stride[0]=stride_y; | |
83 opendivx_stride[1]=stride_uv; | |
84 opendivx_stride[2]=stride_uv; | |
85 } | |
86 #endif | |
87 | |
1429 | 88 int get_video_quality_max(sh_video_t *sh_video){ |
89 switch(sh_video->codec->driver){ | |
90 #ifdef USE_DIRECTSHOW | |
91 case VFM_DSHOW: | |
92 return 4; | |
93 #endif | |
94 #ifdef MPEG12_POSTPROC | |
95 case VFM_MPEG: | |
96 #endif | |
97 case VFM_DIVX4: | |
98 case VFM_ODIVX: | |
99 return 6; | |
100 } | |
101 return 0; | |
102 } | |
103 | |
104 void set_video_quality(sh_video_t *sh_video,int quality){ | |
105 switch(sh_video->codec->driver){ | |
106 #ifdef ARCH_X86 | |
107 #ifdef USE_DIRECTSHOW | |
108 case VFM_DSHOW: { | |
109 if(quality<0 || quality>4) quality=4; | |
110 DS_SetValue_DivX("Quality",quality); | |
111 } | |
112 break; | |
113 #endif | |
114 #endif | |
115 #ifdef MPEG12_POSTPROC | |
116 case VFM_MPEG: { | |
117 if(quality<0 || quality>6) quality=6; | |
118 picture->pp_options=(1<<quality)-1; | |
119 } | |
120 break; | |
121 #endif | |
122 case VFM_DIVX4: | |
123 case VFM_ODIVX: { | |
124 DEC_SET dec_set; | |
125 if(quality<0 || quality>6) quality=6; | |
126 dec_set.postproc_level=(1<<quality)-1; | |
127 decore(0x123,DEC_OPT_SETPP,&dec_set,NULL); | |
128 } | |
129 break; | |
130 } | |
131 } | |
132 | |
133 int set_video_colors(sh_video_t *sh_video,char *item,int value){ | |
134 if(!strcmp(sh_video->codec->name,"divxds")){ | |
135 DS_SetValue_DivX(item,value); | |
136 return 1; | |
137 } | |
138 return 0; | |
139 } | |
1294 | 140 |
141 int init_video(sh_video_t *sh_video){ | |
142 unsigned int out_fmt=sh_video->codec->outfmt[sh_video->outfmtidx]; | |
143 | |
144 switch(sh_video->codec->driver){ | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1297
diff
changeset
|
145 #ifdef ARCH_X86 |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
146 case VFM_VFW: { |
1297 | 147 if(!init_video_codec(sh_video,0)) { |
1294 | 148 // GUI_MSG( mplUnknowError ) |
149 // exit(1); | |
150 return 0; | |
151 } | |
152 if(verbose) printf("INFO: Win32 video codec init OK!\n"); | |
153 break; | |
154 } | |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
155 case VFM_VFWEX: { |
1297 | 156 if(!init_video_codec(sh_video,1)) { |
157 // GUI_MSG( mplUnknowError ) | |
158 // exit(1); | |
159 return 0; | |
160 } | |
161 if(verbose) printf("INFO: Win32Ex video codec init OK!\n"); | |
162 break; | |
163 } | |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
164 case VFM_DSHOW: { // Win32/DirectShow |
1294 | 165 #ifndef USE_DIRECTSHOW |
166 fprintf(stderr,"MPlayer was compiled WITHOUT directshow support!\n"); | |
167 return 0; | |
168 // GUI_MSG( mplCompileWithoutDSSupport ) | |
169 // exit(1); | |
170 #else | |
171 sh_video->our_out_buffer=NULL; | |
172 if(DS_VideoDecoder_Open(sh_video->codec->dll,&sh_video->codec->guid, sh_video->bih, 0, &sh_video->our_out_buffer)){ | |
173 // if(DS_VideoDecoder_Open(sh_video->codec->dll,&sh_video->codec->guid, sh_video->bih, 0, NULL)){ | |
174 printf("ERROR: Couldn't open required DirectShow codec: %s\n",sh_video->codec->dll); | |
175 printf("Maybe you forget to upgrade your win32 codecs?? It's time to download the new\n"); | |
176 printf("package from: ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip !\n"); | |
177 printf("Or you should disable DShow support: make distclean;make -f Makefile.No-DS\n"); | |
178 return 0; | |
179 // #ifdef HAVE_GUI | |
180 // if ( !nogui ) | |
181 // { | |
182 // strcpy( mplShMem->items.videodata.codecdll,sh_video->codec->dll ); | |
183 // mplSendMessage( mplDSCodecNotFound ); | |
184 // usec_sleep( 10000 ); | |
185 // } | |
186 // #endif | |
187 // exit(1); | |
188 } | |
189 | |
190 switch(out_fmt){ | |
191 case IMGFMT_YUY2: | |
192 case IMGFMT_UYVY: | |
193 DS_VideoDecoder_SetDestFmt(16,out_fmt);break; // packed YUV | |
194 case IMGFMT_YV12: | |
195 case IMGFMT_I420: | |
196 case IMGFMT_IYUV: | |
197 DS_VideoDecoder_SetDestFmt(12,out_fmt);break; // planar YUV | |
198 default: | |
199 DS_VideoDecoder_SetDestFmt(out_fmt&255,0); // RGB/BGR | |
200 } | |
201 | |
202 DS_VideoDecoder_Start(); | |
203 | |
204 DS_SetAttr_DivX("Quality",divx_quality); | |
205 // printf("DivX setting result = %d\n", DS_SetAttr_DivX("Quality",divx_quality) ); | |
206 // printf("DivX setting result = %d\n", DS_SetValue_DivX("Brightness",60) ); | |
207 | |
208 if(verbose) printf("INFO: Win32/DShow video codec init OK!\n"); | |
209 break; | |
210 #endif | |
211 } | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1297
diff
changeset
|
212 #else /* !ARCH_X86 */ |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
213 case VFM_VFW: |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
214 case VFM_DSHOW: |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
215 case VFM_VFWEX: |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1297
diff
changeset
|
216 fprintf(stderr,"MPlayer does not support win32 codecs on non-x86 platforms!\n"); |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1297
diff
changeset
|
217 return 0; |
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1297
diff
changeset
|
218 #endif /* !ARCH_X86 */ |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
219 case VFM_ODIVX: { // OpenDivX |
1294 | 220 if(verbose) printf("OpenDivX video codec\n"); |
221 { DEC_PARAM dec_param; | |
222 DEC_SET dec_set; | |
1349 | 223 memset(&dec_param,0,sizeof(dec_param)); |
1294 | 224 #ifdef NEW_DECORE |
225 dec_param.output_format=DEC_USER; | |
226 #else | |
227 dec_param.color_depth = 32; | |
228 #endif | |
229 dec_param.x_dim = sh_video->bih->biWidth; | |
230 dec_param.y_dim = sh_video->bih->biHeight; | |
231 decore(0x123, DEC_OPT_INIT, &dec_param, NULL); | |
232 dec_set.postproc_level = divx_quality; | |
233 decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); | |
1349 | 234 } |
235 if(verbose) printf("INFO: OpenDivX video codec init OK!\n"); | |
236 break; | |
237 } | |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
238 case VFM_DIVX4: { // DivX4Linux |
1352
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
239 #ifndef NEW_DECORE |
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
240 fprintf(stderr,"MPlayer was compiled WITHOUT DivX4Linux (libdivxdecore.so) support!\n"); |
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
241 return 0; //exit(1); |
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
242 #else |
1349 | 243 if(verbose) printf("DivX4Linux video codec\n"); |
244 { DEC_PARAM dec_param; | |
245 DEC_SET dec_set; | |
246 int bits=16; | |
247 memset(&dec_param,0,sizeof(dec_param)); | |
248 switch(out_fmt){ | |
249 case IMGFMT_YV12: dec_param.output_format=DEC_YV12;bits=12;break; | |
250 case IMGFMT_YUY2: dec_param.output_format=DEC_YUY2;break; | |
251 case IMGFMT_UYVY: dec_param.output_format=DEC_UYVY;break; | |
252 case IMGFMT_I420: dec_param.output_format=DEC_420;bits=12;break; | |
253 case IMGFMT_BGR15: dec_param.output_format=DEC_RGB555_INV;break; | |
254 case IMGFMT_BGR16: dec_param.output_format=DEC_RGB565_INV;break; | |
255 case IMGFMT_BGR24: dec_param.output_format=DEC_RGB24_INV;bits=24;break; | |
256 case IMGFMT_BGR32: dec_param.output_format=DEC_RGB32_INV;bits=32;break; | |
257 default: | |
258 fprintf(stderr,"Unsupported out_fmt: 0x%X\n",out_fmt); | |
259 return 0; | |
260 } | |
261 dec_param.x_dim = sh_video->bih->biWidth; | |
262 dec_param.y_dim = sh_video->bih->biHeight; | |
263 decore(0x123, DEC_OPT_INIT, &dec_param, NULL); | |
264 dec_set.postproc_level = divx_quality; | |
265 decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); | |
1352
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
266 sh_video->our_out_buffer = shmem_alloc(((bits*dec_param.x_dim+7)/8)*dec_param.y_dim); |
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
267 // sh_video->our_out_buffer = shmem_alloc(dec_param.x_dim*dec_param.y_dim*5); |
1294 | 268 } |
269 if(verbose) printf("INFO: OpenDivX video codec init OK!\n"); | |
270 break; | |
1352
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
271 #endif |
1294 | 272 } |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
273 case VFM_FFMPEG: { // FFmpeg's libavcodec |
1294 | 274 #ifndef USE_LIBAVCODEC |
275 fprintf(stderr,"MPlayer was compiled WITHOUT libavcodec support!\n"); | |
276 return 0; //exit(1); | |
277 #else | |
278 if(verbose) printf("FFmpeg's libavcodec video codec\n"); | |
279 avcodec_init(); | |
280 avcodec_register_all(); | |
281 lavc_codec = (AVCodec *)avcodec_find_decoder_by_name(sh_video->codec->dll); | |
282 if(!lavc_codec){ | |
283 fprintf(stderr,"Can't find codec '%s' in libavcodec...\n",sh_video->codec->dll); | |
284 return 0; //exit(1); | |
285 } | |
286 memset(&lavc_context, 0, sizeof(lavc_context)); | |
287 lavc_context.width=sh_video->disp_w; | |
288 lavc_context.height=sh_video->disp_h; | |
289 printf("libavcodec.size: %d x %d\n",lavc_context.width,lavc_context.height); | |
290 /* open it */ | |
291 if (avcodec_open(&lavc_context, lavc_codec) < 0) { | |
292 fprintf(stderr, "could not open codec\n"); | |
293 return 0; //exit(1); | |
294 } | |
295 | |
296 if(verbose) printf("INFO: libavcodec init OK!\n"); | |
297 break; | |
298 #endif | |
299 } | |
300 | |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
301 case VFM_MPEG: { |
1294 | 302 // init libmpeg2: |
303 #ifdef MPEG12_POSTPROC | |
304 picture->pp_options=divx_quality; | |
305 #else | |
306 if(divx_quality){ | |
307 printf("WARNING! You requested image postprocessing for an MPEG 1/2 video,\n"); | |
308 printf(" but compiled MPlayer without MPEG 1/2 postprocessing support!\n"); | |
309 printf(" #define MPEG12_POSTPROC in config.h, and recompile libmpeg2!\n"); | |
310 } | |
311 #endif | |
312 mpeg2_allocate_image_buffers (picture); | |
313 break; | |
314 } | |
315 } | |
316 | |
317 return 1; | |
318 } | |
319 | |
1422 | 320 #ifdef USE_LIBVO2 |
321 int decode_video(vo2_handle_t *video_out,sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame){ | |
322 #else | |
1294 | 323 int decode_video(vo_functions_t *video_out,sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame){ |
1422 | 324 #endif |
1294 | 325 unsigned int out_fmt=sh_video->codec->outfmt[sh_video->outfmtidx]; |
1360 | 326 int planar=(out_fmt==IMGFMT_YV12||out_fmt==IMGFMT_IYUV||out_fmt==IMGFMT_I420); |
1294 | 327 int blit_frame=0; |
328 | |
1360 | 329 uint8_t* planes_[3]; |
330 uint8_t** planes=planes_; | |
331 int stride_[3]; | |
332 int* stride=stride_; | |
333 | |
334 unsigned int t=GetTimer(); | |
335 unsigned int t2; | |
336 | |
1294 | 337 //-------------------- Decode a frame: ----------------------- |
338 switch(sh_video->codec->driver){ | |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
339 case VFM_ODIVX: { |
1294 | 340 // OpenDivX |
341 DEC_FRAME dec_frame; | |
342 #ifdef NEW_DECORE | |
343 DEC_PICTURE dec_pic; | |
344 #endif | |
345 // let's decode | |
346 dec_frame.length = in_size; | |
347 dec_frame.bitstream = start; | |
1349 | 348 dec_frame.render_flag = drop_frame?0:1; |
349 | |
1294 | 350 #ifdef NEW_DECORE |
351 dec_frame.bmp=&dec_pic; | |
352 dec_pic.y=dec_pic.u=dec_pic.v=NULL; | |
1349 | 353 decore(0x123, (sh_video->format==mmioFOURCC('D','I','V','3'))?DEC_OPT_FRAME_311:DEC_OPT_FRAME, &dec_frame, NULL); |
354 #else | |
1360 | 355 opendivx_src[0]=NULL; |
1349 | 356 decore(0x123, 0, &dec_frame, NULL); |
1294 | 357 #endif |
1360 | 358 |
359 if(!drop_frame) | |
1294 | 360 |
1349 | 361 // let's display |
1294 | 362 #ifdef NEW_DECORE |
363 if(dec_pic.y){ | |
1360 | 364 planes[0]=dec_pic.y; |
365 planes[1]=dec_pic.u; | |
366 planes[2]=dec_pic.v; | |
1294 | 367 stride[0]=dec_pic.stride_y; |
368 stride[1]=stride[2]=dec_pic.stride_uv; | |
1360 | 369 blit_frame=2; |
1294 | 370 } |
371 #else | |
372 if(opendivx_src[0]){ | |
1360 | 373 planes=opendivx_src; stride=opendivx_stride; |
374 blit_frame=2; | |
1294 | 375 } |
376 #endif | |
377 | |
378 break; | |
379 } | |
1352
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
380 #ifdef NEW_DECORE |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
381 case VFM_DIVX4: { |
1349 | 382 // DivX4Linux |
383 DEC_FRAME dec_frame; | |
384 // let's decode | |
385 dec_frame.length = in_size; | |
386 dec_frame.bitstream = start; | |
387 dec_frame.render_flag = drop_frame?0:1; | |
388 dec_frame.bmp=sh_video->our_out_buffer; | |
389 dec_frame.stride=sh_video->disp_w; | |
390 // printf("Decoding DivX4 frame\n"); | |
391 decore(0x123, (sh_video->format==mmioFOURCC('D','I','V','3'))?DEC_OPT_FRAME_311:DEC_OPT_FRAME, &dec_frame, NULL); | |
1360 | 392 if(!drop_frame) blit_frame=3; |
1349 | 393 break; |
394 } | |
1352
5ac130627602
fixed shmem size, and now compiles without divx4linux too :)
arpi
parents:
1349
diff
changeset
|
395 #endif |
1294 | 396 #ifdef USE_DIRECTSHOW |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
397 case VFM_DSHOW: { // W32/DirectShow |
1294 | 398 if(drop_frame<2) DS_VideoDecoder_DecodeFrame(start, in_size, 0, !drop_frame); |
1362
11673118f37f
Fix segfault in DShow video decoder. Using directshow, the
jkeil
parents:
1360
diff
changeset
|
399 if(!drop_frame && sh_video->our_out_buffer) blit_frame=3; |
1294 | 400 break; |
401 } | |
402 #endif | |
403 #ifdef USE_LIBAVCODEC | |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
404 case VFM_FFMPEG: { // libavcodec |
1294 | 405 int got_picture=0; |
406 if(drop_frame<2 && in_size>0){ | |
407 int ret = avcodec_decode_video(&lavc_context, &lavc_picture, | |
408 &got_picture, start, in_size); | |
409 if(ret<0) fprintf(stderr, "Error while decoding frame!\n"); | |
1360 | 410 if(!drop_frame && got_picture){ |
411 planes=lavc_picture.data; | |
412 stride=lavc_picture.linesize; | |
413 blit_frame=2; | |
414 } | |
1294 | 415 } |
416 break; | |
417 } | |
418 #endif | |
1360 | 419 #ifdef ARCH_X86 |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
420 case VFM_VFWEX: |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
421 case VFM_VFW: |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1297
diff
changeset
|
422 { |
1294 | 423 HRESULT ret; |
424 | |
1360 | 425 if(!in_size) break; |
426 | |
1294 | 427 sh_video->bih->biSizeImage = in_size; |
428 | |
429 // sh_video->bih->biWidth = 1280; | |
430 // sh_video->o_bih.biWidth = 1280; | |
431 // ret = ICDecompress(avi_header.hic, ICDECOMPRESS_NOTKEYFRAME|(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL), | |
1297 | 432 |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
433 if(sh_video->codec->driver==VFM_VFWEX) |
1297 | 434 ret = ICDecompressEx(sh_video->hic, |
435 ( (sh_video->ds->flags&1) ? 0 : ICDECOMPRESS_NOTKEYFRAME ) | | |
436 ( (drop_frame==2 && !(sh_video->ds->flags&1))?(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL):0 ) , | |
437 sh_video->bih, start, | |
438 &sh_video->o_bih, | |
439 drop_frame ? 0 : sh_video->our_out_buffer); | |
440 else | |
1294 | 441 ret = ICDecompress(sh_video->hic, |
442 ( (sh_video->ds->flags&1) ? 0 : ICDECOMPRESS_NOTKEYFRAME ) | | |
443 ( (drop_frame==2 && !(sh_video->ds->flags&1))?(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL):0 ) , | |
444 sh_video->bih, start, | |
445 &sh_video->o_bih, | |
446 drop_frame ? 0 : sh_video->our_out_buffer); | |
447 | |
448 if(ret){ printf("Error decompressing frame, err=%d\n",(int)ret);break; } | |
1360 | 449 |
450 if(!drop_frame) blit_frame=3; | |
1294 | 451 break; |
452 } | |
1309
598e3047ce13
Add some preliminary support for non-x86 architectures to mplayer
jkeil
parents:
1297
diff
changeset
|
453 #endif |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
1401
diff
changeset
|
454 case VFM_MPEG: |
1365 | 455 mpeg2_decode_data(video_out, start, start+in_size,drop_frame); |
456 if(!drop_frame) blit_frame=1; | |
1294 | 457 break; |
458 } // switch | |
459 //------------------------ frame decoded. -------------------- | |
460 | |
1367 | 461 #ifdef HAVE_MMX |
462 // some codecs is broken, and doesn't restore MMX state :( | |
463 // it happens usually with broken/damaged files. | |
464 __asm __volatile ("emms;":::"memory"); | |
465 #endif | |
466 | |
1360 | 467 t2=GetTimer();t=t2-t;video_time_usage+=t*0.000001f; |
468 | |
469 switch(blit_frame){ | |
470 case 3: | |
471 if(planar){ | |
472 stride[0]=sh_video->disp_w; | |
473 stride[1]=stride[2]=sh_video->disp_w/2; | |
474 planes[0]=sh_video->our_out_buffer; | |
475 planes[2]=planes[0]+sh_video->disp_w*sh_video->disp_h; | |
476 planes[1]=planes[2]+sh_video->disp_w*sh_video->disp_h/4; | |
477 } else | |
478 planes[0]=sh_video->our_out_buffer; | |
479 case 2: | |
1422 | 480 #ifdef USE_LIBVO2 |
481 if(planar) | |
482 vo2_draw_slice(video_out,planes,stride,sh_video->disp_w,sh_video->disp_h,0,0); | |
483 else | |
484 vo2_draw_frame(video_out,planes[0],sh_video->disp_w,sh_video->disp_w,sh_video->disp_h); | |
485 #else | |
1360 | 486 if(planar) |
487 video_out->draw_slice(planes,stride,sh_video->disp_w,sh_video->disp_h,0,0); | |
488 else | |
489 video_out->draw_frame(planes); | |
1422 | 490 #endif |
1360 | 491 t2=GetTimer()-t2;vout_time_usage+=t2*0.000001f; |
492 blit_frame=1; | |
493 break; | |
494 } | |
495 | |
1294 | 496 return blit_frame; |
497 } | |
1375
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
498 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
499 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
500 int video_read_properties(sh_video_t *sh_video){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
501 demux_stream_t *d_video=sh_video->ds; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
502 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
503 // Determine image properties: |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
504 switch(d_video->demuxer->file_format){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
505 case DEMUXER_TYPE_AVI: |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
506 case DEMUXER_TYPE_ASF: { |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
507 // display info: |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
508 sh_video->format=sh_video->bih->biCompression; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
509 sh_video->disp_w=sh_video->bih->biWidth; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
510 sh_video->disp_h=abs(sh_video->bih->biHeight); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
511 break; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
512 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
513 case DEMUXER_TYPE_MPEG_ES: |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
514 case DEMUXER_TYPE_MPEG_PS: { |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
515 // Find sequence_header first: |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
516 if(verbose) printf("Searching for sequence header... ");fflush(stdout); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
517 while(1){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
518 int i=sync_video_packet(d_video); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
519 if(i==0x1B3) break; // found it! |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
520 if(!i || !skip_video_packet(d_video)){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
521 if(verbose) printf("NONE :(\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
522 fprintf(stderr,"MPEG: FATAL: EOF while searching for sequence header\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
523 return 0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
524 // GUI_MSG( mplMPEGErrorSeqHeaderSearch ) |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
525 // exit(1); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
526 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
527 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
528 if(verbose) printf("OK!\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
529 // sh_video=d_video->sh;sh_video->ds=d_video; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
530 sh_video->format=0x10000001; // mpeg video |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
531 mpeg2_init(); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
532 // ========= Read & process sequence header & extension ============ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
533 videobuffer=shmem_alloc(VIDEOBUFFER_SIZE); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
534 if(!videobuffer){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
535 fprintf(stderr,"Cannot allocate shared memory\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
536 return 0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
537 // GUI_MSG( mplErrorShMemAlloc ) |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
538 // exit(0); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
539 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
540 videobuf_len=0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
541 if(!read_video_packet(d_video)){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
542 fprintf(stderr,"FATAL: Cannot read sequence header!\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
543 return 0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
544 // GUI_MSG( mplMPEGErrorCannotReadSeqHeader ) |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
545 // exit(1); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
546 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
547 if(header_process_sequence_header (picture, &videobuffer[4])) { |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
548 printf ("bad sequence header!\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
549 return 0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
550 // GUI_MSG( mplMPEGErrorBadSeqHeader ) |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
551 // exit(1); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
552 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
553 if(sync_video_packet(d_video)==0x1B5){ // next packet is seq. ext. |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
554 videobuf_len=0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
555 if(!read_video_packet(d_video)){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
556 fprintf(stderr,"FATAL: Cannot read sequence header extension!\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
557 return 0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
558 // GUI_MSG( mplMPEGErrorCannotReadSeqHeaderExt ) |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
559 // exit(1); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
560 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
561 if(header_process_extension (picture, &videobuffer[4])) { |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
562 printf ("bad sequence header extension!\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
563 return 0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
564 // GUI_MSG( mplMPEGErrorBadSeqHeaderExt ) |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
565 // exit(1); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
566 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
567 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
568 // display info: |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
569 sh_video->fps=frameratecode2framerate[picture->frame_rate_code]*0.0001f; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
570 if(!sh_video->fps){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
571 // if(!force_fps){ |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
572 // fprintf(stderr,"FPS not specified (or invalid) in the header! Use the -fps option!\n"); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
573 // return 0; //exit(1); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
574 // } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
575 sh_video->frametime=0; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
576 } else { |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
577 sh_video->frametime=10000.0f/(float)frameratecode2framerate[picture->frame_rate_code]; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
578 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
579 sh_video->disp_w=picture->display_picture_width; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
580 sh_video->disp_h=picture->display_picture_height; |
1401 | 581 // bitrate: |
582 if(picture->bitrate!=0x3FFFF) // unspecified/VBR ? | |
583 sh_video->i_bps=1000*picture->bitrate/16; | |
1375
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
584 // info: |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
585 if(verbose) printf("mpeg bitrate: %d (%X)\n",picture->bitrate,picture->bitrate); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
586 printf("VIDEO: %s %dx%d (aspect %d) %4.2f fps %5.1f kbps (%4.1f kbyte/s)\n", |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
587 picture->mpeg1?"MPEG1":"MPEG2", |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
588 sh_video->disp_w,sh_video->disp_h, |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
589 picture->aspect_ratio_information, |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
590 sh_video->fps, |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
591 picture->bitrate*0.5f, |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
592 picture->bitrate/16.0f ); |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
593 break; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
594 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
595 } // switch(file_format) |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
596 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
597 return 1; |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
598 } |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
599 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
600 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
601 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
602 |
dbcb5b5e1fae
file-format detection stuff moved out from mplayer.c to demuxer.c and dec_video.c
arpi
parents:
1367
diff
changeset
|
603 |