diff options
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263/enc/src/m4venc_oscl.h')
-rw-r--r-- | media/libstagefright/codecs/m4v_h263/enc/src/m4venc_oscl.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/enc/src/m4venc_oscl.h b/media/libstagefright/codecs/m4v_h263/enc/src/m4venc_oscl.h new file mode 100644 index 0000000..c9e18d5 --- /dev/null +++ b/media/libstagefright/codecs/m4v_h263/enc/src/m4venc_oscl.h @@ -0,0 +1,43 @@ +/* ------------------------------------------------------------------ + * Copyright (C) 1998-2009 PacketVideo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. + * See the License for the specific language governing permissions + * and limitations under the License. + * ------------------------------------------------------------------- + */ +/*********************************************************************************/ +/* Revision History */ +/* Date: 11/04/05 */ +/* Description: Created for abstracting out OSCL such that the code can be used */ +/* by both V3 and V4 OSCL library. This file is for V4. */ +/*********************************************************************************/ + +#ifndef _M4VENC_OSCL_H_ +#define _M4VENC_OSCL_H_ + +#include <stdlib.h> +#include <math.h> + +#define M4VENC_MALLOC(size) malloc(size) +#define M4VENC_FREE(ptr) free(ptr) + +#define M4VENC_MEMSET(ptr,val,size) memset(ptr,val,size) +#define M4VENC_MEMCPY(dst,src,size) memcpy(dst,src,size) + +#define M4VENC_LOG(x) log(x) +#define M4VENC_SQRT(x) sqrt(x) +#define M4VENC_POW(x,y) pow(x,y) + +#define M4VENC_HAS_SYMBIAN_SUPPORT OSCL_HAS_SYMBIAN_SUPPORT + +#endif //_M4VENC_OSCL_H_ |