Vidvox / hap-in-avfoundation

A framework that allows AVFoundation to play back and record Hap video
Other
109 stars 19 forks source link

Rendering issue on Intel cards #1

Closed lov closed 9 years ago

lov commented 9 years ago

On Intel cards the decoding of Hap frames goes wrong, see attached picture.

To fix that need to call glFlush() right after glCompressedTexSubImage2D() in HapPixelBufferTexture setDecodedFrame: method.

BTW, this needs to be added to the hap-quicktime-playback-demo project too.

hapavfissue

mrRay commented 9 years ago

great, thanks- i've updated the test app, please let me know if this is still a problem...

happy holidays!

lov commented 9 years ago

thanks Ray, works as expected.

Happy Holidays for you too!

bangnoise commented 9 years ago

The flush shouldn't be needed and isn't particularly desirable - the problem looks more like memory being reused too soon. The QuickTime demo app works happily on Intel cards without an extra flush.

lov commented 9 years ago

That is interesting. I always needed that flush in HapPixelBufferTexture class to make it work on Intel chips (with the QT codec as well). I think we talked about that a couple of years ago.