Nick Kurshev | 3657772 | 2002-07-11 15:03:41 | [diff] [blame] | 1 | /* |
Diego Biurrun | 7b94177 | 2007-07-05 10:37:29 | [diff] [blame] | 2 | * SVQ1 decoder |
| 3 | * ported to MPlayer by Arpi <[email protected]> |
| 4 | * ported to libavcodec by Nick Kurshev <[email protected]> |
Diego Biurrun | 115329f | 2005-12-17 18:14:38 | [diff] [blame] | 5 | * |
Clément Bœsch | 8ef57a0 | 2016-06-21 19:55:20 | [diff] [blame] | 6 | * Copyright (c) 2002 The Xine project |
| 7 | * Copyright (c) 2002 The FFmpeg project |
Diego Biurrun | 115329f | 2005-12-17 18:14:38 | [diff] [blame] | 8 | * |
Diego Biurrun | 7b94177 | 2007-07-05 10:37:29 | [diff] [blame] | 9 | * SVQ1 Encoder (c) 2004 Mike Melanson <[email protected]> |
| 10 | * |
Diego Biurrun | b78e719 | 2006-10-07 15:30:46 | [diff] [blame] | 11 | * This file is part of FFmpeg. |
| 12 | * |
| 13 | * FFmpeg is free software; you can redistribute it and/or |
Nick Kurshev | 3657772 | 2002-07-11 15:03:41 | [diff] [blame] | 14 | * modify it under the terms of the GNU Lesser General Public |
| 15 | * License as published by the Free Software Foundation; either |
Diego Biurrun | b78e719 | 2006-10-07 15:30:46 | [diff] [blame] | 16 | * version 2.1 of the License, or (at your option) any later version. |
Nick Kurshev | 3657772 | 2002-07-11 15:03:41 | [diff] [blame] | 17 | * |
Diego Biurrun | b78e719 | 2006-10-07 15:30:46 | [diff] [blame] | 18 | * FFmpeg is distributed in the hope that it will be useful, |
Nick Kurshev | be8ffec | 2002-07-09 16:08:43 | [diff] [blame] | 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Nick Kurshev | 3657772 | 2002-07-11 15:03:41 | [diff] [blame] | 20 | * 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 Biurrun | b78e719 | 2006-10-07 15:30:46 | [diff] [blame] | 24 | * License along with FFmpeg; if not, write to the Free Software |
Diego Biurrun | 5509bff | 2006-01-12 22:43:26 | [diff] [blame] | 25 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
Nick Kurshev | be8ffec | 2002-07-09 16:08:43 | [diff] [blame] | 26 | */ |
Michael Niedermayer | 983e324 | 2003-03-06 11:32:04 | [diff] [blame] | 27 | |
| 28 | /** |
Diego Biurrun | ba87f08 | 2010-04-20 14:45:34 | [diff] [blame] | 29 | * @file |
Mike Melanson | 3b64893 | 2004-05-07 03:10:11 | [diff] [blame] | 30 | * Sorenson Vector Quantizer #1 (SVQ1) video codec. |
| 31 | * For more information of the SVQ1 algorithm, visit: |
| 32 | * http://www.pcisys.net/~melanson/codecs/ |
Michael Niedermayer | 983e324 | 2003-03-06 11:32:04 | [diff] [blame] | 33 | */ |
| 34 | |
Aurelien Jacobs | 5416616 | 2007-07-06 15:19:35 | [diff] [blame] | 35 | #include "svq1.h" |
Alex Beregszaszi | ce23c66 | 2002-07-22 20:51:26 | [diff] [blame] | 36 | #include "svq1_cb.h" |
Mike Melanson | 59fcece | 2003-05-26 17:44:24 | [diff] [blame] | 37 | #include "svq1_vlc.h" |
Nick Kurshev | be8ffec | 2002-07-09 16:08:43 | [diff] [blame] | 38 | |
Nick Kurshev | be8ffec | 2002-07-09 16:08:43 | [diff] [blame] | 39 | /* standard video sizes */ |
Anton Khirnov | 6ed9fc4 | 2013-01-26 20:10:54 | [diff] [blame] | 40 | const uint16_t ff_svq1_frame_size_table[7][2] = { |
Diego Biurrun | ada12f8 | 2012-08-19 20:56:02 | [diff] [blame] | 41 | { 160, 120 }, { 128, 96 }, { 176, 144 }, { 352, 288 }, |
| 42 | { 704, 576 }, { 240, 180 }, { 320, 240 } |
Nick Kurshev | be8ffec | 2002-07-09 16:08:43 | [diff] [blame] | 43 | }; |