annotate utils.c @ 16:1a1faa090ff1 libavcore

Implement inline function av_fill_image_max_pixstep() and use it for factorizing code.
author stefano
date Wed, 18 Aug 2010 21:02:38 +0000
parents a644213e4818
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
1 /*
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
2 * This file is part of FFmpeg.
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
3 *
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
4 * FFmpeg is free software; you can redistribute it and/or
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
5 * modify it under the terms of the GNU Lesser General Public
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
7 * version 2.1 of the License, or (at your option) any later version.
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
8 *
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
9 * FFmpeg is distributed in the hope that it will be useful,
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
12 * Lesser General Public License for more details.
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
13 *
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
14 * You should have received a copy of the GNU Lesser General Public
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
15 * License along with FFmpeg; if not, write to the Free Software
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
17 */
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
18
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
19 #include "config.h"
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
20 #include "avcore.h"
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
21
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
22 /**
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
23 * @file
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
24 * various utility functions
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
25 */
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
26
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
27 unsigned avcore_version(void)
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
28 {
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
29 return LIBAVCORE_VERSION_INT;
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
30 }
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
31
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
32 const char *avcore_configuration(void)
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
33 {
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
34 return FFMPEG_CONFIGURATION;
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
35 }
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
36
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
37 const char *avcore_license(void)
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
38 {
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
39 #define LICENSE_PREFIX "libavcore license: "
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
40 return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
a644213e4818 Add libavcore.
stefano
parents:
diff changeset
41 }