| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of FFmpeg. | 2 * This file is part of FFmpeg. |
| 3 * | 3 * |
| 4 * FFmpeg is free software; you can redistribute it and/or | 4 * FFmpeg is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Lesser General Public | 5 * modify it under the terms of the GNU Lesser General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2.1 of the License, or (at your option) any later version. | 7 * version 2.1 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * FFmpeg is distributed in the hope that it will be useful, | 9 * FFmpeg is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Lesser General Public License for more details. | 12 * Lesser General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Lesser General Public | 14 * You should have received a copy of the GNU Lesser General Public |
| 15 * License along with FFmpeg; if not, write to the Free Software | 15 * License along with FFmpeg; if not, write to the Free Software |
| 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 */ | 17 */ |
| 18 | 18 |
| 19 #ifndef AVCORE_PARSEUTILS_H | 19 #ifndef AVCORE_PARSEUTILS_H |
| 20 #define AVCORE_PARSEUTILS_H | 20 #define AVCORE_PARSEUTILS_H |
| 21 | 21 |
| 22 #include <libavutil/rational.h> | 22 #include "libavutil/rational.h" |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @file | 25 * @file |
| 26 * misc parsing utilities for libavcore | 26 * misc parsing utilities for libavcore |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * Parse str and put in width_ptr and height_ptr the detected values. | 30 * Parse str and put in width_ptr and height_ptr the detected values. |
| 31 * | 31 * |
| 32 * @param[in,out] width_ptr pointer to the variable which will contain the detec
ted | 32 * @param[in,out] width_ptr pointer to the variable which will contain the detec
ted |
| (...skipping 11 matching lines...) Expand all Loading... |
| 44 * | 44 * |
| 45 * @param[in,out] rate pointer to the AVRational which will contain the detected | 45 * @param[in,out] rate pointer to the AVRational which will contain the detected |
| 46 * frame rate | 46 * frame rate |
| 47 * @param[in] str the string to parse: it has to be a string in the format | 47 * @param[in] str the string to parse: it has to be a string in the format |
| 48 * rate_num / rate_den, a float number or a valid video rate abbreviation | 48 * rate_num / rate_den, a float number or a valid video rate abbreviation |
| 49 * @return >= 0 on success, a negative error code otherwise | 49 * @return >= 0 on success, a negative error code otherwise |
| 50 */ | 50 */ |
| 51 int av_parse_video_rate(AVRational *rate, const char *str); | 51 int av_parse_video_rate(AVRational *rate, const char *str); |
| 52 | 52 |
| 53 #endif /* AVCORE_PARSEUTILS_H */ | 53 #endif /* AVCORE_PARSEUTILS_H */ |
| OLD | NEW |