[Bug 740557] New: Feature: video_test_src_ball motion based on system clock
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sat Nov 22 12:55:04 PST 2014
https://bugzilla.gnome.org/show_bug.cgi?id=740557
GStreamer | gst-plugins-base | git
Summary: Feature: video_test_src_ball motion based on system
clock
Classification: Platform
Product: GStreamer
Version: git
OS/Version: All
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: carl at personnelware.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
video_test_src_ball moves around in a flowy pattern that is nice to look at.
(personally I don't want to get rid of that, see below.)
in a nutshell:
gettimeofday (&tv, NULL);
rad = 1 * G_PI * tv.tv_usec/1000000 ;
x = w/2 + sin(rad) * (radius);
The ball revolves around the center of the frame, one revolution per second, or
1/2 a revolution then jumps back to the start as the second increases.
Adding clock seconds:
clockoverlay time-format="%S" font-desc="Sans 240"
makes a very nice way of testing sync that I need for a gstreamer app I am
working on.
I stepped on the original ball behaviour code because much of the function was
unchanged and I didn't want to cut/paste big hunks of code, nor get tangled up
in how to abstract out the common code into it's own function. I would like
some guidance on how to address this, both what direction to go (ignore
previous behaviour, copy the common code, put the common code in a function
(where does that go?) add a parameter that defines what ball behaviour to
use...) or if someone else wants to just do it, that would be fine with me.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list