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
cc5d17e0
Commit
cc5d17e0
authored
Mar 10, 2013
by
Ronald S. Bultje
Committed by
Michael Niedermayer
Mar 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mimic: use hpeldsp instead of dsputil for half-pel functions.
parent
04a75bb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
configure
configure
+1
-1
mimic.c
libavcodec/mimic.c
+5
-2
No files found.
configure
View file @
cc5d17e0
...
@@ -1749,7 +1749,7 @@ lagarith_decoder_select="dsputil"
...
@@ -1749,7 +1749,7 @@ lagarith_decoder_select="dsputil"
ljpeg_encoder_select
=
"aandcttables mpegvideoenc"
ljpeg_encoder_select
=
"aandcttables mpegvideoenc"
loco_decoder_select
=
"golomb"
loco_decoder_select
=
"golomb"
mdec_decoder_select
=
"dsputil error_resilience mpegvideo"
mdec_decoder_select
=
"dsputil error_resilience mpegvideo"
mimic_decoder_select
=
"dsputil"
mimic_decoder_select
=
"dsputil
hpeldsp
"
mjpeg_encoder_select
=
"aandcttables dsputil mpegvideoenc"
mjpeg_encoder_select
=
"aandcttables dsputil mpegvideoenc"
mlp_decoder_select
=
"dsputil mlp_parser"
mlp_decoder_select
=
"dsputil mlp_parser"
motionpixels_decoder_select
=
"dsputil"
motionpixels_decoder_select
=
"dsputil"
...
...
libavcodec/mimic.c
View file @
cc5d17e0
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "get_bits.h"
#include "get_bits.h"
#include "bytestream.h"
#include "bytestream.h"
#include "dsputil.h"
#include "dsputil.h"
#include "hpeldsp.h"
#include "thread.h"
#include "thread.h"
#define MIMIC_HEADER_SIZE 20
#define MIMIC_HEADER_SIZE 20
...
@@ -52,6 +53,7 @@ typedef struct {
...
@@ -52,6 +53,7 @@ typedef struct {
GetBitContext
gb
;
GetBitContext
gb
;
ScanTable
scantable
;
ScanTable
scantable
;
DSPContext
dsp
;
DSPContext
dsp
;
HpelDSPContext
hdsp
;
VLC
vlc
;
VLC
vlc
;
/* Kept in the context so multithreading can have a constant to read from */
/* Kept in the context so multithreading can have a constant to read from */
...
@@ -144,6 +146,7 @@ static av_cold int mimic_decode_init(AVCodecContext *avctx)
...
@@ -144,6 +146,7 @@ static av_cold int mimic_decode_init(AVCodecContext *avctx)
return
ret
;
return
ret
;
}
}
ff_dsputil_init
(
&
ctx
->
dsp
,
avctx
);
ff_dsputil_init
(
&
ctx
->
dsp
,
avctx
);
ff_hpeldsp_init
(
&
ctx
->
hdsp
,
avctx
->
flags
);
ff_init_scantable
(
ctx
->
dsp
.
idct_permutation
,
&
ctx
->
scantable
,
col_zag
);
ff_init_scantable
(
ctx
->
dsp
.
idct_permutation
,
&
ctx
->
scantable
,
col_zag
);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
ctx
->
frames
);
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
ctx
->
frames
);
i
++
)
{
...
@@ -304,7 +307,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs,
...
@@ -304,7 +307,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs,
cur_row
,
0
);
cur_row
,
0
);
p
+=
src
-
p
+=
src
-
ctx
->
flipped_ptrs
[
ctx
->
prev_index
].
data
[
plane
];
ctx
->
flipped_ptrs
[
ctx
->
prev_index
].
data
[
plane
];
ctx
->
dsp
.
put_pixels_tab
[
1
][
0
](
dst
,
p
,
stride
,
8
);
ctx
->
h
dsp
.
put_pixels_tab
[
1
][
0
](
dst
,
p
,
stride
,
8
);
}
else
{
}
else
{
av_log
(
ctx
->
avctx
,
AV_LOG_ERROR
,
av_log
(
ctx
->
avctx
,
AV_LOG_ERROR
,
"No such backreference! Buggy sample.
\n
"
);
"No such backreference! Buggy sample.
\n
"
);
...
@@ -313,7 +316,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs,
...
@@ -313,7 +316,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs,
}
else
{
}
else
{
ff_thread_await_progress
(
&
ctx
->
frames
[
ctx
->
prev_index
],
ff_thread_await_progress
(
&
ctx
->
frames
[
ctx
->
prev_index
],
cur_row
,
0
);
cur_row
,
0
);
ctx
->
dsp
.
put_pixels_tab
[
1
][
0
](
dst
,
src
,
stride
,
8
);
ctx
->
h
dsp
.
put_pixels_tab
[
1
][
0
](
dst
,
src
,
stride
,
8
);
}
}
src
+=
8
;
src
+=
8
;
dst
+=
8
;
dst
+=
8
;
...
...
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