libavcodec/proresdec.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2010-2011 Maxim Poliakovski
00003  * Copyright (c) 2010-2011 Elvis Presley
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 General Public
00009  * License as published by the Free Software Foundation;
00010  * version 2 of the License.
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  * General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU 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_PRORESDEC_H
00023 #define AVCODEC_PRORESDEC_H
00024 
00025 #include "dsputil.h"
00026 #include "proresdsp.h"
00027 
00028 typedef struct {
00029     const uint8_t *data;
00030     unsigned mb_x;
00031     unsigned mb_y;
00032     unsigned mb_count;
00033     unsigned data_size;
00034 } SliceContext;
00035 
00036 typedef struct {
00037     DSPContext dsp;
00038     ProresDSPContext prodsp;
00039     AVFrame frame;
00040     int frame_type;              
00041     uint8_t qmat_luma[64];
00042     uint8_t qmat_chroma[64];
00043     SliceContext *slices;
00044     int slice_count;             
00045     unsigned mb_width;           
00046     unsigned mb_height;          
00047     uint8_t progressive_scan[64];
00048     uint8_t interlaced_scan[64];
00049     const uint8_t *scan;
00050     int first_field;
00051 } ProresContext;
00052 
00053 #endif /* AVCODEC_PRORESDEC_H */