Dirac - A Video Codec

Created by the British Broadcasting Corporation.


common_types.h

Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002 *
00003 * $Id: common_types.h,v 1.15 2008/01/15 04:36:23 asuraparaju Exp $ $Name: Dirac_0_9_1 $
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): Thomas Davies (Original Author),
00024 *                 Scott R Ladd,
00025 *                 Tim Borer
00026 *                 Andrew Kennedy,
00027 *                 Anuradha Suraparaju
00028 *
00029 * Alternatively, the contents of this file may be used under the terms of
00030 * the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser
00031 * Public License Version 2.1 (the "LGPL"), in which case the provisions of
00032 * the GPL or the LGPL are applicable instead of those above. If you wish to
00033 * allow use of your version of this file only under the terms of the either
00034 * the GPL or LGPL and not to allow others to use your version of this file
00035 * under the MPL, indicate your decision by deleting the provisions above
00036 * and replace them with the notice and other provisions required by the GPL
00037 * or LGPL. If you do not delete the provisions above, a recipient may use
00038 * your version of this file under the terms of any one of the MPL, the GPL
00039 * or the LGPL.
00040 * ***** END LICENSE BLOCK ***** */
00041 
00042 #ifndef _COMMON_TYPES_H_
00043 #define _COMMON_TYPES_H_
00044 
00045 
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif
00053 /*
00054 * Some basic enumeration types used throughout the codec and by end user ...//
00055 */
00056 
00058 typedef enum { format444, format422, format420, formatNK } ChromaFormat;
00059 
00061 typedef enum
00062 {
00063     DD9_7=0,      /* Deslauriers-Dubuc (9,7) */
00064     LEGALL5_3,    /* LeGall (5,3) */
00065     DD13_7,       /* Deslauriers-Dubuc (13,7) */
00066     HAAR0,        /* Haar, no shift per level*/
00067     HAAR1,        /* Haar, one shift per level*/
00068     FIDELITY,    /* Fidelity wavelet */
00069     DAUB9_7,       /* Integer approximation to Daubechies 97 */
00070     filterNK
00071 } WltFilter;
00072 
00073 
00074 static const int NUM_WLT_FILTERS = 8;
00075 
00077 typedef enum {
00078         INTRA_FRAME=0,
00079         INTER_FRAME
00080     } FrameType;
00081 
00083 typedef enum {
00084         REFERENCE_FRAME=0,
00085         NON_REFERENCE_FRAME
00086 }   ReferenceType;
00087 
00089 typedef enum {
00090         VIDEO_FORMAT_CUSTOM=0,
00091         VIDEO_FORMAT_QSIF525,
00092         VIDEO_FORMAT_QCIF,
00093         VIDEO_FORMAT_SIF525,
00094         VIDEO_FORMAT_CIF,
00095         VIDEO_FORMAT_4SIF525,
00096         VIDEO_FORMAT_4CIF,
00097         VIDEO_FORMAT_SD_480I60,
00098         VIDEO_FORMAT_SD_576I50,
00099         VIDEO_FORMAT_HD_720P60,
00100         VIDEO_FORMAT_HD_720P50,
00101         VIDEO_FORMAT_HD_1080I60,
00102         VIDEO_FORMAT_HD_1080I50,
00103         VIDEO_FORMAT_HD_1080P60,
00104         VIDEO_FORMAT_HD_1080P50,
00105         VIDEO_FORMAT_DIGI_CINEMA_2K24,
00106         VIDEO_FORMAT_DIGI_CINEMA_4K24,
00107         VIDEO_FORMAT_UNDEFINED
00108 } VideoFormat;
00109 
00111 typedef enum {
00112     CP_HDTV_COMP_INTERNET=0,
00113     CP_SDTV_525,
00114     CP_SDTV_625,
00115     CP_DCINEMA,
00116     CP_UNDEF
00117 }ColourPrimaries;
00118 
00120 typedef enum {
00121     CM_HDTV_COMP_INTERNET=0,
00122     CM_SDTV,
00123     CM_REVERSIBLE,
00124     CM_UNDEF
00125 }ColourMatrix;
00126 
00128 typedef enum {
00129     TF_TV=0,
00130     TF_EXT_GAMUT,
00131     TF_LINEAR,
00132     TF_DCINEMA,
00133     TF_UNDEF
00134 } TransferFunction;
00135 
00137 typedef enum {
00138     FRAMERATE_CUSTOM=0,
00139     FRAMERATE_23p97_FPS,
00140     FRAMERATE_24_FPS,
00141     FRAMERATE_25_FPS,
00142     FRAMERATE_29p97_FPS,
00143     FRAMERATE_30_FPS,
00144     FRAMERATE_50_FPS,
00145     FRAMERATE_59p94_FPS,
00146     FRAMERATE_60_FPS,
00147     FRAMERATE_14p98_FPS,
00148     FRAMERATE_12p5_FPS,
00149     FRAMERATE_UNDEFINED
00150 } FrameRateType;
00151 
00153 typedef enum {
00154     PIXEL_ASPECT_RATIO_CUSTOM=0,
00155     PIXEL_ASPECT_RATIO_1_1,
00156     PIXEL_ASPECT_RATIO_10_11,
00157     PIXEL_ASPECT_RATIO_12_11,
00158     PIXEL_ASPECT_RATIO_40_33,
00159     PIXEL_ASPECT_RATIO_16_11,
00160     PIXEL_ASPECT_RATIO_4_3,
00161     PIXEL_ASPECT_RATIO_UNDEFINED
00162 } PixelAspectRatioType;
00163 
00164 
00166 typedef enum {
00167     SIGNAL_RANGE_CUSTOM=0,
00168     SIGNAL_RANGE_8BIT_FULL,
00169     SIGNAL_RANGE_8BIT_VIDEO,
00170     SIGNAL_RANGE_10BIT_VIDEO,
00171     SIGNAL_RANGE_12BIT_VIDEO,
00172     SIGNAL_RANGE_UNDEFINED
00173 } SignalRangeType;
00174 
00176 typedef enum {
00177     MV_PRECISION_PIXEL=0,
00178     MV_PRECISION_HALF_PIXEL,
00179     MV_PRECISION_QUARTER_PIXEL,
00180     MV_PRECISION_EIGHTH_PIXEL,
00181     MV_PRECISION_UNDEFINED
00182 } MVPrecisionType;
00183 
00185 typedef enum
00186 {
00187     QUANT_SINGLE,
00188     QUANT_MULTIPLE,
00189     QUANT_UNDEF
00190 } CodeBlockMode;
00191 
00192 #ifdef __cplusplus
00193 }
00194 #endif
00195 
00196 #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.