159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/* ------------------------------------------------------------------ 259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * Copyright (C) 1998-2009 PacketVideo 359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * 459f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * Licensed under the Apache License, Version 2.0 (the "License"); 559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * you may not use this file except in compliance with the License. 659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * You may obtain a copy of the License at 759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * 859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * http://www.apache.org/licenses/LICENSE-2.0 959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * 1059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * Unless required by applicable law or agreed to in writing, software 1159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * distributed under the License is distributed on an "AS IS" BASIS, 1259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 1359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * express or implied. 1459f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * See the License for the specific language governing permissions 1559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * and limitations under the License. 1659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * ------------------------------------------------------------------- 1759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong */ 1859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/*********************************************************************************/ 1959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/* Revision History */ 2059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/* Date: 11/04/05 */ 2159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/* Description: Created for abstracting out OSCL such that the code can be used */ 2259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/* by both V3 and V4 OSCL library. This file is for V4. */ 2359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/*********************************************************************************/ 2459f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 2559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#ifndef _M4VENC_OSCL_H_ 2659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define _M4VENC_OSCL_H_ 2759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 2859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#include <stdlib.h> 2959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#include <math.h> 3059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 3159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_MALLOC(size) malloc(size) 3259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_FREE(ptr) free(ptr) 3359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 3459f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_MEMSET(ptr,val,size) memset(ptr,val,size) 3559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_MEMCPY(dst,src,size) memcpy(dst,src,size) 3659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 3759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_LOG(x) log(x) 3859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_SQRT(x) sqrt(x) 3959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_POW(x,y) pow(x,y) 4059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 4159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define M4VENC_HAS_SYMBIAN_SUPPORT OSCL_HAS_SYMBIAN_SUPPORT 4259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 4359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#endif //_M4VENC_OSCL_H_ 44