diff options
author | Sejun Park <sejun79.park@samsung.com> | 2018-08-17 18:26:31 +0900 |
---|---|---|
committer | Sejun Park <sejun79.park@samsung.com> | 2018-08-17 18:26:31 +0900 |
commit | 48b10033671022f1b06376710ac4d986a340d779 (patch) | |
tree | b75fbefb36ac53feeab7a580634ab2c40317c71e /src | |
parent | a32a1e03387c57ce6c06ae9ca4fd976a17c9719e (diff) | |
download | mm-hal-interface-48b10033671022f1b06376710ac4d986a340d779.tar.gz mm-hal-interface-48b10033671022f1b06376710ac4d986a340d779.tar.bz2 mm-hal-interface-48b10033671022f1b06376710ac4d986a340d779.zip |
Add codec hal testcasessubmit/tizen/20180817.093636accepted/tizen/unified/20180820.060042
Change-Id: Id51b346f07a0a72de402c4541447b1370e82a43b
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--] | src/Makefile.am | 5 | ||||
-rw-r--r-- | src/codec/Makefile.am | 6 | ||||
-rw-r--r-- | src/codec/codec_hal_interface.c | 38 |
3 files changed, 47 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 4c6082d..df53b82 100644..100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,5 @@ SUBDIRS = camera \ - radio \ - audio + radio \ + audio \ + codec diff --git a/src/codec/Makefile.am b/src/codec/Makefile.am new file mode 100644 index 0000000..09bd3ea --- /dev/null +++ b/src/codec/Makefile.am @@ -0,0 +1,6 @@ +lib_LTLIBRARIES = libcodec_hal_interface.la + +libcodec_hal_interface_la_SOURCES = codec_hal_interface.c +libcodec_hal_interface_la_CFLAGS = $(GLIB_CFLAGS) $(DLOG_CFLAGS) -I$(srcdir)/../../include/codec +libcodec_hal_interface_la_LIBADD = $(GLIB_LIBS) $(DLOG_LIBS) -ldl + diff --git a/src/codec/codec_hal_interface.c b/src/codec/codec_hal_interface.c new file mode 100644 index 0000000..a247c73 --- /dev/null +++ b/src/codec/codec_hal_interface.c @@ -0,0 +1,38 @@ +/* + * codec_hal_interface.c + * + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: Sejun Park <sejun79.park@samsung.com> + * + * 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. + * + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <errno.h> +#include <dlfcn.h> +#include <glib.h> +#include <dlog.h> +#include "codec_hal_interface.h" + +#ifdef LOG_TAG +#undef LOG_TAG +#endif /* LOG_TAG */ +#define LOG_TAG "CODEC_HAL_INTF" + +#define LIB_TIZEN_CODEC "libtizen-codec.so" + |