• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/svq1.h

Go to the documentation of this file.
00001 /*
00002  * SVQ1 decoder
00003  * ported to MPlayer by Arpi <arpi@thot.banki.hu>
00004  * ported to libavcodec by Nick Kurshev <nickols_k@mail.ru>
00005  *
00006  * Copyright (C) 2002 the xine project
00007  * Copyright (C) 2002 the ffmpeg project
00008  *
00009  * SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net>
00010  *
00011  * This file is part of FFmpeg.
00012  *
00013  * FFmpeg is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Lesser General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2.1 of the License, or (at your option) any later version.
00017  *
00018  * FFmpeg is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Lesser General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Lesser General Public
00024  * License along with FFmpeg; if not, write to the Free Software
00025  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00026  */
00027 
00035 #ifndef AVCODEC_SVQ1_H
00036 #define AVCODEC_SVQ1_H
00037 
00038 #include <stdint.h>
00039 
00040 #define SVQ1_BLOCK_SKIP         0
00041 #define SVQ1_BLOCK_INTER        1
00042 #define SVQ1_BLOCK_INTER_4V     2
00043 #define SVQ1_BLOCK_INTRA        3
00044 
00045 struct svq1_frame_size {
00046     uint16_t width;
00047     uint16_t height;
00048 };
00049 
00050 uint16_t ff_svq1_packet_checksum (const uint8_t *data, const int length,
00051                                   int value);
00052 
00053 extern const int8_t* const ff_svq1_inter_codebooks[6];
00054 extern const int8_t* const ff_svq1_intra_codebooks[6];
00055 
00056 extern const uint8_t ff_svq1_block_type_vlc[4][2];
00057 extern const uint8_t ff_svq1_intra_multistage_vlc[6][8][2];
00058 extern const uint8_t ff_svq1_inter_multistage_vlc[6][8][2];
00059 extern const uint16_t ff_svq1_intra_mean_vlc[256][2];
00060 extern const uint16_t ff_svq1_inter_mean_vlc[512][2];
00061 
00062 extern const struct svq1_frame_size ff_svq1_frame_size_table[7];
00063 
00064 #endif /* AVCODEC_SVQ1_H */

Generated on Fri Sep 16 2011 17:17:43 for FFmpeg by  doxygen 1.7.1