主题 : mini6410 tv 怎么改成pal制式的??? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 23802
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
综合积分: 48 分
注册时间: 2010-06-26
最后登录: 2015-01-22
楼主  发表于: 2011-01-16 16:51

 mini6410 tv 怎么改成pal制式的???


        /* Set TV standard format */
        tvout_std.index = 1;  //第一处修改
        ret = ioctl(tvout_fp, VIDIOC_ENUMSTD, &tvout_std);
        if(ret < 0) {
            printf("V4L2 APPL : ioctl(VIDIOC_ENUMSTD) failed\n");
            goto err;
        }

        tvout_std.id = V4L2_STD_PAL; //第二处修改
        ret = ioctl(tvout_fp, VIDIOC_S_STD, &tvout_std.id);
        if(ret < 0) {
            printf("V4L2 APPL : ioctl(VIDIOC_S_STD) failed\n");
            goto err;
        }
//////////////////////
const struct v4l2_standard tvout_standards[] = {
    {
        .index    = 0,
        .id     = V4L2_STD_NTSC_M,
        .name = "NTSC type",
    },
    {
        .index    = 1,
        .id     = V4L2_STD_PAL,
        .name = "PAL type",
    }    
};
/////////////////////////////////