astc-encoder | Arm ASTC Encoder , a compressor for the Adaptive Scalable | Computer Vision library
kandi X-RAY | astc-encoder Summary
kandi X-RAY | astc-encoder Summary
This is the official repository for the Arm Adaptive Scalable Texture Compression (ASTC) Encoder, astcenc, a command-line tool for compressing and decompressing images using the ASTC texture compression standard.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of astc-encoder
astc-encoder Key Features
astc-encoder Examples and Code Snippets
Community Discussions
Trending Discussions on astc-encoder
QUESTION
I'm running an OpenGL ES application on a device that supports the GL_OES_texture_compression_astc
extension. I have a 3000x2000 pixel texture, and when I call glTexImage2D
, everything runs fine.
To compress the image, I downloaded the ASTC encoder and executed the following command:
./astcenc.exe -c player.png player.astc 6x5 -medium
But when I use player.astc in glCompressedTexImage2D
, the function causes a segmentation fault. Here's my code:
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, tids[0]);
glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_ASTC_6x5_KHR, 3000, 2000, 0, size, data);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glBindTexture(GL_TEXTURE_2D, 0);
I've checked size
and data
, and they appear to be fine. Is there anything I can do to fix the problem?
ANSWER
Answered 2017-Jan-15 at 17:14There is an example of ASTC texture usage in the Mali OpenGL ES SDK:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install astc-encoder
Change log: 3.x series
Change log: 2.x series
astcenc-sse2 - uses SSE2
astcenc-sse4.1 - uses SSE4.1 and POPCNT
astcenc-avx2 - uses AVX2, SSE4.2, POPCNT, and F16C
astcenc-neon - uses NEON
Open a terminal, change to the appropriate directory for your system, and run the astcenc encoder program, like this on Linux or macOS:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page