HAL層Camera模組Dump圖片--工作積累

來源:互聯網
上載者:User

標籤:style   blog   color   os   資料   for   問題   ar   

匯出YUN資料進行調試,分析問題:

 1 // dump映像資料  事列 2 void   dump(const int width, const int height, void *yBuf, void *uvBuf) 3 { 4        char buf[256] = {‘\0‘}; 5        FILE* file_fd = fopen(buf, "wb"); 6        snprintf(buf, sizeof(buf), "/data/Effect/%dx%dvideodenoiser%d.yuv",width,height,4); 7        file_fd = fopen(buf, "wb"); 8          if (file_fd != NULL) { 9         void *data = NULL;10         int written_len = 0;11         data = (void *)((uint8_t *)yBuf);12          written_len += fwrite( data, width*height, 1, file_fd);13         if(NULL == uvBuf)14             data = (void *)((uint8_t *)yBuf+ width*height);15         else16             data = (void *)((uint8_t *)uvBuf);17         written_len += fwrite( data, width*height/2, 1, file_fd);18         fclose(file_fd);19         TSLOG("%s: dump-------sucess%d",__func__,4);20         } else {21         TSLOG("%s: fail t open file for image dumping", __func__); 22 }

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.