2881| 3
|
有人做过F4板子图像处理关于数据缓存的问题 |
2金钱
最佳答案二维数组动态分配例程如下:
typedef struct{
unsigned short row;
unsigned short column;
unsigned int **data;
}Matrix_t;
#include
static void clear_mat(Matrix_t *pdata)
{
unsigned short i,j;
for(i=0;irow;i++)
{
for(j=0;jcolumn;j++)
{
pdata->data[j] =60000 + i + j;
}
}
}
static void put_mat(Matrix_t *pdata)
{
unsigned short i,j;
for(i=0 ...
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-5-22 10:45
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网