2011-10-12 17:10:22 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2010-2011 Maxim Poliakovski
|
|
|
|
* Copyright (c) 2010-2011 Elvis Presley
|
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2013-03-18 18:34:41 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2011-10-12 17:10:22 +00:00
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2013-03-18 18:34:41 +00:00
|
|
|
* Lesser General Public License for more details.
|
2011-10-12 17:10:22 +00:00
|
|
|
*
|
2013-03-18 18:34:41 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2011-10-12 17:10:22 +00:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AVCODEC_PRORESDEC_H
|
|
|
|
#define AVCODEC_PRORESDEC_H
|
|
|
|
|
2014-06-19 02:41:48 +00:00
|
|
|
#include "blockdsp.h"
|
2011-10-12 17:10:22 +00:00
|
|
|
#include "proresdsp.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const uint8_t *data;
|
|
|
|
unsigned mb_x;
|
|
|
|
unsigned mb_y;
|
|
|
|
unsigned mb_count;
|
|
|
|
unsigned data_size;
|
2012-09-07 17:38:23 +00:00
|
|
|
int ret;
|
2011-10-12 17:10:22 +00:00
|
|
|
} SliceContext;
|
|
|
|
|
|
|
|
typedef struct {
|
2014-06-19 02:41:48 +00:00
|
|
|
BlockDSPContext bdsp;
|
2011-10-12 17:10:22 +00:00
|
|
|
ProresDSPContext prodsp;
|
2013-03-12 02:20:18 +00:00
|
|
|
AVFrame *frame;
|
2011-10-12 17:10:22 +00:00
|
|
|
int frame_type; ///< 0 = progressive, 1 = tff, 2 = bff
|
|
|
|
uint8_t qmat_luma[64];
|
|
|
|
uint8_t qmat_chroma[64];
|
|
|
|
SliceContext *slices;
|
|
|
|
int slice_count; ///< number of slices in the current picture
|
|
|
|
unsigned mb_width; ///< width of the current picture in mb
|
|
|
|
unsigned mb_height; ///< height of the current picture in mb
|
|
|
|
uint8_t progressive_scan[64];
|
|
|
|
uint8_t interlaced_scan[64];
|
|
|
|
const uint8_t *scan;
|
|
|
|
int first_field;
|
2013-05-18 14:42:29 +00:00
|
|
|
int alpha_info;
|
2011-10-12 17:10:22 +00:00
|
|
|
} ProresContext;
|
|
|
|
|
|
|
|
#endif /* AVCODEC_PRORESDEC_H */
|