00001 /* ***** BEGIN LICENSE BLOCK ***** 00002 * 00003 * $Id: dirac_types.h,v 1.1 2005/01/30 05:11:40 gabest 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): Anuradha Suraparaju (Original Author) 00024 * 00025 * Alternatively, the contents of this file may be used under the terms of 00026 * the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser 00027 * Public License Version 2.1 (the "LGPL"), in which case the provisions of 00028 * the GPL or the LGPL are applicable instead of those above. If you wish to 00029 * allow use of your version of this file only under the terms of the either 00030 * the GPL or LGPL and not to allow others to use your version of this file 00031 * under the MPL, indicate your decision by deleting the provisions above 00032 * and replace them with the notice and other provisions required by the GPL 00033 * or LGPL. If you do not delete the provisions above, a recipient may use 00034 * your version of this file under the terms of any one of the MPL, the GPL 00035 * or the LGPL. 00036 * ***** END LICENSE BLOCK ***** */ 00037 00038 #ifndef _DIRAC_TYPES_H 00039 #define _DIRAC_TYPES_H 00040 00041 #include <libdirac_common/common_types.h> 00042 00047 #ifdef __cplusplus 00048 extern "C" { 00049 #endif 00050 00051 #if defined(WIN32) && defined(_WINDLL) 00052 #define DllExport __declspec( dllexport ) 00053 #else 00054 #define DllExport 00055 #endif 00056 00057 /* 00058 * Some basic enumeration types used by end user encoder and decoder ...// 00059 */ 00060 typedef ChromaFormat dirac_chroma_t; 00061 typedef FrameSort dirac_frame_type_t; 00062 00063 typedef struct 00064 { 00065 int numerator; 00066 int denominator; 00067 } dirac_rational_t; 00068 00069 typedef dirac_rational_t dirac_frame_rate_t; 00070 00072 typedef struct 00073 { 00075 int width; 00077 int height; 00079 dirac_chroma_t chroma; 00081 int chroma_width; 00083 int chroma_height; 00085 dirac_frame_rate_t frame_rate; 00087 int interlace; 00089 int topfieldfirst; 00090 } dirac_seqparams_t; 00091 00093 typedef struct 00094 { 00096 dirac_frame_type_t ftype; 00098 int fnum; 00099 } dirac_frameparams_t; 00100 00101 00103 typedef struct 00104 { 00106 unsigned char *buf[3]; 00108 void *id; 00109 } dirac_framebuf_t; 00110 00111 #ifdef __cplusplus 00112 } 00113 #endif 00114 00115 #endif