[Common-dev] CR-Client: move timestamp smoothing code in vidrend to common/util

[Common-dev] CR-Client: move timestamp smoothing code in vidrend to common/util

Eric Hyche ehyche at real.com
Wed Aug 4 14:47:06 PDT 2004



Synopsis: Move the timestamp smoothing code in the base video renderer
           to a separate class in common/util.

Overview: The base video renderer uses code to smooth out timesyncs.
           There are several good reasons for moving this code to
           a separate class and putting the class in some common
           module: a) other datatype renderers can then use it; b)
           it's easier to unit test; and c) makes it clearer when
           we modify this code for TrickPlay purposes. Right now, I've
           added this to common/util, although it arguably could go
           into datatype/common/util as well. However, I could see
           some applications outside of datatypes that might be
           able to use this as well.

           This diff creates a class with this code and places
           it in common/util. It also adds a unittest for this
           class using the existing unittest framework (which ROCKS,
           by the way - this is the first time I've added something
           to it, and it's very cool).

Files Added:
common/util/smoothtime.cpp
common/util/pub/smoothtime.h
common/util/test/tsmoothtime.cpp
common/util/test/tsmoothtime.h
common/util/test/tsmoothtime.in
common/util/test/tsmoothtime.umake
common/util/test/tsmoothtime_main.cpp

Files Modified:
common/util/Umakefil
common/util/test/Umakefil

Image Size and Heap Use impact: none, just moving stuff around

Platforms and Profiles Affected: all

Distribution Libraries affected: none

Distribution library impact and planned action: n/a

Platforms and Profiles Build Verified: win32

Platforms and Profiles Functionality verified: win32

Branch: HEAD only

QA Instructions: none


Index: Umakefil
===================================================================
RCS file: /cvsroot/common/util/Umakefil,v
retrieving revision 1.26
diff -u -w -u -w -r1.26 Umakefil
--- Umakefil    29 Jul 2004 00:26:06 -0000      1.26
+++ Umakefil    4 Aug 2004 21:45:22 -0000
@@ -129,7 +129,8 @@
                     "hxcbobj.cpp",
                     "hxsrcbufstats.cpp",
                     "hxval2util.cpp",
-                   "clone_values.cpp")
+                   "clone_values.cpp",
+                   "smoothtime.cpp")


  project.AddSources("tconverter/fxpoint/tconverter_fxp.cpp")
Index: test/Umakefil
===================================================================
RCS file: /cvsroot/common/util/test/Umakefil,v
retrieving revision 1.5
diff -u -w -u -w -r1.5 Umakefil
--- test/Umakefil       2 Aug 2004 22:09:38 -0000       1.5
+++ test/Umakefil       4 Aug 2004 21:45:22 -0000
@@ -50,4 +50,4 @@
  #

  UmakefileVersion(2,1)
-MultiTargetMake('tconvert', 'tconvertperf', 'thxurlrep.umake')
+MultiTargetMake('tconvert', 'tconvertperf', 'thxurlrep.umake', 
'tsmoothtime.umake')






======================================
M. Eric Hyche (ehyche at real.com)
Core Technologies
RealNetworks, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smoothtime.zip
Type: application/zip
Size: 12854 bytes
Desc: not available
Url : http://lists.helixcommunity.org/pipermail/common-dev/attachments/20040804/f80a28a2/smoothtime-0001.zip


More information about the Common-dev mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.