summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 07:33:55 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 10:55:12 +0200
commit38b625b629a48e8cf070a749111a641d45394634 (patch)
treec9a42185d1e89caabacf39ff853bc0c04346e965 /utils
parentd47d70dcf4bdb2ae34ec27ba65db5bfdcb64b480 (diff)
ExtFb: pass params in vectors
Diffstat (limited to 'utils')
-rw-r--r--utils/kmscapture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/kmscapture.cpp b/utils/kmscapture.cpp
index b4c3e88..43ef989 100644
--- a/utils/kmscapture.cpp
+++ b/utils/kmscapture.cpp
@@ -83,9 +83,9 @@ ExtFramebuffer* CameraPipeline::GetExtFrameBuffer(Card& card, uint32_t i, PixelF
const PixelFormatInfo& format_info = get_pixel_format_info(pixfmt);
ASSERT(format_info.num_planes == 1);
- uint32_t handles[4] { handle };
- uint32_t pitches[4] { m_in_width * (format_info.planes[0].bitspp / 8) };
- uint32_t offsets[4] { };
+ vector<uint32_t> handles { handle };
+ vector<uint32_t> pitches { m_in_width * (format_info.planes[0].bitspp / 8) };
+ vector<uint32_t> offsets { };
return new ExtFramebuffer(card, m_in_width, m_in_height, pixfmt,
handles, pitches, offsets);