calltest.c
来自「TMS320VC55XX 图像 处理程序」· C语言 代码 · 共 28 行
C
28 行
#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 + =
减小字号Ctrl + -
显示快捷键?