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
eaacfc7d
Commit
eaacfc7d
authored
Jan 23, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/lossless_videodsp: Pass AVCodecContext to init
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
622d4630
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
huffyuv.c
libavcodec/huffyuv.c
+1
-1
lossless_videodsp.c
libavcodec/lossless_videodsp.c
+2
-2
lossless_videodsp.h
libavcodec/lossless_videodsp.h
+2
-2
lossless_videodsp_init.c
libavcodec/x86/lossless_videodsp_init.c
+2
-1
No files found.
libavcodec/huffyuv.c
View file @
eaacfc7d
...
...
@@ -81,7 +81,7 @@ av_cold void ff_huffyuv_common_init(AVCodecContext *avctx)
s
->
flags
=
avctx
->
flags
;
ff_dsputil_init
(
&
s
->
dsp
,
avctx
);
ff_llviddsp_init
(
&
s
->
llviddsp
);
ff_llviddsp_init
(
&
s
->
llviddsp
,
avctx
);
s
->
width
=
avctx
->
width
;
s
->
height
=
avctx
->
height
;
...
...
libavcodec/lossless_videodsp.c
View file @
eaacfc7d
...
...
@@ -115,7 +115,7 @@ static int add_hfyu_left_prediction_int16_c(uint16_t *dst, const uint16_t *src,
}
void
ff_llviddsp_init
(
LLVidDSPContext
*
c
)
void
ff_llviddsp_init
(
LLVidDSPContext
*
c
,
AVCodecContext
*
avctx
)
{
c
->
add_int16
=
add_int16_c
;
c
->
diff_int16
=
diff_int16_c
;
...
...
@@ -124,5 +124,5 @@ void ff_llviddsp_init(LLVidDSPContext *c)
c
->
sub_hfyu_median_prediction_int16
=
sub_hfyu_median_prediction_int16_c
;
if
(
ARCH_X86
)
ff_llviddsp_init_x86
(
c
);
ff_llviddsp_init_x86
(
c
,
avctx
);
}
libavcodec/lossless_videodsp.h
View file @
eaacfc7d
...
...
@@ -34,7 +34,7 @@ typedef struct LLVidDSPContext {
int
(
*
add_hfyu_left_prediction_int16
)(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
,
int
left
);
}
LLVidDSPContext
;
void
ff_llviddsp_init
(
LLVidDSPContext
*
llviddsp
);
void
ff_llviddsp_init_x86
(
LLVidDSPContext
*
llviddsp
);
void
ff_llviddsp_init
(
LLVidDSPContext
*
llviddsp
,
AVCodecContext
*
avctx
);
void
ff_llviddsp_init_x86
(
LLVidDSPContext
*
llviddsp
,
AVCodecContext
*
avctx
);
#endif //AVCODEC_LOSSLESS_VIDEODSP_H
libavcodec/x86/lossless_videodsp_init.c
View file @
eaacfc7d
...
...
@@ -19,6 +19,7 @@
*/
#include "../lossless_videodsp.h"
#include "libavutil/pixdesc.h"
#include "libavutil/x86/cpu.h"
void
ff_add_int16_mmx
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
unsigned
mask
,
int
w
);
...
...
@@ -31,7 +32,7 @@ void ff_add_hfyu_median_prediction_int16_mmxext(uint16_t *dst, const uint16_t *t
void
ff_sub_hfyu_median_prediction_int16_mmxext
(
uint16_t
*
dst
,
const
uint16_t
*
src1
,
const
uint16_t
*
src2
,
unsigned
mask
,
int
w
,
int
*
left
,
int
*
left_top
);
void
ff_llviddsp_init_x86
(
LLVidDSPContext
*
c
)
void
ff_llviddsp_init_x86
(
LLVidDSPContext
*
c
,
AVCodecContext
*
avctx
)
{
int
cpu_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