exposed video interface mm_ Player_ Flush_ Screen

This commit is contained in:
jiangcheng 2023-06-02 16:34:29 +08:00
parent d29198d9dc
commit ff0561fecc
2 changed files with 17 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#ifndef __CDMEDIA_PLAYER_H__
#define __CDMEDIA_PLAYER_H__
#include <cdtypes.h>
#include <stdbool.h>
BEGIN_DECLS
@ -28,7 +30,10 @@ DWORD MPSeek(HANDLE handle,double seektime);
DWORD MPSetCallback(HANDLE,MP_CALLBACK,void*userdata);
DWORD MPSetVolume(HANDLE,int colume);
DWORD MPSetWindow(HANDLE,int x,int y,int width,int height);
DWORD MPRotate(HANDLE handle, int type);
int MPRotate(HANDLE handle, int type);
int MPGetStatus(HANDLE handle);
int MPFlushScreen(bool enable);
END_DECLS
#endif

View File

@ -36,7 +36,7 @@ DWORD MPStop(HANDLE handle){
return E_OK;
}
DWORD nglMPResume(HANDLE handle){
DWORD MPResume(HANDLE handle){
MP_PLAYER*mp=(MP_PLAYER*)handle;
mm_player_resume();
return E_OK;
@ -87,7 +87,7 @@ DWORD MPSetWindow(HANDLE handle,int x,int y,int width,int height){
return 0;
}
DWORD MPRotate(HANDLE handle, int type) {
int MPRotate(HANDLE handle, int type) {
MP_PLAYER *mp =(MP_PLAYER*)handle;
GFXRect *r = &mp->viewPort;
@ -111,3 +111,12 @@ DWORD MPRotate(HANDLE handle, int type) {
return 0;
}
int MPGetStatus(HANDLE handle) {
return mm_player_get_status();
}
int MPFlushScreen(bool enable) {
mm_player_flush_screen(enable);
return 0;
}