当前位置:网站首页>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
边栏推荐
- 笔记——记录一个CannotFindDataSourceException: dynamic-datasource can not find primary datasource问题解决
- The use of new promise, async and await in the project, and the practical application of promise.all in the project
- wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M
- What is the method to load the torch pre trained model for the mindspore model finetune?
- qml 结合 QSqlTableModel 动态加载数据 MVC「建议收藏」
- Mindspore1.1.1 source code compilation and installation -- errors in the core compilation stage
- tiktok如何破零播放?
- 如何保证定制滑环质量
- Typeerror: 'STR' object is not callable error reason
- Legal mix of collations for operation 'Union' (bug record)
猜你喜欢

Six axis sensor use learning record

PMP每日一练 | 考试不迷路-7.25

YOLOv7论文部分解读【含自己的理解】

Export and call of onnx file of pytorch model

「分享」DevExpress ASP.NET v22.1最新版本系统环境配置要求

Rainbow plug-in extension: monitor MySQL based on MySQL exporter

Sentinel simple current limiting and degradation demo problem record

Mutual conversion of camera internal parameter matrix K and FOV

PreScan快速入门到精通第十八讲之PreScan轨迹编辑的特殊功能
![[mindspore] [read graph data] cannot read mindrecord format graph data](/img/2a/6da73178993f3d0f84c1f6ada17884.png)
[mindspore] [read graph data] cannot read mindrecord format graph data
随机推荐
Apache MINA框架「建议收藏」
接口请求合并的3种技巧,性能直接爆表!
YOLOv7论文部分解读【含自己的理解】
Yyds dry inventory how to locate browser page crash
C语言学习日记3——realloc函数
VMware 虚拟机下载、安装和使用教程
Split very long line of words into separate lines of max length
Cloud native guide: what is cloud native infrastructure
The JS paging plug-in supports tables, lists, text, and images
Digital informatization (enumerate assumptions first, and then see whether the conditions are met) (1089 werewolf kill - simple version)
[good book recommendation] - authoritative guide to Ethernet (2nd Edition)
【云原生 | 从零开始学Kubernetes】八、命名空间资源配额以及标签
Deeplobv1 and V2
PreScan快速入门到精通第十八讲之PreScan轨迹编辑的特殊功能
分享 25 个有用的 JS 单行代码
Error when creating dataset with mindscore
各厂商网络虚拟化的优势
Siemens PLM Teamcenter download, installation and use tutorial
The query data returned by the print database is null or the default value. Does not match the value returned by the database
[Infographics Show] 248 Public Domain Name