Jump to content
  • Advertisement
Sign in to follow this  
LukasBanana

Difference between HAP and DXT format?

This topic is 1044 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everybody,

 

does anyone know the difference between the HAP and DXT formats?

I know that HAP is a codec, but there is also HAP1, HAP2, HAP3, ... like DXT1, DXT2, DXT3, ...

and for me it looks like HAP is just a synonym for DXT. Is that right?!

 

Thanks in advance.

Lukas

Share this post


Link to post
Share on other sites
Advertisement

Is this what you're referring to?

If so, the HAP is a video codec that can efficiently be decoded into a series of individual DXT frames/images. So, it's basically a "DXT video format".

Share this post


Link to post
Share on other sites

Yes, this is what I'm referring to.

 

I actually want to output a HAP encoded video with DirectShow,

but I don't know exactly what must be specified as media sub type within the

CTransformFilter::GetMediaType

function callback.

 

I currently use DXT1 for the FOURCC field (MEDIASUBTYPE_DXT1):

DEFINE_GUID( MEDIASUBTYPE_DXT1, FOURCC_DXT1, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 );

Is this correct? I also tried this:

#define FOURCC_Hap1 MAKEFOURCC('H','a','p','1')
DEFINE_GUID( MEDIASUBTYPE_Hap1, FOURCC_Hap1, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 );

But it only influences the info output within GraphStudioNext.

 

So what makes a video a HAP encoded video? I don't think that specifying the media sub type is enough.

The frames are DXT encoded.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!