PROJECT(${fw_name})
-SET(pc_dependents "dlog mm-common mused libtbm mm-camcorder")
+SET(pc_dependents "dlog mm-common mused libtbm")
SET(PC_NAME ${fw_name})
+SET(PACKAGE_DESCRIPTION "muse camera module")
SET(PC_REQUIRED ${pc_dependents})
SET(PC_LDFLAGS -lmuse-camera)
+SET(PC_NAME2 legacy-camera)
+SET(PACKAGE_DESCRIPTION2 "legacy camera library")
+SET(PC_REQUIRED2 "mm-camcorder")
+SET(PC_LDFLAGS2 -llegacy-camera)
+
CONFIGURE_FILE(
${fw_name}.pc.in
${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc
)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+CONFIGURE_FILE(
+ legacy-camera.pc.in
+ ${CMAKE_CURRENT_SOURCE_DIR}/legacy-camera.pc
+ @ONLY
+)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy-camera.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+
ADD_SUBDIRECTORY(legacy)
ADD_SUBDIRECTORY(muse)
--- /dev/null
+
+# Package Information for pkg-config
+
+prefix=@PREFIX@
+exec_prefix=/usr
+libdir=@LIB_INSTALL_DIR@
+includedir=/usr/include/media
+
+Name: @PC_NAME2@
+Description: @PACKAGE_DESCRIPTION2@
+Version: @VERSION@
+Requires: @PC_REQUIRED2@
+Libs: -L${libdir} @PC_LDFLAGS2@
+Cflags: -I${includedir}
+
SET(submodule "camera")
# for package file
-SET(dependents "dlog mm-camcorder capi-base-common capi-media-tool gstreamer-1.0 libtbm evas ecore elementary vconf")
+SET(dependents "dlog mm-camcorder capi-base-common gstreamer-1.0 evas ecore elementary vconf")
SET(fw_name "${service}-${submodule}")
* limitations under the License.
*/
-#ifndef __TIZEN_MULTIMEDIA_CAMERA_H__
-#define __TIZEN_MULTIMEDIA_CAMERA_H__
+#ifndef __TIZEN_MULTIMEDIA_LEGACY_CAMERA_H__
+#define __TIZEN_MULTIMEDIA_LEGACY_CAMERA_H__
#include <tizen.h>
-#include <media_packet.h>
#include <mm_camcorder.h>
#ifdef __cplusplus
}
#endif
-#endif /* __TIZEN_MULTIMEDIA_CAMERA_H__ */
+#endif /* __TIZEN_MULTIMEDIA_LEGACY_CAMERA_H__ */
* limitations under the License.
*/
-#ifndef __TIZEN_MULTIMEDIA_CAMERA_INTERNAL_H__
-#define __TIZEN_MULTIMEDIA_CAMERA_INTERNAL_H__
+#ifndef __TIZEN_MULTIMEDIA_LEGACY_CAMERA_INTERNAL_H__
+#define __TIZEN_MULTIMEDIA_LEGACY_CAMERA_INTERNAL_H__
#include <legacy_camera.h>
#ifdef __cplusplus
}
#endif
-#endif //__TIZEN_MULTIMEDIA_CAMERA_INTERNAL_H__
+#endif /* __TIZEN_MULTIMEDIA_LEGACY_CAMERA_INTERNAL_H__ */
bool is_used_in_recorder;
bool on_continuous_focusing;
int cached_focus_mode;
- media_format_h pkt_fmt;
camera_device_e device_type;
GList *cb_data_list;
#include <glib.h>
#include <dlog.h>
#include <gst/gst.h>
-#include <tbm_bufmgr.h>
-#include <tbm_surface_internal.h>
#include <Evas.h>
#include <Ecore.h>
#ifdef HAVE_WAYLAND
LOGW("camera handle %p", handle);
- if (handle->pkt_fmt) {
- media_format_unref(handle->pkt_fmt);
- handle->pkt_fmt = NULL;
- }
-
ret = mm_camcorder_destroy(handle->mm_handle);
if (ret == MM_ERROR_NONE) {
_camera_remove_cb_message(handle);
Description: @PACKAGE_DESCRIPTION@
Version: @VERSION@
Requires: @PC_REQUIRED@
-Libs: -L${libdir} @PC_LDFLAGS@
Cflags: -I${includedir}
#include <glib.h>
#include <stdio.h>
#include <tbm_bufmgr.h>
-#include "legacy_camera_internal.h"
-#include <mm_camcorder.h>
+
/**
* @brief Enumeration for the muse camera apis.
void *internal_buffer;
} muse_camera_export_data;
-typedef struct {
- camera_h camera_handle;
- tbm_bufmgr bufmgr;
- GList *data_list;
- GMutex list_lock;
- GMutex preview_cb_lock;
- GCond preview_cb_cond;
-#ifdef HAVE_WAYLAND
- MMCamWaylandInfo wl_info;
-#endif /* HAVE_WAYLAND */
-} muse_camera_handle_s;
-
/**
* @brief The structure type for muse camera errors.
--- /dev/null
+/*
+* Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#ifndef __MUSE_CAMERA_INTERNAL_H__
+#define __MUSE_CAMERA_INTERNAL_H__
+
+#ifdef _cplusplus
+extern "C" {
+#endif
+
+/**
+ * @file muse_camera_internal.h
+ * @brief This file contains the muse camera internal API for framework, related structures and enumerations.
+ */
+
+#include <muse_camera.h>
+#include <legacy_camera_internal.h>
+
+typedef struct {
+ camera_h camera_handle;
+ tbm_bufmgr bufmgr;
+ GList *data_list;
+ GMutex list_lock;
+ GMutex preview_cb_lock;
+ GCond preview_cb_cond;
+#ifdef HAVE_WAYLAND
+ MMCamWaylandInfo wl_info;
+#endif /* HAVE_WAYLAND */
+} muse_camera_handle_s;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MUSE_CAMERA_INTERNAL_H__ */
#include <stdio.h>
#include <dlog.h>
#include "muse_camera_msg.h"
-#include "muse_camera.h"
+#include "muse_camera_internal.h"
#include <muse_core.h>
#include <muse_core_ipc.h>
#include <mm_types.h>
#ifdef HAVE_WAYLAND
MMCamWaylandInfo *wl_info = NULL;
#endif /* HAVE_WAYLAND */
- camera_display_type_e type = CAMERA_DISPLAY_TYPE_OVERLAY;
+ camera_display_type_e type = CAMERA_DISPLAY_TYPE_NONE;
camera_h camera = NULL;;
muse_camera = (muse_camera_handle_s *)muse_core_ipc_get_handle(module);
{
int ret = CAMERA_ERROR_NONE;
camera_device_e device_type = CAMERA_DEVICE_CAMERA0;
- muse_camera_handle_s *muse_camera = NULL;
camera_flash_state_e get_flash_state = CAMERA_FLASH_STATE_NOT_USED;
muse_camera_api_e api = MUSE_CAMERA_API_GET_FLASH_STATE;
muse_camera_api_class_e class = MUSE_CAMERA_API_CLASS_IMMEDIATE;
muse_camera_msg_get(device_type, muse_core_client_get_msg(module));
if (device_type == CAMERA_DEVICE_CAMERA0)
- muse_core_client_get_value(module, "flash_state_camera0", &get_flash_state);
+ muse_core_client_get_value(module, "flash_state_camera0", (int *)&get_flash_state);
else
- muse_core_client_get_value(module, "flash_state_camera1", &get_flash_state);
+ muse_core_client_get_value(module, "flash_state_camera1", (int *)&get_flash_state);
LOGD("fash state : %d", get_flash_state);
Name: mmsvc-camera
Summary: A Camera module for muse server
-Version: 0.2.28
+Version: 0.2.29
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(mused)
BuildRequires: pkgconfig(mm-camcorder)
BuildRequires: pkgconfig(capi-base-common)
-BuildRequires: pkgconfig(capi-media-tool)
%if %{with x}
BuildRequires: pkgconfig(ecore-x)
%endif
Summary: A Camera module for muse server (Development)
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig(libtbm)
-Requires: pkgconfig(capi-media-tool)
%description devel