Dirac Video Codec

# Dirac - A Video Codec

Created by the British Broadcasting Corporation.

# dirac_types.h

Go to the documentation of this file.

    00001 /* ***** BEGIN LICENSE BLOCK *****
    00002 *
    00003 * $Id: dirac_types.h,v 1.10 2008/01/31 11:25:16 tjdwave Exp $ $Name: Dirac_1_0_0 $
    00004 *
    00005 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
    00006 *
    00007 * The contents of this file are subject to the Mozilla Public License
    00008 * Version 1.1 (the "License"); you may not use this file except in compliance
    00009 * with the License. You may obtain a copy of the License at
    00010 * http://www.mozilla.org/MPL/
    00011 *
    00012 * Software distributed under the License is distributed on an "AS IS" basis,
    00013 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
    00014 * the specific language governing rights and limitations under the License.
    00015 *
    00016 * The Original Code is BBC Research and Development code.
    00017 *
    00018 * The Initial Developer of the Original Code is the British Broadcasting
    00019 * Corporation.
    00020 * Portions created by the Initial Developer are Copyright (C) 2004.
    00021 * All Rights Reserved.
    00022 *
    00023 * Contributor(s): Anuradha Suraparaju (Original Author)
    00024 *                 Andrew Kennedy
    00025 *
    00026 * Alternatively, the contents of this file may be used under the terms of
    00027 * the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser
    00028 * Public License Version 2.1 (the "LGPL"), in which case the provisions of
    00029 * the GPL or the LGPL are applicable instead of those above. If you wish to
    00030 * allow use of your version of this file only under the terms of the either
    00031 * the GPL or LGPL and not to allow others to use your version of this file
    00032 * under the MPL, indicate your decision by deleting the provisions above
    00033 * and replace them with the notice and other provisions required by the GPL
    00034 * or LGPL. If you do not delete the provisions above, a recipient may use
    00035 * your version of this file under the terms of any one of the MPL, the GPL
    00036 * or the LGPL.
    00037 * ***** END LICENSE BLOCK ***** */
    00038
    00039 #ifndef _DIRAC_TYPES_H
    00040 #define _DIRAC_TYPES_H
    00041
    00042 #include <libdirac_common/common_types.h>
    00043
    00048 #ifdef __cplusplus
    00049 extern "C" {
    00050 #endif
    00051
    00052 #if defined(WIN32) && defined(_WINDLL)
    00053 #define DllExport   __declspec( dllexport )
    00054 #else
    00055 #define DllExport
    00056 #endif
    00057
    00058 /*
    00059 * Some basic enumeration types used by end user encoder and decoder ...//
    00060 */
    00061 typedef ChromaFormat dirac_chroma_t;
    00062 typedef PictureType dirac_picture_type_t;
    00063 typedef ReferenceType dirac_reference_type_t;
    00064 typedef WltFilter dirac_wlt_filter_t;
    00065
    00066 typedef struct
    00067 {
    00068     int numerator;
    00069     int denominator;
    00070 } dirac_rational_t;
    00071
    00072 typedef dirac_rational_t dirac_frame_rate_t;
    00073 typedef dirac_rational_t dirac_pix_asr_t;
    00074
    00076 typedef struct
    00077 {
    00079     unsigned int major_ver;
    00081     unsigned int minor_ver;
    00083     unsigned int profile;
    00085     unsigned int level;
    00086 } dirac_parseparams_t;
    00087
    00088 typedef struct
    00089 {
    00090     unsigned int width;
    00091     unsigned int height;
    00092     unsigned int left_offset;
    00093     unsigned int top_offset;
    00094 } dirac_clean_area_t;
    00095
    00096 typedef struct
    00097 {
    00098     unsigned int luma_offset;
    00099     unsigned int luma_excursion;
    00100     unsigned int chroma_offset;
    00101     unsigned int chroma_excursion;
    00102 } dirac_signal_range_t;
    00103
    00104 typedef struct
    00105 {
    00106     float kr;
    00107     float kb;
    00108 } dirac_col_matrix_t;
    00109
    00110 typedef ColourPrimaries dirac_col_primaries_t;
    00111 typedef TransferFunction dirac_transfer_func_t;
    00112
    00113 typedef struct
    00114 {
    00115     dirac_col_primaries_t col_primary;
    00116     dirac_col_matrix_t col_matrix;
    00117     dirac_transfer_func_t trans_func;
    00118 } dirac_colour_spec_t;
    00119
    00121 typedef struct
    00122 {
    00124     unsigned int width;
    00126     unsigned int height;
    00128     dirac_chroma_t chroma;
    00130     unsigned int chroma_width;
    00132     unsigned int chroma_height;
    00134     unsigned int source_sampling;
    00136     int topfieldfirst;
    00138     dirac_frame_rate_t frame_rate;
    00140     dirac_pix_asr_t pix_asr;
    00141     /* clean area*/
    00142     dirac_clean_area_t clean_area;
    00143     /* signal range*/
    00144     dirac_signal_range_t signal_range;
    00145     /* colour specification*/
    00146     dirac_colour_spec_t colour_spec;
    00147
    00148 } dirac_sourceparams_t;
    00149
    00151 typedef struct
    00152 {
    00154     dirac_picture_type_t ptype;
    00156     dirac_reference_type_t rtype;
    00158     int pnum;
    00159 } dirac_picparams_t;
    00160
    00161
    00164 typedef struct
    00165 {
    00167     unsigned char  *buf[3];
    00169     void  *id;
    00170 } dirac_framebuf_t;
    00171
    00172 #ifdef __cplusplus
    00173 }
    00174 #endif
    00175
    00176 #endif

© 2004 British Broadcasting Corporation. Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.