chromium/third_party/ffmpeg/libavutil/rational.c

/*
 * rational numbers
 * Copyright (c) 2003 Michael Niedermayer <[email protected]>
 *
 * 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
 * rational numbers
 * @author Michael Niedermayer <[email protected]>
 */

#include "avassert.h"
#include <limits.h>

#include "common.h"
#include "mathematics.h"
#include "rational.h"

int av_reduce(int *dst_num, int *dst_den,
              int64_t num, int64_t den, int64_t max)
{}

AVRational av_mul_q(AVRational b, AVRational c)
{}

AVRational av_div_q(AVRational b, AVRational c)
{}

AVRational av_add_q(AVRational b, AVRational c) {}

AVRational av_sub_q(AVRational b, AVRational c)
{}

AVRational av_d2q(double d, int max)
{}

int av_nearer_q(AVRational q, AVRational q1, AVRational q2)
{}

int av_find_nearest_q_idx(AVRational q, const AVRational* q_list)
{}

uint32_t av_q2intfloat(AVRational q) {}

AVRational av_gcd_q(AVRational a, AVRational b, int max_den, AVRational def)
{}