⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basic_op.h

📁 基于dsp6416处理器的边缘检测算法
💻 H
字号:
#ifndef	BASIC_OP_H
#define	BASIC_OP_H

#ifndef WIDTH

#ifdef PAL_DEMO_CIF
  #define DEMO_STANDARD   (PAL)
  #define DEMO_RES      (RES_PAL_CIF)
  #define DEMO_RES_VGA (RES_VGA_PAL_352X576)
  #define WIDTH    (352)
  #define HEIGHT   (288)

  
#endif
#ifdef NTSC_DEMO_CIF
  #define DEMO_STANDARD   (NTSC)
  #define DEMO_RES      (RES_NTSC_CIF)
  #define DEMO_RES_VGA (RES_VGA_NTSC_352X480)
  #define WIDTH    (352)
  #define HEIGHT   (240)
#endif


#define FRAME_SIZE_IN_PIXELS (WIDTH*HEIGHT) //frame size

#define VOUT_WIDTH WIDTH
#define VOUT_HEIGHT HEIGHT


// Define image buffers
#define Frames_Count   4         // frames in the buffer
#define Frames_ToKeep  1         // frames to be kept in the buffer

#endif /*#ifndef WIDTH*/

typedef struct YUV422_image YUV422_IMAGE;
struct YUV422_image{
void *p_data;        /*         must be 2*width*height      */
int width;          /*image width of pixel*/
int height;         /*image height of pixel*/  
};

typedef struct RGB565_image RGB565_IMAGE;
struct RGB565_image{
void *p_data;        /*         must be 2*width*height      */
int width;          /*image width of pixel*/
int height;         /*image height of pixel*/  
};

void half_resize(Uint8 * p,int height,int width);
int decompose_YUV(struct YUV422_image * in_image,Uint8 * p_Y,Uint8 * p_U,Uint8 * p_V);
int compose_YUV(Uint8 * p_Y,int Y_len,Uint8 * p_U,Uint8 * p_V,Uint8 * p_YUV);

void half_size(struct YUV422_image * in_image,
   	     struct YUV422_image * out_image);

Bool myDRAW_line  (  Uint8 *    pFrame,  
  Uint32    width, Uint32 height,  
  DRAW_Point  start, DRAW_Point    end,  
  Uint32    color ) ;
  




void aaaaaaaaaaa(Uint8 * pInBufferY,Uint8 * pInBufferU,Uint8 *	pInBufferV,
		Uint8 * pOutBufferY,Uint8 * pOutBufferU,Uint8 *	pOutBufferV,
		Uint8 * OutputBuffer);

#endif  /*#ifndef	BASIC_OP_H*/

/* END CODE */

⌨️ 快捷键说明

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