Sony Blu Print BDN file format

TextRegions

Status: Optional (Mandatory for Text type BDN Events)

Contains Region, TextBox and Font references for The DialogStyleSet definition for TextSt. Definition of Regions and TextBoxes is mandatory however, the user changeable data is optional and may be inserted later by the authoring system.

Region

Status: Mandatory Attributes:

RegionStyleID Unique Region Style ID Numeric value

Range: 0-59. Must start at 0

M
      1. RegionStyle Status: Mandatory Attributes:
RegionHorizontalPosition This field specifies the horizontal position of the top left pixel of region in the Graphics Plane Numeric value

Range: 0 – (video width — 1)

M
RegionVerticalPosition This field specifies the vertical position of the top left pixel of region in the Graphics Plane Numeric value

Range: 0 – (video height — 1)

M
RegionWidth This field specifies the horizontal length of the region rectangle from RegionHorizontalPosition Numeric value

Range: 1 – (video width – RegionHorizontalPosition

)

M
RegionHeight This field specifies the vertical length of the region rectangle from RegionVerticalPosition Numeric value

Range: 1 – (video height – RegionVerticalPosition)

M
RegionPaletteID This field specifies the default Palette for region. Note: See FontInfo for FontPaletteEntryID Valid PaletteID defined in Palette section. This palette will be used for determining the Region Background, Font color and outline color. The FontInfo-

>FontPaletteEntryID references an entry in this palette. Even if the Palette for this region is updated the entry ID remains the same.

M
BackgroundPaletteEntryI D This field specifies an entry number in the Palette for background color of region Valid Index for the PaletteID defined above M
      1. TextBox

Status: Mandatory

Attributes:

TextBoxHorizontalPositio n This field specifies the horizontal position of the text box origin from

the origin of region.

Numeric value

Range: 0 – (RegionWidth

-1)

M
TextBoxVerticalPosition This field specifies the vertical position of the text box origin from the origin of region Numeric value

Range: 0 – (RegionHeight

-1)

M
TextBoxWidth This field specifies the horizontal length of the text box from TextBoxHorizontalPositio n, expressed in terms of the number of pixels. Numeric value

Range: 1 – (RegionWidth

TextBoxHorizontalPositio n)

M
TextBoxHeight This field specifies the vertical length of the text box from TextBoxVerticalPosition, expressed in terms of the number of pixels. Numeric value

Range: 1 – (RegionWidth

TextBoxVerticalPosition)

M
TextFlow This field specifies the paragraph level embedding level for bi- directional text.
  1. – Left to Right chars, Top to Bottom lines
  2. – Right to Left chars, Top to Bottom lines
  3. – Top to Bottom chars, Right to Left lines
M
TextHorizontalAlignment This field specifies horizontal alignment of rendered text to the text box.
  1. – Left
  2. – Center
  3. –Right
M
TextVerticalAlignment This field specifies vertical alignment of rendered text to the text box.
  1. – Top
  2. – Middle
  3. – Bottom
M
      1. LineSpace Status: Mandatory Attributes:
LineSpace Space from baseline to baseline in pixels M
      1. FontInfo Status: Mandatory Attributes:
FontID Font reference Valid FontID defined in M
Font section
FontStyle Style of the font 0x00 Normal 0x01 Bold 0x02 Italic

0x03 Bold and Italic 0x04 Outline-bordered 0x05 Bold and Outline- bordered

0x06 Italic and Outline- bordered

0x07 Bold and Italic and Outline-bordered

M
FontSize This field specifies the size of font in pixels 8-144 M
FontPaletteEntryID This field specifies an entry number in the Palette for color of text Valid Index from the RegionPaletteID M
FontOutlinePaletteEntryI D This field specifies an entry number in the Palette for color of outline Valid Index from the RegionPaletteID M
FontOutlineThickness 0x01 (Thin), 0x02 (Medium), 0x03 (Thick) M
      1. UserChangeableStyles

Status: Optional

        1. UserChangeableStyle

Status: Mandatory Attributes:

UserStyleID The user_style_id uniquely identifies the user style Numeric value

Range: 0-24. Must start at 0

M
          1. RegionPosition

Status: Mandatory Attributes:

RegionHorizontalPosition Direction This field specifies the direction of region horizontal position. 0 – Right

1 – Left

M
RegionHorizontalPosition Delta This field specifies the number of region horizontal position movement in the unit of pixels M
RegionVerticalPositionDir This field specifies the 0 – Down M
ection direction of region vertical position. 1 – Up
RegionVerticalPositionDe lta This field specifies the number of region vertical position movement

in the unit of pixels

M