platform/adaptation/emulator/gst-plugins-emulator.git
10 years agoDoes open and mmap operation once per a process. 75/12575/1
Kitae Kim [Tue, 19 Nov 2013 06:23:02 +0000 (15:23 +0900)]
Does open and mmap operation once per a process.

Change-Id: I4fb1b95d39dad4b0488f662c6f8df3167891a737
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoFix a device memory release bugs. 42/12242/3
SeokYeon Hwang [Wed, 13 Nov 2013 02:57:24 +0000 (11:57 +0900)]
Fix a device memory release bugs.

Change-Id: I33d3b17f6f4aea88ed6e8fcd347f24252988c4e3
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agoRemoved compile warnings. 17/12017/4
Kitae Kim [Mon, 11 Nov 2013 06:34:59 +0000 (15:34 +0900)]
Removed compile warnings.

Modified deprecated g_mutex function and removed unused variables.

Change-Id: Ie3b63e8d66ea90fcd313709b60729ec8107a54ef
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoModified spec file to fix rpm build error. 03/12003/2
Kitae Kim [Mon, 11 Nov 2013 03:24:44 +0000 (12:24 +0900)]
Modified spec file to fix rpm build error.

Change Group, License, Description and etc. depending on packaging guideline.

Change-Id: Id642e2b22a475c9eb6d4a6ff3b6aabba9df708e1
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoCode clean-up. 71/12071/2
SeokYeon Hwang [Tue, 12 Nov 2013 10:37:44 +0000 (19:37 +0900)]
Code clean-up.

Remove a unused command.
Remove redundant codes.

Change-Id: I05b5ee5a19acce03f92b87ecb230929bc6b482f6
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agoEnhancement logic about using direct buffer. 60/12060/1
SeokYeon Hwang [Tue, 12 Nov 2013 08:08:05 +0000 (17:08 +0900)]
Enhancement logic about using direct buffer.

Fix some bugs related with device_fd.
Use a device buffer wisely.

Change-Id: Ie8c858348303fa917b856a3212f0407eaca5677d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agoPackage version update to 0.2.0 58/11858/1
SeokYeon Hwang [Wed, 6 Nov 2013 07:44:38 +0000 (16:44 +0900)]
Package version update to 0.2.0

Minor version update due to code change.

Change-Id: I5dc503350151ce17ccd7ddf085e013957b7b72f0
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agoChange major ioctl command. 57/11857/1
SeokYeon Hwang [Wed, 6 Nov 2013 07:39:44 +0000 (16:39 +0900)]
Change major ioctl command.

Memory block is chosen by device driver depending on buffer size.
Reduce number of ioctl commands.
Use a device memory as a client buffer by default.
Source clean-up.

Change-Id: Id5201c001a173dd5cb6461a48647df412cd55bb1
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agoChanged a way to use mmap system call. 56/11856/1
SeokYeon Hwang [Tue, 5 Nov 2013 07:41:35 +0000 (16:41 +0900)]
Changed a way to use mmap system call.

It has to be called once per a process. When emulator does multi decoding or encoding task in a process,
a virtual memory from mmap has to be the same for each thread.

Fix the bug previous change.

Change-Id: I5d8af40cbc0b49db7905d8f56f019caf65f5f5b7
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agorollback the previous way because of webkit. 55/11855/1
Kitae Kim [Mon, 4 Nov 2013 15:09:51 +0000 (00:09 +0900)]
rollback the previous way because of webkit.
It tries to open CodecContext twice when paused streaming video play.

Change-Id: Ibc6faaef0c0b814886f14e04bc1dc9b256cf2d6e
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoChanged a way to use mmap system call. 54/11854/1
Kitae Kim [Mon, 4 Nov 2013 12:02:28 +0000 (21:02 +0900)]
Changed a way to use mmap system call.

It has to be called once per a process. When emulator does multi decoding or encoding task in a process,
a virtual memory from mmap has to be the same for each thread.

Change-Id: I0eb1c8581dbc958b1fa6bfc4fb4a09bd99f7f102
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoChanged a way to query codec element. 27/11827/1
Kitae Kim [Thu, 24 Oct 2013 16:40:12 +0000 (01:40 +0900)]
Changed a way to query codec element.

The query routine that copies some data from device is called when each element is used.
However, the codec information is static data and it does not
need to copy data from device everytime. So, the data is cached in the driver and
this module gets them from driver, not device.

Change-Id: I31ee17b508ed859297bfa25b09171858fdc37329
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoadded flush_buffer routine in decoder. 26/11826/1
Kitae Kim [Fri, 18 Oct 2013 02:51:26 +0000 (11:51 +0900)]
added flush_buffer routine in decoder.

As flushing buffer while decoding video, it makes internal buffers of avcodec flush.
If it is not used properly, it might cause an error during seeking operation.

Change-Id: I967e566527bc5d18c88b91f0cfcc0e58cc1e120d
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoremove compile warnings. 25/11825/1
Kitae Kim [Wed, 6 Nov 2013 01:59:21 +0000 (10:59 +0900)]
remove compile warnings.

Change-Id: Ibaac72e1323d4fe9d5af62b414130ed74fe87bca
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoMerge branch 'sdk-develop' into tizen
Yeongkyoon Lee [Thu, 26 Sep 2013 07:18:11 +0000 (16:18 +0900)]
Merge branch 'sdk-develop' into tizen

10 years agochanged rank of each element from NONE to PRIMARY.
Kitae Kim [Tue, 24 Sep 2013 12:25:34 +0000 (21:25 +0900)]
changed rank of each element from NONE to PRIMARY.

Change-Id: I6f3e1861a17e6c4fa29c32c1550c142ff2eb6d4b
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agomodified changes and spec files.
Kitae Kim [Mon, 23 Sep 2013 11:29:50 +0000 (20:29 +0900)]
modified changes and spec files.

Change-Id: I368eec46571dec77c75b15d38dae07de1a01ea21
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agosource clean-up and read the result of decoding audio.
Kitae Kim [Mon, 16 Sep 2013 06:08:00 +0000 (15:08 +0900)]
source clean-up and read the result of decoding audio.

Those sample_rate, channels and etc. values are required to
negotiate with caps.

Change-Id: I21780bf4c9303f239b48ea8de6b465f0d48f2013
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoChanged a way to use device memory effectively.
Kitae Kim [Wed, 11 Sep 2013 12:30:57 +0000 (21:30 +0900)]
Changed a way to use device memory effectively.

Divide device memory into small, medium and large size of buffer
to use the memory effectively when decoding many contexts.

In case of meta data such as width, height, framerate and etc,
each context uses 256byte memory region and utilizes the large size of memory
when copying video and audio buffer.

Change-Id: I37e111ec1540694d32380906132d79cd90a658ef
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoInitial empty repository master
Sehong Na [Thu, 12 Sep 2013 05:46:27 +0000 (22:46 -0700)]
Initial empty repository

10 years agomodified the method of memory usage.
Kitae Kim [Mon, 2 Sep 2013 01:59:32 +0000 (10:59 +0900)]
modified the method of memory usage.

Separate the memory to use effectively from several regions
when processing mutli contexts.

Change-Id: I7f3033471fe78b01b9aac3ce068d6b0352ac4015
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agofixed sync problem when using multi contexts.
Kitae Kim [Thu, 22 Aug 2013 05:43:16 +0000 (14:43 +0900)]
fixed sync problem when using multi contexts.

When storing output of decoding video into device memory to reduce the overhead of memory copy,
device memory pointer could be wrong because the pointer only considered video context.

Change-Id: I2206bedef8bddfcdbddd8619aabc30f06481b585
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agofixed prevent issues.
Kitae Kim [Wed, 21 Aug 2013 06:05:45 +0000 (15:05 +0900)]
fixed prevent issues.

Change-Id: I28999bbda032b74f620a5845d10d4097c5d3d709
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agofixed prevent issues.
Kitae Kim [Fri, 5 Jul 2013 11:41:33 +0000 (20:41 +0900)]
fixed prevent issues.

Change-Id: Ic7dd6f671ec2da374545eed61c3915f5221b9247
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoupdate COPYING file.
Kitae Kim [Tue, 2 Jul 2013 00:15:15 +0000 (09:15 +0900)]
update COPYING file.

Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
Change-Id: I00bcf0d0a5372f12be6ff61eacba665969438c71

10 years agochange a name of debug category and H.263 decoder caps.
Kitae Kim [Tue, 2 Jul 2013 00:12:47 +0000 (09:12 +0900)]
change a name of debug category and H.263 decoder caps.

Change-Id: I0e92ccd4c51993e8674187185a7a09538575eb79
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoremove unnecessary files which are generated while building this module.
Kitae Kim [Tue, 2 Jul 2013 00:10:34 +0000 (09:10 +0900)]
remove unnecessary files which are generated while building this module.

Change-Id: I10b3540c7d65e3e612c3e200b1e79e1055f17466
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agofixed prevent issues.
Kitae Kim [Thu, 27 Jun 2013 15:31:26 +0000 (00:31 +0900)]
fixed prevent issues.

Change-Id: I71151ae0837d074b21dfb6389a305fb9b27e54c3
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agochanged each element name and source clean-up.
Kitae Kim [Fri, 21 Jun 2013 13:07:32 +0000 (22:07 +0900)]
changed each element name and source clean-up.

Change-Id: I3ab90aa30a99e80e373cdac96a01a3ea2cfa3e3c
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoChanged a way to use device memory.
Kitae Kim [Fri, 21 Jun 2013 12:11:41 +0000 (21:11 +0900)]
Changed a way to use device memory.
- reduced memcpy overhead on guest to improve performance.
- use device memory as output buffer without copying data during decoding codec.

Change-Id: Ib9a778c79a8eb32378ab22c6324702f801b44a0c
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoimprove decoding performance as 10 times than before.
Kitae Kim [Wed, 8 May 2013 14:12:10 +0000 (23:12 +0900)]
improve decoding performance as 10 times than before.
 - reduce context switching between user and kernel.
 - use device memory region directly as a output buffer instead of memcpy.

10 years agoimplemented two ways to copy data from guest and host
Kitae Kim [Tue, 12 Mar 2013 02:12:37 +0000 (11:12 +0900)]
implemented two ways to copy data from guest and host

10 years agoimplemented decoding audio part, but needs to improve.
Kitae Kim [Wed, 30 Jan 2013 12:30:07 +0000 (21:30 +0900)]
implemented decoding audio part, but needs to improve.

10 years agoinit gst-plugins-emul
Kitae Kim [Wed, 21 Nov 2012 08:57:13 +0000 (17:57 +0900)]
init gst-plugins-emul

11 years agoInitial empty repository
jinkun.jang [Wed, 24 Apr 2013 08:06:51 +0000 (17:06 +0900)]
Initial empty repository