Released: January 2013 (Jan 29, 2013)
January 29, 2013Added PremultiplyAlpha to DirectXTex; -pmalpha switch for texconv command-line toolFixed problem with forceSRGB implementation for Ex versions of CreateTexture,...
View ArticleNew Post: How to decode BC1 and change the color palette and encode it again
I changed this part of the code :  D3DX_BC1 *bc = reinterpret_cast<D3DX_BC1 *>( sptr ); to D3DX_BC1 *bc = (D3DX_BC1 *)sptr;And I removed all the consts from sptr and pSrc Now there is no more...
View ArticleNew Post: How to decode BC1 and change the color palette and encode it again
<p>D3DX_BC1 *bc = reinterpret_cast<D3DX_BC1 *>( sptr ); should work fine with the const' removed.</p><p>I can't tell from your post what the code looks like...
View ArticleNew Post: How to decode BC1 and change the color palette and encode it again
This is kinda the whole idea of the code: TexMetadata info; ScratchImage *image = new ScratchImage; uint32_t *blockArr = new uint32_t[numOfBlocks]; // my image is 64*64 pixels so it has 256 blocks so...
View ArticleNew Post: How to decode BC1 and change the color palette and encode it again
your blockArr is running out of blocks depending on the size of the file.Also, your code assumes the DDS in question does not have mipmaps, arrays, or arrays+mipmaps. You are only changing the 'top'...
View ArticleNew Post: How to decode BC1 and change the color palette and encode it again
Thank you walbourn. you are such a great help. I think managed to do what I wanted to for now of course :)
View ArticleSource code checked in, #23933
Added WIC_USE_FACTORY_PROXY build option to use entry-point in WindowsCodecs.dll rather than CoCreateInstance for the WIC factory
View ArticleNew Comment on "Texture Functions"
Hi Walbourn I have two dds images and I want to calculate the PSNR for them. I know that first I need to calculate MSE and I assume that I need to use ComputeMSE function to do that, but I don't know...
View ArticleNew Comment on "Texture Functions"
Hi Walbourn I have two dds images and I want to calculate the PSNR for them. I know that first I need to calculate MSE and I assume that I need to use ComputeMSE function to do that, but I don't know...
View ArticleNew Post: How to convert from dds to bmp and vice versa.
Theoretically converting from dds to bmp is loss-less, but when I convert dds to bmp and then convert the same bmp to dds, I see lossy conversion. I want to do this types of conversion using this...
View ArticleNew Post: How to convert from dds to bmp and vice versa.
What format was the original DDS. Can you attach it?
View ArticleNew Post: How to convert from dds to bmp and vice versa.
The original DDS is a dds file from a game which I changed some of the bits which are not visible with naked eyes. Now I want to convert the changed dds file to bmp (bitmap) and then convert it back to...
View ArticleNew Post: How to convert from dds to bmp and vice versa.
Insert Img needs a URL on the web. You can also open an "Issue" report and attach the file there.
View ArticleCreated Issue: How to convert dds to bitmap and vice verca? [872]
here is the changed file which was saved using the library.
View ArticleCommented Issue: How to convert dds to bitmap and vice verca? [872]
here is the changed file which was saved using the library.Comments: ** Comment from web user: walbourn ** DDS c:a_m.ddsFlags 000a1007: CAPS HEIGHT WIDTH PIXELFORMAT MIPMAPCOUNT LINEARSIZE1024 x...
View ArticleClosed Issue: How to convert dds to bitmap and vice verca? [872]
here is the changed file which was saved using the library.Comments: I believe this is By Design. The original image is lossy compressed using a different algorithm or implementation.
View ArticleCommented Issue: How to convert dds to bitmap and vice verca? [872]
here is the changed file which was saved using the library.Comments: ** Comment from web user: walbourn ** Of course, you shouldn't be decompressing and recompressing images using a lossy scheme anyhow...
View ArticleNew Post: MSE and PSNR
I have two dds files (one is the original (BC1) and the other one is the modified version (also BC1) of the original) and I want to calculate the PSNR for them. I know that first I need to calculate...
View ArticleNew Post: MSE and PSNR
Based on reading this formula on Wikipedia: Remember that PSNR is based on MSE and MSE is based on a comparison of something to something else. It's a relative statistic. I don't have MSE being used by...
View Article