1cabdff1aSopenharmony_ci/* 2cabdff1aSopenharmony_ci * SVQ1 decoder 3cabdff1aSopenharmony_ci * ported to MPlayer by Arpi <arpi@thot.banki.hu> 4cabdff1aSopenharmony_ci * ported to libavcodec by Nick Kurshev <nickols_k@mail.ru> 5cabdff1aSopenharmony_ci * 6cabdff1aSopenharmony_ci * Copyright (c) 2002 The Xine project 7cabdff1aSopenharmony_ci * Copyright (c) 2002 The FFmpeg project 8cabdff1aSopenharmony_ci * 9cabdff1aSopenharmony_ci * SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net> 10cabdff1aSopenharmony_ci * 11cabdff1aSopenharmony_ci * This file is part of FFmpeg. 12cabdff1aSopenharmony_ci * 13cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or 14cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 15cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either 16cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 17cabdff1aSopenharmony_ci * 18cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful, 19cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 20cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21cabdff1aSopenharmony_ci * Lesser General Public License for more details. 22cabdff1aSopenharmony_ci * 23cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 24cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software 25cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 26cabdff1aSopenharmony_ci */ 27cabdff1aSopenharmony_ci 28cabdff1aSopenharmony_ci/** 29cabdff1aSopenharmony_ci * @file 30cabdff1aSopenharmony_ci * Sorenson Vector Quantizer #1 (SVQ1) video codec. 31cabdff1aSopenharmony_ci * For more information of the SVQ1 algorithm, visit: 32cabdff1aSopenharmony_ci * http://www.pcisys.net/~melanson/codecs/ 33cabdff1aSopenharmony_ci */ 34cabdff1aSopenharmony_ci 35cabdff1aSopenharmony_ci#include "svq1.h" 36cabdff1aSopenharmony_ci#include "svq1_cb.h" 37cabdff1aSopenharmony_ci#include "svq1_vlc.h" 38cabdff1aSopenharmony_ci 39cabdff1aSopenharmony_ci/* standard video sizes */ 40cabdff1aSopenharmony_ciconst uint16_t ff_svq1_frame_size_table[7][2] = { 41cabdff1aSopenharmony_ci { 160, 120 }, { 128, 96 }, { 176, 144 }, { 352, 288 }, 42cabdff1aSopenharmony_ci { 704, 576 }, { 240, 180 }, { 320, 240 } 43cabdff1aSopenharmony_ci}; 44