1 --- test/main.c.0.1.0 2009-10-26 11:26:30.000000000 -0500
2 +++ test/main.c 2010-03-15 11:30:18.000000000 -0500
4 if (frame_init(&buf_param))
7 - if ((bcfd = open("/dev/bc_cat", O_RDWR|O_NDELAY)) == -1) {
8 - printf("ERROR: open '/dev/bc_cat' failed\n");
9 + if ((bcfd = open("/dev/bccat0", O_RDWR|O_NDELAY)) == -1) {
10 + printf("ERROR: open '/dev/bccat0' failed\n");
14 frame_w = buf_param.width;
15 frame_h = buf_param.height;
17 - if (min_w > 0 && !(min_w % 32))
18 + if (min_w > 0 && !(min_w % 8))
19 buf_param.width = min_w;
22 --- test/capture.c.0.1.0 2009-10-26 11:26:30.000000000 -0500
23 +++ test/capture.c 2010-03-15 11:32:54.000000000 -0500
26 #include <linux/videodev2.h>
28 -#include <img_defs.h>
29 -#include <servicesext.h>
37 -#define CAPTURE_DEVICE "/dev/video0"
38 +#define CAPTURE_DEVICE "/dev/video0"
39 #define CAPTURE_NAME "Capture"
41 #define USBCAM_WIDTH 320
42 #define USBCAM_HEIGHT 240
43 #define USBCAM_DEF_PIX_FMT V4L2_PIX_FMT_YUYV
44 -#define YUV_PIXEL_FMT PVRSRV_PIXEL_FORMAT_FOURCC_ORG_YUYV
45 +#define YUV_PIXEL_FMT BC_PIX_FMT_YUYV
47 #define CLEAR(x) memset(&(x), 0, sizeof(x))
51 p->width = USBCAM_WIDTH;
52 p->height = USBCAM_HEIGHT;
53 - p->pixel_fmt = YUV_PIXEL_FMT;
54 + p->fourcc = YUV_PIXEL_FMT;
55 p->type = BC_MEMORY_MMAP;