Sign in to follow this  

Difference between HAP and DXT format?

This topic is 826 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

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

This topic is 826 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this