~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to extern/ffmpeg/libavcodec/opt.h

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef AVOPT_H
 
2
#define AVOPT_H
 
3
 
 
4
/**
 
5
 * @file opt.h
 
6
 * AVOptions
 
7
 */
 
8
 
 
9
enum AVOptionType{
 
10
    FF_OPT_TYPE_FLAGS,
 
11
    FF_OPT_TYPE_INT,
 
12
    FF_OPT_TYPE_INT64,
 
13
    FF_OPT_TYPE_DOUBLE,
 
14
    FF_OPT_TYPE_FLOAT,
 
15
    FF_OPT_TYPE_STRING,
 
16
    FF_OPT_TYPE_RATIONAL,
 
17
    FF_OPT_TYPE_CONST=128,
 
18
};
 
19
 
 
20
/**
 
21
 * AVOption.
 
22
 */
 
23
typedef struct AVOption {
 
24
    const char *name;
 
25
 
 
26
    /**
 
27
     * short English text help.
 
28
     * @fixme what about other languages
 
29
     */
 
30
    const char *help;
 
31
    int offset;             ///< offset to context structure where the parsed value should be stored
 
32
    enum AVOptionType type;
 
33
 
 
34
    double default_val;
 
35
    double min;
 
36
    double max;
 
37
 
 
38
    int flags;
 
39
#define AV_OPT_FLAG_ENCODING_PARAM  1   ///< a generic parameter which can be set by the user for muxing or encoding
 
40
#define AV_OPT_FLAG_DECODING_PARAM  2   ///< a generic parameter which can be set by the user for demuxing or decoding
 
41
#define AV_OPT_FLAG_METADATA        4   ///< some data extracted or inserted into the file like title, comment, ...
 
42
#define AV_OPT_FLAG_AUDIO_PARAM     8
 
43
#define AV_OPT_FLAG_VIDEO_PARAM     16
 
44
#define AV_OPT_FLAG_SUBTITLE_PARAM  32
 
45
//FIXME think about enc-audio, ... style flags
 
46
    const char *unit;
 
47
} AVOption;
 
48
 
 
49
 
 
50
AVOption *av_set_string(void *obj, const char *name, const char *val);
 
51
AVOption *av_set_double(void *obj, const char *name, double n);
 
52
AVOption *av_set_q(void *obj, const char *name, AVRational n);
 
53
AVOption *av_set_int(void *obj, const char *name, int64_t n);
 
54
double av_get_double(void *obj, const char *name, AVOption **o_out);
 
55
AVRational av_get_q(void *obj, const char *name, AVOption **o_out);
 
56
int64_t av_get_int(void *obj, const char *name, AVOption **o_out);
 
57
const char *av_get_string(void *obj, const char *name, AVOption **o_out, char *buf, int buf_len);
 
58
AVOption *av_next_option(void *obj, AVOption *last);
 
59
int av_opt_show(void *obj, void *av_log_obj);
 
60
 
 
61
#endif