ArticleslgStudy

computer science

Silicon Graphics Image

Silicon Graphics Image is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Silicon Graphics Image rather than just read about it. In short: Silicon Graphics Image (SGI) or the RGB file format is the native raster graphics file format for Silicon Graphics workstations. The format was invented by Paul Haeberli.

Key takeaways

  • Silicon Graphics Image belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Silicon Graphics Image to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Silicon Graphics Image from memory before moving on to harder problems.

Reference excerpt

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

Background Common file extensions are:

.sgi or .rgb 3 color channels .rgba 3 color 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. 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 uses big endian order. The image data scans from left to right from bottom to top.

Header

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 0x00 to fill the 80-byte space. Color Map ID SGI supports 4 types of color mapping:

0x00 normal: image has 1 channel (greyscale), 3 channels (RGB) or 4 channels (RGBA). 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. 0x02 screen: image uses colormap. Pixel data is index in color map and image only have 1 channel. 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 represents 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 represents 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. In either case of unsigned char or unsigned short, the lowest 7 bits will tell the count. If bit 8 is zero, the count is the number times copy value after count. If bit 8 is one, the count is number times copy series of values after count byte. For 2 bytes/channel image, count and value are unsigned short, and top byte of count always equals zero.

See also SGI IRIS

References

Worked examples

Example 1 — a first encounter with Silicon Graphics Image

Start with the simplest possible case. Write down what Silicon Graphics Image claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Silicon Graphics Image before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Silicon Graphics Image ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Silicon Graphics Image

In research
Silicon Graphics Image appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Silicon Graphics Image in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Silicon Graphics Image is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer-related introductions in 1995, Graphics file formats, so understanding it makes those chapters shorter.
In everyday life
Look for Silicon Graphics Image outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Silicon Graphics Image” →

How to study Silicon Graphics Image in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Silicon Graphics Image means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Silicon Graphics Image out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Silicon Graphics Image in simple terms?

Silicon Graphics Image (SGI) or the RGB file format is the native raster graphics file format for Silicon Graphics workstations. The format was invented by Paul Haeberli.

Why does Silicon Graphics Image matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Silicon Graphics Image?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Silicon Graphics Image.

Tags

  • Computer-related introductions in 1995
  • Graphics file formats

Keep exploring