annotate parseutils.h @ 26:ec642b5a1d0a libavcore

Add missing checks on invalid pixel format in av_image_fill_linesizes/pointers.
author stefano
date Tue, 07 Sep 2010 23:41:18 +0000
parents 8a62c1403cd0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
1 /*
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
2 * This file is part of FFmpeg.
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
3 *
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
4 * FFmpeg is free software; you can redistribute it and/or
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
5 * modify it under the terms of the GNU Lesser General Public
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
7 * version 2.1 of the License, or (at your option) any later version.
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
8 *
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
9 * FFmpeg is distributed in the hope that it will be useful,
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
12 * Lesser General Public License for more details.
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
13 *
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
14 * You should have received a copy of the GNU Lesser General Public
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
15 * License along with FFmpeg; if not, write to the Free Software
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
17 */
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
18
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
19 #ifndef AVCORE_PARSEUTILS_H
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
20 #define AVCORE_PARSEUTILS_H
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
21
20
8a62c1403cd0 Use quotes instead of angle brackets for local #includes.
diego
parents: 3
diff changeset
22 #include "libavutil/rational.h"
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
23
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
24 /**
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
25 * @file
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
26 * misc parsing utilities for libavcore
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
27 */
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
28
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
29 /**
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
30 * Parse str and put in width_ptr and height_ptr the detected values.
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
31 *
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
32 * @param[in,out] width_ptr pointer to the variable which will contain the detected
3
af138a6c3924 Remove reference to the "frame" term in variable names. Simpler and
stefano
parents: 1
diff changeset
33 * width value
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
34 * @param[in,out] height_ptr pointer to the variable which will contain the detected
3
af138a6c3924 Remove reference to the "frame" term in variable names. Simpler and
stefano
parents: 1
diff changeset
35 * height value
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
36 * @param[in] str the string to parse: it has to be a string in the format
3
af138a6c3924 Remove reference to the "frame" term in variable names. Simpler and
stefano
parents: 1
diff changeset
37 * width x height or a valid video size abbreviation.
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
38 * @return >= 0 on success, a negative error code otherwise
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
39 */
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
40 int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str);
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
41
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
42 /**
3
af138a6c3924 Remove reference to the "frame" term in variable names. Simpler and
stefano
parents: 1
diff changeset
43 * Parse str and store the detected values in *rate.
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
44 *
3
af138a6c3924 Remove reference to the "frame" term in variable names. Simpler and
stefano
parents: 1
diff changeset
45 * @param[in,out] rate pointer to the AVRational which will contain the detected
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
46 * frame rate
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
47 * @param[in] str the string to parse: it has to be a string in the format
3
af138a6c3924 Remove reference to the "frame" term in variable names. Simpler and
stefano
parents: 1
diff changeset
48 * rate_num / rate_den, a float number or a valid video rate abbreviation
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
49 * @return >= 0 on success, a negative error code otherwise
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
50 */
3
af138a6c3924 Remove reference to the "frame" term in variable names. Simpler and
stefano
parents: 1
diff changeset
51 int av_parse_video_rate(AVRational *rate, const char *str);
1
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
52
d2641c727ec5 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
stefano
parents:
diff changeset
53 #endif /* AVCORE_PARSEUTILS_H */