[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-common-cvs
Subject: [Common-cvs] CR: add the function reverse converter
From: Henry Xing <hxing () realnetworks ! com>
Date: 2012-08-01 16:01:52
Message-ID: 090F0815AD894E4AA4A689B56FFF2AB40278531A00 () SEAMBX ! corp ! real ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Modified by: hxing@real.com<mailto:hxing@real.com>
Bug:
Synopsis: add the function ConvertReverse() to convert the decode time to=
samples
Overview:
In hls module, for aac fileformat, the decode time was changed for seek ac=
tion, if we calculate the rtp time using ratio, the result is not accurate,=
audio output faster than normal, need the TSConverter to convert from deco=
de time to sample, then convert to rtptime.
So add the reverse convert function.
Files Modified:
common/util/pub/tsconvrt.h
Platforms and Profiles Affected:
Platform: 310
Profile: helix-client-android-full
Copyright assignment: I am a RealNetworks employee or contractor
Best Regards
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple \
style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Modified by: <a \
href="mailto:hxing@real.com" \
title="blocked::mailto:hxing@real.com">hxing@real.com</a></span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> Bug:</span><span \
lang=EN-US> </span><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p \
class=MsoNormal style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Synopsis: add the \
function ConvertReverse() to convert the decode time to \
samples<o:p></o:p></span></p><p class=MsoNormal style='layout-grid-mode:char'><span \
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Overview: </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='text-indent:15.75pt;layout-grid-mode:char'><span lang=EN-US> In hls \
module, for aac fileformat, the decode time was changed for seek action, if we \
calculate the rtp time using ratio, the result is not accurate, audio output faster \
than normal, need the TSConverter to convert from decode time to sample, then convert \
to rtptime.<o:p></o:p></span></p><p class=MsoNormal \
style='text-indent:15.75pt;layout-grid-mode:char'><span lang=EN-US>So add the reverse \
convert function.<o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Files Modified: \
</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='text-indent:4.5pt;layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>common/util/pub/tsconvrt.h<o:p></o:p></span></p><p \
class=MsoNormal style='text-indent:4.5pt;layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Platforms and Profiles \
Affected:</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Platform: 310 </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Profile: \
helix-client-android-full</span><span lang=EN-US><o:p></o:p></span></p><p \
class=MsoNormal style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Copyright assignment: I am a \
RealNetworks employee or contractor</span><span lang=EN-US><o:p></o:p></span></p><p \
class=MsoNormal style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='layout-grid-mode:char'><span lang=EN-US \
style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Best Regards</span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p></div></body></html>
["dif_tsconvert.h.txt" (text/plain)]
Index: tsconvrt.h
===================================================================
RCS file: /cvsroot/common/util/pub/tsconvrt.h,v
retrieving revision 1.10
diff -u -w -r1.10 tsconvrt.h
--- tsconvrt.h 6 Jul 2007 20:39:23 -0000 1.10
+++ tsconvrt.h 1 Aug 2012 15:34:43 -0000
@@ -128,6 +128,10 @@
{
return m_Converter.rtp2hxa(ulInTicks);
}
+ ULONG32 ConvertReverse(ULONG32 ulHxaTS)
+ {
+ return m_Converter.hxa2rtp(ulHxaTS);
+ }
ULONG32 ConvertVector(ULONG32 ulInTicks)
{
_______________________________________________
Common-cvs mailing list
Common-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/common-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic