summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-10-02 11:55:52 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-10-03 12:33:14 +0300
commit2d26d172c477c2ea22c4603c6f6c5ba5027f8c80 (patch)
tree9759eed7a64c62c4e2bfb78dcc0711c5021e6b61 /utils
parentfab9bb700372008130e5026fa9fe5fd22ac6ec4e (diff)
kmscapture: fix v4l buftype
Diffstat (limited to 'utils')
-rw-r--r--utils/kmscapture.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/utils/kmscapture.cpp b/utils/kmscapture.cpp
index 43ef989..c72d38c 100644
--- a/utils/kmscapture.cpp
+++ b/utils/kmscapture.cpp
@@ -76,19 +76,15 @@ ExtFramebuffer* CameraPipeline::GetExtFrameBuffer(Card& card, uint32_t i, PixelF
r = buffer_export(m_fd, V4L2_BUF_TYPE_VIDEO_CAPTURE, i, &dmafd);
ASSERT(r == 0);
- uint32_t handle;
- r = drmPrimeFDToHandle(card.fd(), dmafd, &handle);
- ASSERT(r == 0);
-
const PixelFormatInfo& format_info = get_pixel_format_info(pixfmt);
ASSERT(format_info.num_planes == 1);
- vector<uint32_t> handles { handle };
+ vector<int> fds { dmafd };
vector<uint32_t> pitches { m_in_width * (format_info.planes[0].bitspp / 8) };
- vector<uint32_t> offsets { };
+ vector<uint32_t> offsets { 0 };
return new ExtFramebuffer(card, m_in_width, m_in_height, pixfmt,
- handles, pitches, offsets);
+ fds, pitches, offsets);
}
bool inline better_size(struct v4l2_frmsize_discrete* v4ldisc,