beautypg.com

Hd fenced image file size calculations, Image metadata file format – Grass Valley Switcher Products User Manual

Page 141

background image

Switcher Products — Protocols Manual

141

Image Metadata File Format

HD Fenced Image File Size Calculations

A fenced region must start with a pixel containing co-sited color difference
samples.

Table 122 on page 139

shows the sizes of fenced images. Each group (of 14

pixels in 36 bytes) in each fenced size is completely filled, which is why a
line at 1/4 fence size has more than 1/2 the number of pixels in a full-size
image line.

Image Metadata File Format

The metadata file provides instructions necessary for the still store to read
the image data file. It also contains instructions on how the image should
be output from the still store (and how it should appear in the image
browser). The metadata file format has evolved significantly since the first
still store implementation in Kalypso. This format is now at version 6, and
only this version is described here. See Metadata File Format Versions and
Kalypso Software Releases

on page 133

for more information.

Table 125

indicates the size offset, and contents of each data field.

Size is in bits, and also indicates whether the parameter is signed or
unsigned. E.g., Uint16 is a 16-bit unsigned value, Int32 is a signed 32-bit
value. Float values are 32-bit values in IEEE 754 format (ANSI/IEE 754-
1985).

Offset is in bytes from the beginning of the file in hexadecimal.

Table 125. Image Metadata

Offset

Size

Parameter

Value /Comment

0x00

UInt16

magicNumber

0x5ADF

0x02

UInt16

metatataVersion

6 (don't continue processing if not version 6)

0x04

UInt32

imageHandle

0 (not used) See discussion above in Introduction.

0x08

81 characters

fileName[81]

0’s (not used)

0x59

81 characters

imageName[81]

Null terminated character string. Characters after first null are ignored. See discus-
sion above in Introduction.

0xAA

UInt16

imageType

3 for single frame video only

4 for single frame key only (not used)

5 for single frame video + key

6 for multiple frame video only

7 for multiple frame key only (not used)

8 for multiple frame video + key
fill image data file with appropriate information

0xAC

UInt16

imageLineRate

1 for 525/60
2 for 625/50
3 + 1 * 2

6

+ [(line rate) * 2

8

] for 720p

4 + [(line rate) * 2

8

] for 1080i

(line rate optional, see Line Rate discussion for details)

0xAE

UInt16

pad1

0 (compiler generated structure alignment filler)

0xB0

Int32

aspectRatio16x9

0 for 4:3 (see Output Crop and Position discussion)

1 for 16:9 for supported HD line rates 720p and 1080i