Created by the British Broadcasting Corporation.
00001 /* ***** BEGIN LICENSE BLOCK ***** 00002 * 00003 * $Id: common_types.h,v 1.8 2006/10/05 15:22:52 tjdwave Exp $ $Name: $ 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_3=0, /* Deslauriers-Dubuc (9,3) */ 00064 LEGALL5_3, /* LeGall (5,3) */ 00065 DD13_5, /* Deslauriers-Dubuc (9,3) */ 00066 HAAR0, /* Haar, no shift per level*/ 00067 HAAR1, /* Haar, one shift per level*/ 00068 HAAR2, /* Haar, two shifts per level*/ 00069 FIDELITY, /* Fidelity wavelet */ 00070 DAUB9_7, /* Integer approximation to Daubechies 97 */ 00071 filterNK 00072 } WltFilter; 00073 00074 00075 static const int NUM_WLT_FILTERS = 8; 00076 00078 typedef enum { 00079 INTRA_FRAME=0, 00080 INTER_FRAME 00081 } FrameType; 00082 00084 typedef enum { 00085 REFERENCE_FRAME=0, 00086 NON_REFERENCE_FRAME 00087 } ReferenceType; 00088 00090 typedef enum { 00091 VIDEO_FORMAT_CUSTOM=0, 00092 VIDEO_FORMAT_QSIF, 00093 VIDEO_FORMAT_QCIF, 00094 VIDEO_FORMAT_SIF, 00095 VIDEO_FORMAT_CIF, 00096 VIDEO_FORMAT_4CIF, 00097 VIDEO_FORMAT_4SIF, 00098 VIDEO_FORMAT_SD_525_DIGITAL, 00099 VIDEO_FORMAT_SD_625_DIGITAL, 00100 VIDEO_FORMAT_HD_720, 00101 VIDEO_FORMAT_HD_1080, 00102 VIDEO_FORMAT_DIGI_CINEMA_2K, 00103 VIDEO_FORMAT_DIGI_CINEMA_4K, 00104 VIDEO_FORMAT_UNDEFINED 00105 } VideoFormat; 00106 00108 typedef enum { 00109 CP_ITU_709=0, 00110 CP_SMPTE_C, 00111 CP_EBU_3213, 00112 CP_CIE_XYZ, 00113 CP_UNDEF 00114 }ColourPrimaries; 00115 00117 typedef enum { 00118 CM_HDTV_COMP_INTERNET=0, 00119 CM_SDTV, 00120 CM_DCINEMA, 00121 CM_UNDEF 00122 }ColourMatrix; 00123 00125 typedef enum { 00126 TF_TV=0, 00127 TF_EXT_GAMUT, 00128 TF_LINEAR, 00129 TF_DCINEMA, 00130 TF_UNDEF 00131 } TransferFunction; 00132 00134 typedef enum { 00135 FRAMERATE_CUSTOM=0, 00136 FRAMERATE_23p97_FPS, 00137 FRAMERATE_24_FPS, 00138 FRAMERATE_25_FPS, 00139 FRAMERATE_29p97_FPS, 00140 FRAMERATE_30_FPS, 00141 FRAMERATE_50_FPS, 00142 FRAMERATE_59p94_FPS, 00143 FRAMERATE_60_FPS, 00144 FRAMERATE_UNDEFINED 00145 } FrameRateType; 00146 00148 typedef enum { 00149 ASPECT_RATIO_CUSTOM=0, 00150 ASPECT_RATIO_1_1, 00151 ASPECT_RATIO_10_11, 00152 ASPECT_RATIO_12_11, 00153 ASPECT_RATIO_UNDEFINED 00154 } AspectRatioType; 00155 00156 00158 typedef enum { 00159 SIGNAL_RANGE_CUSTOM=0, 00160 SIGNAL_RANGE_8BIT_FULL, 00161 SIGNAL_RANGE_8BIT_VIDEO, 00162 SIGNAL_RANGE_10BIT_VIDEO, 00163 SIGNAL_RANGE_UNDEFINED 00164 } SignalRangeType; 00165 00167 typedef enum { 00168 IT_PROGRESSIVE=0, 00169 IT_INTERLACED_TFF, 00170 IT_INTERLACED_BFF, 00171 IT_UNDEF 00172 } InterlaceType; 00173 00175 typedef enum { 00176 MV_PRECISION_PIXEL=0, 00177 MV_PRECISION_HALF_PIXEL, 00178 MV_PRECISION_QUARTER_PIXEL, 00179 MV_PRECISION_EIGHTH_PIXEL, 00180 MV_PRECISION_UNDEFINED 00181 } MVPrecisionType; 00182 00184 typedef enum 00185 { 00186 QUANT_SINGLE, 00187 QUANT_MULTIPLE, 00188 QUANT_UNDEF 00189 } CodeBlockMode; 00190 00191 #ifdef __cplusplus 00192 } 00193 #endif 00194 00195 #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.