chromium/third_party/ffmpeg/libavutil/parseutils.c

/*
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * 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
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

/**
 * @file
 * misc parsing utilities
 */

#include <time.h>

#include "avstring.h"
#include "avutil.h"
#include "common.h"
#include "eval.h"
#include "log.h"
#include "random_seed.h"
#include "time_internal.h"
#include "parseutils.h"
#include "time.h"

#ifdef TEST

#define av_get_random_seed
static uint32_t av_get_random_seed_deterministic(void);

#define av_gettime

#endif

int av_parse_ratio(AVRational *q, const char *str, int max,
                   int log_offset, void *log_ctx)
{}

VideoSizeAbbr;

VideoRateAbbr;

static const VideoSizeAbbr video_size_abbrs[] =;

static const VideoRateAbbr video_rate_abbrs[]=;

static const char *months[12] =;

int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str)
{}

int av_parse_video_rate(AVRational *rate, const char *arg)
{}

ColorEntry;

static const ColorEntry color_table[] =;

static int color_table_compare(const void *lhs, const void *rhs)
{}

#define ALPHA_SEP

int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen,
                   void *log_ctx)
{}

const char *av_get_known_color_name(int color_idx, const uint8_t **rgbp)
{}

/* get a positive number between n_min and n_max, for a maximum length
   of len_max. Return -1 if error. */
static int date_get_num(const char **pp,
                        int n_min, int n_max, int len_max)
{}

static int date_get_month(const char **pp) {}

char *av_small_strptime(const char *p, const char *fmt, struct tm *dt)
{}

time_t av_timegm(struct tm *tm)
{}

int av_parse_time(int64_t *timeval, const char *timestr, int duration)
{}

int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info)
{}