PROGRAMMER'S GUIDEMPEG library
BackForward
MPEG library / data specifications

10.2 Data details


10.2.1 Basic data


List
 Title

Data specifications

 Data

Basic data

 Data Name

 No

1.0

 Model name
 explanation
 Uint8
 Unsigned 1-byte integer
 Sint8
 Signed 1-byte integer
 Uint16
 Unsigned 2-byte integer
 Sint16
 Signed 2-byte integer
 Uint32
 Unsigned 4-byte integer
 Sint32
 Signed 4-byte integer
 Bool
 Logical type. Takes the following values
FALSE fake
TRUE true


10.2.2 Error code


List
 Title

Data specifications

 Data

Error code

 Data Name

 No

2.0

The value of MPG_ERR_OK is 0. Other error codes have negative values.

 Constant name
 explanation
 MPG_ERR_OK
 normal termination
 MPG_ERR_CDINIT
 CD block initialization failed
 MPG_ERR_NOMC
 No MPEG cartridge
 MPG_ERR_MPNG
 MPEG check failed
 MPG_ERR_MPINIT
 MPEG decoder initialization failed
 MPG_ERR_TMOUT
 time out
 MPG_ERR_PLAYING
 Playing another MPEG stream
 MPG_ERR_MCON
 MPEG decoder connection failed
 MPG_ERR_RCV
 Stop processing was performed during recovery processing
 MPG_ERR_CHG
 Stop processing was performed during switching processing
 MPG_ERR_ILLSTAT
 Handle is not in operation
 MPG_ERR_ENTRYNG
 Failed to register the next video
 MPG_ERR_ILLHDL
 I used an illegal handle
 MPG_ERR_CREATE
 Failed to generate handle
 MPG_ERR_GETTC
 Failed to get the time code
 MPG_ERR_DESTROY
 Failed to erase the handle
 MPG_ERR_WAIT
 MPEG command execution is now WAIT
 MPG_ERR_NG
 Other abnormal termination


10.2.3 Data type


List
 Title

Data specifications

 Data

MPEG video handle

 Data Name

MpgMv

 No

3.1 3.1

Used to control MPEG video.

 Model name
 explanation
 MpgMv
 MPEG video handle 


List
 Title

Data specifications

 Data

MPEG still image handle

 Data Name

MpgSp

 No

3.2

Used to control MPEG still images.

 Model name
 explanation
 MpgSp
 MPEG still image handle 


List
 Title

Data specifications

 Data

MPEG window

 Data Name

MpgWn

 No

3.3

Used to control the MPEG window.

 Model name
 explanation
 MpgWn
 MPEG window 


List
 Title

Data specifications

 Data

Transfer function

 Data Name

MpgTrFunc

 No

3.4 3.4

Form
void (* MpgTrFunc) (void * dst, void * src, Sint32 nbyte)
input
 dst
 : Forwarding address
 src
 : Transfer source address
 nbyte
 : Number of bytes transferred
output
none
explanation
A data type that represents a transfer function. To register the transfer function, use the MPG_WnSetTrFunc function.
For details, refer to " 4.7 Registering a User Transfer Function ".


List
 Title

Data specifications

 Data

Error function

 Data Name

MpgErrFunc

 No

3.5

Form
void (* MpgErrFunc) (void * obj, Sint32 errcode)
input
 obj
: Registered object
 errcode
:Error code
output
none
explanation
A data type that represents an error function that is called when an error occurs. To register the error function, use the MPG_SetErrFunc function.


List
 Title

Data specifications

 Data

Error status

 Data Name

MpgErrStat

 No

3.6

This is the data output by the MPG_GetErrStat function.

MpgErrStat * stat
 Access macro
Mold explanation
MPG_ERR_FUNC (err)
 MpgErrFunc
 Pointer to error function
MPG_ERR_OBJ (err)
 void *
 First argument of the error function
MPG_ERR_CODE (err)
 Sint32
 Error code


BackForward
PROGRAMMER'S GUIDEMPEG library
Copyright SEGA ENTERPRISES, LTD., 1997