Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6d4c9f2a
Commit
6d4c9f2a
authored
Jan 08, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lossless_videodsp: rename add_hfyu_left_pred_int16 to add_left_pred_int16
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
47f21232
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
18 deletions
+19
-18
huffyuvdec.c
libavcodec/huffyuvdec.c
+1
-1
lossless_videodsp.c
libavcodec/lossless_videodsp.c
+2
-2
lossless_videodsp.h
libavcodec/lossless_videodsp.h
+2
-1
magicyuv.c
libavcodec/magicyuv.c
+7
-7
lossless_videodsp.asm
libavcodec/x86/lossless_videodsp.asm
+3
-3
lossless_videodsp_init.c
libavcodec/x86/lossless_videodsp_init.c
+4
-4
No files found.
libavcodec/huffyuvdec.c
View file @
6d4c9f2a
...
...
@@ -882,7 +882,7 @@ static int left_prediction(HYuvContext *s, uint8_t *dst, const uint8_t *src, int
if
(
s
->
bps
<=
8
)
{
return
s
->
llviddsp
.
add_left_pred
(
dst
,
src
,
w
,
acc
);
}
else
{
return
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
((
uint16_t
*
)
dst
,
(
const
uint16_t
*
)
src
,
s
->
n
-
1
,
w
,
acc
);
return
s
->
llviddsp
.
add_left_pred_int16
((
uint16_t
*
)
dst
,
(
const
uint16_t
*
)
src
,
s
->
n
-
1
,
w
,
acc
);
}
}
...
...
libavcodec/lossless_videodsp.c
View file @
6d4c9f2a
...
...
@@ -79,7 +79,7 @@ static int add_left_pred_c(uint8_t *dst, const uint8_t *src, intptr_t w,
return
acc
;
}
static
int
add_
hfyu_
left_pred_int16_c
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
acc
){
static
int
add_left_pred_int16_c
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
acc
){
int
i
;
for
(
i
=
0
;
i
<
w
-
1
;
i
++
){
...
...
@@ -105,7 +105,7 @@ void ff_llviddsp_init(LLVidDSPContext *c)
c
->
add_median_pred
=
add_median_pred_c
;
c
->
add_left_pred
=
add_left_pred_c
;
c
->
add_
hfyu_left_pred_int16
=
add_hfyu
_left_pred_int16_c
;
c
->
add_
left_pred_int16
=
add
_left_pred_int16_c
;
if
(
ARCH_X86
)
ff_llviddsp_init_x86
(
c
);
...
...
libavcodec/lossless_videodsp.h
View file @
6d4c9f2a
...
...
@@ -34,7 +34,8 @@ typedef struct LLVidDSPContext {
int
(
*
add_left_pred
)(
uint8_t
*
dst
,
const
uint8_t
*
src
,
intptr_t
w
,
int
left
);
int
(
*
add_hfyu_left_pred_int16
)(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
left
);
int
(
*
add_left_pred_int16
)(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
left
);
}
LLVidDSPContext
;
void
ff_llviddsp_init
(
LLVidDSPContext
*
llviddsp
);
...
...
libavcodec/magicyuv.c
View file @
6d4c9f2a
...
...
@@ -221,24 +221,24 @@ static int magy_decode_slice10(AVCodecContext *avctx, void *tdata,
switch
(
pred
)
{
case
LEFT
:
dst
=
(
uint16_t
*
)
p
->
data
[
i
]
+
j
*
sheight
*
stride
;
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
dst
+=
stride
;
if
(
interlaced
)
{
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
dst
+=
stride
;
}
for
(
k
=
1
+
interlaced
;
k
<
height
;
k
++
)
{
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
(
dst
,
dst
,
1023
,
width
,
dst
[
-
fake_stride
]);
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
1023
,
width
,
dst
[
-
fake_stride
]);
dst
+=
stride
;
}
break
;
case
GRADIENT
:
dst
=
(
uint16_t
*
)
p
->
data
[
i
]
+
j
*
sheight
*
stride
;
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
left
=
lefttop
=
0
;
dst
+=
stride
;
if
(
interlaced
)
{
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
left
=
lefttop
=
0
;
dst
+=
stride
;
}
...
...
@@ -258,11 +258,11 @@ static int magy_decode_slice10(AVCodecContext *avctx, void *tdata,
case
MEDIAN
:
dst
=
(
uint16_t
*
)
p
->
data
[
i
]
+
j
*
sheight
*
stride
;
lefttop
=
left
=
dst
[
0
];
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
dst
+=
stride
;
if
(
interlaced
)
{
lefttop
=
left
=
dst
[
0
];
s
->
llviddsp
.
add_
hfyu_
left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
1023
,
width
,
0
);
dst
+=
stride
;
}
for
(
k
=
1
+
interlaced
;
k
<
height
;
k
++
)
{
...
...
libavcodec/x86/lossless_videodsp.asm
View file @
6d4c9f2a
...
...
@@ -258,9 +258,9 @@ ADD_BYTES
RET
%endmacro
; int add_
hfyu_
left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)
; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)
INIT_MMX
ssse3
cglobal
add_
hfyu_
left_pred_int16
,
4
,
4
,
8
,
dst
,
src
,
mask
,
w
,
left
cglobal
add_left_pred_int16
,
4
,
4
,
8
,
dst
,
src
,
mask
,
w
,
left
.
skip_prologue
:
mova
m5
,
[
pb_67
]
mova
m3
,
[
pb_zzzz2323zzzzabab
]
...
...
@@ -271,7 +271,7 @@ cglobal add_hfyu_left_pred_int16, 4,4,8, dst, src, mask, w, left
ADD_HFYU_LEFT_LOOP_INT16
a
,
a
INIT_XMM
sse4
cglobal
add_
hfyu_
left_pred_int16
,
4
,
4
,
8
,
dst
,
src
,
mask
,
w
,
left
cglobal
add_left_pred_int16
,
4
,
4
,
8
,
dst
,
src
,
mask
,
w
,
left
mova
m5
,
[
pb_ef
]
mova
m4
,
[
pb_zzzzzzzz67676767
]
mova
m3
,
[
pb_zzzz2323zzzzabab
]
...
...
libavcodec/x86/lossless_videodsp_init.c
View file @
6d4c9f2a
...
...
@@ -38,8 +38,8 @@ int ff_add_left_pred_ssse3(uint8_t *dst, const uint8_t *src,
int
ff_add_left_pred_sse4
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
intptr_t
w
,
int
left
);
int
ff_add_
hfyu_
left_pred_int16_ssse3
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
acc
);
int
ff_add_
hfyu_
left_pred_int16_sse4
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
acc
);
int
ff_add_left_pred_int16_ssse3
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
acc
);
int
ff_add_left_pred_int16_sse4
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
unsigned
acc
);
#if HAVE_INLINE_ASM && HAVE_7REGS && ARCH_X86_32
static
void
add_median_pred_cmov
(
uint8_t
*
dst
,
const
uint8_t
*
top
,
...
...
@@ -108,10 +108,10 @@ void ff_llviddsp_init_x86(LLVidDSPContext *c)
if
(
cpu_flags
&
AV_CPU_FLAG_SSE4
)
// not really SSE4, just slow on Conroe
c
->
add_left_pred
=
ff_add_left_pred_sse4
;
c
->
add_
hfyu_left_pred_int16
=
ff_add_hfyu
_left_pred_int16_ssse3
;
c
->
add_
left_pred_int16
=
ff_add
_left_pred_int16_ssse3
;
}
if
(
EXTERNAL_SSE4
(
cpu_flags
))
{
c
->
add_
hfyu_left_pred_int16
=
ff_add_hfyu
_left_pred_int16_sse4
;
c
->
add_
left_pred_int16
=
ff_add
_left_pred_int16_sse4
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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