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 int ret; 00035 } SliceContext; 00036 00037 typedef struct { 00038 DSPContext dsp; 00039 ProresDSPContext prodsp; 00040 AVFrame frame; 00041 int frame_type; 00042 uint8_t qmat_luma[64]; 00043 uint8_t qmat_chroma[64]; 00044 SliceContext *slices; 00045 int slice_count; 00046 unsigned mb_width; 00047 unsigned mb_height; 00048 uint8_t progressive_scan[64]; 00049 uint8_t interlaced_scan[64]; 00050 const uint8_t *scan; 00051 int first_field; 00052 } ProresContext; 00053 00054 #endif /* AVCODEC_PRORESDEC_H */