Created by the British Broadcasting Corporation.
00001 /* ***** BEGIN LICENSE BLOCK ***** 00002 * 00003 * $Id: common_types.h,v 1.11 2007/09/28 15:46:08 asuraparaju Exp $ $Name: Dirac_0_8_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): 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_QSIF, 00092 VIDEO_FORMAT_QCIF, 00093 VIDEO_FORMAT_SIF, 00094 VIDEO_FORMAT_CIF, 00095 VIDEO_FORMAT_4CIF, 00096 VIDEO_FORMAT_4SIF, 00097 VIDEO_FORMAT_SD_525_DIGITAL, 00098 VIDEO_FORMAT_SD_625_DIGITAL, 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_2K, 00106 VIDEO_FORMAT_DIGI_CINEMA_4K, 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_CIE_XYZ, 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_UNDEFINED 00148 } FrameRateType; 00149 00151 typedef enum { 00152 ASPECT_RATIO_CUSTOM=0, 00153 ASPECT_RATIO_1_1, 00154 ASPECT_RATIO_10_11, 00155 ASPECT_RATIO_12_11, 00156 ASPECT_RATIO_40_33, 00157 ASPECT_RATIO_16_11, 00158 ASPECT_RATIO_UNDEFINED 00159 } AspectRatioType; 00160 00161 00163 typedef enum { 00164 SIGNAL_RANGE_CUSTOM=0, 00165 SIGNAL_RANGE_8BIT_FULL, 00166 SIGNAL_RANGE_8BIT_VIDEO, 00167 SIGNAL_RANGE_10BIT_VIDEO, 00168 SIGNAL_RANGE_UNDEFINED 00169 } SignalRangeType; 00170 00172 typedef enum { 00173 MV_PRECISION_PIXEL=0, 00174 MV_PRECISION_HALF_PIXEL, 00175 MV_PRECISION_QUARTER_PIXEL, 00176 MV_PRECISION_EIGHTH_PIXEL, 00177 MV_PRECISION_UNDEFINED 00178 } MVPrecisionType; 00179 00181 typedef enum 00182 { 00183 QUANT_SINGLE, 00184 QUANT_MULTIPLE, 00185 QUANT_UNDEF 00186 } CodeBlockMode; 00187 00188 #ifdef __cplusplus 00189 } 00190 #endif 00191 00192 #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.