[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-datatype-cvs
Subject: [Datatype-cvs] common/vidrend/pub vidrendf.h,1.25.2.1,1.25.2.2
From: jgordon () helixcommunity ! org
Date: 2012-01-20 0:35:38
[Download RAW message or body]
Update of /cvsroot/datatype/common/vidrend/pub
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv2491/pub
Modified Files:
Tag: PRODUCER_14_0_RN
vidrendf.h
Log Message:
Fix a couple of problems with untimed rendering not being untimed.
Added producer logging for dropped frames.
Index: vidrendf.h
===================================================================
RCS file: /cvsroot/datatype/common/vidrend/pub/vidrendf.h,v
retrieving revision 1.25.2.1
retrieving revision 1.25.2.2
diff -u -d -r1.25.2.1 -r1.25.2.2
--- vidrendf.h 7 Oct 2011 16:49:45 -0000 1.25.2.1
+++ vidrendf.h 20 Jan 2012 00:35:36 -0000 1.25.2.2
@@ -111,10 +111,13 @@
CMediaPacket* Dequeue(void);
virtual HXBOOL DecodeFrame(UINT32 ulMaxExtraFrames = MAX_VIDREND_DECODE_SPIN);
HXBOOL ReturnDecodedPacket(CMediaPacket* pDecodedPacket);
- HXBOOL CanReturnDecodedPacket(UINT32 ulRequestedCount = 1)
+ HXBOOL CanReturnDecodedPacket(UINT32 ulRequestedCount = 1,
+ HXBOOL bUseReserve = FALSE)
{
- UINT32 ulFreeCount = m_pOutputQueue->Size() - m_pOutputQueue->Count();
- return (ulFreeCount >= ulRequestedCount) ? TRUE : FALSE;
+ UINT32 ulFreeCount = bUseReserve ? m_pOutputQueue->Size() :
+ m_pOutputQueue->MaxCount();
+ ulFreeCount -= m_pOutputQueue->Count();
+ return (HXBOOL)(ulFreeCount >= ulRequestedCount);
}
void OnRawPacketsEnded(void);
_______________________________________________
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