曙海教育集团论坛DSP专区DSP系统和硬件开发讨论区 → 李现路:DSP6000图像位置移动与变形的典型算法(二)


  共有7074人关注过本帖树形打印

主题:李现路:DSP6000图像位置移动与变形的典型算法(二)

客人(124.78.*.*)
  1楼


李现路:DSP6000图像位置移动与变形的典型算法(二)  发帖心情 Post By:2009-12-3 13:47:53

  李现路:DSP6000图像位置移动与变形的典型算法(四)

 

 

     (void *)(disYbuffer + (numPixels>>1) + (numLines-1-i) * numPixels),

         numPixels>>1);

                 

             /*传送Cb缓冲区*/

             //前半部分为原始图像

             DAT_copy((void *)(capCbbuffer + i * (numPixels >> 1)),

                      (void *)(disCbbuffer + i * (numPixels >> 1)),

                      numPixels>>2);

             //后半部分为垂直镜像图像

        DAT_copy((void *)(capCbbuffer + i * (numPixels >> 1)),

                 (void *)(disCbbuffer + (numPixels>>2) + (numLines-1-i) * (numPixels >> 1)),

                 numPixels>>2);                                     

                     

                     

                   /*传送Cr缓冲区*/

                   //前半部分为原始图像

             DAT_copy((void *)(capCrbuffer + i * (numPixels >> 1)),

                      (void *)(disCrbuffer + i * (numPixels >> 1)),

                      numPixels>>2);

             //后半部分为垂直镜像图像        

             DAT_copy((void *)(capCrbuffer + i * (numPixels >> 1)),

                      (void *)(disCrbuffer + (numPixels>>2) + (numLines-1-i) * (numPixels >> 1)),

                      numPixels>>2);                        

          }     

          

          

         /*启动显示模块*/

         bt656_display_start(vpHchannel1);

         /*建立显示的实时循环*/

         for(;;)

         {

                   /*当采集区的数据已经采集好,而显示缓冲区的数据已空*/

                   if((capNewFrame == 1)&&(disNewFrame == 1))

                   {

                            /*将数据装入显示缓冲区,并清采集完成的标志*/

                            capNewFrame =0;

                            disNewFrame =0;

                            for(i=0;i<numLines;i++)

                            {

                                 /*传送Y缓冲区*/

                                 //前半部分为原始图像

                                     DAT_copy((void *)(capYbuffer + i * numPixels),

                                         (void *)(disYbuffer + i * numPixels),

                                         numPixels>>1);

                                     //后半部分为垂直镜像图像

                                     DAT_copy((void *)(capYbuffer + i * numPixels),

                      (void *)(disYbuffer + (numPixels>>1) + (numLines-1-i) * numPixels),

                      numPixels>>1);

                              

                                /*传送Cb缓冲区*/

                                //前半部分为原始图像

                                DAT_copy((void *)(capCbbuffer + i * (numPixels >> 1)),

                                         (void *)(disCbbuffer + i * (numPixels >> 1)),

                                         numPixels>>2);

                                //后半部分为垂直镜像图像

                           DAT_copy((void *)(capCbbuffer + i * (numPixels >> 1)),

                                    (void *)(disCbbuffer + (numPixels>>2) + (numLines-1-i) * (numPixels >> 1)),

                                    numPixels>>2);                                     

                                        

                                        

                                     /*传送Cr缓冲区*/

                                     //前半部分为原始图像

                                DAT_copy((void *)(capCrbuffer + i * (numPixels >> 1)),

                                         (void *)(disCrbuffer + i * (numPixels >> 1)),

                                         numPixels>>2);

                                //后半部分为垂直镜像图像        

                                DAT_copy((void *)(capCrbuffer + i * (numPixels >> 1)),

                                         (void *)(disCrbuffer + (numPixels>>2) + (numLines-1-i) * (numPixels >> 1)),

                                         numPixels>>2);                        

                             }

                   }

         }       

}

[此贴子已经被作者于2009-12-3 13:51:45编辑过]

支持(0中立(0反对(0单帖管理 | 引用 | 回复 回到顶部

返回版面帖子列表

李现路:DSP6000图像位置移动与变形的典型算法(二)








签名