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
2f6bc5f7
Commit
2f6bc5f7
authored
Mar 10, 2013
by
Ronald S. Bultje
Committed by
Martin Storsjö
Apr 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svq3: Use hpeldsp instead of dsputil for half-pel functions
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
f4fed5a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
configure
configure
+1
-1
svq3.c
libavcodec/svq3.c
+10
-7
No files found.
configure
View file @
2f6bc5f7
...
...
@@ -1642,7 +1642,7 @@ sipr_decoder_select="lsp"
sp5x_decoder_select
=
"dsputil"
svq1_decoder_select
=
"hpeldsp"
svq1_encoder_select
=
"aandcttables dsputil mpegvideoenc"
svq3_decoder_select
=
"golomb h264chroma h264dsp h264pred h264qpel mpegvideo videodsp"
svq3_decoder_select
=
"golomb h264chroma h264dsp h264pred h264qpel
hpeldsp
mpegvideo videodsp"
svq3_decoder_suggest
=
"error_resilience zlib"
tak_decoder_select
=
"dsputil"
theora_decoder_select
=
"vp3_decoder"
...
...
libavcodec/svq3.c
View file @
2f6bc5f7
...
...
@@ -48,6 +48,7 @@
#include "h264_mvpred.h"
#include "golomb.h"
#include "hpeldsp.h"
#include "rectangle.h"
#include "vdpau_internal.h"
...
...
@@ -65,6 +66,7 @@
typedef
struct
{
H264Context
h
;
HpelDSPContext
hdsp
;
Picture
*
cur_pic
;
Picture
*
next_pic
;
Picture
*
last_pic
;
...
...
@@ -312,9 +314,9 @@ static inline void svq3_mc_dir_part(SVQ3Context *s,
:
h
->
dsp
.
put_tpel_pixels_tab
)[
dxy
](
dest
,
src
,
h
->
linesize
,
width
,
height
);
else
(
avg
?
h
->
dsp
.
avg_pixels_tab
:
h
->
dsp
.
put_pixels_tab
)[
blocksize
][
dxy
](
dest
,
src
,
h
->
linesize
,
height
);
(
avg
?
s
->
h
dsp
.
avg_pixels_tab
:
s
->
h
dsp
.
put_pixels_tab
)[
blocksize
][
dxy
](
dest
,
src
,
h
->
linesize
,
height
);
if
(
!
(
h
->
flags
&
CODEC_FLAG_GRAY
))
{
mx
=
mx
+
(
mx
<
(
int
)
x
)
>>
1
;
...
...
@@ -340,10 +342,10 @@ static inline void svq3_mc_dir_part(SVQ3Context *s,
h
->
uvlinesize
,
width
,
height
);
else
(
avg
?
h
->
dsp
.
avg_pixels_tab
:
h
->
dsp
.
put_pixels_tab
)[
blocksize
][
dxy
](
dest
,
src
,
h
->
uvlinesize
,
height
);
(
avg
?
s
->
h
dsp
.
avg_pixels_tab
:
s
->
h
dsp
.
put_pixels_tab
)[
blocksize
][
dxy
](
dest
,
src
,
h
->
uvlinesize
,
height
);
}
}
}
...
...
@@ -865,6 +867,7 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
if
(
ff_h264_decode_init
(
avctx
)
<
0
)
return
-
1
;
ff_hpeldsp_init
(
&
s
->
hdsp
,
avctx
->
flags
);
h
->
flags
=
avctx
->
flags
;
h
->
is_complex
=
1
;
h
->
picture_structure
=
PICT_FRAME
;
...
...
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