sampvc.h

来自「Linux下的基于intel的ipp库的h.263解码源代码」· C头文件 代码 · 共 76 行

H
76
字号
/********************************************************************************
//               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 
//	  Video Shared Definitions
//
********************************************************************************/

#ifndef _SAMPVC_H_
#define _SAMPVC_H_

/* Include Intel IPP external header file(s). */
#include "ippVC.h"		/* Video Codec IPP external header file*/
#include "sampdefs.h"	/* General Codec external header file*/

#ifdef __cplusplus
extern "C" {
#endif


/***** Data Types and Constants ******************************/

/* Sample code stream buffer size, which should be large enough to contain any
// one encoded video frame at least, here we take 256K for an example */
#define	SAMPLE_VIDEO_STREAM_BUF_SIZE		262144

#define	SAMPLE_VIDEO_BLOCK_SIZE				8
#define SAMPLE_VIDEO_MB_SIZE				16
#define	SAMPLE_VIDEO_BLOCK_SQUARE_SIZE		64
#define SAMPLE_VIDEO_MB_SQUARE_SIZE         256

/*** Video Codec Share Data Structures ***/

/* Storage for spacial plane coefficients */
typedef struct _sample_spacial_ptrset {
    unsigned char * y_ptr; /* ptr to the start addr of luminance (Y) plane */
    unsigned char *cb_ptr; /* ptr to the start addr of chrominance (U) plane */
    unsigned char *cr_ptr; /* ptr to the start addr of chrominance (V) plane */
} sample_spacial_ptrset;

/* Storage for spectral plane coefficients of ac/dc prediction */
typedef struct _sample_spectral_ptrset {
    short * y_ptr;  /* ptr to the start addr of luminance (Y) plane */
    short *cb_ptr;  /* ptr to the start addr of chrominance (U) plane */
    short *cr_ptr;  /* ptr to the start addr of chrominance (V) plane */
} sample_spectral_ptrset;

/* Plane Step set */
typedef struct _sample_step_set {
	int		y_step;
	int		cb_step;
	int		cr_step;
} sample_step_set;

/* Dimension */
typedef struct _sample_dimension {
	int width;
	int height;
} sample_dimension;


#ifdef __cplusplus
}
#endif

/* #ifndef _SAMPVC_H_ */
#endif
/* EOF */


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?