Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dreamcast
dcdivx
Commits
771f49ea
Commit
771f49ea
authored
Jun 02, 2024
by
Donald Haase
Browse files
Fixing issues with headers and one out-of-place function.
parent
950c5030
Changes
18
Hide whitespace changes
Inline
Side-by-side
AviDecaps.cpp
View file @
771f49ea
...
...
@@ -9,14 +9,13 @@
* Authors: *
* Marc Dukette
**************************************************************************************/
#include
"
kos.h
"
#include
"A
VI
Decaps.h"
#include
"
i
nput
m
edia.h"
#include
<
kos.h
>
#include
"A
vi
Decaps.h"
#include
"
I
nput
M
edia.h"
videoinfo
thisvid
;
char
data
[
256
];
//#include "inputmedia.h"
/*
* Some useful functions
*/
...
...
AviDecaps_index.cpp
View file @
771f49ea
...
...
@@ -15,7 +15,7 @@
#include
"AviDecaps.h"
#include
"
i
nput
m
edia.h"
#include
"
I
nput
M
edia.h"
int
CacheSize
;
videoinfo
thisvid
;
...
...
DivxDecoder/mp4_recon.c
View file @
771f49ea
...
...
@@ -234,72 +234,6 @@ static void CopyMBlockHorVerRound(unsigned char * Src, unsigned char * Dst, int
}
}
/**/
void
recon_comp
(
unsigned
char
*
src
,
unsigned
char
*
dst
,
int
lx
,
int
w
,
int
x
,
int
y
,
int
dx
,
int
dy
);
/**/
void
reconstruct
(
int
bx
,
int
by
,
int
mode
)
{
int
dx
,
dy
,
comp
,
sum
;
int
x
,
y
,
px
,
py
;
x
=
bx
+
1
;
y
=
by
+
1
;
// Luma
px
=
bx
<<
4
;
py
=
by
<<
4
;
if
(
mode
==
INTER4V
)
{
for
(
comp
=
0
;
comp
<
4
;
comp
++
)
{
dx
=
MV
[
x
][
y
][
comp
][
0
];
dy
=
MV
[
x
][
y
][
comp
][
1
];
recon_comp
(
frame_for
[
0
],
frame_ref
[
0
],
coded_picture_width
,
8
,
px
+
((
comp
&
1
)
<<
3
),
py
+
((
comp
&
2
)
<<
2
),
dx
,
dy
);
}
}
else
{
dx
=
MV
[
x
][
y
][
0
][
0
];
dy
=
MV
[
x
][
y
][
0
][
1
];
recon_comp
(
frame_for
[
0
],
frame_ref
[
0
],
coded_picture_width
,
16
,
px
,
py
,
dx
,
dy
);
}
// Chr
px
=
bx
<<
3
;
py
=
by
<<
3
;
if
(
mode
==
INTER4V
)
{
sum
=
MV
[
x
][
y
][
0
][
0
]
+
MV
[
x
][
y
][
1
][
0
]
+
MV
[
x
][
y
][
2
][
0
]
+
MV
[
x
][
y
][
3
][
0
];
if
(
sum
==
0
)
dx
=
0
;
else
dx
=
sign
(
sum
)
*
(
roundtab
[
abs
(
sum
)
&
0xF
]
+
((
abs
(
sum
)
>>
4
)
<<
1
));
sum
=
MV
[
x
][
y
][
0
][
1
]
+
MV
[
x
][
y
][
1
][
1
]
+
MV
[
x
][
y
][
2
][
1
]
+
MV
[
x
][
y
][
3
][
1
];
if
(
sum
==
0
)
dy
=
0
;
else
dy
=
sign
(
sum
)
*
(
roundtab
[
abs
(
sum
)
&
0xF
]
+
((
abs
(
sum
)
>>
4
)
<<
1
));
}
else
{
dx
=
MV
[
x
][
y
][
0
][
0
];
dy
=
MV
[
x
][
y
][
0
][
1
];
// chroma rounding
dx
=
((
dx
&
0x3
)
==
0
?
dx
>>
1
:
(
dx
>>
1
)
|
1
);
dy
=
((
dy
&
0x3
)
==
0
?
dy
>>
1
:
(
dy
>>
1
)
|
1
);
}
recon_comp
(
frame_for
[
1
],
frame_ref
[
1
],
coded_picture_width
>>
1
,
8
,
px
,
py
,
dx
,
dy
);
recon_comp
(
frame_for
[
2
],
frame_ref
[
2
],
coded_picture_width
>>
1
,
8
,
px
,
py
,
dx
,
dy
);
}
/**/
static
void
recon_comp
(
unsigned
char
*
src
,
unsigned
char
*
dst
,
int
lx
,
int
w
,
int
x
,
int
y
,
int
dx
,
int
dy
)
...
...
@@ -365,3 +299,59 @@ static void recon_comp (unsigned char *src, unsigned char *dst,
}
}
void
reconstruct
(
int
bx
,
int
by
,
int
mode
)
{
int
dx
,
dy
,
comp
,
sum
;
int
x
,
y
,
px
,
py
;
x
=
bx
+
1
;
y
=
by
+
1
;
// Luma
px
=
bx
<<
4
;
py
=
by
<<
4
;
if
(
mode
==
INTER4V
)
{
for
(
comp
=
0
;
comp
<
4
;
comp
++
)
{
dx
=
MV
[
x
][
y
][
comp
][
0
];
dy
=
MV
[
x
][
y
][
comp
][
1
];
recon_comp
(
frame_for
[
0
],
frame_ref
[
0
],
coded_picture_width
,
8
,
px
+
((
comp
&
1
)
<<
3
),
py
+
((
comp
&
2
)
<<
2
),
dx
,
dy
);
}
}
else
{
dx
=
MV
[
x
][
y
][
0
][
0
];
dy
=
MV
[
x
][
y
][
0
][
1
];
recon_comp
(
frame_for
[
0
],
frame_ref
[
0
],
coded_picture_width
,
16
,
px
,
py
,
dx
,
dy
);
}
// Chr
px
=
bx
<<
3
;
py
=
by
<<
3
;
if
(
mode
==
INTER4V
)
{
sum
=
MV
[
x
][
y
][
0
][
0
]
+
MV
[
x
][
y
][
1
][
0
]
+
MV
[
x
][
y
][
2
][
0
]
+
MV
[
x
][
y
][
3
][
0
];
if
(
sum
==
0
)
dx
=
0
;
else
dx
=
sign
(
sum
)
*
(
roundtab
[
abs
(
sum
)
&
0xF
]
+
((
abs
(
sum
)
>>
4
)
<<
1
));
sum
=
MV
[
x
][
y
][
0
][
1
]
+
MV
[
x
][
y
][
1
][
1
]
+
MV
[
x
][
y
][
2
][
1
]
+
MV
[
x
][
y
][
3
][
1
];
if
(
sum
==
0
)
dy
=
0
;
else
dy
=
sign
(
sum
)
*
(
roundtab
[
abs
(
sum
)
&
0xF
]
+
((
abs
(
sum
)
>>
4
)
<<
1
));
}
else
{
dx
=
MV
[
x
][
y
][
0
][
0
];
dy
=
MV
[
x
][
y
][
0
][
1
];
// chroma rounding
dx
=
((
dx
&
0x3
)
==
0
?
dx
>>
1
:
(
dx
>>
1
)
|
1
);
dy
=
((
dy
&
0x3
)
==
0
?
dy
>>
1
:
(
dy
>>
1
)
|
1
);
}
recon_comp
(
frame_for
[
1
],
frame_ref
[
1
],
coded_picture_width
>>
1
,
8
,
px
,
py
,
dx
,
dy
);
recon_comp
(
frame_for
[
2
],
frame_ref
[
2
],
coded_picture_width
>>
1
,
8
,
px
,
py
,
dx
,
dy
);
}
MADDecoder/
h
uffman.h
→
MADDecoder/
H
uffman.h
View file @
771f49ea
File moved
MADDecoder/huffman.c
View file @
771f49ea
...
...
@@ -20,7 +20,7 @@
# include "global1.h"
# include "
h
uffman.h"
# include "
H
uffman.h"
/*
* These are the Huffman code words for Layer III.
...
...
MADDecoder/layer3.c
View file @
771f49ea
...
...
@@ -38,7 +38,7 @@
# include "bit.h"
# include "stream.h"
# include "frame.h"
# include "
h
uffman.h"
# include "
H
uffman.h"
# include "layer3.h"
/* --- Layer III ----------------------------------------------------------- */
...
...
MP3Reader.cpp
View file @
771f49ea
// MP3Reader.cpp : Defines the entry point for the DLL application.
//
#include
"
kos.h
"
#include
"A
VI
Decaps.h"
#include
"
i
nput
m
edia.h"
#include
<
kos.h
>
#include
"A
vi
Decaps.h"
#include
"
I
nput
M
edia.h"
videoinfo
mpsvid
;
...
...
On2/VP3_PPC/DCT_decode.c
View file @
771f49ea
...
...
@@ -28,7 +28,7 @@
#define STRICT
/* Strict type checking. */
#include
"pbdll.h"
#include
"
D
ct.h"
#include
"
d
ct.h"
#include
"Huffman.h"
#include
"Quantize.h"
#include
"Reconstruct.h"
...
...
On2/VP3_PPC/DFrameR.c
View file @
771f49ea
...
...
@@ -27,7 +27,7 @@
#define STRICT
/* Strict type checking. */
#include
"vfw_
pb_i
nterface.h"
#include
"vfw_
PB_I
nterface.h"
#include
"pbdll.h"
/****************************************************************************
...
...
On2/VP3_PPC/FrameIni.c
View file @
771f49ea
...
...
@@ -28,7 +28,7 @@
#include
"pbdll.h"
#include
"BlockMapping.h"
#include
"stdlib.h"
#include
"vfw_
pb_i
nterface.h"
#include
"vfw_
PB_I
nterface.h"
/****************************************************************************
* Module constants.
*****************************************************************************
...
...
On2/VP3_PPC/VP3_PPC.c
View file @
771f49ea
...
...
@@ -5,7 +5,7 @@
#define PBDLL
#include
"vp3d.h"
#include
"vfw_
pb_i
nterface.h"
#include
"vfw_
PB_I
nterface.h"
#include
"pbdll.h"
/**/
#include
"decore.h"
...
...
On2/VP3_PPC/dct.h
View file @
771f49ea
...
...
@@ -22,7 +22,7 @@
#ifndef DCT_HEADER
#define DCT_HEADER
#include
"
q
uantize.h"
#include
"
Q
uantize.h"
#include
"type_aliases.h"
/****************************************************************************
* Constants
...
...
On2/VP3_PPC/pbdll.h
View file @
771f49ea
...
...
@@ -25,10 +25,10 @@
#define VAL_RANGE 256
#include
"raw
t
ypes.h"
#include
"raw
T
ypes.h"
#include
"codec_common.h"
#include
"
h
uffman.h"
#include
"
H
uffman.h"
//#include "YUVtofromRGB.h"
/****************************************************************************
...
...
On2/VP3_PPC/vfwpbdll_if.c
View file @
771f49ea
...
...
@@ -30,7 +30,7 @@
#include
"pbdll.h"
#include
"blockmapping.h"
#include
<math.h>
#include
"vfw_
pb_i
nterface.h"
#include
"vfw_
PB_I
nterface.h"
//#include "VP31DVERSION.h"
//#define CommentString "\nON2.COM VERSION VP31D " VP31DVERSION "\n"
//#pragma comment(exestr,CommentString)
...
...
On2/VP3_PPC/vp3d.h
View file @
771f49ea
...
...
@@ -8,7 +8,7 @@
// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
//
//--------------------------------------------------------------------------
#include
"raw
t
ypes.h"
#include
"raw
T
ypes.h"
#ifndef vp3d_h
#define vp3d_h 1
...
...
bkg.c
View file @
771f49ea
...
...
@@ -15,8 +15,6 @@
//#include <png/png.h>
#include
<jpeg/jpeg.h>
#include
<zlib/zlib.h>
#include
<zlib.h>
/* This module will manage the spiffy background effects */
...
...
divx.c
View file @
771f49ea
...
...
@@ -16,10 +16,10 @@
#include
"MADDecoder/global1.h"
#include
"
kos.h
"
#include
<
kos.h
>
#include
"MADDecoder/fixed.h"
#include
"decore.h"
#include
"
a
vi
d
ecaps.h"
#include
"
A
vi
D
ecaps.h"
#include
"yuv2rgb.h"
#include
<malloc.h>
#include
"math.h"
...
...
loading.c
View file @
771f49ea
...
...
@@ -15,7 +15,6 @@
//#include <png/png.h>
#include
<jpeg/jpeg.h>
#include
<zlib/zlib.h>
#include
<zlib.h>
/* This module will manage the spiffy background effects */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment