A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows XP and video cards, drivers and similar
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

AVIStreamRead return data wrong

Thread Tools Display Modes
Old April 3rd 10, 05:13 PM posted to microsoft.public.windowsxp.video
external usenet poster
Posts: 1
Default AVIStreamRead return data wrong


I am using AVIStreamRead to read AVI video,
AVIStreamRead(gapavi[0], i, 1, frame, bsize, &nBytes, &nSamples)

but the data returned in frame is shifted 3 DWORDs. for example
the data returned in frame is:
00 00 00 00 30 30 64 63 00 60 09 00 86 79 87 80 ...

where 86 is the first pixel of the video. and I think 30 30 64 63 (00dc)
means video chunk
and 00 60 09 00 is the picture size (buffer size, 640x480, yuy2) first four
00 are last JUNK chunk data (note: the first chunk in movi LIST is a JUNK

So anyone know why AVIStreamRead read the data wrong? really appreciate your
thanks in advance.


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT +1. The time now is 01:52 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 PCbanter.
The comments are property of their posters.