Hi there,
I'm hoping someone (David? :-) ) can confirm the use of the states
returned from the schrodecoder functions. The different states are
defined in schrodecoder.h as follows:
enum {
SCHRO_DECODER_OK,
SCHRO_DECODER_ERROR,
SCHRO_DECODER_EOS,
SCHRO_DECODER_FIRST_ACCESS_UNIT,
SCHRO_DECODER_NEED_BITS,
SCHRO_DECODER_NEED_FRAME,
SCHRO_DECODER_WAIT,
SCHRO_DECODER_STALLED
};
Some of these I think I understand, and some I don't understand at
all. here goes:
SCHRO_DECODER_OK - not sure what an application is supposed to do if
it receives this state
SCHRO_DECODER_ERROR - something was wrong with the data the decoder
was processing. Is there some way to determine if the error is
recoverable? Or do we just give up at this point?
SCHRO_DECODER_EOS - the decoder has parsed an end of stream header, so
there's nothing left to decode.
SCHRO_DECODER_FIRST_ACCESS_UNIT - I think the decoder returns this
after it parses it's first sequence header.
SCHRO_DECODER_NEED_BITS - I think this means that the decoder wants
more bits as input and you give it bits using the schro_decoder_push()
function
SCHRO_DECODER_NEED_FRAME - Looking at testsuite/decode.c, I think this
means that the decoder needs the app to create a new SchroFrame object
and pass it in using schro_decoder_add_output_picture().
SCHRO_DECODER_WAIT - not sure what to do if I get this state.
SCHRO_DECODER_STALLED - not sure what to do here either.
thank you for any info you can provide. I'll keep working away based
on what I think I understand....
--
Bill McCormick
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Schrodinger-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/schrodinger-devel