[Mplayer-cvslog] CVS: main codec-cfg.c,1.6,1.7 codec-cfg.h,1.4,1.5
Szabolcs Berecz
szabii at users.sourceforge.net
Mon Apr 9 01:42:27 CEST 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv2763
Modified Files:
codec-cfg.c codec-cfg.h
Log Message:
status added
Index: codec-cfg.c
===================================================================
RCS file: /cvsroot/mplayer/main/codec-cfg.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** codec-cfg.c 2001/04/07 21:27:57 1.6
--- codec-cfg.c 2001/04/08 23:42:25 1.7
***************
*** 446,449 ****
--- 446,464 ----
goto parse_error_out;
//printf(" %s\n", token);
+ } else if (!strcmp(token, "status")) {
+ if (!(state & GOT_NAME))
+ goto parse_error_out;
+ if (get_token() < 0)
+ goto parse_error_out;
+ if (!strcasecmp(token, "rulz"))
+ codec->status = CODECS_STATUS_WORKING;
+ else if (!strcasecmp(token, "suxx"))
+ codec->status = CODECS_STATUS_NOT_WORKING;
+ else if (!strcasecmp(token, "checkthiz"))
+ codec->status = CODECS_STATUS_UNTESTED;
+ else if (!strcasecmp(token, "notsogood"))
+ codec->status = CODECS_STATUS_PROBLEMS;
+ else
+ goto parse_error_out;
} else
goto parse_error_out;
Index: codec-cfg.h
===================================================================
RCS file: /cvsroot/mplayer/main/codec-cfg.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** codec-cfg.h 2001/04/07 21:27:57 1.4
--- codec-cfg.h 2001/04/08 23:42:25 1.5
***************
*** 25,29 ****
--- 25,34 ----
#define CODECS_FLAG_YUVHACK (1<<2)
+ #define CODECS_STATUS_NOT_WORKING 0
+ #define CODECS_STATUS_UNTESTED -1
+ #define CODECS_STATUS_PROBLEMS 1
+ #define CODECS_STATUS_WORKING 2
+
//#warning nem kellene ket typedef GUID-nak...
typedef struct {
***************
*** 34,49 ****
} GUID;
typedef struct {
char *name;
char *info;
char *comment;
- unsigned int fourcc[CODECS_MAX_FOURCC];
- unsigned int fourccmap[CODECS_MAX_FOURCC];
- short driver;
- short flags;
char *dll;
GUID guid;
! unsigned int outfmt[CODECS_MAX_OUTFMT];
! unsigned char outflags[CODECS_MAX_OUTFMT];
} codecs_t;
--- 39,56 ----
} GUID;
+ /* I just rearranged, to use less memory... */
typedef struct {
+ unsigned int fourcc[CODECS_MAX_FOURCC];
+ unsigned int fourccmap[CODECS_MAX_FOURCC];
+ unsigned int outfmt[CODECS_MAX_OUTFMT];
+ unsigned char outflags[CODECS_MAX_OUTFMT];
char *name;
char *info;
char *comment;
char *dll;
GUID guid;
! short driver;
! short flags;
! short status;
} codecs_t;
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list