opt.h 1.6 KB
Newer Older
1 2 3 4
/*
 * AVOptions
 * copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>
 *
5 6 7
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
8 9
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * FFmpeg is distributed in the hope that it will be useful,
13 14 15 16 17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with FFmpeg; if not, write to the Free Software
19 20 21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

22 23
#ifndef AVCODEC_OPT_H
#define AVCODEC_OPT_H
24 25

/**
26
 * @file
27 28 29
 * AVOptions
 */

30
#include "libavutil/rational.h"
31
#include "avcodec.h"
32
#include "libavutil/opt.h"
33

34
#if LIBAVCODEC_VERSION_MAJOR < 53
35 36 37
/**
 * @see av_set_string2()
 */
38 39
attribute_deprecated const AVOption *av_set_string(void *obj, const char *name, const char *val);

S
Stefano Sabatini 已提交
40 41
/**
 * @return a pointer to the AVOption corresponding to the field set or
42
 * NULL if no matching AVOption exists, or if the value val is not
S
Stefano Sabatini 已提交
43 44 45 46
 * valid
 * @see av_set_string3()
 */
attribute_deprecated const AVOption *av_set_string2(void *obj, const char *name, const char *val, int alloc);
47
#endif
48 49 50 51 52 53 54
#if FF_API_OPT_SHOW
/**
 * @deprecated Use av_opt_show2() instead.
 */
attribute_deprecated int av_opt_show(void *obj, void *av_log_obj);
#endif

55
#endif /* AVCODEC_OPT_H */