Incormporating frame advance not on I-frames...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I mentioned this a few weeks back and I've finally got around to having a go 
at incorporating it. My plan is to change the way the Pause button works so 
that pressing it whilst paused steps forward by a frame and stays paused 
(I've owned a real video that does this: pressing play exits pause).

Skiping between I-frames like this is easy to achieve by changing 
cDvbPlayer::Pause to:

void cDvbPlayer::Pause(void)
{
  if (playMode == pmPause || playMode == pmStill) {
     Goto(SkipFrames(1), true);
     }
  else {
...

This works fine, and is a partial solution but each step is ca. half a second. 
I was hoping to use something involving:

GetIndex(Current, Total, false); // Get current index _not_ snapped to I-frame
Goto(++Current);

but Goto snaps to I-frames so all I see is it jumping to an I-frame on the 
first step and then jumping to the same one on successive steps!

Is it possible to step between individual frames using cDvbPlayer or does this 
need doing at a lower level?

Cheers,

Laz


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux