Silicon Graphics Image

Silicon Graphics Image
Filename extension
.sgi, .rbg (among others)
Internet media type
image/sgi[1]
Type code'.SGI'
Uniform Type Identifier (UTI)com.sgi.sgi-image[2]
Magic number01 DA
Developed byPaul Haeberli
Initial release0.95 / 1995; 30 years ago (1995)[3][4]
Latest release
1.00
1996; 29 years ago (1996)
Type of formatimage file
StandardSGI Image File Format[5]

Silicon Graphics Image (SGI) or the RGB file format is the native raster graphics file format for Silicon Graphics workstations.[4] The format was invented by Paul Haeberli.[4] It can be run-length encoded (RLE). FFmpeg and ImageMagick, among others, support this format.

Background

Common file extensions are:

.sgi or .rgb
3 colour channels
.rgba
3 colour channels and alpha
.bw or .int
black and white
.inta
black and white and alpha

This format was originally developed for IRIX. The master files of the SVT High Definition Multi Format Test Set are SGIs.[6][7][8] Frame 200 of the ParkJoy sequence in this set (15722.sgi, 3840×2160, 47.4 MB) was used in WebP comparisons.

Technical Details

SGI image format use big endian order. Image data scan from left to right from bottom to top.

Field number Hex offset Length Field name Description
1 0x00 2 byte File signature/magic number SGI Signature
2 0x02 1 byte Compression 0 = Uncompressed, 1 = RLE compressed
3 0x03 1 byte Bytes per pixel 1 = 8 bit, 2 = 16 bit
4 0x04 2 bytes Dimension Image dimension, 3 for RGBA image
5 0x06 2 bytes X size Image width
6 0x08 2 bytes Y size Image height
7 0x0A 2 bytes Number of channels Number channels in the image file, 4 for RGBA image
8 0x0C 4 bytes Minimum pixel value Smallest pixel value in image
9 0x10 4 bytes Maximum pixel value Largest pixel value in image
10 0x14 4 bytes Reserved Unused, ignore
11 0x18 80 bytes Image name NOTE: C strings end with last byte 0x00
12 0x68 4 bytes Color map ID Only for color map image
13 0x6C 404 bytes Dummy Buffer to scale the header to 512 bytes. Ignore

File Signature/Magic Number

Should equal 0x01 0xda for SGI file.

Compression

0 if the file is uncompressed; 1 for RLE compression.

Bytes Per Pixel Channel

Value is 1 for 8 bits per channel ; 2 for 16 bits per channel.

Dimension

Value is 1 for 1 channel, 1 scanline image ; 2 for 1 channel, multiple scanlines image; 3 for multiple channels, multiple scanlines image (most common).

X Size

Scanline width in pixels.

Y Size

Number of scanlines in the image.

Number Of Channels

Number of channels in the image. Value is 1 for greyscale images; 3 for RGB; 4 for RGBA. SGI supports more than 4 channels.

Minimum Pixel Value

Smallest pixel value in all channels. Since SGI uses unsigned char or short types for channels, the smallest possible value is typically 0.

Maximum pixel value

Largest pixel value in all channels. Since SGI uses unsigned char or short types for channels, the largest possible value is typically 0xff for 8 bit/channel and 0xffff for 16 bit/channel.

Dummy

4 bytes, unused.

Image name

Image name, 80-byte (maximum 79 characters ≠ 0x00) C string. If the name is shorter than 79 characters, all subsequent bytes are to be 0x00 in order to fill the 80-byte space.

Color Map ID

SGI supports 4 types of color mapping:

  1. 0x00 normal: image has 1 channel (greyscale), 3 channels (RGB) or 4 channels (RGBA).
  2. 0x01 dithered: image has packed RGB. First 3 bits are for R channel, next 3 bits are G channel, and last 2 bits are for B channel.
  3. 0x02 screen: image uses colormap. Pixel data is index in color map and image only have 1 channel.
  4. 0x03 colormap: file only have data for one color map (can use for different image file). This file no have image data.

Dummy

404 bytes. Typically unused, scales the header to 512 bytes long.

Image Data

No Compression

Image data starts at byte 512 in file. Data length can be calculated using the following:

(X size) × (Y size) × (Num. of channels) × (Bytes per channel)

The data is separated for each channel. For example, if an image uses RGBA, the first set of scanlines represent the R channel, the next set of scanlines are for the G channel, then B channel and, lastly, A channel. Therefore, each set of scanlines can be accessed directly via the following formula (where C = channel index):

(X size) × (Y size) × (C ÷ Num. of channels) × (Bytes per channel)

RLE Compression

Offset tables start at byte 512. Their length can be calculated with the following:

(Y size) × (Num. of channels) × 4 bytes long

Each unsigned int in a table represent an offset (from file start) to the start of the compressed data of each scanline in each channel. The data is separated for each channel's scanline. If an image has RGBA channels, the order stays R, G, B and A.

Next is the data length table which can also be calculated with the formula:

(Y size) × (Num. of channels) × 4 bytes long

This table holds the size of the compressed data (unsigned int) of each scanline. This size should equal the difference of numbers in the offset table.

The last data block holds RLE compressed image data. If the number of bytes per channel is 1, the compressed data is of unsigned char type. Otherwise, if the number of bytes per channel is 2, the compressed data is of unsigned short type. The last byte of compressed scanline data has a value of 0.

For both case have unsigned char or unsigned short data, lowest 7 bits tell count. If bit 8 is zero, count is number times copy value after count. If bit 8 is one, count is number times copy series of values after count byte. For 2 bytes/channel image, count and value is unsigned short and top byte of count always equal zero.

See also

References

  1. ^ .sgi MIME type not registered at IANA
  2. ^ "CGImageSource.SupportedTypes". Claris FileMaker MBS Plug-in. MonkeyBread Software.
  3. ^ Paul Haeberli (1996). "The SGI Image File Format 0.97". Silicon Graphics. Retrieved 2014-03-07.[dead link] Alt URL
  4. ^ a b c James D. Murray; William van Ryper (April 1996). "SGI Image File Format File Format Summary". Encyclopedia of Graphics File Formats, Second Edition. O'Reilly. ISBN 1-56592-161-5. Retrieved 2014-03-07.
  5. ^ Paul Haeberli (1996). "The SGI Image File Format 1.00". Silicon Graphics. Retrieved 2014-03-07.
  6. ^ Lars Haglund (Feb 2006). "The SVT High Definition Multi Format Test Set" (PDF). SVT. Retrieved 2014-02-23.
  7. ^ "SVT_MultiFormat/2160p50_CgrLevels_Master_SVTdec05". Video Quality Experts Group (VQEG). 2006. Retrieved 2014-03-01.
  8. ^ Marta Mrak; Mislav Grgicb; Murat Kunt (2010). High-Quality Visual Experience: Creation, Processing and Interactivity of High-Resolution and High-Dimensional Video Signals. Signals and Communication Technology. Springer. pp. 147–154. ISBN 978-3-642-12802-8. LCCN 2010925849.

Read other articles:

Questa voce sull'argomento centri abitati del Massachusetts è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Lowellcity(EN) Lowell city, Massachusetts Lowell – Veduta LocalizzazioneStato Stati Uniti Stato federato Massachusetts ConteaMiddlesex AmministrazioneSindacoPatrick O. Murphy (Partito Democratico) TerritorioCoordinate42°38′22″N 71°18′53″W / 42.639444°N 71.314722°W42.639444; -71.314722 (Lowell)Coordin...

 

Derry GirlsGenreSitkomPembuatLisa McGeeDitulis olehLisa McGeeSutradaraMichael LennoxPemeran Saoirse-Monica Jackson Louisa Harland Nicola Coughlan Jamie-Lee O'Donnell Dylan Llewellyn Penggubah lagu temaDolores O'RiordanNoel HoganLagu penutupDreams oleh The CranberriesNegara asalBritania RayaBahasa asliInggrisJmlh. seri2Jmlh. episode12 (daftar episode)ProduksiPengaturan kameraKamera tunggalDurasi22 menitRumah produksiHat Trick ProductionsRilis asliJaringanChannel 4Format gambar16:9 1080i (HDTV...

 

Betta miniopinna Status konservasiTerancam kritisIUCN2780 TaksonomiKerajaanAnimaliaFilumChordataKelasActinopteriOrdoAnabantiformesFamiliOsphronemidaeGenusBettaSpesiesBetta miniopinna Tan, 1994 lbs Betta miniopinna merupakan jenis ikan cupang yang habitat asalnya di Indonesia dan Malaysia. Di Indonesia ikan ini ditemukan di Pulau Bintan Riau Kepulauan. Deskripsi Tubuh ikan ini berwarna abu-abu gelap dengan tubuh hitam, sirip greenisch. Merah dengan tips putih ventral sirip. Betta miniopinna hi...

منتخب هونغ كونغ تحت 20 سنة لاتحاد الرغبي بلد الرياضة هونغ كونغ  الموقع الرسمي الموقع الرسمي  أكبر فوز أكبر خسارة تعديل مصدري - تعديل   منتخب هونغ كونغ الوطني لاتحاد الرغبي تحت 20 سنة هو ممثل هونغ كونغ الرسمي في المنافسات الدولية في اتحاد الرغبي .[1][2][3] تشكي�...

 

2010 promotional single by The Black Eyed PeasMissing YouPromotional single by The Black Eyed Peasfrom the album The E.N.D. ReleasedApril 23, 2010GenreElectro houseLength4:35LabelInterscopeSongwriter(s) William Adams Allan Pineda Jaime Gomez Stacy Ferguson Printz Board Jean Baptiste Producer(s) Printz Board will.i.am Licensed audioMissing You on YouTube Missing You is a song recorded by American group the Black Eyed Peas for their fifth studio album The E.N.D. (2009). The group co-wrote the s...

 

Pour les articles homonymes, voir Colin. Ne doit pas être confondu avec André Collin. Pour la vedette rapide, voir André Colin (navire). André Colin André Colin en 1946. Fonctions Sénateur du Finistère 26 avril 1959 – 29 août 1978(19 ans, 4 mois et 3 jours) Élection 26 avril 1959 Réélection 23 septembre 196226 septembre 1971 Groupe politique RP (1959-1965)RPCD (1965-1968)UCDP (1968-1978) Député français 6 novembre 1945 – 5 décembre 1958(13 ans et 29...

Supreme Court of the United States38°53′26″N 77°00′16″W / 38.89056°N 77.00444°W / 38.89056; -77.00444EstablishedMarch 4, 1789; 235 years ago (1789-03-04)LocationWashington, D.C.Coordinates38°53′26″N 77°00′16″W / 38.89056°N 77.00444°W / 38.89056; -77.00444Composition methodPresidential nomination with Senate confirmationAuthorized byConstitution of the United States, Art. III, § 1Judge term lengthl...

 

Argentine-born American tennis player Usue Maitane ArconadaArconada at the 2015 US OpenCountry (sports) United StatesResidenceSan Juan, Puerto RicoBorn (1998-10-28) October 28, 1998 (age 25)Buenos Aires, ArgentinaHeight1.65 m (5 ft 5 in)PlaysRight (two-handed backhand)CoachStephen HussPrize money$464,086SinglesCareer record200–160 (55.6%)Career titles5 ITFHighest rankingNo. 130 (February 3, 2020)Grand Slam singles resultsAustralian OpenQ2 (2...

 

Синелобый амазон Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:ЗавропсидыКласс:Пт�...

Ballon d'or 2006 Fabio Cannavaro.Généralités Sport Football Organisateur(s) France Football Éditions 51e Catégorie Trophée mondial Date 2006 Participants 50 joueurs nommés Site web officiel Site officiel Palmarès Vainqueur Fabio Cannavaro (1) Deuxième Gianluigi Buffon Troisième Thierry Henry Navigation Édition précédente Édition suivante modifier Le Ballon d'or 2006, qui récompense le meilleur footballeur de l'année évoluant en Europe, a été attribué à Fabio Cannavar...

 

Questa voce o sezione sull'argomento missioni spaziali non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Sojuz TM-15Emblema missione Dati della missioneOperatoreRoscosmos NSSDC ID1992-046A SCN22054 Nome veicoloSojuz-TM VettoreSoyuz-U2 Codice chiamataRodnik Lancio27 luglio, 1992 6:08:42 UTC Luogo lanciocosmo...

 

恩维尔·霍查Enver Hoxha霍查官方肖像照(摄于1980年代初)阿尔巴尼亚共产党中央委员会总书记任期1943年3月—1948年11月[1]前任無(首任)继任本人(劳动党中央委员会总书记)阿尔巴尼亚劳动党中央委员会总书记任期1948年11月—1954年7月[1]前任本人(共产党中央委员会总书记)继任本人(劳动党中央委员会第一书记)阿尔巴尼亚劳动党中央委员会第一书记任期1954�...

كثرة الحمر الحقيقيّة شريحة دم من مريض يعاني من كثرة الحمر الحقيقيةشريحة دم من مريض يعاني من كثرة الحمر الحقيقية معلومات عامة الاختصاص علم الدم  من أنواع كثرة كريات الدم الحمر،  ومرض  الإدارة أدوية يوراموستين،  وبوسلفان،  وبيبوبرومان،  وأناغريليد،  وهيدر...

 

The 23 centimeter, 1200 MHz or 1.2 GHz band is a portion of the UHF (microwave) radio spectrum internationally allocated to amateur radio and amateur satellite use on a secondary basis. The amateur radio band is between 1240 MHz and 1300 MHz. The amateur satellite band is between 1260 MHz and 1270 MHz, and its use by satellite operations is only for up-links on a non-interference basis to other radio users (ITU footnote 5.282). The allocations are the same in all...

 

Former Prime Minister of Nepal HonourableMadhav Kumar Nepalमाधवकुमार नेपाल34th Prime Minister of NepalIn office25 May 2009 – 6 February 2011PresidentRam Baran YadavDeputyBijay Kumar GachhadarPreceded byPushpa Kamal DahalSucceeded byJhala Nath KhanalDeputy Prime Minister of NepalIn office30 November 1994 – 12 September 1995MonarchKing BirendraPrime MinisterMan Mohan AdhikariChairman of CPN (Unified Socialist) and Socialist FrontIncumbentAssumed...

American musician (born 1988) This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Bethany Dillon – news · newspapers · books · scholar · JSTOR (September 2013) (Learn how and when to remove this mes...

 

Orang kasim atau sida atau sida-sida adalah laki-laki yang telah dikebiri. Mereka telah kehilangan kesuburannya karena buah zakarnya telah dibuang (dengan sengaja atau karena kecelakaan) atau karena sebab-sebab lain, tidak berfungsi. Catatan-catatan paling awal tentang pengebirian dengan sengaja untuk menghasilkan orang kasim berasal dari kota Lagash di Sumeria pada abad ke-21 SM. Sejak itu, selama beribu-ribu tahun orang kasim melakukan berbagai fungsi di berbagai kebudayaan seperti pelayan ...

 

Abryna Abryna grisescens Klasifikasi ilmiah Kerajaan: Animalia Filum: Arthropoda Kelas: Insecta Ordo: Coleoptera Famili: Cerambycidae Subfamili: Lamiinae Tribus: Pteropliini Genus: Abryna Abryna adalah genus kumbang tanduk panjang yang berasal dari famili Cerambycidae. Genus ini juga merupakan bagian dari ordo Coleoptera, kelas Insecta, filum Arthropoda, dan kingdom Animalia. Larva kumbang dalam genus ini biasanya mengebor ke dalam kayu dan dapat menyebabkan kerusakan pada batang kayu hidup ...

Music venue in West London, England For the Joe Bonamassa album, see Shepherds Bush Empire (album). O2 Shepherd's Bush EmpireO2 Shepherd's Bush EmpireLocation within London Borough of Hammersmith and FulhamFormer namesShepherd's Bush Empire (1903–53; 1994–2009)BBC Television Theatre (1953–1994)AddressShepherd's Bush GreenLondon, W12United KingdomCoordinates51°30′13″N 0°13′28″W / 51.50349°N 0.22433°W / 51.50349; -0.22433Public transit Goldhawk Road She...

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada April 2016. Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Mei 2009. CITIC Guoan I...