我都还没去看kernel层,在hal层调了半天.
这么说只能软解码了?

解决方案 »

  1.   

    static struct jpeg_fmt formats[] = {
    {
                    .name           = "JPEG compressed format",
                    .fourcc         = V4L2_PIX_FMT_JPEG_422,
                    .depth          = {16},
                    .color          = JPEG_422,
                    .memplanes      = 1,
                    .types          = M2M_CAPTURE,
            }, {
                    .name           = "JPEG compressed format",
                    .fourcc         = V4L2_PIX_FMT_JPEG_420,
                    .depth          = {8},
                    .color          = JPEG_420,
                    .memplanes      = 1,
                    .types          = M2M_CAPTURE,
            }, {
                    .name           = "YUV 4:2:2 packed, YCbYCr",
                    .fourcc         = V4L2_PIX_FMT_YUYV,
                    .depth          = {24},
                    .color          = YCBYCR_422_1P,
                    .memplanes      = 1,
                    .types          = M2M_OUTPUT,
            }, {
                    .name           = "RGB565",
                    .fourcc         = V4L2_PIX_FMT_RGB565X,
                    .depth          = {24},
                    .color          = RGB_565,
                    .memplanes      = 1,
                    .types          = M2M_OUTPUT,
            }, {
                    .name           = "XRGB-8-8-8-8, 32 bpp",
                    .fourcc         = V4L2_PIX_FMT_RGB32,
                    .depth          = {32},
                    .color          = RGB_888,
                    .memplanes      = 1,
                    .types          = M2M_OUTPUT,
            }, {
                    .name           = "YUV 4:2:0 planar, Y/CbCr",
                    .fourcc         = V4L2_PIX_FMT_NV12,
                    .depth          = {16},
                    .color          = YCBCR_420_1P,
                    .memplanes      = 1,
                    .types          = M2M_OUTPUT,
            }, {
                    .name           = "YUV 4:2:0 planar, Y/CrCb",
                    .fourcc         = V4L2_PIX_FMT_NV21,
                    .depth          = {16},
                    .color          = YCRCB_420_1P,
                    .memplanes      = 1,
                    .types          = M2M_OUTPUT,
            }, {
                    .name           = "YUV 4:2:0 contiguous 3-planar, Y/Cb/Cr",
                    .fourcc         = V4L2_PIX_FMT_YUV420,
                    .depth          = {16, 8, 8},
                    .color          = YCBCR_420_3P,
                    .memplanes      = 3,
                    .types          = M2M_OUTPUT,
    },
    };