Lines Matching refs:std

27     cameraBase = std::make_shared<TestCameraBase>();
45 std::cout << "==========[test log] CreateStreams, success." << std::endl;
49 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
52 std::cout << "~~~~~~~" << std::endl;
54 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
59 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
60 cameraBase->streamInfo = std::make_shared<StreamInfo>();
73 std::cout << "==========[test log] CreateStreams success." << std::endl;
75 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
78 std::vector<int> streamIds;
83 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
85 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
98 std::cout << "==========[test log] CreateStreams, StreamInfo->streamId = -1, return error." << std::endl;
102 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
105 std::cout << "~~~~~~~" << std::endl;
107 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
112 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
113 cameraBase->streamInfo = std::make_shared<StreamInfo>();
125 std::cout << "==========[test log] CreateStreams success." << std::endl;
127 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
129 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
142 std::cout << "==========[test log] CreateStreams,";
143 std::cout << "StreamInfo->streamId = 2147483647, return success." << std::endl;
147 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
150 std::cout << "~~~~~~~" << std::endl;
152 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
157 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
158 std::shared_ptr<StreamInfo> streamInfo = std::make_shared<StreamInfo>();
168 std::vector<std::shared_ptr<StreamInfo>>().swap(streamInfos);
171 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
174 std::cout << "==========[test log] CreateStreams success." << std::endl;
176 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
189 std::cout << "==========[test log] CreateStreams, StreamInfo->width = -1, return error." << std::endl;
193 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
196 std::cout << "~~~~~~~" << std::endl;
198 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
203 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
204 cameraBase->streamInfo = std::make_shared<StreamInfo>();
216 std::cout << "==========[test log] CreateStreams success." << std::endl;
218 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
220 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
233 std::cout << "==========[test log] CreateStreams, StreamInfo->width = 2147483647, success." << std::endl;
237 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
240 std::cout << "~~~~~~~" << std::endl;
242 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
247 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
248 cameraBase->streamInfo = std::make_shared<StreamInfo>();
260 std::cout << "==========[test log] CreateStreams success." << std::endl;
262 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
264 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
267 std::vector<int> streamIds;
272 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
274 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
287 std::cout << "==========[test log] CreateStreams, StreamInfo->height = -1, return error." << std::endl;
291 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
294 std::cout << "~~~~~~~" << std::endl;
296 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
301 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
302 cameraBase->streamInfo = std::make_shared<StreamInfo>();
314 std::cout << "==========[test log] CreateStreams success." << std::endl;
316 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
318 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
331 std::cout << "==========[test log] CreateStreams, StreamInfo->height = 2147483647, success." << std::endl;
335 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
338 std::cout << "~~~~~~~" << std::endl;
340 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
345 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
346 cameraBase->streamInfo = std::make_shared<StreamInfo>();
358 std::cout << "==========[test log] CreateStreams success." << std::endl;
360 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
362 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
375 std::cout << "==========[test log] CreateStreams, StreamInfo->format = -1, return error." << std::endl;
379 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
382 std::cout << "~~~~~~~" << std::endl;
384 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
389 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
390 cameraBase->streamInfo = std::make_shared<StreamInfo>();
402 std::cout << "==========[test log] CreateStreams success." << std::endl;
404 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
406 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
419 std::cout << "==========[test log] CreateStreams, StreamInfo->format = 2147483647, success." << std::endl;
423 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
426 std::cout << "~~~~~~~" << std::endl;
428 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
433 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
434 cameraBase->streamInfo = std::make_shared<StreamInfo>();
446 std::cout << "==========[test log] CreateStreams success." << std::endl;
448 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
450 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
453 std::vector<int> streamIds;
457 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
459 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
473 std::cout << "==========[test log] CreateStreams, StreamInfo->dataspace = -1, return error." << std::endl;
477 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
480 std::cout << "~~~~~~~" << std::endl;
482 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
487 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
488 cameraBase->streamInfo = std::make_shared<StreamInfo>();
500 std::cout << "==========[test log] CreateStreams success." << std::endl;
502 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
504 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
517 std::cout << "==========[test log] CreateStreams,";
518 std::cout << "StreamInfo->dataspace = 2147483647, success." << std::endl;
522 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
525 std::cout << "~~~~~~~" << std::endl;
527 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
532 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
533 cameraBase->streamInfo = std::make_shared<StreamInfo>();
544 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
547 std::cout << "==========[test log] CreateStreams success." << std::endl;
549 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
552 std::vector<int> streamIds;
557 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
559 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
572 std::cout << "==========[test log] CreateStreams,";
573 std::cout << "StreamInfo->StreamIntent = PREVIEW, success." << std::endl;
577 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
580 std::cout << "~~~~~~~" << std::endl;
582 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
587 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
588 cameraBase->streamInfo = std::make_shared<StreamInfo>();
599 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
602 std::cout << "==========[test log] CreateStreams success." << std::endl;
604 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
607 std::vector<int> streamIds;
611 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
613 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
627 std::cout << "==========[test log] CreateStreams,";
628 std::cout << "StreamInfo->StreamIntent = VIDEO, success." << std::endl;
632 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
635 std::cout << "~~~~~~~" << std::endl;
637 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
642 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
643 cameraBase->streamInfo = std::make_shared<StreamInfo>();
654 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
657 std::cout << "==========[test log] CreateStreams success." << std::endl;
659 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
662 std::vector<int> streamIds;
667 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
669 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
682 std::cout << "==========[test log] CreateStreams,";
683 std::cout << "StreamInfo->StreamIntent = STILL_CAPTURE, success." << std::endl;
687 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
690 std::cout << "~~~~~~~" << std::endl;
692 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
697 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
698 cameraBase->streamInfo = std::make_shared<StreamInfo>();
709 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
712 std::cout << "==========[test log] CreateStreams success." << std::endl;
714 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
717 std::vector<int> streamIds;
722 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
724 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
737 std::cout << "==========[test log] CreateStreams,";
738 std::cout << "StreamInfo->StreamIntent = POST_VIEW;, success." << std::endl;
742 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
745 std::cout << "~~~~~~~" << std::endl;
747 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
752 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
753 cameraBase->streamInfo = std::make_shared<StreamInfo>();
765 std::cout << "==========[test log] CreateStreams success." << std::endl;
767 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
769 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
772 std::vector<int> streamIds;
777 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
779 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
792 std::cout << "==========[test log] CreateStreams,";
793 std::cout << "StreamInfo->StreamIntent = ANALYZE;, success." << std::endl;
797 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
800 std::cout << "~~~~~~~" << std::endl;
802 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
807 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
808 cameraBase->streamInfo = std::make_shared<StreamInfo>();
819 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
822 std::cout << "==========[test log] CreateStreams success." << std::endl;
824 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
827 std::vector<int> streamIds;
832 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
834 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
847 std::cout << "==========[test log] CreateStreams,";
848 std::cout << "StreamInfo->StreamIntent = Camera::CUSTOM;, success." << std::endl;
852 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
855 std::cout << "~~~~~~~" << std::endl;
857 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
862 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
863 std::shared_ptr<StreamInfo> streamInfo = std::make_shared<StreamInfo>();
873 std::vector<std::shared_ptr<StreamInfo>>().swap(streamInfos);
876 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
879 std::cout << "==========[test log] CreateStreams success." << std::endl;
881 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
894 std::cout << "==========[test log] CreateStreams,";
895 std::cout << "StreamInfo->tunneledMode = false, success." << std::endl;
899 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
902 std::cout << "~~~~~~~" << std::endl;
904 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
909 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
910 cameraBase->streamInfo = std::make_shared<StreamInfo>();
921 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
924 std::cout << "==========[test log] CreateStreams fail." << std::endl;
926 std::cout << "==========[test log] CreateStreams success"<< std::endl;
939 std::cout << "==========[test log] CreateStreams,";
940 std::cout << "StreamInfo->minFrameDuration = -1, return error." << std::endl;
944 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
947 std::cout << "~~~~~~~" << std::endl;
949 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
954 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
955 cameraBase->streamInfo = std::make_shared<StreamInfo>();
967 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
970 std::cout << "==========[test log] CreateStreams success." << std::endl;
972 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
985 std::cout << "==========[test log] CreateStreams,";
986 std::cout << "StreamInfo->minFrameDuration = 2147483647, success." << std::endl;
990 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
993 std::cout << "~~~~~~~" << std::endl;
995 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
1000 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
1001 cameraBase->streamInfo = std::make_shared<StreamInfo>();
1013 std::cout << "streamOperator->CreateStreams's RetCode = " << cameraBase->rc << std::endl;
1016 std::cout << "==========[test log] CreateStreams fail." << std::endl;
1018 std::cout << "==========[test log] CreateStreams success, rc = " << cameraBase->rc << std::endl;
1031 std::cout << "==========[test log] ReleaseStreams,streamID normal." << std::endl;
1035 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
1038 std::cout << "~~~~~~~" << std::endl;
1040 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
1045 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
1046 cameraBase->streamInfo = std::make_shared<StreamInfo>();
1059 std::cout << "==========[test log] CreateStreams success." << std::endl;
1061 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
1064 std::vector<int> streamIds;
1069 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
1071 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
1084 std::cout << "==========[test log] ReleaseStreams-> streamID = -1, expected success." << std::endl;
1088 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
1091 std::cout << "~~~~~~~" << std::endl;
1093 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
1098 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
1099 cameraBase->streamInfo = std::make_shared<StreamInfo>();
1112 std::cout << "==========[test log] CreateStreams success." << std::endl;
1114 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
1121 std::shared_ptr<CaptureInfo> captureInfo = std::make_shared<CaptureInfo>();
1133 std::cout << "streamOperator->ReleaseStreams's RetCode = " << cameraBase->rc << std::endl;
1135 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
1137 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
1150 std::cout << "==========[test log] CommitStreams, input normal." << std::endl;
1154 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
1157 std::cout << "~~~~~~~" << std::endl;
1159 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
1164 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
1165 cameraBase->streamInfo = std::make_shared<StreamInfo>();
1178 std::cout << "==========[test log] CreateStreams success." << std::endl;
1180 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
1183 std::shared_ptr<CameraMetadata> modeSetting =
1184 std::make_shared<CameraMetadata>(ITEM_CAPACITY_SIZE, DATA_CAPACITY_SIZE);
1189 std::cout << "==========[test log] CommitStreams success." << std::endl;
1191 std::cout << "==========[test log] CommitStreams fail, rc = " << cameraBase->rc << std::endl;
1204 std::cout << "==========[test log] CommitStreams, input normal." << std::endl;
1208 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
1211 std::cout << "~~~~~~~" << std::endl;
1213 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
1218 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
1219 cameraBase->streamInfo = std::make_shared<StreamInfo>();
1232 std::cout << "==========[test log] CreateStreams success." << std::endl;
1234 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
1236 std::shared_ptr<CameraMetadata> modeSetting = nullptr;
1242 std::cout << "==========[test log] CommitStreams success." << std::endl;
1244 std::cout << "==========[test log] CommitStreams fail, rc = " << cameraBase->rc << std::endl;
1248 std::shared_ptr<CaptureInfo> captureInfo = std::make_shared<CaptureInfo>();
1254 std::cout << "==========[test log] Capture success." << std::endl;
1256 std::cout << "==========[test log] Capture fail, rc = " << cameraBase->rc << std::endl;
1262 std::cout << "==========[test log] CancelCapture success." << std::endl;
1264 std::cout << "==========[test log] CancelCapture fail, rc = " << cameraBase->rc << std::endl;
1270 std::cout << "==========[test log] ReleaseStreams success." << std::endl;
1272 std::cout << "==========[test log] ReleaseStreams fail, rc = " << cameraBase->rc << std::endl;
1276 std::cout << "==========[test log] cameraDevice->Close" << std::endl;
1288 std::cout << "==========[test log] GetStreamAttributes, success." << std::endl;
1292 std::shared_ptr<IBufferProducer> producer = IBufferProducer::CreateBufferQueue();
1295 std::cout << "~~~~~~~" << std::endl;
1297 auto callback = [this](std::shared_ptr<SurfaceBuffer> b) {
1302 std::vector<std::shared_ptr<StreamInfo>> streamInfos;
1303 cameraBase->streamInfo = std::make_shared<StreamInfo>();
1316 std::cout << "==========[test log] CreateStreams success." << std::endl;
1318 std::cout << "==========[test log] CreateStreams fail, rc = " << cameraBase->rc << std::endl;
1320 std::shared_ptr<CameraMetadata> modeSetting = nullptr;
1326 std::cout << "==========[test log] CommitStreams success." << std::endl;
1328 std::cout << "==========[test log] CommitStreams fail, rc = " << cameraBase->rc << std::endl;
1331 std::vector<std::shared_ptr<OHOS::Camera::StreamAttribute>> attributes;
1334 std::cout << "==========[test log] GetStreamAttributes, rc = " << cameraBase->rc << std::endl;
1336 std::cout << "==========[test log] GetStreamAttributes success." << std::endl;
1338 std::cout << "==========[test log] GetStreamAttributes fail, rc = " << cameraBase->rc << std::endl;