comparison libmpdemux/demux_rawvideo.c @ 10594:57bdcdb061d7

Removed the historic cfgparser and switched full to the new config parser (altought some macros still remain for compatibility). As a side effect 90% of the warning messages are gone from the core. Things should be cleaner now and less confusing for newbies.
author alex
date Wed, 13 Aug 2003 16:29:32 +0000
parents 3e40b8f879c8
children 822b1fa6db25
comparison
equal deleted inserted replaced
10593:27711ab2889f 10594:57bdcdb061d7
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <unistd.h> 6 #include <unistd.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "../m_option.h" 9 #include "../m_option.h"
10 #include "../m_config.h"
11 10
12 #include "stream.h" 11 #include "stream.h"
13 #include "demuxer.h" 12 #include "demuxer.h"
14 #include "stheader.h" 13 #include "stheader.h"
15 14
21 static int width = 0; 20 static int width = 0;
22 static int height = 0; 21 static int height = 0;
23 static float fps = 25; 22 static float fps = 25;
24 static int imgsize=0; 23 static int imgsize=0;
25 24
26 config_t demux_rawvideo_opts[] = { 25 m_option_t demux_rawvideo_opts[] = {
27 { "on", &demuxer_type, CONF_TYPE_FLAG, 0,0, DEMUXER_TYPE_RAWVIDEO, NULL }, 26 { "on", &demuxer_type, CONF_TYPE_FLAG, 0,0, DEMUXER_TYPE_RAWVIDEO, NULL },
28 // size: 27 // size:
29 { "w", &width, CONF_TYPE_INT,CONF_RANGE,1,8192, NULL }, 28 { "w", &width, CONF_TYPE_INT,CONF_RANGE,1,8192, NULL },
30 { "h", &height, CONF_TYPE_INT,CONF_RANGE,1,8192, NULL }, 29 { "h", &height, CONF_TYPE_INT,CONF_RANGE,1,8192, NULL },
31 { "sqcif", &size_id, CONF_TYPE_FLAG,0,0,1, NULL }, 30 { "sqcif", &size_id, CONF_TYPE_FLAG,0,0,1, NULL },