[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-datatype-cvs
Subject:    [Datatype-cvs] common/vidrend vidrendf.cpp,1.32.2.8,1.32.2.8.4.1
From:       zlin () helixcommunity ! org
Date:       2011-03-30 9:56:16
Message-ID: 201103300956.p2U9u9Nc019004 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/datatype/common/vidrend
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv10373

Modified Files:
      Tag: hxclient_3_6_5_atlas
	vidrendf.cpp 
Log Message:
Synopsis: Customer want more detailed error notification, such which codec can not be \
supported, not just NO renderer.

Overview: So add some Android specific error type, and use IHXErrorMessages in 5 \
video format (wmv, rv, mp4, mpg, h263) to notify newly added error type \
HXR_ANDR_TOO_HIGH_RESOLUTION as user code. Let user code take priority in Android \
error sink for reporting to Android framework.

Files Modified:
player/kit/android/errorsink.cpp
common/include/hxresult.h
rm/video/renderer/rvxvdfmt.cpp
h263/renderer/h263vidfmt.cpp
mp4/video/renderer/mp4vdfmt.cpp
mpg/renderer/mpgvidfmt.cpp
wm/video/renderer/wmvformat.cpp
datatype/common/vidrend/vidrendf.cpp
datatype/common/vidrend/pub/vidrendf.h


Index: vidrendf.cpp
===================================================================
RCS file: /cvsroot/datatype/common/vidrend/vidrendf.cpp,v
retrieving revision 1.32.2.8
retrieving revision 1.32.2.8.4.1
diff -u -d -r1.32.2.8 -r1.32.2.8.4.1
--- vidrendf.cpp	3 Dec 2010 20:48:02 -0000	1.32.2.8
+++ vidrendf.cpp	30 Mar 2011 09:56:13 -0000	1.32.2.8.4.1
@@ -108,6 +108,9 @@
 #include "hxstrutl.h"
 #include "hxpacketflags.h"
 #include "pckunpck.h"
+#ifdef HELIX_PRODUCT_LENOVO_LEPHONE_TD
+#include "hxerror.h"
+#endif
 
 /****************************************************************************
  *  Debug
@@ -1000,3 +1003,21 @@
 {
     return m_LastError;
 }
+
+#ifdef HELIX_PRODUCT_LENOVO_LEPHONE_TD
+void
+CVideoFormat::CheckResolutionLimit(UINT32 width, UINT32 width_limit, UINT32 height, \
UINT32 height_limit) +{
+    if (width > width_limit || height > height_limit)
+    {
+        IUnknown* pContext = m_pVideoRenderer->GetContext();
+        IHXErrorMessages* pErrorMessages = NULL;
+        HX_RESULT ret = pContext->QueryInterface(IID_IHXErrorMessages, (void **) \
&pErrorMessages); +        if (SUCCEEDED(ret))
+        {
+            pErrorMessages->Report(HXLOG_ERR, HXR_UNSUPPORTED_VIDEO, \
HXR_FMT_TOO_HIGH_RESOLUTION, NULL, NULL); +        }
+        HX_RELEASE(pErrorMessages);
+    }
+}
+#endif


_______________________________________________
Datatype-cvs mailing list
Datatype-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/datatype-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic