aboutsummaryrefslogtreecommitdiff
path: root/indev/psxmdec/vlc.c
diff options
context:
space:
mode:
authorU-Lameguy64-LT\Lameguy64 <lameguy64@gmail.com>2022-04-01 14:39:04 +0800
committerU-Lameguy64-LT\Lameguy64 <lameguy64@gmail.com>2022-04-01 14:39:04 +0800
commita8b404b3400c3ebd8e0b923dcaefcc49ea563e36 (patch)
tree497e052bf5eb3aaed387cefa8a38b53027ffc8ac /indev/psxmdec/vlc.c
parent8a01ce9efe1c03b4c103b47006b5ac3af585743c (diff)
downloadpsn00bsdk-a8b404b3400c3ebd8e0b923dcaefcc49ea563e36.tar.gz
Fixed up psxmdec prototype to use psxpress
Diffstat (limited to 'indev/psxmdec/vlc.c')
-rw-r--r--indev/psxmdec/vlc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/indev/psxmdec/vlc.c b/indev/psxmdec/vlc.c
index bc64a12..064cfb3 100644
--- a/indev/psxmdec/vlc.c
+++ b/indev/psxmdec/vlc.c
@@ -1,3 +1,12 @@
+/* This file is a trimmed version of
+ * https://cgit.grumpycoder.net/cgit/PSX-Bundle/tree/psxdev/vlc.c
+ * that only includes the VLC decompression routine. It cannot be
+ * included as part of the PSn00bSDK Run-time libraries due to license
+ * incompatibilities but is included here largely for prototyping and
+ * reference purposes as a better optimized implementation is preferred
+ * to support full-motion-video playback.
+ *
+ */
#include <sys/types.h>
typedef unsigned short Uint16;
@@ -7,7 +16,7 @@ typedef struct {
unsigned int code,nbits;
} huff_t;
-#include "table.h"
+//#include "table.h"
#define CODE1(a,b,c) (((a)<<10)|((b)&0x3ff)|((c)<<16))
/* run, level, bit */