Skip to content

Commit

Permalink
Merge pull request #204 from uyjulian/libmpeg_fixes
Browse files Browse the repository at this point in the history
libmpeg related fixes
  • Loading branch information
fjtrujy committed Jul 23, 2021
2 parents cf58cc6 + a4e3a47 commit 4a8f0ba
Show file tree
Hide file tree
Showing 6 changed files with 2,157 additions and 22 deletions.
1 change: 1 addition & 0 deletions ee/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SUBDIRS = erl kernel kernel-nopatch libc rpc startup debug \
eedebug sbv dma graph math3d \
packet packet2 draw libgs \
libvux font input inputx network iopreboot \
mpeg \
elf-loader

include $(PS2SDKSRC)/Defs.make
Expand Down
2 changes: 1 addition & 1 deletion ee/mpeg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

EE_OBJS = libmpeg.o libmpeg_core.o erl-support.o
EE_OBJS = libmpeg.o libmpeg_core_c.o erl-support.o

include $(PS2SDKSRC)/Defs.make
include $(PS2SDKSRC)/ee/Rules.lib.make
Expand Down
2 changes: 1 addition & 1 deletion ee/mpeg/include/libmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern "C" {

void MPEG_Initialize ( int ( * ) ( void* ), void*, void* ( * ) ( void*, MPEGSequenceInfo* ), void*, s64* );
void MPEG_Destroy ( void );
int ( *MPEG_Picture ) ( void*, s64* );
extern int ( *MPEG_Picture ) ( void*, s64* );

#ifdef __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions ee/mpeg/src/libmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
static _MPEGContext s_MPEG12Ctx;
static s64* s_pCurPTS;

static void ( *LumaOp[ 8 ] ) ( _MPEGMotion* ) = {
static void ( *LumaOp[ 8 ] ) ( unsigned char* arg1, short* arg2, int arg3, int arg4 ) = {
_MPEG_put_luma, _MPEG_put_luma_X, _MPEG_put_luma_Y, _MPEG_put_luma_XY,
_MPEG_avg_luma, _MPEG_avg_luma_X, _MPEG_avg_luma_Y, _MPEG_avg_luma_XY
};

static void ( *ChromaOp[ 8 ] ) ( void ) = {
static void ( *ChromaOp[ 8 ] ) ( unsigned char* arg1, short* arg2, int arg3, int arg4 ) = {
_MPEG_put_chroma, _MPEG_put_chroma_X, _MPEG_put_chroma_Y, _MPEG_put_chroma_XY,
_MPEG_avg_chroma, _MPEG_avg_chroma_X, _MPEG_avg_chroma_Y, _MPEG_avg_chroma_XY
};
Expand Down
Loading

0 comments on commit 4a8f0ba

Please sign in to comment.