c++ - RGBA buffer to JPEG libjpeg-turbo
问题描述
I'm trying to write the RGBA pixels I have into a JPEG image buffer using libjpeg-turbo as they support RGBA. Originally I was writing RGB to buffer using RGB buffer to JPEG buffer, what is wrong here? with JPEG-8 but now I need to write RGBA. Unfortunately the outright jpeg-8 lib doesn't support RGBA from the available colors to select, so libjpeg-turbo has caught my eye. Replacing jpeg-8 with libjpeg-turbo compiles everything nicely but setting JCS_EXT_RGBA yields Bogus color space. I'm reading the README on the github but it doesn't quite say outright how to have run-time support RGBA?
Any thoughts on previous users?
解决方案
推荐阅读
- java - 为什么我在这里得到微调器的空引用错误?
- python - 使用 numpy 的 Python 矩阵交换列
- sql - 从大表中获取每个时间戳的最新记录 - 不使用索引
- javascript - 在 Ramda 中做一些无意义的事情
- html - 在 bootsrap 的 div 中居中 2 个按钮
- asp.net - Modal BootStrap 窗口不能在组件中回滚 - Asp.net MVC
- php - localhost加载错误的css文件
- sql - 需要从选择查询记录集中记录标识符以及日期/时间戳
- c# - 为什么我有委托空异常
- java - 听 Realm insert/update/delete 并在更改时查看旧值和新值