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

libavcodec/mqc.h

Go to the documentation of this file.
00001 /*
00002  * MQ-coder
00003  * Copyright (c) 2007 Kamil Nowosad
00004  *
00005  * This file is part of FFmpeg.
00006  *
00007  * FFmpeg is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * FFmpeg is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with FFmpeg; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00020  */
00021 
00022 #ifndef AVCODEC_MQC_H
00023 #define AVCODEC_MQC_H
00024 
00031 #include "avcodec.h"
00032 
00033 #define MQC_CX_UNI 17
00034 #define MQC_CX_RL  18
00035 
00036 extern uint16_t  ff_mqc_qe[2*47];
00037 extern uint8_t ff_mqc_nlps[2*47];
00038 extern uint8_t ff_mqc_nmps[2*47];
00039 
00040 typedef struct {
00041     uint8_t *bp, *bpstart;
00042     unsigned int a;
00043     unsigned int c;
00044     unsigned int ct;
00045     uint8_t cx_states[19];
00046 } MqcState;
00047 
00048 /* encoder */
00049 
00051 void ff_mqc_initenc(MqcState *mqc, uint8_t *bp);
00052 
00054 void ff_mqc_encode(MqcState *mqc, uint8_t *cxstate, int d);
00055 
00057 int ff_mqc_length(MqcState *mqc);
00058 
00060 int ff_mqc_flush(MqcState *mqc);
00061 
00062 /* decoder */
00063 
00065 void ff_mqc_initdec(MqcState *mqc, uint8_t *bp);
00066 
00068 int ff_mqc_decode(MqcState *mqc, uint8_t *cxstate);
00069 
00070 /* common */
00071 
00073 void ff_mqc_init_contexts(MqcState *mqc);
00074 
00075 #endif /* AVCODEC_MQC_H */

Generated on Wed Apr 11 2012 07:31:34 for FFmpeg by  doxygen 1.7.1