LeXXuz
22nd January 2003, 11:32
I didn't get it. Can anybody help ?
I'd like to write a command sequence which allows me to set audio
and subtitle languages as desired by the users dvd-player setup.
So I have to write a cs reading out the SPRM registers.
According to http://members.aol.com/mpucoder/DVD/sprm.html
I have to read out SPRM16 for the prefered audio language and
SPRM18 for the prefered subtitle language.
Allowable values should be in ISO 639 code. I always make my DVDs in english
and german language. So the codes would be 'DE' and 'EN' , right?
But how do I convert these 'values' into immediate or hex-values to make
a comparison for setting the desired stream ?
Let me explain:
Example:
1st audio stream is german
2nd audio stream is english
So I thought of the following sequence:
MOV GP0 , SPRM16 # read out desired audio language by setup in player
MOV GP1 , SPRM18 # read out desired subtitle language by setup in player
SetSTN Au(1) if (GP0 = ??? ) <== What do I have to set here for the "???"
SetSTN Au(2) if (GP0 = ??? ) <==
SetSTN St(1) if (GP1 = ??? ) <==
SetSTN St(2) if (GP1 = ??? ) <==
Jump to Movie2(#1)
So how do i get the 'DE' and 'EN' ISO CODE into a (hex)-value ?
2nd I don't understand in the SPRM overview is the meaning of SPRM19
What is the difference between 1 (=normal) and 5 (=normal caption)
or
3 (children) and 7 (childrens caption) ?
regards
Lexxuz
I'd like to write a command sequence which allows me to set audio
and subtitle languages as desired by the users dvd-player setup.
So I have to write a cs reading out the SPRM registers.
According to http://members.aol.com/mpucoder/DVD/sprm.html
I have to read out SPRM16 for the prefered audio language and
SPRM18 for the prefered subtitle language.
Allowable values should be in ISO 639 code. I always make my DVDs in english
and german language. So the codes would be 'DE' and 'EN' , right?
But how do I convert these 'values' into immediate or hex-values to make
a comparison for setting the desired stream ?
Let me explain:
Example:
1st audio stream is german
2nd audio stream is english
So I thought of the following sequence:
MOV GP0 , SPRM16 # read out desired audio language by setup in player
MOV GP1 , SPRM18 # read out desired subtitle language by setup in player
SetSTN Au(1) if (GP0 = ??? ) <== What do I have to set here for the "???"
SetSTN Au(2) if (GP0 = ??? ) <==
SetSTN St(1) if (GP1 = ??? ) <==
SetSTN St(2) if (GP1 = ??? ) <==
Jump to Movie2(#1)
So how do i get the 'DE' and 'EN' ISO CODE into a (hex)-value ?
2nd I don't understand in the SPRM overview is the meaning of SPRM19
What is the difference between 1 (=normal) and 5 (=normal caption)
or
3 (children) and 7 (childrens caption) ?
regards
Lexxuz