pixel.cpp sample file missing from the DDK

Can anyone tell me where I can find the sample file pixel.cpp which is supposed tio be in the DDK, at least that is what the DDK documentation says. I am taliking about the sample for calculating the offsets of each mipmap for a LightWeight mipmap texture in a display driver. That being the source code for the CPixel::CalculateMipMapOffset fucntion as described in the DDK docs. If anyone has any information on the memory organisation of the LightWeight mipmaps particularly in relation to compressed texture formats that would be appreciated.

Paul

xxxxx@hotmail.co.uk wrote:

Can anyone tell me where I can find the sample file pixel.cpp which is supposed tio be in the DDK, at least that is what the DDK documentation says. I am taliking about the sample for calculating the offsets of each mipmap for a LightWeight mipmap texture in a display driver. That being the source code for the CPixel::CalculateMipMapOffset fucntion as described in the DDK docs. If anyone has any information on the memory organisation of the LightWeight mipmaps particularly in relation to compressed texture formats that would be appreciated.

Where do you see this reference? None of the DDK display drivers are in
C++. They’re all straight C.

I don’t find pixel.cpp in either the DDK, the Platform SDK, or the
DirectX SDK.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

I have posted the relevant section referring to pixel.cpp from the DDK Docs
below. I can’t find the file either, I also checked the Platform SDK and
DirectX SDK.

Paul

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Obtaining Sublevels of Lightweight MIP Map Textures
A DirectX 9.0 version driver can use the CPixel class methods to obtain
information about the sublevels of a lightweight system memory MIP-map
texture — only information about the top level of a lightweight MIP-map
texture is stored. If the driver must copy a lightweight system memory
MIP-map texture to video memory, the driver can use the CPixel class methods
to calculate the source texture’s size and the offset to the source
texture’s sublevels.

Driver writers are not required to use the CPixel class methods to calculate
the locations of sublevels for lightweight MIP-map textures. However, the
DirectX 9.0 runtime uses CPixel class methods to recover the memory layout
of lightweight system memory MIP-map textures. Therefore, to ensure that the
runtime and drivers recover the memory layout of lightweight system memory
MIP-map textures in the same manner, driver writers must follow the same
CPixel class rules to implement their own code.

For information about how the CPixel class is implemented, see the
pixel.hpp, pixel.cpp, and pixlib.cpp files in the Windows DDK.

The CPixel class contains the following methods:

CPixel Method Description
ComputeSurfaceSize Determines the amount of memory required to allocate a
surface.
ComputeVolumeSize Determines the amount of memory required to allocate a
volume.
ComputeMipMapSize Determines the amount of memory required to allocate a
MIP-map texture.
ComputeMipVolumeSize Determines the amount of memory required to allocate a
MIP-map texture volume.
ComputeMipMapOffset Determines the sublevel offset of a MIP-map texture.
ComputeMipVolumeOffset Determines the subvolume offset of a MIP-map volume
texture.
ComputeSurfaceOffset Determines the subrectangular offset of a surface.

From: Tim Roberts
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: Re: [ntdev] pixel.cpp sample file missing from the DDK
>Date: Tue, 08 Aug 2006 11:10:44 -0700
>
>xxxxx@hotmail.co.uk wrote:
>
> >Can anyone tell me where I can find the sample file pixel.cpp which is
>supposed tio be in the DDK, at least that is what the DDK documentation
>says. I am taliking about the sample for calculating the offsets of each
>mipmap for a LightWeight mipmap texture in a display driver. That being the
>source code for the CPixel::CalculateMipMapOffset fucntion as described in
>the DDK docs. If anyone has any information on the memory organisation of
>the LightWeight mipmaps particularly in relation to compressed texture
>formats that would be appreciated.
> >
>
>Where do you see this reference? None of the DDK display drivers are in
>C++. They’re all straight C.
>
>I don’t find pixel.cpp in either the DDK, the Platform SDK, or the
>DirectX SDK.
>
>–
>Tim Roberts, xxxxx@probo.com
>Providenza & Boekelheide, Inc.
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>To unsubscribe, visit the List Server section of OSR Online at
>http://www.osronline.com/page.cfm?name=ListServer

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb

See the paste from the DDK documentation below, this is what I am going off.
I checked the Platform SDK and DirectX SDK aswell.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Obtaining Sublevels of Lightweight MIP Map Textures
A DirectX 9.0 version driver can use the CPixel class methods to obtain
information about the sublevels of a lightweight system memory MIP-map
texture — only information about the top level of a lightweight MIP-map
texture is stored. If the driver must copy a lightweight system memory
MIP-map texture to video memory, the driver can use the CPixel class methods
to calculate the source texture’s size and the offset to the source
texture’s sublevels.

Driver writers are not required to use the CPixel class methods to calculate
the locations of sublevels for lightweight MIP-map textures. However, the
DirectX 9.0 runtime uses CPixel class methods to recover the memory layout
of lightweight system memory MIP-map textures. Therefore, to ensure that the
runtime and drivers recover the memory layout of lightweight system memory
MIP-map textures in the same manner, driver writers must follow the same
CPixel class rules to implement their own code.

For information about how the CPixel class is implemented, see the
pixel.hpp, pixel.cpp, and pixlib.cpp files in the Windows DDK.

The CPixel class contains the following methods:

CPixel Method Description
ComputeSurfaceSize Determines the amount of memory required to allocate a
surface.
ComputeVolumeSize Determines the amount of memory required to allocate a
volume.
ComputeMipMapSize Determines the amount of memory required to allocate a
MIP-map texture.
ComputeMipVolumeSize Determines the amount of memory required to allocate a
MIP-map texture volume.
ComputeMipMapOffset Determines the sublevel offset of a MIP-map texture.
ComputeMipVolumeOffset Determines the subvolume offset of a MIP-map volume
texture.
ComputeSurfaceOffset Determines the subrectangular offset of a surface.

Paul

From: Tim Roberts
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: Re: [ntdev] pixel.cpp sample file missing from the DDK
>Date: Tue, 08 Aug 2006 11:10:44 -0700
>
>xxxxx@hotmail.co.uk wrote:
>
> >Can anyone tell me where I can find the sample file pixel.cpp which is
>supposed tio be in the DDK, at least that is what the DDK documentation
>says. I am taliking about the sample for calculating the offsets of each
>mipmap for a LightWeight mipmap texture in a display driver. That being the
>source code for the CPixel::CalculateMipMapOffset fucntion as described in
>the DDK docs. If anyone has any information on the memory organisation of
>the LightWeight mipmaps particularly in relation to compressed texture
>formats that would be appreciated.
> >
>
>Where do you see this reference? None of the DDK display drivers are in
>C++. They’re all straight C.
>
>I don’t find pixel.cpp in either the DDK, the Platform SDK, or the
>DirectX SDK.
>
>–
>Tim Roberts, xxxxx@probo.com
>Providenza & Boekelheide, Inc.
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>To unsubscribe, visit the List Server section of OSR Online at
>http://www.osronline.com/page.cfm?name=ListServer

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb