summaryrefslogtreecommitdiff
path: root/src/android/metadata
diff options
/* SPDX-License-Identifier: GPL-2.0-or-later *//* * Copyright (C) 2021, Google Inc. * * public-api.cpp - Public API validation */#include <libcamera/libcamera.h>#include"test.h"class PublicAPITest :public Test {intrun(){#ifdef LIBCAMERA_BASE_PRIVATE#error"Public interfaces should not be exposed to LIBCAMERA_BASE_PRIVATE"return TestFail;#elsereturn TestPass;#endif}};TEST_REGISTER(PublicAPITest)
context:
mmit/src/android/metadata?h=pobrn/rebase&id=d267fd6d89be8dd9274b058f05230712cf9773b8'>d267fd6d89be8dd9274b058f05230712cf9773b8 (diff)
gstreamer: allocator: Ensure camera manager stay alive
Without the camera manager, it is not possible to cleanly delete the FrameBufferAllocator object. Keep the camera manager alive until all the memory object have been released. A shared_ptr to the CameraManager is introduced which is itself stored as a plain pointer and allocated and released explicitly. When more than one C++ member is required, this can be refactored to use a new C++ class, but the struct _GstLibcameraAllocator is allocated and freed by glib, so it does not have automatic destruction presently. Bug: https://bugs.libcamera.org/show_bug.cgi?id=211 [Kieran: Update test framework to remove expected test fail] Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/metadata')
0 files changed, 0 insertions, 0 deletions