im trying to feed raw video frames to libyuv to convert UYVY video to I420 but when i use libyuv to convert the frames i only get the to left hand corner of the video im trying to capture from my decklink card.
here is the code of the function im using
int vpx_img_read(vpx_image_t *img, void *raw) {
int plane;
unsigned char *buf0 = img->planes[0];
unsigned char *buf1 = img->planes[1];
unsigned char *buf2 = img->planes[2];
const int stride0 = img->stride[0];
const int stride1 = img->stride[1];
const int stride2 = img->stride[2];
UYVYToI420(raw , stride0,
buf0, stride0,
buf1, stride1,
buf2, stride2,
1920, 1080);
return 1;
}
how can i get it to show the entire frame?? Thank You!!!
i had to rewrite the converter for the format i needed, here is my solution