libvlc_video_lock_cb
Code: Select all
vlcCallBackHandler* handler = (vlcCallBackHandler*) opaque;
int length = handler->width * handler->height;
planes[0] = handler->buff;
planes[1] = handler->buff + length;
planes[2] = handler->buff + length*5/4;
handler->mutex.lock();
In my cognition, planes[0] will save the Y channel and it's size will be width*height, and planes[1] will save U channel and it's size will be (width/2)*(height/2) ans so as the planes[2] save V channel. Is it right?