Bink SDK 1.5v

BINK

The structure BINK is a structure returned from BinkOpen.

struct BINK
{
  U32 Width;
  U32 Height;
  U32 Frames;
  U32 FrameNum;
  U32 FrameRate;
  U32 FrameRateDiv;
  U32 ReadError;
  BINK_OPEN_FLAGS OpenFlags;
  BINKRECT_ARRAY FrameRects;
  U32 NumRects;
  U32 NumTracks;
};

Out Members

Width
Specifies the width of the Bink file.
Height
Specifies the height of the Bink file.
Frames
Specifies the number of frames in the Bink file.
FrameNum
Specifies the frame to be displayed of the Bink file.
FrameRate
Along with FrameRateDiv, specifies the frame rate of the Bink file. The frame rate is calculated by (bink->FrameRate/bink->FrameRateDiv). So, for example, at 15 fps, FrameRate would be 15 and FrameRateDiv would be 1.
FrameRateDiv
Specifies the frame rate divisor of the Bink file.
ReadError
set to non-zero if an IO error has occurred during playback.
OpenFlags
Specifies the flags currently being used by the open Bink file.
FrameRects
Returns the dirty rectangles from the last call to BinkGetRects.
NumRects
Returns the number of dirty rectangles from the last call to BinkGetRects.
NumTracks
Returns the number of audio tracks in the Bink file.

Discussion

The BINK structure is pointed to by the HBINK handle that is returned from BinkOpen. You can dereference the pointer to access any of these information fields. Note that you should never change any of these values!


Group: Bink API
Related Sections: Audio Tracks in Bink, Critical File I/O handling in Bink
Related Functions: BinkGetRects, BinkGetTrackID, BinkMacOpen, BinkOpen, BinkOpenTrack
Related Basic Types: BINKRECT_ARRAY, BINK_OPEN_FLAGS, HBINK, U32

For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.