case BC_YUV410P:
case BC_YUV411P:
case BC_YUV420P:
+ case BC_YUV420PI:
case BC_YUV422P:
case BC_YUV444P:
case BC_RGB_FLOATP:
break;
case BC_YUV420P:
+ case BC_YUV420PI:
case BC_YUV411P:
if( this->v_offset ) break;
this->y_offset = 0;
}
else {
// Have to use malloc for libpng
+//printf("==vframe %d from %p\n", size, __builtin_return_address(0));
this->data = (unsigned char *)malloc(size);
}
case BC_YUV411P:
case BC_YUV420P:
+ case BC_YUV420PI:
bzero(get_y(), sz);
bzero(get_u(), sz / 4);
bzero(get_v(), sz / 4);
break;
case BC_YUV420P:
+ case BC_YUV420PI:
case BC_YUV411P:
//printf("%d %d %p %p %p %p %p %p\n", w, h, get_y(), get_u(), get_v(), frame->get_y(), frame->get_u(), frame->get_v());
memcpy(get_y(), frame->get_y(), w * h);
inp = in_ptrs;
}
else
- inp = that->get_rows();
+ inp = that->get_rows();
if( BC_CModels::is_planar(this->get_color_model()) ) {
out_ptrs[0] = this->get_y();
out_ptrs[1] = this->get_u();
outp = out_ptrs;
}
else
- outp = this->get_rows();
+ outp = this->get_rows();
BC_CModels::transfer(outp, this->get_color_model(),
0, 0, this->get_w(), this->get_h(),
this->get_bytes_per_line(),