当前位置:网站首页>TGA file format (waveform sound file format)
TGA file format (waveform sound file format)
2022-07-25 20:05:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Tga Common formats are uncompressed RGB And compression RGB Two formats , The third of the document Byte Bit as a marker :2 Is uncompressed RGB Format ,10 For compression RGB Format . The classes here only implement reading in uncompressed format tga file .
Given first tga The file format of the file :
name | The offset | length | explain | ||
|---|---|---|---|---|---|
Length of image information field | 0 | 1 | This field is 1 Byte unsigned integer , Point out the image information field ( See the back of this sub table ) length , Its value range is 0 To 255 , When it's for 0 When there is no image information field . | ||
Color table type | 1 | 1 | 0 Indicates that there is no color table ,1 Indicates that the color table exists . Because this format has no color table , Therefore, this item is usually ignored . | ||
Image type code | 2 | 1 | This field is always 2 , This is also the format of this type 2 Why . | ||
Color table specification field | The first address of the color table | 3 | 2 | The entry index at the beginning of the color table , integer ( Low position - High position ) | If the color table field is 0, Then ignore the field |
The length of the color table | 5 | 2 | The total number of items in the color table , integer ( Low position – High position ) | ||
Number of color table entries | 7 | 1 | digit (bit),16 representative 16 position TGA ,24 representative 24 position TGA ,32 representative 32 position TGA | ||
Image specification field | Images X Coordinate starting position | 8 | 2 | Lower left corner of the image X Integer of coordinates ( Low position – High position ) value | |
Images Y Coordinate starting position | 10 | 2 | Lower left corner of the image Y Integer of coordinates ( Low position – High position ) value | ||
The width of the image | 12 | 2 | In pixels , Integer of image width ( Low position – High position ) | ||
Height of the image | 14 | 2 | In pixels , Integer of image width ( Low position – High position ) | ||
Image storage occupancy per pixel | 16 | 2 | Its value is 16,24 or 32 wait . Determines that the image is TGA 16,TGA24,TGA 32 wait . | ||
Image descriptor bytes | 17 | 1 | bits 3-0 – The number of attribute bits per pixel ; about TGA 16, The value is 0 or 1, about TGA 24, The value is 0, about TGA 32, The value is 8. bit 4 – Retain , It has to be for 0 bit 5 – Screen start position flag 0 = The origin is in the lower left corner 1 = Origin in the upper left corner about truevision The image must be 0 bits 7-6 – Cross data storage flag 00 = No cross 01 = Two roads / Even crossing 10 = Four way intersection 11 = Retain | ||
Image information field | 18 | variable | Contains a free-form , The length of the image is determined by “ Image information field ” Appoint . It is often overlooked ( That is, offset 0 The value at is 0 ), Note that it can contain 255 Characters . If you need to store more information , It can be placed after the image data . | ||
Color table data | variable | variable | If the color table type is 0, Then the domain does not exist , Otherwise, read the number of bytes of each item in the image color table specification directly across this field , by 2,3,4 One of . | ||
Image data | variable | variable | RGB Color data , The storage order is :BBB GGG RRR (AAA) | ||
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/127750.html Link to the original text :https://javaforall.cn
边栏推荐
- wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M
- Advantages of network virtualization of various manufacturers
- 项目中new Promise和async、await中的使用,以及promise.all在项目中的实际应用
- Error when creating dataset with mindscore
- 股票软件开发
- Six axis sensor use learning record
- JVM(二十三) -- JVM运行时参数
- [Infographics Show] 248 Public Domain Name
- Dataframe first performs grouping operation and then combines output
- sentinel简单限流和降级demo问题记录
猜你喜欢

wallys//wifi6 wifi5 router IPQ6018 IPQ4019 IPQ4029 802.11ax 802.11ac

YOLOv7论文部分解读【含自己的理解】
![[cloud native | learn kubernetes from scratch] VIII. Namespace resource quotas and labels](/img/7e/2bdead512ba5bf5ccd0830b0f9b0f2.png)
[cloud native | learn kubernetes from scratch] VIII. Namespace resource quotas and labels

Recommendations on how to install plug-ins and baby plug-ins in idea

【神器】截图+贴图工具 Snipaste

wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M

Prescan quick start to master Lesson 19: prescan actuator configuration, track synchronization and non configuration of multiple tracks

Deeplobv1 and V2

谷歌Pixel 6a屏下指纹扫描仪存在重大安全漏洞

Recommended system topic | Minet: cross domain CTR prediction
随机推荐
How does tiktok break zero?
Recommendations on how to install plug-ins and baby plug-ins in idea
网络RTK无人机上机测试[通俗易懂]
Sentinel simple current limiting and degradation demo problem record
一元函数积分学_分部积分法
连接数据库警告 Establishing SSL connection without server‘s identity verification is not recommended.
Google pixel 6A off screen fingerprint scanner has major security vulnerabilities
919. Complete binary tree inserter
919. 完全二叉树插入器
FormatDateTime说解[通俗易懂]
什么是唯心主义
PreScan快速入门到精通第十九讲之PreScan执行器配置、轨迹同步及非配多个轨迹
Siemens-PLM-TeamCenter下载、安装、使用教程
统信UOS下配置安装cocos2dx开发环境
JVM(二十三) -- JVM运行时参数
CarSim仿真快速入门(十六)—CarSim传感器仿真之ADAS Sensor Objects (2)
High number_ Chapter 3 learning experience and summary of multiple integral
4、Nacos 配置中心源码解析之 服务端启动
JVM (XXIII) -- JVM runtime parameters
CarSim仿真快速入门(十四)—CarSim-Simulink联合仿真