问题描述
我正在为纯C开发硬件设备的解决方案。
我需要压缩图像BMP并考虑使用TIFF格式(图像是单色的,问题是如何在不使用任何外部库的情况下从BMP转换为TIFF。
任何人都可以提供帮助
谢谢
Miguel
我尝试了什么:
Google搜索没有任何成功:-)
尝试一些带有一些结果的论坛
Hi, I am developing a solution for a hardware device in pure C.
I need to compress an image BMP and thought in using the TIFF format (the image is monochromatic), the problem is how to convert from BMP to TIFF without using any external libraries.
Anyone can help
Thanks
Miguel
What I have tried:
Google search without any success :-)
Try some forums with some result
推荐答案
问题是如何在不使用任何外部库的情况下从BMP转换为TIFF。
the problem is how to convert from BMP to TIFF without using any external libraries.
简单!
你只需制作一个替换你不想使用的库的程序!
你必须:
- 定义一个中性格式,适合您的需求。通常是包含图片位图版本的数组。
- 将BMP解码器写入中性格式。可能涉及一些减压。必须通过查找格式定义或在源代码中查找解码器来获取线索来搜索BMP格式详细信息。
- 从中性格式编写TIFF编码器。涉及压缩。必须找到与BMP相同的信息。
- 需要第三方工具以确保结果正常。
- 需要大量工作。
Simple !
You just have to make a program that is replacing the library you don't want to use !
You have to:
- define a neutral format that suit your needs. Usually an array containing a bitmap version of the picture.
- Write a BMP decoder to your neutral format. Can involve some decompression. Have to search for BMP format details either by finding the format definition or by finding a decoder in source code to get clues.
- Write a TIFF encoder from your neutral format. Involve compression. Have to find same information as for BMP.
- Need third party tools to ensure that the result is ok.
- Need to lot of work.
这篇关于如何在不使用任何库的情况下将BMP转换为TIFF图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!