if(lock_surface(&graphic_buf, &output_width, &output_height, &bpp) < 0){
    LOGE("ERROR! can not lock canvas");
    continue;
}
yuv420_2_rgb565(yuv_location, graphic_buf,
        output_width, output_height, output_width<<1);
unlock_and_post_surface();

解决方案 »

  1.   

    yuv_location,因该是这个参数把
      

  2.   

    yuv420_2_rgb565是转换函数吧!yuv_location是本地yuv数据吧!
      

  3.   

    那应该在SURFACE上把,你看看VIDEOVIEW的代码里面有设置WIDTH和HEIGHT的,还有位置坐标的函数
      

  4.   

    C++中如何控制surface ???C++指的是NDK吧?NDK中有SURFACE的概念吗?