Il 27/10/2010 12:49, Francisco Feijoo ha scritto:
Cristiano,
I have added the restart interval to the header as you showed before.
The DRI marker is:
FF,DD,00,04,00,28 so the restartInterval = 40
I think I'm close to the solution but using VLC I can't see the image
correctly. If I use an image without restart interval markers then I
can see the image perfectly.
I think I have to return a different type() value from
my TestJPEGVideoSource (RFC 2435 3.1.3.). Normally I only return type=1.
How could I know which is the type value of the image?
Francisco, as RFC says, "Types 64-127 are the same as types 0-63, except
that restart markers are present in the JPEG data and a Restart Marker
header appears immediately following the main JPEG header."
I used to return 0, w/o DRI markers, and now i return 64 if DRI are
present. My code is
if (fRestartInterval == 0) return 0;
else return 64;
I don't know why you use 1, but in this case you could need to return 65
(64 is the same type of 0, but with DRI markers, and so on).
Also, please don't top-post :)
Cristiano.
--
Belloni Cristiano
Imavis Srl.
www.imavis.com <http://www.imavis.com>
bell...@imavis.com <mailto://bell...@imavis.com>
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel