Created by the British Broadcasting Corporation.
00001 /* ***** BEGIN LICENSE BLOCK ***** 00002 * 00003 * $Id: common_types.h,v 1.21 2008/11/06 04:53:36 asuraparaju Exp $ $Name: Dirac_1_0_2 $ 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 00075 typedef enum 00076 { 00077 NO_PF = 0, 00078 DIAGLP, 00079 RECTLP, 00080 CWM 00081 } PrefilterType; 00082 00083 static const int NUM_WLT_FILTERS = 8; 00084 00086 typedef enum { 00087 INTRA_PICTURE=0, 00088 INTER_PICTURE 00089 } PictureType; 00090 00092 typedef enum { 00093 REFERENCE_PICTURE=0, 00094 NON_REFERENCE_PICTURE 00095 } ReferenceType; 00096 00098 typedef enum { 00099 VIDEO_FORMAT_CUSTOM=0, 00100 VIDEO_FORMAT_QSIF525, 00101 VIDEO_FORMAT_QCIF, 00102 VIDEO_FORMAT_SIF525, 00103 VIDEO_FORMAT_CIF, 00104 VIDEO_FORMAT_4SIF525, 00105 VIDEO_FORMAT_4CIF, 00106 VIDEO_FORMAT_SD_480I60, 00107 VIDEO_FORMAT_SD_576I50, 00108 VIDEO_FORMAT_HD_720P60, 00109 VIDEO_FORMAT_HD_720P50, 00110 VIDEO_FORMAT_HD_1080I60, 00111 VIDEO_FORMAT_HD_1080I50, 00112 VIDEO_FORMAT_HD_1080P60, 00113 VIDEO_FORMAT_HD_1080P50, 00114 VIDEO_FORMAT_DIGI_CINEMA_2K24, 00115 VIDEO_FORMAT_DIGI_CINEMA_4K24, 00116 VIDEO_FORMAT_UHDTV_4K60, 00117 VIDEO_FORMAT_UHDTV_4K50, 00118 VIDEO_FORMAT_UHDTV_8K60, 00119 VIDEO_FORMAT_UHDTV_8K50, 00120 VIDEO_FORMAT_UNDEFINED 00121 } VideoFormat; 00122 00124 typedef enum { 00125 CP_HDTV_COMP_INTERNET=0, 00126 CP_SDTV_525, 00127 CP_SDTV_625, 00128 CP_DCINEMA, 00129 CP_UNDEF 00130 }ColourPrimaries; 00131 00133 typedef enum { 00134 CM_HDTV_COMP_INTERNET=0, 00135 CM_SDTV, 00136 CM_REVERSIBLE, 00137 CM_UNDEF 00138 }ColourMatrix; 00139 00141 typedef enum { 00142 TF_TV=0, 00143 TF_EXT_GAMUT, 00144 TF_LINEAR, 00145 TF_DCINEMA, 00146 TF_UNDEF 00147 } TransferFunction; 00148 00150 typedef enum { 00151 FRAMERATE_CUSTOM=0, 00152 FRAMERATE_23p97_FPS, 00153 FRAMERATE_24_FPS, 00154 FRAMERATE_25_FPS, 00155 FRAMERATE_29p97_FPS, 00156 FRAMERATE_30_FPS, 00157 FRAMERATE_50_FPS, 00158 FRAMERATE_59p94_FPS, 00159 FRAMERATE_60_FPS, 00160 FRAMERATE_14p98_FPS, 00161 FRAMERATE_12p5_FPS, 00162 FRAMERATE_UNDEFINED 00163 } FrameRateType; 00164 00166 typedef enum { 00167 PIXEL_ASPECT_RATIO_CUSTOM=0, 00168 PIXEL_ASPECT_RATIO_1_1, 00169 PIXEL_ASPECT_RATIO_10_11, 00170 PIXEL_ASPECT_RATIO_12_11, 00171 PIXEL_ASPECT_RATIO_40_33, 00172 PIXEL_ASPECT_RATIO_16_11, 00173 PIXEL_ASPECT_RATIO_4_3, 00174 PIXEL_ASPECT_RATIO_UNDEFINED 00175 } PixelAspectRatioType; 00176 00177 00179 typedef enum { 00180 SIGNAL_RANGE_CUSTOM=0, 00181 SIGNAL_RANGE_8BIT_FULL, 00182 SIGNAL_RANGE_8BIT_VIDEO, 00183 SIGNAL_RANGE_10BIT_VIDEO, 00184 SIGNAL_RANGE_12BIT_VIDEO, 00185 SIGNAL_RANGE_UNDEFINED 00186 } SignalRangeType; 00187 00189 typedef enum { 00190 MV_PRECISION_PIXEL=0, 00191 MV_PRECISION_HALF_PIXEL, 00192 MV_PRECISION_QUARTER_PIXEL, 00193 MV_PRECISION_EIGHTH_PIXEL, 00194 MV_PRECISION_UNDEFINED 00195 } MVPrecisionType; 00196 00198 typedef enum 00199 { 00200 QUANT_SINGLE, 00201 QUANT_MULTIPLE, 00202 QUANT_UNDEF 00203 } CodeBlockMode; 00204 00205 #ifdef __cplusplus 00206 } 00207 #endif 00208 00209 #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.