保存yuv420p一帧数据

void SaveYuv(unsigned char *buf, int wrap, int xsize, int ysize)
{
    for (int i = 0; idata[0], frame->linesize[0], frame->width, frame->height);
      SaveYuv(frame->data[1], frame->linesize[1], frame->width/2, frame->height/2);
      SaveYuv(frame->data[2], frame->linesize[2], frame->width/2, frame->height/2);
}

你可能感兴趣的:(保存yuv420p一帧数据)