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

📄 calltest.c

📁 TMS320VC55XX 图像 处理程序
💻 C
字号:
#include<stdio.h> 
#include <imagelib.h>
#include"test.h"
unsigned int match[2];
//Structure of match
// The location of the best match block is                  
// packed in match[0]. The upper half-word contains the 
// horizontal pixel position and the lower half-world 
// the vertical pixel position of the best matching
// 16x16 block in the search window.
// The minimum absolute difference value at the best
//match location is packed in match[1].
#pragma DATA_SECTION(search_window,"search_window");  
#pragma DATA_SECTION(src_data,"ref_block");  
#pragma DATA_SECTION(match,"ref_block"); 

 
 void main()
{ 
   

  IMG_mad_16x16_4step(src_data,search_window,match);
  /* expect result
     match[0]=0x1309
     match[1]=0x0BAA
   */
}

⌨️ 快捷键说明

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