diff options
Diffstat (limited to 'src/psp/codec.rs')
-rw-r--r-- | src/psp/codec.rs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/psp/codec.rs b/src/psp/codec.rs new file mode 100644 index 0000000000..84a583e05b --- /dev/null +++ b/src/psp/codec.rs @@ -0,0 +1,46 @@ +extern { + pub fn sceVideocodecOpen( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceVideocodecGetEDRAM( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceVideocodecInit( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceVideocodecDecode( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceVideocodecReleaseEDRAM(buffer: *mut u32) -> i32; +} + +pub enum AudioCodec { + At3Plus = 0x00001000, + At3 = 0x00001001, + Mp3 = 0x00001002, + Aac = 0x00001003, +} + +extern { + pub fn sceAudiocodecCheckNeedMem( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceAudiocodecInit( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceAudiocodecDecode( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceAudiocodecGetEDRAM( + buffer: *mut u32, + type_: i32, + ) -> i32; + pub fn sceAudiocodecReleaseEDRAM(buffer: *mut u32) -> i32; +} |