<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Il 27/10/2010 12:49, Francisco Feijoo ha scritto:
<blockquote
cite="mid:AANLkTim2OsZzPFc6ZBmyN9yG_p5k-ZxE7sdN5Qnraxge@mail.gmail.com"
type="cite">
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">Cristiano,</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<font class="Apple-style-span" face="arial, helvetica, sans-serif">I
have added the restart interval to the header as you showed
before. The DRI marker is:</font>
<div>
<font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">FF,DD,00,04,00,28 so the restartInterval = 40<br>
</font>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">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.</font>
<div>
<font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">I think I have to return a different type()
value from my TestJPEGVideoSource (<span
class="Apple-style-span" style="white-space: pre-wrap;">RFC
2435 </span><span class="Apple-style-span"
style="white-space: pre-wrap;">3.1.3.)</span>. Normally
I only return type=1. </font></div>
<meta charset="utf-8">
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><span class="Apple-style-span"
style="white-space: pre-wrap;"></span></font></div>
<meta charset="utf-8">
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">How could I know which is the type value of
the image?<br>
</font>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.32">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Helvetica}
</style><br>
</div>
</div>
</div>
</blockquote>
<br>
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."<br>
<br>
I used to return 0, w/o DRI markers, and now i return 64 if DRI are
present. My code is<br>
<br>
if (fRestartInterval == 0) return 0;<br>
else return 64;<br>
<br>
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).<br>
<br>
Also, please don't top-post :)<br>
<br>
Cristiano.<br>
<br>
<div class="moz-signature">-- <br>
Belloni Cristiano<br>
Imavis Srl.<br>
<a href="http://www.imavis.com">www.imavis.com</a><br>
<a href="mailto://belloni@imavis.com">belloni@imavis.com</a><br>
</div>
</body>
</html>