2002-07-11 17:03:41 +02:00
|
|
|
/*
|
2007-07-05 12:37:29 +02:00
|
|
|
* SVQ1 decoder
|
|
|
|
* ported to MPlayer by Arpi <arpi@thot.banki.hu>
|
|
|
|
* ported to libavcodec by Nick Kurshev <nickols_k@mail.ru>
|
2005-12-17 19:14:38 +01:00
|
|
|
*
|
2002-07-09 18:08:43 +02:00
|
|
|
* Copyright (C) 2002 the xine project
|
2002-07-11 17:03:41 +02:00
|
|
|
* Copyright (C) 2002 the ffmpeg project
|
2005-12-17 19:14:38 +01:00
|
|
|
*
|
2007-07-05 12:37:29 +02:00
|
|
|
* SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net>
|
|
|
|
*
|
2011-03-18 18:35:10 +01:00
|
|
|
* This file is part of Libav.
|
2006-10-07 17:30:46 +02:00
|
|
|
*
|
2011-03-18 18:35:10 +01:00
|
|
|
* Libav is free software; you can redistribute it and/or
|
2002-07-11 17:03:41 +02:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 17:30:46 +02:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2002-07-11 17:03:41 +02:00
|
|
|
*
|
2011-03-18 18:35:10 +01:00
|
|
|
* Libav is distributed in the hope that it will be useful,
|
2002-07-11 17:03:41 +02:00
|
|
|
* 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
|
2011-03-18 18:35:10 +01:00
|
|
|
* License along with Libav; if not, write to the Free Software
|
2006-01-12 23:43:26 +01:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2002-07-09 18:08:43 +02:00
|
|
|
*/
|
2003-03-06 12:32:04 +01:00
|
|
|
|
|
|
|
/**
|
2010-04-20 16:45:34 +02:00
|
|
|
* @file
|
2004-05-07 05:10:11 +02:00
|
|
|
* Sorenson Vector Quantizer #1 (SVQ1) video codec.
|
|
|
|
* For more information of the SVQ1 algorithm, visit:
|
|
|
|
* http://www.pcisys.net/~melanson/codecs/
|
2003-03-06 12:32:04 +01:00
|
|
|
*/
|
|
|
|
|
2007-07-06 17:19:35 +02:00
|
|
|
#include "svq1.h"
|
2002-07-22 22:51:26 +02:00
|
|
|
#include "svq1_cb.h"
|
2003-05-26 19:44:24 +02:00
|
|
|
#include "svq1_vlc.h"
|
|
|
|
|
2002-07-09 18:08:43 +02:00
|
|
|
/* standard video sizes */
|
2013-01-26 21:10:54 +01:00
|
|
|
const uint16_t ff_svq1_frame_size_table[7][2] = {
|
2012-08-19 22:56:02 +02:00
|
|
|
{ 160, 120 }, { 128, 96 }, { 176, 144 }, { 352, 288 },
|
|
|
|
{ 704, 576 }, { 240, 180 }, { 320, 240 }
|
2002-07-09 18:08:43 +02:00
|
|
|
};
|