Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Alessandro Angeli [MVP::DigitalMedia]" <nob...@nowhere.in.the.net>
Date: Mon, 11 Apr 2005 16:24:08 +0200
Local: Mon, Apr 11 2005 10:24 am
Subject: Re: DirectShow MJPEG Compressor Filter
Artem Omelianchuk wrote: That's the least of your worries since 'AVI1' is the APP0 > I also think so,but it's not. When i try to open file > it's fail. Photoshop writes:"Can't open because SOFn,DQT > or DHT JPEGs markers is missing before a JPEG SOS marker". > I compare this file with real jpeg and notice that marker which replaces the APP0 'JFIF' and APPn markers are optional. The big difference is that the DHT marker that contains the Some reading on the subject: - JPEG standard (markers are listed in section B.1.1.3): http://www.w3.org/Graphics/JPEG/itu-t81.pdf - JFIF standard (JFIF marker at page 5): http://www.w3.org/Graphics/JPEG/jfif3.pdf - JFIF, old AVI1 and new AVI1 markers: http://sourceforge.net/mailarchive/message.php?msg_id=7062286 - ODML standard (MJPEG DIB described at page 26): http://www.nomadelectronics.com/VidCap/capture using So, in the end, you need to find the 0xFF,0xDA SOS marker in Let's assume pb points to the sample data and cb is the int k = 0; while(pb[k] != (char)0xFF || pb[k+1] != If you want, you can also replace the 'AVI1' APP0 with a -- // Alessandro Angeli You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||