Mercurial > libavcodec.hg
comparison avcodec.h @ 1114:e4762efc3617 libavcodec
* more generic avoption_parse
* reused help ptr for sub ptr
| author | kabi |
|---|---|
| date | Fri, 07 Mar 2003 13:48:02 +0000 |
| parents | bbcb4fda2b86 |
| children | 86a5d0ce86bf |
comparison
equal
deleted
inserted
replaced
| 1113:bbcb4fda2b86 | 1114:e4762efc3617 |
|---|---|
| 827 int error_concealment; | 827 int error_concealment; |
| 828 #define FF_EC_GUESS_MVS 1 | 828 #define FF_EC_GUESS_MVS 1 |
| 829 #define FF_EC_DEBLOCK 2 | 829 #define FF_EC_DEBLOCK 2 |
| 830 | 830 |
| 831 /** | 831 /** |
| 832 * dsp_mask could be used to disable unwanted | 832 * dsp_mask could be add used to disable unwanted CPU features |
| 833 * CPU features (i.e. MMX, SSE. ...) | 833 * CPU features (i.e. MMX, SSE. ...) |
| 834 */ | 834 * |
| 835 unsigned dsp_mask; | 835 * with FORCE flag you may instead enable given CPU features |
| 836 * (Dangerous: usable in case of misdetection, improper usage however will | |
| 837 * result into program crash) | |
| 838 */ | |
| 839 unsigned dsp_mask; | |
| 840 #define FF_MM_FORCE 0x80000000 /* force usage of selected flags (OR) */ | |
| 841 /* lower 16 bits - CPU features */ | |
| 842 #ifdef HAVE_MMX | |
| 843 #define FF_MM_MMX 0x0001 /* standard MMX */ | |
| 844 #define FF_MM_3DNOW 0x0004 /* AMD 3DNOW */ | |
| 845 #define FF_MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */ | |
| 846 #define FF_MM_SSE 0x0008 /* SSE functions */ | |
| 847 #define FF_MM_SSE2 0x0010 /* PIV SSE2 functions */ | |
| 848 #endif /* HAVE_MMX */ | |
| 836 | 849 |
| 837 /** | 850 /** |
| 838 * bits per sample/pixel from the demuxer (needed for huffyuv). | 851 * bits per sample/pixel from the demuxer (needed for huffyuv). |
| 839 * - encoding: set by lavc | 852 * - encoding: set by lavc |
| 840 * - decoding: set by user | 853 * - decoding: set by user |
| 1010 * - decoding: unused. | 1023 * - decoding: unused. |
| 1011 */ | 1024 */ |
| 1012 | 1025 |
| 1013 } AVCodecContext; | 1026 } AVCodecContext; |
| 1014 | 1027 |
| 1015 //void avcodec_getopt(AVCodecContext* avctx, const char* str, avc_config_t** config); | |
| 1016 | 1028 |
| 1017 /** | 1029 /** |
| 1018 * AVOption. | 1030 * AVOption. |
| 1019 */ | 1031 */ |
| 1020 typedef struct AVOption { | 1032 typedef struct AVOption { |
| 1021 /** options' name */ | 1033 /** options' name */ |
| 1022 const char *name; /* if name is NULL, it indicates a link to next */ | 1034 const char *name; /* if name is NULL, it indicates a link to next */ |
| 1023 /** short English text help */ | 1035 /** short English text help or const struct AVOption* subpointer */ |
| 1024 const char *help; | 1036 const char *help; // const struct AVOption* sub; |
| 1025 /** offset to context structure where the parsed value should be stored */ | 1037 /** offset to context structure where the parsed value should be stored */ |
| 1026 int offset; | 1038 int offset; |
| 1027 /** options' type */ | 1039 /** options' type */ |
| 1028 int type; | 1040 int type; |
| 1029 #define FF_OPT_TYPE_BOOL 1 ///< boolean - true,1,on (or simply presence) | 1041 #define FF_OPT_TYPE_BOOL 1 ///< boolean - true,1,on (or simply presence) |
| 1044 * default string value (with optional semicolon delimited extra option-list | 1056 * default string value (with optional semicolon delimited extra option-list |
| 1045 * i.e. option1;option2;option3 | 1057 * i.e. option1;option2;option3 |
| 1046 * defval might select other then first argument as default | 1058 * defval might select other then first argument as default |
| 1047 */ | 1059 */ |
| 1048 const char *defstr; | 1060 const char *defstr; |
| 1049 const struct AVOption *sub; /* used when name is NULL */ | |
| 1050 /* when it's NULL return to previous level (or finish reading) */ | |
| 1051 #define FF_OPT_MAX_DEPTH 10 | 1061 #define FF_OPT_MAX_DEPTH 10 |
| 1052 } AVOption; | 1062 } AVOption; |
| 1063 | |
| 1064 /** | |
| 1065 * Parse option(s) and sets fields in passed structure | |
| 1066 * @param strct structure where the parsed results will be written | |
| 1067 * @param list list with AVOptions | |
| 1068 * @param opts string with options for parsing | |
| 1069 */ | |
| 1070 int avoption_parse(void* strct, const AVOption* list, const char* opts); | |
| 1071 | |
| 1053 | 1072 |
| 1054 /** | 1073 /** |
| 1055 * AVCodec. | 1074 * AVCodec. |
| 1056 */ | 1075 */ |
| 1057 typedef struct AVCodec { | 1076 typedef struct AVCodec { |
