?? sampdefs.h
字號:
/********************************************************************************// INTEL CORPORATION PROPRIETARY INFORMATION// This software is supplied under the terms of a license agreement or// nondisclosure agreement with Intel Corporation and may not be copied// or disclosed except in accordance with the terms of that agreement.// Copyright (c) 2003 Intel Corporation. All Rights Reserved.//// Description:// Intel(R) Integrated Performance Primitives Sample Code General Definitions//********************************************************************************/#ifndef _SAMPDEFS_H_#define _SAMPDEFS_H_/* Include General Intel IPP external header file. */#include "ippdefs.h"#ifdef __cplusplusextern "C" {#endif/***** Data Types, Data Structures and Constants ******************************//***** Common Data Types *****/typedef int SAMPLE_BOOL;#ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif#endif#ifndef TRUE#define TRUE 1#endif#ifndef FALSE#define FALSE 0#endif/****** Common Macros **********/#define SAMPLE_ALIGN8(addr) (((unsigned int)(addr)+7)&(~7))#define SAMPLE_ALIGN4(addr) (((unsigned int)(addr)+3)&(~3))/****** Common Structures *****//* Sample Status Code */typedef enum { /* Errors */ SAMPLE_STATUS_BS_END_ERR = -12, /* bitstream comes to end*/ SAMPLE_STATUS_BUFFER_UNDERRUN_ERR = -11, /* input buffer need more bytes for codec*/ SAMPLE_STATUS_NOTSUPPORTED_ERR = -10, /* not supported feature */ SAMPLE_STATUS_MISALIGNMENT_ERR = -9, /* alignment checking error */ SAMPLE_STATUS_BITSTREAM_ERR = -8, /* bit stream parsing error */ SAMPLE_STATUS_INPUT_ERR = -7, /* input material error */ SAMPLE_STATUS_SYNCNOTFOUND_ERR = -6, /* sync code not found */ SAMPLE_STATUS_BADARG_ERR = -5, /* error in function argument */ SAMPLE_STATUS_NOMEM_ERR = -4, /* out of memory */ SAMPLE_STATUS_ERR = -2, /* unknown error */ SAMPLE_STATUS_NOERR = 0 /* no error */} sample_status;/* Bitstream */typedef struct _sample_bitstream { unsigned char *bs_buffer; int bs_bytelen; unsigned char *bs_cur_byte; int bs_cur_bitoffset;} sample_bitstream;/* Sound */typedef struct _sample_sound { short *snd_frame; int snd_len; int snd_channel_num; int snd_sample_rate;} sample_sound;/* Picture */#define SAMPLE_MAXPLANENUM 3typedef struct _sample_picture { void *pic_plane[SAMPLE_MAXPLANENUM]; int pic_width; int pic_height; int pic_plane_step[SAMPLE_MAXPLANENUM]; int pic_plane_num; int pic_channel_num; int pic_format;} sample_picture;/* Color format */typedef enum { SAMPLE_GRAY, SAMPLE_YCbCr411, SAMPLE_YCbCr422, SAMPLE_YCbCr444, SAMPLE_BGR888, SAMPLE_BGR565, SAMPLE_BGR555} sample_color_format; #ifdef __cplusplus}#endif#endif/* #ifndef _SAMPDEFS_H_ *//* EOF */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -