[Tizen-submit] 15333: Changes to Tizen:Mobile/osp-media

noreply at tizen.org noreply at tizen.org
Wed Oct 2 11:04:48 GMT 2013


Hi,
EonseokLee have made the following changes to osp-media in project Tizen:Mobile. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #15333

  submit:       Tizen:Mobile:build/osp-media(cleanup) -> Tizen:Mobile


Message:
Submitter: EonseokLee <eonseok.lee at samsung.com>
Comments: Fix the build error AVPixelFormat
Git project: platform/framework/native/media
Tag: submit/tizen/20131002.110456
Commit: b6b9e1a2a2aaea71bd60941a738e1fd73bd5a3b2 Fix the build error AVPixelFormat

State:   new        2013-10-02T11:03:21 tizenrobot
Comment: <no comment>
spec files:
-----------
--- osp-media.spec
+++ osp-media.spec
@@ -2,7 +2,7 @@
 Summary:    The Media library of OSP 
 Version:    1.2.2.0
 Release:    1
-VCS:        platform/framework/native/media#submit/tizen/20131002.094036-0-g2d7626aa0b13358ca4a077932db669c76896111d
+VCS:        platform/framework/native/media#submit/tizen/20131002.110456-0-gb6b9e1a2a2aaea71bd60941a738e1fd73bd5a3b2
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
 Source0:    %{name}-%{version}.tar.gz

other changes:
--------------

++++++ osp-media-1.2.2.0.tar.gz
--- src/FMedia_CameraUtil.cpp
+++ src/FMedia_CameraUtil.cpp
@@ -23,7 +23,6 @@
 
 #include <FBaseSysLog.h>
 #include "FMedia_CameraUtil.h"
-#include "FMedia_Ffmpeg.h"
 
 using namespace Tizen::Graphics;
 
@@ -958,52 +957,4 @@
 	return findFlag ? E_SUCCESS : E_UNSUPPORTED_TYPE;
 }
 
-// Convert from YUYV to YUV420P only.
-result
-_CameraUtil::ConvertColorScale(const Tizen::Base::ByteBuffer& srcBuf, Tizen::Base::ByteBuffer& dstBuf, const Tizen::Graphics::Dimension& dim)
-{
-	int  r = -1;
-	int width = dim.width;
-	int height = dim.height;
-	uint8_t *pDestBuf = null;
-	AVFrame picture;
-	AVFrame frame;
-	SwsContext *pSws = null;
-
-	frame.data[0] = (uint8_t *)srcBuf.GetPointer();
-	frame.data[1] = frame.data[0] + (width * height);
-	frame.data[2] = frame.data[1] + ((width * height)/2);
-	frame.data[3] = 0;
-	frame.linesize[0] = width;
-	frame.linesize[1] = width / 2;
-	frame.linesize[2] = width / 2;
-	frame.linesize[3] = 0;
-
-	pDestBuf = (uint8_t *)dstBuf.GetPointer();
-
-	picture.data[0] = (uint8_t*)pDestBuf;
-	picture.data[1] = pDestBuf + (width * height);
-	picture.data[2] = pDestBuf + ((width * height * 5)/ 4);
-	picture.data[3] = 0;
-
-	picture.linesize[0] = width;
-	picture.linesize[1] = width / 2;
-	picture.linesize[2] = width / 2;
-	picture.linesize[3] = 0;
-
-	pSws = sws_getCachedContext(pSws, width, height, PIX_FMT_YUYV422,
-				width, height, PIX_FMT_YUV420P, SWS_FAST_BILINEAR, NULL, NULL, NULL);
-	if (pSws == null)
-	{
-		SysLogException(NID_MEDIA, false, "[E_SYSTEM] A system error has been occurred.  Failed to get sws context.");
-		return E_SYSTEM;
-	}
-
-	r = sws_scale(pSws, frame.data, frame.linesize, 0, height, picture.data, picture.linesize);
-
-	SysLog(NID_MEDIA, "[E_SUCCESS] Converted buffer.");
-	return E_SUCCESS;
-
-}
-
 }}// Tizen::Media
--- src/FMedia_CameraUtil.h
+++ src/FMedia_CameraUtil.h
@@ -92,8 +92,6 @@
 	static result GetDisplayRotation(CameraDirection physicalDirection, Tizen::Graphics::_BufferInfoImpl::Orientation orientation, CameraRotation& displayRotation);
 	static result GetDisplayRotation(CameraDirection physicalDirection, CameraRotation physicalRotation, Tizen::Graphics::_BufferInfoImpl::Orientation orientation, CameraRotation& displayRotation);

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list