Add initReslution

This commit is contained in:
Kalman
2018-09-21 19:25:27 +08:00
parent 30332a80de
commit fbdbb5b6f6
9 changed files with 70 additions and 39 deletions

View File

@@ -51,8 +51,8 @@ int main(int argc, char *argv[]) {
// device->RunOptionAction(Option::ERASE_CHIP);
std::size_t left_count = 0;
device->SetStreamRequest(
Resolution::RES_1280x400, Format::BGR888, FrameRate::RATE_30_FPS);
device->InitResolution(Resolution::RES_1280x400);
device->SetStreamRequest(Format::BGR888, FrameRate::RATE_30_FPS);
device->SetStreamCallback(
Stream::LEFT, [&left_count](const device::StreamData &data) {
CHECK_NOTNULL(data.img);