📄 sampvc.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 // 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 __cplusplusextern "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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -