Playback time used for screen capture(with scene filter)
Posted: 17 May 2015 16:08
Hello all,
I am implementing a feature in scene filter for my study purpose. I want to capture the screen shot at a particular X second in a minute.
I have implemented user input in GUI to get that X second(time at which the screenshot to be captured).
"This X second has to be checked with the playback time."
I want help here,how to import the playback time function in "scene.c" which header file and function should i include.
currently i tried this below implementation which is working:
if(strm_sec == (double)(p_sys->i_time1)) //p_sys->i_time1 : user input in GUI to get that X second.
//strm_sec is a local counter which convert the frame count to sec which is not precious as playback time.
{
SnapshotRatio( p_filter, p_pic );
p_sys->i_frames++;
return p_pic;
}
when i googled for this, i came across hackerguide/variables. They gave a example for volume "float volumeStep = var_InheritFloat( p_this, "volume-step" );"
I want to import the playback function in scene filter module.
If something is not clear please let me know.
please help me.
Thanking you....
I am implementing a feature in scene filter for my study purpose. I want to capture the screen shot at a particular X second in a minute.
I have implemented user input in GUI to get that X second(time at which the screenshot to be captured).
"This X second has to be checked with the playback time."
I want help here,how to import the playback time function in "scene.c" which header file and function should i include.
currently i tried this below implementation which is working:
if(strm_sec == (double)(p_sys->i_time1)) //p_sys->i_time1 : user input in GUI to get that X second.
//strm_sec is a local counter which convert the frame count to sec which is not precious as playback time.
{
SnapshotRatio( p_filter, p_pic );
p_sys->i_frames++;
return p_pic;
}
when i googled for this, i came across hackerguide/variables. They gave a example for volume "float volumeStep = var_InheritFloat( p_this, "volume-step" );"
I want to import the playback function in scene filter module.
If something is not clear please let me know.
please help me.
Thanking you....