Japanese
PROGRAMMER'S GUIDEMPEG library
BackForward
MPEG library/data specifications

10.2 Data details


10.2.1 Basic data


one
View
table
 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
TRUE


10.2.2 Error Codes


one
View
table
 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
 Failed to initialize CD block
 MPG_ERR_NOMC
 No MPEG cartridge
 MPG_ERR_MPNG
 MPEG check failed
 MPG_ERR_MPINIT
 MPEG decoder initialization failed
 MPG_ERR_TMOUT
 timeout
 MPG_ERR_PLAYING
 Playing another MPEG stream
 MPG_ERR_MCON
 Failed to connect MPEG decoder
 MPG_ERR_RCV
 Stop processing was performed during restoration processing
 MPG_ERR_CHG
 Stop processing was performed during switching processing.
 MPG_ERR_ILLSTAT
 Handle is not operational
 MPG_ERR_ENTRYNG
 Failed to register the next video
 MPG_ERR_ILLHDL
 using an invalid handle
 MPG_ERR_CREATE
 Failed to generate handle
 MPG_ERR_GETTC
 Failed to get timecode
 MPG_ERR_DESTROY
 Failed to delete handle
 MPG_ERR_WAIT
 MPEG command execution becomes WAIT
 MPG_ERR_NG
 Other abnormal terminations


10.2.3 Data types


one
View
table
 Title

data specifications

 Data

MPEG video handle

 Data Name

MpgMv

 No

3.1

Used to control MPEG videos.

 Model name
 explanation
 MpgMv
 MPEG video handle 


one
View
table
 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 


one
View
table
 Title

data specifications

 Data

MPEG window

 Data Name

MpgWn

 No

3.3

Used to control the MPEG window.

 Model name
 explanation
 MpgWn
 MPEG window 


one
View
table
 Title

data specifications

 Data

transfer function

 Data Name

MpgTrFunc

 No

3.4

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


one
View
table
 Title

data specifications

 Data

error function

 Data Name

MpgErrFunc

 No

3.5

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


one
View
table
 Title

data specifications

 Data

error condition

 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 error function
MPG_ERR_CODE(err)
 Sint32
 Error code


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