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

📄 test.c

📁 基于ti c55x序列dsp的YUV转RGB的算法实现
💻 C
字号:
#include <stdio.h>
#include <imagelib.h>
#include "test.h"

#pragma DATA_SECTION(coeff,"working_coeff"); 
#pragma DATA_SECTION(y_data,"working_space");  
#pragma DATA_SECTION(cb_data,"working_space"); 
#pragma DATA_SECTION(cr_data,"working_space"); 
#pragma DATA_SECTION(rgb_data,"working_space"); 

short coeff[7]={0x2000, 0x2bdd, 0x2000, -0x0ac5, -0x1658,  0x2000, 0x3770};
 
    
short rgb_data[512];    

short size=512;


 
void main()
{ 
  unsigned long i;
   for(i=0;i<512;i++)
   rgb_data[i]=0;
   
   
    IMG_ycbcr422_rgb565(coeff,y_data,cb_data,cr_data,rgb_data,size );
  
 
}


⌨️ 快捷键说明

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