1. 25 Apr, 2013 1 commit
  2. 23 Apr, 2013 1 commit
  3. 18 Feb, 2013 1 commit
    • Owen W. Taylor's avatar
      Add gdk_frame_clock_begin/end_updating() · 1db87c89
      Owen W. Taylor authored
      Add an API to start or stop continually updating the frame clock.
      This is a slight convenience for applcations and avoids the problem
      of getting one more frame run after an animation stops, but the
      primary motivation for this is because it looks like we might have
      to use timeBeginPeriod()/timeEndPeriod() on Windows to get reasonably
      accurate timing, and for that we'll need to know if there is an
      animation running.
  4. 14 Feb, 2013 4 commits
    • Owen W. Taylor's avatar
      GdkFrameClock: Clean up the public API · bb11195e
      Owen W. Taylor authored
      * remove gdk_frame_clock_get_frame_time_val(); a convenience
        function that would rarely be used.
      * remove gdk_frame_clock_get_requested() and
        ::frame-requested signal; while we might want to eventually
         be able to track the requested phases for a clock, we don't
        have a current use case.
      * Make gdk_frame_clock_freeze/thaw() private: they are only
        used within GTK+ and have complex semantics.
      * Remove gdk_frame_clock_get_last_complete(). Another convenience
        function that I don't have a current use case for.
      * Rename:
        gdk_frame_clock_get_start() => gdk_frame_clock_get_history_start()
        gdk_frame_clocK_get_current_frame_timings() => gdk_frame_clock_get_timings()
    • Owen W. Taylor's avatar
      Merge GdkFrameHistory into GdkFrameClock · 515e5f74
      Owen W. Taylor authored
      Now that GdkFrameClock is a  class, not interface, there's no real advantage
      to splitting the frame history into an aggregate object, so directly
      merge it into GdkFrameClock.
    • Owen W. Taylor's avatar
      video-timer: add simple example of PLL-style clock adjustment · 40fa28de
      Owen W. Taylor authored
      The first version of the video-timer simply played back the video
      according to the wall clock, and showed each frame at the neareste
      presentatin time. But an alternative strategy for playing back
      video is that if the frame-rate is an integer-divisor of the
      display refresh rate, or very close to that, is to change the playback
      speed to complete avoid frame drops and changes in latency.
      (This would require resampling audio if present.)
      Demonstrate this technique by adding a --pll option to the
      video-timer demo.
    • Owen W. Taylor's avatar
      video-timer: add a test case for display at a constant frame rate · e77a96a0
      Owen W. Taylor authored
      Add a test case that simulates the timing operaton that goes on
      when showing a constant frame rate stream like a video - each
      frame is shown at the VBlank interval that is closest to when it
      would ideally be timed.