videoeditorengine/vedengine/videoprocessor/inc/epoclib.h
changeset 0 951a5db380a0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videoeditorengine/vedengine/videoprocessor/inc/epoclib.h	Fri Jan 29 14:08:33 2010 +0200
@@ -0,0 +1,80 @@
+/*
+* Copyright (c) 2010 Ixonos Plc.
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - Initial contribution
+*
+* Contributors:
+* Ixonos Plc
+*
+* Description:  
+* Header file for epoclib.cpp.
+*
+*/
+
+
+#ifndef _EPOC_LIB
+#define _EPOC_LIB
+
+#include <e32base.h>
+#include <s32file.h>
+#include "nrctyp32.h"
+
+#ifdef _DEBUG
+#define MALLOC_DEBUG
+#endif
+
+#define EPOCLIB_DS
+
+//#define FILE RFile
+#define void TAny
+
+//specific to this program
+//#define HANDLE void *
+
+#ifndef _SIZE_T_DEFINED
+typedef unsigned int	size_t;
+#endif //_SIZE_T_DEFINED
+
+#define max(a,b)            (((a) > (b)) ? (a) : (b))
+#define min(a,b)            (((a) < (b)) ? (a) : (b))
+
+#define abs     Abs
+#define labs    Abs
+
+
+EPOCLIB_DS void free(TAny *ptr);
+
+#ifdef MALLOC_DEBUG
+#define malloc(size) debugMalloc(size, __FILE__, __LINE__)
+EPOCLIB_DS TAny *debugMalloc(u_int32 size, char *file, int line);
+#else
+EPOCLIB_DS TAny *malloc(u_int32 size);
+#endif
+EPOCLIB_DS TAny *realloc(void *memblock, u_int32 size);
+#ifdef MALLOC_DEBUG
+#define calloc(num, size) debugCalloc(num, size, __FILE__, __LINE__)
+EPOCLIB_DS TAny *debugCalloc(u_int32 num, u_int32 size, char *file, int line);
+#else
+EPOCLIB_DS TAny *calloc(u_int32 num, u_int32 size);
+#endif
+EPOCLIB_DS TAny *memset(TAny *dest, TInt c, u_int32 size); 
+EPOCLIB_DS TAny *memcpy(TAny *dest, const TAny *src, u_int32 size);
+EPOCLIB_DS TAny *memmove(TAny *dest, const TAny *src, u_int32 count);
+
+#define assert(expr) __ASSERT_DEBUG(expr, User::Panic(_L("assert"), 1));
+EPOCLIB_DS int atoi(const char *nptr);
+
+
+EPOCLIB_DS u_int32 fwrite(const TAny *buffer, u_int32 size, u_int32 count, RFile stream);
+
+#endif
+
+
+
+// End of File