2002-07-11 15:03:41 +00:00
|
|
|
/*
|
2007-07-05 10:37:29 +00: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 18:14:38 +00:00
|
|
|
*
|
2002-07-09 16:08:43 +00:00
|
|
|
* Copyright (C) 2002 the xine project
|
2002-07-11 15:03:41 +00:00
|
|
|
* Copyright (C) 2002 the ffmpeg project
|
2005-12-17 18:14:38 +00:00
|
|
|
*
|
2007-07-05 10:37:29 +00:00
|
|
|
* SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net>
|
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2002-07-11 15:03:41 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 15:30:46 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2002-07-11 15:03:41 +00:00
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2002-07-11 15:03:41 +00: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
|
2006-10-07 15:30:46 +00:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2006-01-12 22:43:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2002-07-09 16:08:43 +00:00
|
|
|
*/
|
2003-03-06 11:32:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @file svq1.c
|
2004-05-07 03:10:11 +00: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 11:32:04 +00:00
|
|
|
*/
|
|
|
|
|
2007-07-06 15:19:35 +00:00
|
|
|
#include "svq1.h"
|
2002-07-22 20:51:26 +00:00
|
|
|
#include "svq1_cb.h"
|
2003-05-26 17:44:24 +00:00
|
|
|
#include "svq1_vlc.h"
|
|
|
|
|
2002-07-09 16:08:43 +00:00
|
|
|
/* standard video sizes */
|
2008-01-07 12:48:42 +00:00
|
|
|
const svq1_frame_size_t ff_svq1_frame_size_table[8] = {
|
2002-07-09 16:08:43 +00:00
|
|
|
{ 160, 120 }, { 128, 96 }, { 176, 144 }, { 352, 288 },
|
|
|
|
{ 704, 576 }, { 240, 180 }, { 320, 240 }, { -1, -1 }
|
|
|
|
};
|