Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurfac

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Exorsus (Exorsus_at_discussions.microsoft.com)
Date: 12/02/04


Date: Thu, 2 Dec 2004 02:15:09 -0800

I am loading data from RAW 24-bit file format (R8G8B8, you know) into my
unsigned char pointer and then i lock the surface and memcpy data into
lpSurface.....and, indeed it's not working -> it looks like interlaced image.
And the question is: what the hell is that?

"Exorsus" wrote:

> Thanks for your reply ->
> there is no problem with pitch and width, i have studied DX Help and there
> was explained lPitch and Width.....so that's not the problem....
> Aah, if i may ask ->
> what's the RGB Color Mask and how to use it???
>
> "Phil Taylor" wrote:
>
> > what surface format?
> >
> > are you using the pitch of the surface and not the width in your loop?
> >
> > are you using the R,G,B color masks to convert the raw data?
> >
> > "Exorsus" <Exorsus@discussions.microsoft.com> wrote in message
> > news:81AE605D-ECC8-4FB1-BEEA-63771FC058FB@microsoft.com...
> > > Hi,
> > > (First sorry for my english, i'm from central europe...)
> > > i've got one little problem with copying my own data acquired from custom
> > > image file format into the lpSurface.
> > > I've tried almost everything, but i simply don't know how to setup
> > > DDSURFACEDESC2.
> > > I copied 24-bit RAW RGB image into the lpSurface and there was some sort
> > > of
> > > graphics corruption in the loaded image, i think it's all in
> > > DDSURFACEDESC2......
> > > So i am interested...what's the problem......???
> > >
> > > (for entusiast, my source code ->
> > > www.freewebs.com/stallionengine/sourcecode/stallionsourcecode.rar )
> > >
> > > Thank you and have a nice day....;)
> >
> >
> >



Relevant Pages

  • Re: .CRW -> .CR2? (was: Why did Nikon re-introduce TIFF file storage?)
    ... Nikon has always offered the TIFF file format on its Pro bodies. ... While I would never recommend shooting anything other than RAW, ... might not support the camera. ...
    (rec.photo.digital.slr-systems)
  • Re: Mp3 quality
    ... What file format comes right out of your camera, ... I always shoot in RAW unless it's a sports/motion thing in which case ... I shoot 640X480 1/2.7 compression. ... It really depends on the degree of compression. ...
    (rec.boats)
  • Re: Canon RAW digital files, how to view with MS RAW file viewer
    ... file viewer from MS Updates but still cannot open any RAW digital files, I thought MS had provided a file format in the latest update of RAW file viewer but it will not open any RAW files at all, anyone have any clues on how to view RAW files downloaded straight from the camera into My Pictues and then opened in RAW file viewer, it will open any JPEG but not the RAW. ... I remember reading somewhere that one of the major camera manufacturers had designed their camera to include a proprietary format for the raw file's exposure and color correction information. ... Maybe the camera manufacturers are exercising their option to not follow Microsoft's file format reccomendations. ...
    (microsoft.public.windowsxp.general)
  • Re: Best Format After Scan
    ... Neither editing (as in scanner raw) nor Bayer ... conversion (as in digicam raw) can be undone without major data loss. ... state and file format are merged into one. ...
    (comp.periphs.scanners)
  • Re: How to stop iPhoto from converting nef to jpg
    ... that is how iphoto handles raw images. ... application if you want to manipulate the raw directly. ... way to specify actions just for one file format. ...
    (comp.sys.mac.apps)