yading@10: /* yading@10: * Copyright (C) 2007 Marco Gerards yading@10: * Copyright (C) 2009 David Conrad yading@10: * Copyright (C) 2011 Jordi Ortiz yading@10: * yading@10: * This file is part of FFmpeg. yading@10: * yading@10: * FFmpeg is free software; you can redistribute it and/or yading@10: * modify it under the terms of the GNU Lesser General Public yading@10: * License as published by the Free Software Foundation; either yading@10: * version 2.1 of the License, or (at your option) any later version. yading@10: * yading@10: * FFmpeg is distributed in the hope that it will be useful, yading@10: * but WITHOUT ANY WARRANTY; without even the implied warranty of yading@10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU yading@10: * Lesser General Public License for more details. yading@10: * yading@10: * You should have received a copy of the GNU Lesser General Public yading@10: * License along with FFmpeg; if not, write to the Free Software yading@10: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA yading@10: */ yading@10: yading@10: #ifndef AVCODEC_DIRAC_H yading@10: #define AVCODEC_DIRAC_H yading@10: yading@10: /** yading@10: * @file yading@10: * Interface to Dirac Decoder/Encoder yading@10: * @author Marco Gerards yading@10: * @author David Conrad yading@10: * @author Jordi Ortiz yading@10: */ yading@10: yading@10: #include "avcodec.h" yading@10: #include "get_bits.h" yading@10: yading@10: typedef struct dirac_source_params { yading@10: unsigned width; yading@10: unsigned height; yading@10: uint8_t chroma_format; ///< 0: 444 1: 422 2: 420 yading@10: yading@10: uint8_t interlaced; yading@10: uint8_t top_field_first; yading@10: yading@10: uint8_t frame_rate_index; ///< index into dirac_frame_rate[] yading@10: uint8_t aspect_ratio_index; ///< index into dirac_aspect_ratio[] yading@10: yading@10: uint16_t clean_width; yading@10: uint16_t clean_height; yading@10: uint16_t clean_left_offset; yading@10: uint16_t clean_right_offset; yading@10: yading@10: uint8_t pixel_range_index; ///< index into dirac_pixel_range_presets[] yading@10: uint8_t color_spec_index; ///< index into dirac_color_spec_presets[] yading@10: } dirac_source_params; yading@10: yading@10: int avpriv_dirac_parse_sequence_header(AVCodecContext *avctx, GetBitContext *gb, yading@10: dirac_source_params *source); yading@10: yading@10: #endif /* AVCODEC_DIRAC_H */