Created by the British Broadcasting Corporation.
00001 /* ***** BEGIN LICENSE BLOCK ***** 00002 * 00003 * $Id: common_types.h,v 1.7 2006/06/08 15:19: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): 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 APPROX97=0, /* Approximata Daubechies */ 00064 FIVETHREE, /* Five Three */ 00065 THIRTEENFIVE, /* Thirteen Five */ 00066 HAAR, /* HAAR */ 00067 RESERVED1, /* reserved 1 */ 00068 RESERVED2, /* reserved 1 */ 00069 DAUB97, /* Daubechies 97 */ 00070 filterNK 00071 } WltFilter; 00072 00073 static const int NUM_WLT_FILTERS = 7; 00074 00076 typedef enum { 00077 INTRA_FRAME=0, 00078 INTER_FRAME 00079 } FrameType; 00080 00082 typedef enum { 00083 REFERENCE_FRAME=0, 00084 NON_REFERENCE_FRAME 00085 } ReferenceType; 00086 00088 typedef enum { 00089 VIDEO_FORMAT_CUSTOM=0, 00090 VIDEO_FORMAT_QSIF, 00091 VIDEO_FORMAT_QCIF, 00092 VIDEO_FORMAT_SIF, 00093 VIDEO_FORMAT_CIF, 00094 VIDEO_FORMAT_4CIF, 00095 VIDEO_FORMAT_4SIF, 00096 VIDEO_FORMAT_SD_525_DIGITAL, 00097 VIDEO_FORMAT_SD_625_DIGITAL, 00098 VIDEO_FORMAT_HD_720, 00099 VIDEO_FORMAT_HD_1080, 00100 VIDEO_FORMAT_DIGI_CINEMA_2K, 00101 VIDEO_FORMAT_DIGI_CINEMA_4K, 00102 VIDEO_FORMAT_UNDEFINED 00103 } VideoFormat; 00104 00106 typedef enum { 00107 CP_ITU_709=0, 00108 CP_SMPTE_C, 00109 CP_EBU_3213, 00110 CP_CIE_XYZ, 00111 CP_UNDEF 00112 }ColourPrimaries; 00113 00115 typedef enum { 00116 CM_HDTV_COMP_INTERNET=0, 00117 CM_SDTV, 00118 CM_DCINEMA, 00119 CM_UNDEF 00120 }ColourMatrix; 00121 00123 typedef enum { 00124 TF_TV=0, 00125 TF_EXT_GAMUT, 00126 TF_LINEAR, 00127 TF_DCINEMA, 00128 TF_UNDEF 00129 } TransferFunction; 00130 00132 typedef enum { 00133 FRAMERATE_CUSTOM=0, 00134 FRAMERATE_23p97_FPS, 00135 FRAMERATE_24_FPS, 00136 FRAMERATE_25_FPS, 00137 FRAMERATE_29p97_FPS, 00138 FRAMERATE_30_FPS, 00139 FRAMERATE_50_FPS, 00140 FRAMERATE_59p94_FPS, 00141 FRAMERATE_60_FPS, 00142 FRAMERATE_UNDEFINED 00143 } FrameRateType; 00144 00146 typedef enum { 00147 ASPECT_RATIO_CUSTOM=0, 00148 ASPECT_RATIO_1_1, 00149 ASPECT_RATIO_10_11, 00150 ASPECT_RATIO_12_11, 00151 ASPECT_RATIO_UNDEFINED 00152 } AspectRatioType; 00153 00154 00156 typedef enum { 00157 SIGNAL_RANGE_CUSTOM=0, 00158 SIGNAL_RANGE_8BIT_FULL, 00159 SIGNAL_RANGE_8BIT_VIDEO, 00160 SIGNAL_RANGE_10BIT_VIDEO, 00161 SIGNAL_RANGE_UNDEFINED 00162 } SignalRangeType; 00163 00165 typedef enum { 00166 IT_PROGRESSIVE=0, 00167 IT_INTERLACED_TFF, 00168 IT_INTERLACED_BFF, 00169 IT_UNDEF 00170 } InterlaceType; 00171 00173 typedef enum { 00174 MV_PRECISION_PIXEL=0, 00175 MV_PRECISION_HALF_PIXEL, 00176 MV_PRECISION_QUARTER_PIXEL, 00177 MV_PRECISION_EIGHTH_PIXEL, 00178 MV_PRECISION_UNDEFINED 00179 } MVPrecisionType; 00180 00182 typedef enum 00183 { 00184 QUANT_SINGLE, 00185 QUANT_MULTIPLE, 00186 QUANT_UNDEF 00187 } CodeBlockMode; 00188 00189 #ifdef __cplusplus 00190 } 00191 #endif 00192 00193 #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.