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
82bd04b1
Commit
82bd04b1
authored
Jan 18, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rv34: Drop now unnecessary dsputil dependencies
parent
79dad2a9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
24 deletions
+26
-24
rv34dsp_init_arm.c
libavcodec/arm/rv34dsp_init_arm.c
+1
-1
rv40dsp_init_arm.c
libavcodec/arm/rv40dsp_init_arm.c
+1
-1
rv30dsp.c
libavcodec/rv30dsp.c
+3
-2
rv34.c
libavcodec/rv34.c
+2
-2
rv34dsp.c
libavcodec/rv34dsp.c
+5
-4
rv34dsp.h
libavcodec/rv34dsp.h
+7
-7
rv40dsp.c
libavcodec/rv40dsp.c
+5
-5
rv34dsp_init.c
libavcodec/x86/rv34dsp_init.c
+1
-1
rv40dsp_init.c
libavcodec/x86/rv40dsp_init.c
+1
-1
No files found.
libavcodec/arm/rv34dsp_init_arm.c
View file @
82bd04b1
...
...
@@ -32,7 +32,7 @@ void ff_rv34_inv_transform_noround_dc_neon(int16_t *block);
void
ff_rv34_idct_add_neon
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
int16_t
*
block
);
void
ff_rv34_idct_dc_add_neon
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
int
dc
);
av_cold
void
ff_rv34dsp_init_arm
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
)
av_cold
void
ff_rv34dsp_init_arm
(
RV34DSPContext
*
c
)
{
int
cpu_flags
=
av_get_cpu_flags
();
...
...
libavcodec/arm/rv40dsp_init_arm.c
View file @
82bd04b1
...
...
@@ -139,7 +139,7 @@ static av_cold void ff_rv40dsp_init_neon(RV34DSPContext *c)
c
->
rv40_weak_loop_filter
[
1
]
=
ff_rv40_v_weak_loop_filter_neon
;
}
av_cold
void
ff_rv40dsp_init_arm
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
)
av_cold
void
ff_rv40dsp_init_arm
(
RV34DSPContext
*
c
)
{
int
cpu_flags
=
av_get_cpu_flags
();
...
...
libavcodec/rv30dsp.c
View file @
82bd04b1
...
...
@@ -254,11 +254,12 @@ RV30_MC(put_, 16)
RV30_MC
(
avg_
,
8
)
RV30_MC
(
avg_
,
16
)
av_cold
void
ff_rv30dsp_init
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
)
{
av_cold
void
ff_rv30dsp_init
(
RV34DSPContext
*
c
)
{
H264ChromaContext
h264chroma
;
H264QpelContext
qpel
;
ff_rv34dsp_init
(
c
,
dsp
);
ff_rv34dsp_init
(
c
);
ff_h264chroma_init
(
&
h264chroma
,
8
);
ff_h264qpel_init
(
&
qpel
,
8
);
...
...
libavcodec/rv34.c
View file @
82bd04b1
...
...
@@ -1490,11 +1490,11 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
#if CONFIG_RV30_DECODER
if
(
avctx
->
codec_id
==
AV_CODEC_ID_RV30
)
ff_rv30dsp_init
(
&
r
->
rdsp
,
&
r
->
s
.
dsp
);
ff_rv30dsp_init
(
&
r
->
rdsp
);
#endif
#if CONFIG_RV40_DECODER
if
(
avctx
->
codec_id
==
AV_CODEC_ID_RV40
)
ff_rv40dsp_init
(
&
r
->
rdsp
,
&
r
->
s
.
dsp
);
ff_rv40dsp_init
(
&
r
->
rdsp
);
#endif
if
((
ret
=
rv34_decoder_alloc
(
r
))
<
0
)
...
...
libavcodec/rv34dsp.c
View file @
82bd04b1
...
...
@@ -24,7 +24,7 @@
* @file
* RV30/40 decoder common dsp functions
*/
#include "dsputil.h"
#include "rv34dsp.h"
#include "libavutil/common.h"
...
...
@@ -128,7 +128,8 @@ static void rv34_inv_transform_dc_noround_c(int16_t *block)
/** @} */
// transform
av_cold
void
ff_rv34dsp_init
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
)
{
av_cold
void
ff_rv34dsp_init
(
RV34DSPContext
*
c
)
{
c
->
rv34_inv_transform
=
rv34_inv_transform_noround_c
;
c
->
rv34_inv_transform_dc
=
rv34_inv_transform_dc_noround_c
;
...
...
@@ -136,7 +137,7 @@ av_cold void ff_rv34dsp_init(RV34DSPContext *c, DSPContext* dsp) {
c
->
rv34_idct_dc_add
=
rv34_idct_dc_add_c
;
if
(
ARCH_ARM
)
ff_rv34dsp_init_arm
(
c
,
dsp
);
ff_rv34dsp_init_arm
(
c
);
if
(
ARCH_X86
)
ff_rv34dsp_init_x86
(
c
,
dsp
);
ff_rv34dsp_init_x86
(
c
);
}
libavcodec/rv34dsp.h
View file @
82bd04b1
...
...
@@ -74,14 +74,14 @@ typedef struct RV34DSPContext {
rv40_loop_filter_strength_func
rv40_loop_filter_strength
[
2
];
}
RV34DSPContext
;
void
ff_rv30dsp_init
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
);
void
ff_rv34dsp_init
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
);
void
ff_rv40dsp_init
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
);
void
ff_rv30dsp_init
(
RV34DSPContext
*
c
);
void
ff_rv34dsp_init
(
RV34DSPContext
*
c
);
void
ff_rv40dsp_init
(
RV34DSPContext
*
c
);
void
ff_rv34dsp_init_arm
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
);
void
ff_rv34dsp_init_x86
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
);
void
ff_rv34dsp_init_arm
(
RV34DSPContext
*
c
);
void
ff_rv34dsp_init_x86
(
RV34DSPContext
*
c
);
void
ff_rv40dsp_init_x86
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
);
void
ff_rv40dsp_init_arm
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
);
void
ff_rv40dsp_init_x86
(
RV34DSPContext
*
c
);
void
ff_rv40dsp_init_arm
(
RV34DSPContext
*
c
);
#endif
/* AVCODEC_RV34DSP_H */
libavcodec/rv40dsp.c
View file @
82bd04b1
...
...
@@ -25,7 +25,6 @@
*/
#include "avcodec.h"
#include "dsputil.h"
#include "h264qpel.h"
#include "rv34dsp.h"
#include "libavutil/common.h"
...
...
@@ -518,10 +517,11 @@ static int rv40_v_loop_filter_strength(uint8_t *src, ptrdiff_t stride,
return
rv40_loop_filter_strength
(
src
,
1
,
stride
,
beta
,
beta2
,
edge
,
p1
,
q1
);
}
av_cold
void
ff_rv40dsp_init
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
)
{
av_cold
void
ff_rv40dsp_init
(
RV34DSPContext
*
c
)
{
H264QpelContext
qpel
;
ff_rv34dsp_init
(
c
,
dsp
);
ff_rv34dsp_init
(
c
);
ff_h264qpel_init
(
&
qpel
,
8
);
c
->
put_pixels_tab
[
0
][
0
]
=
qpel
.
put_h264_qpel_pixels_tab
[
0
][
0
];
...
...
@@ -607,7 +607,7 @@ av_cold void ff_rv40dsp_init(RV34DSPContext *c, DSPContext* dsp) {
c
->
rv40_loop_filter_strength
[
1
]
=
rv40_v_loop_filter_strength
;
if
(
ARCH_X86
)
ff_rv40dsp_init_x86
(
c
,
dsp
);
ff_rv40dsp_init_x86
(
c
);
if
(
ARCH_ARM
)
ff_rv40dsp_init_arm
(
c
,
dsp
);
ff_rv40dsp_init_arm
(
c
);
}
libavcodec/x86/rv34dsp_init.c
View file @
82bd04b1
...
...
@@ -31,7 +31,7 @@ void ff_rv34_idct_dc_add_mmx(uint8_t *dst, ptrdiff_t stride, int dc);
void
ff_rv34_idct_dc_add_sse4
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
int
dc
);
void
ff_rv34_idct_add_mmxext
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
int16_t
*
block
);
av_cold
void
ff_rv34dsp_init_x86
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
)
av_cold
void
ff_rv34dsp_init_x86
(
RV34DSPContext
*
c
)
{
int
mm_flags
=
av_get_cpu_flags
();
...
...
libavcodec/x86/rv40dsp_init.c
View file @
82bd04b1
...
...
@@ -188,7 +188,7 @@ QPEL_FUNCS_SET (OP, 3, 2, OPT)
#endif
/* HAVE_YASM */
av_cold
void
ff_rv40dsp_init_x86
(
RV34DSPContext
*
c
,
DSPContext
*
dsp
)
av_cold
void
ff_rv40dsp_init_x86
(
RV34DSPContext
*
c
)
{
#if HAVE_YASM
int
mm_flags
=
av_get_cpu_flags
();
...
...
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