Hi Keith

This is in reference to the previous mails which I had send it you asking
for the decoding time.

The problem was with the code [on the subtraction betwen the stop and start
time between the pictures] as you said. I have
removed the errror and I wanted to ensure, whether the following steps in
the below is the procedure to calculate the decoding time?

In the function "void decode_mpeg2", in the *CASE STATE_PICTURE*, I start a
timer (t1) and end the timer(t2) in the *CASE STATE_SLICE. *I calculate the
difference in both the timers [t2-t1 = diff] which I suppose is the decoding
time for picture1.

For picture 2, in the *CASE STATE_END,* I find the difference in the ending
time of picture2 along with the timer t1 and subtract it with the previous
difference [diff] to calculate the decoding time required for frame2.

All the time values are positive here.

This is how I am calculating the decoding times for all the frames in the
GOP and I  think it works efficiently for closed GOPs.

I am thankful to you for the replies you have given to me from time to time
which was quite useful.

If there any more doubts, I will keep you posted.

I request you to give me a feedback for the same.

With regards
KrishnaPrasad
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libmpeg2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel

Reply via email to