opt.h 1.44 KB
Newer Older
1 2 3 4
/*
 * AVOptions
 * copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>
 *
5
 * This file is part of Libav.
6
 *
7
 * Libav 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
 * Libav 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 Libav; 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 FF_API_SET_STRING_OLD
35 36 37
/**
 * @see av_set_string2()
 */
38 39
attribute_deprecated const AVOption *av_set_string(void *obj, const char *name, const char *val);

Stefano Sabatini's avatar
Stefano Sabatini committed
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
Stefano Sabatini's avatar
Stefano Sabatini committed
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
#endif /* AVCODEC_OPT_H */