blob: cc214f9ebd81e5d87ec35debb27cd0a6097cade4 [file] [log] [blame]
Nick Kurshev36577722002-07-11 15:03:411/*
Diego Biurrun7b941772007-07-05 10:37:292 * SVQ1 decoder
3 * ported to MPlayer by Arpi <[email protected]>
4 * ported to libavcodec by Nick Kurshev <[email protected]>
Diego Biurrun115329f2005-12-17 18:14:385 *
Clément Bœsch8ef57a02016-06-21 19:55:206 * Copyright (c) 2002 The Xine project
7 * Copyright (c) 2002 The FFmpeg project
Diego Biurrun115329f2005-12-17 18:14:388 *
Diego Biurrun7b941772007-07-05 10:37:299 * SVQ1 Encoder (c) 2004 Mike Melanson <[email protected]>
10 *
Diego Biurrunb78e7192006-10-07 15:30:4611 * This file is part of FFmpeg.
12 *
13 * FFmpeg is free software; you can redistribute it and/or
Nick Kurshev36577722002-07-11 15:03:4114 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
Diego Biurrunb78e7192006-10-07 15:30:4616 * version 2.1 of the License, or (at your option) any later version.
Nick Kurshev36577722002-07-11 15:03:4117 *
Diego Biurrunb78e7192006-10-07 15:30:4618 * FFmpeg is distributed in the hope that it will be useful,
Nick Kurshevbe8ffec2002-07-09 16:08:4319 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Nick Kurshev36577722002-07-11 15:03:4120 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
Diego Biurrunb78e7192006-10-07 15:30:4624 * License along with FFmpeg; if not, write to the Free Software
Diego Biurrun5509bff2006-01-12 22:43:2625 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Nick Kurshevbe8ffec2002-07-09 16:08:4326 */
Michael Niedermayer983e3242003-03-06 11:32:0427
28/**
Diego Biurrunba87f082010-04-20 14:45:3429 * @file
Mike Melanson3b648932004-05-07 03:10:1130 * Sorenson Vector Quantizer #1 (SVQ1) video codec.
31 * For more information of the SVQ1 algorithm, visit:
32 * http://www.pcisys.net/~melanson/codecs/
Michael Niedermayer983e3242003-03-06 11:32:0433 */
34
Aurelien Jacobs54166162007-07-06 15:19:3535#include "svq1.h"
Alex Beregszaszice23c662002-07-22 20:51:2636#include "svq1_cb.h"
Mike Melanson59fcece2003-05-26 17:44:2437#include "svq1_vlc.h"
Nick Kurshevbe8ffec2002-07-09 16:08:4338
Nick Kurshevbe8ffec2002-07-09 16:08:4339/* standard video sizes */
Anton Khirnov6ed9fc42013-01-26 20:10:5440const uint16_t ff_svq1_frame_size_table[7][2] = {
Diego Biurrunada12f82012-08-19 20:56:0241 { 160, 120 }, { 128, 96 }, { 176, 144 }, { 352, 288 },
42 { 704, 576 }, { 240, 180 }, { 320, 240 }
Nick Kurshevbe8ffec2002-07-09 16:08:4343};