1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef HOS_CAMERA_OFFLINE_STREAM_CONTEXT_H 17 #define HOS_CAMERA_OFFLINE_STREAM_CONTEXT_H 18 19 #include "camera.h" 20 #include "capture_message.h" 21 #include "capture_request.h" 22 #include "ibuffer_pool.h" 23 #include "istream_pipeline_core.h" 24 #include "stream_tunnel.h" 25 #include "utils.h" 26 #include <list> 27 #include <memory> 28 29 namespace OHOS::Camera { 30 class CaptureRequest; 31 struct OfflineStreamContext { 32 StreamConfiguration streamInfo; 33 std::shared_ptr<StreamTunnel> tunnel; 34 std::shared_ptr<IBufferPool> bufferPool; 35 std::weak_ptr<IStreamPipelineCore> pipeline; 36 std::list<std::shared_ptr<CaptureRequest>> restRequests; 37 }; 38 } // namespace OHOS::Camera 39 #endif 40