summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder_gl.cpp
AgeCommit message (Expand)Author
2020-11-07qcam: viewfinder_gl: Add support for RGB formatsLaurent Pinchart
2020-11-07qcam: viewfinder_gl: Store textures in an arrayLaurent Pinchart
2020-11-07qcam: viewfinder_gl: Rename yuvData_ to data_Laurent Pinchart
2020-11-07qcam: viewfinder_gl: Rename YUV.vert to identity.vertLaurent Pinchart
2020-11-07qcam: viewfinder_gl: Remove unneeded castsLaurent Pinchart
2020-11-07qcam: viewfinder_gl: Keep fragment shader when format doesn't changeLaurent Pinchart
2020-11-07qcam: viewfinder_gl: Fix fragment shader rebuild when setting formatLaurent Pinchart
2020-10-04qcam: viewfinder_gl: Add shader to render packed YUV formatsLaurent Pinchart
2020-10-04qcam: viewfinder_gl: Merge the semi-planar UV and VU shadersLaurent Pinchart
2020-10-04qcam: viewfinder_gl: Support #define in shadersLaurent Pinchart
2020-10-04qcam: viewfinder_gl: Rename shader filesLaurent Pinchart
2020-10-04qcam: viewfinder_gl: Hardcode the vertex shader file nameLaurent Pinchart
2020-10-04qcam: viewfinder_gl: Don't store texture IDs in class membersLaurent Pinchart
2020-09-15qcam: Add ViewFinderGL class to accelerate the format conversionShow Liu
NT_MAX }; ret = capture_->setFormat(&format); if (ret) { cerr << "Failed to set format: image resolution is invalid: " << "(UINT_MAX x UINT_MAX) but setFormat() should not fail." << endl; return TestFail; } if (format.size.width == UINT_MAX || format.size.height == UINT_MAX) { cerr << "Failed to update image format = (UINT_MAX x UINT_MAX)" << endl; return TestFail; } std::vector<std::pair<uint32_t, const char *>> formats{ { V4L2_PIX_FMT_YUYV, "YUYV" }, { 0, "<INVALID>" }, { v4l2_fourcc(0, 1, 2, 3), "...." }, { V4L2_PIX_FMT_Y16_BE, "Y16 -BE" } }; for (const auto &format : formats) { if (V4L2PixelFormat(format.first).toString() != format.second) { cerr << "Failed to convert V4L2PixelFormat" << utils::hex(format.first) << "to string" << endl; return TestFail; } } if (V4L2PixelFormat().toString() != "<INVALID>") { cerr << "Failed to convert default V4L2PixelFormat to string" << endl; return TestFail; } return TestPass; } }; TEST_REGISTER(Format);