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.3 2006/04/20 10:41:56 asuraparaju Exp $ $Name: Dirac_0_6_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 FrameType dirac_frame_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_asr_rate_t;
00074 
00076 typedef struct
00077 {
00079     unsigned int au_pnum;
00081     unsigned int major_ver;
00083     unsigned int minor_ver;
00085     unsigned int profile;
00087     unsigned int level;
00088 } dirac_parseparams_t;
00089 
00091 typedef struct
00092 {
00094     int width;
00096     int height;
00098     dirac_chroma_t chroma;
00100     int chroma_width;
00102     int chroma_height;
00104     int video_depth;
00105 } dirac_seqparams_t;
00106 
00107 typedef struct
00108 {
00109     unsigned int width;
00110     unsigned int height;
00111     unsigned int left_offset;
00112     unsigned int top_offset;
00113 } dirac_clean_area_t;
00114 
00115 typedef struct
00116 {
00117     unsigned int luma_offset;
00118     unsigned int luma_excursion;
00119     unsigned int chroma_offset;
00120     unsigned int chroma_excursion;
00121 } dirac_signal_range_t;
00122 
00123 typedef struct
00124 {
00125     float kr;
00126     float kb;
00127 } dirac_col_matrix_t;
00128 
00129 typedef ColourPrimaries dirac_col_primaries_t;
00130 typedef TransferFunction dirac_transfer_func_t;
00131 
00132 typedef struct
00133 {
00134     dirac_col_primaries_t col_primary;
00135     dirac_col_matrix_t col_matrix;
00136     dirac_transfer_func_t trans_func;
00137 } dirac_colour_spec_t;
00138 
00140 typedef struct
00141 {
00143     int interlace;
00145     int topfieldfirst;
00147     int seqfields;
00149     dirac_frame_rate_t frame_rate;
00151     dirac_frame_rate_t pix_asr;
00152     /* clean area*/
00153     dirac_clean_area_t clean_area;
00154     /* signal range*/
00155     dirac_signal_range_t signal_range;
00156     /* colour specification*/
00157     dirac_colour_spec_t colour_spec;
00158 
00159 } dirac_sourceparams_t;
00160 
00162 typedef struct
00163 {
00165     dirac_frame_type_t ftype;
00167     dirac_reference_type_t rtype;
00169     int fnum;
00170 } dirac_frameparams_t;
00171 
00172 
00174 typedef struct
00175 {
00177     unsigned char  *buf[3];
00179     void  *id;
00180 } dirac_framebuf_t;
00181 
00182 #ifdef __cplusplus
00183 }
00184 #endif
00185 
00186 #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.