Revision bec89a84 libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
829 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 833
     * CPU features (i.e. MMX, SSE. ...)
834
     */
835
     unsigned dsp_mask;
834
     *
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 851
     * bits per sample/pixel from the demuxer (needed for huffyuv).
......
1012 1025

  
1013 1026
} AVCodecContext;
1014 1027

  
1015
//void avcodec_getopt(AVCodecContext* avctx, const char* str, avc_config_t** config);
1016 1028

  
1017 1029
/**
1018 1030
 * AVOption.
......
1020 1032
typedef struct AVOption {
1021 1033
    /** options' name */
1022 1034
    const char *name; /* if name is NULL, it indicates a link to next */
1023
    /** short English text help */
1024
    const char *help;
1035
    /** short English text help or const struct AVOption* subpointer */
1036
    const char *help; //	const struct AVOption* sub;
1025 1037
    /** offset to context structure where the parsed value should be stored */
1026 1038
    int offset;
1027 1039
    /** options' type */
......
1046 1058
     * defval might select other then first argument as default
1047 1059
     */
1048 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 1061
#define FF_OPT_MAX_DEPTH 10
1052 1062
} AVOption;
1053 1063

  
1054 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

  
1072

  
1073
/**
1055 1074
 * AVCodec.
1056 1075
 */
1057 1076
typedef struct AVCodec {

Also available in: Unified diff