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
0a72533e
Commit
0a72533e
authored
Jul 20, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jfdctint: add 10-bit version
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
73c0dd93
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
454 additions
and
416 deletions
+454
-416
dsputil_bfin.c
libavcodec/bfin/dsputil_bfin.c
+3
-3
dct-test.c
libavcodec/dct-test.c
+1
-1
dsputil.c
libavcodec/dsputil.c
+16
-11
dsputil.h
libavcodec/dsputil.h
+4
-2
jfdctint.c
libavcodec/jfdctint.c
+18
-395
jfdctint_template.c
libavcodec/jfdctint_template.c
+405
-0
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+2
-1
dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+3
-2
dsputilenc_mmx.c
libavcodec/x86/dsputilenc_mmx.c
+2
-1
No files found.
libavcodec/bfin/dsputil_bfin.c
View file @
0a72533e
...
...
@@ -253,10 +253,10 @@ void dsputil_init_bfin( DSPContext* c, AVCodecContext *avctx )
/* c->put_no_rnd_pixels_tab[0][3] = ff_bfin_put_pixels16_xy2_nornd; */
}
if
(
avctx
->
dct_algo
==
FF_DCT_AUTO
)
c
->
fdct
=
ff_bfin_fdct
;
if
(
avctx
->
bits_per_raw_sample
<=
8
)
{
if
(
avctx
->
dct_algo
==
FF_DCT_AUTO
)
c
->
fdct
=
ff_bfin_fdct
;
if
(
avctx
->
idct_algo
==
FF_IDCT_VP3
)
{
c
->
idct_permutation_type
=
FF_NO_IDCT_PERM
;
c
->
idct
=
ff_bfin_vp3_idct
;
...
...
libavcodec/dct-test.c
View file @
0a72533e
...
...
@@ -88,7 +88,7 @@ static const struct algo fdct_tab[] = {
{
"REF-DBL"
,
ff_ref_fdct
,
NO_PERM
},
{
"FAAN"
,
ff_faandct
,
FAAN_SCALE
},
{
"IJG-AAN-INT"
,
fdct_ifast
,
SCALE_PERM
},
{
"IJG-LLM-INT"
,
ff_jpeg_fdct_islow
,
NO_PERM
},
{
"IJG-LLM-INT"
,
ff_jpeg_fdct_islow
_8
,
NO_PERM
},
#if HAVE_MMX
{
"MMX"
,
ff_fdct_mmx
,
NO_PERM
,
AV_CPU_FLAG_MMX
},
...
...
libavcodec/dsputil.c
View file @
0a72533e
...
...
@@ -2848,17 +2848,22 @@ av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx)
ff_check_alignment
();
#if CONFIG_ENCODERS
if
(
avctx
->
dct_algo
==
FF_DCT_FASTINT
)
{
c
->
fdct
=
fdct_ifast
;
c
->
fdct248
=
fdct_ifast248
;
}
else
if
(
avctx
->
dct_algo
==
FF_DCT_FAAN
)
{
c
->
fdct
=
ff_faandct
;
c
->
fdct248
=
ff_faandct248
;
}
else
{
c
->
fdct
=
ff_jpeg_fdct_islow
;
//slow/accurate/default
c
->
fdct248
=
ff_fdct248_islow
;
if
(
avctx
->
bits_per_raw_sample
==
10
)
{
c
->
fdct
=
ff_jpeg_fdct_islow_10
;
c
->
fdct248
=
ff_fdct248_islow_10
;
}
else
{
if
(
avctx
->
dct_algo
==
FF_DCT_FASTINT
)
{
c
->
fdct
=
fdct_ifast
;
c
->
fdct248
=
fdct_ifast248
;
}
else
if
(
avctx
->
dct_algo
==
FF_DCT_FAAN
)
{
c
->
fdct
=
ff_faandct
;
c
->
fdct248
=
ff_faandct248
;
}
else
{
c
->
fdct
=
ff_jpeg_fdct_islow_8
;
//slow/accurate/default
c
->
fdct248
=
ff_fdct248_islow_8
;
}
}
#endif //CONFIG_ENCODERS
...
...
libavcodec/dsputil.h
View file @
0a72533e
...
...
@@ -40,8 +40,10 @@ typedef short DCTELEM;
void
fdct_ifast
(
DCTELEM
*
data
);
void
fdct_ifast248
(
DCTELEM
*
data
);
void
ff_jpeg_fdct_islow
(
DCTELEM
*
data
);
void
ff_fdct248_islow
(
DCTELEM
*
data
);
void
ff_jpeg_fdct_islow_8
(
DCTELEM
*
data
);
void
ff_jpeg_fdct_islow_10
(
DCTELEM
*
data
);
void
ff_fdct248_islow_8
(
DCTELEM
*
data
);
void
ff_fdct248_islow_10
(
DCTELEM
*
data
);
void
j_rev_dct
(
DCTELEM
*
data
);
void
j_rev_dct4
(
DCTELEM
*
data
);
...
...
libavcodec/jfdctint.c
View file @
0a72533e
This diff is collapsed.
Click to expand it.
libavcodec/jfdctint_template.c
0 → 100644
View file @
0a72533e
This diff is collapsed.
Click to expand it.
libavcodec/mpegvideo_enc.c
View file @
0a72533e
...
...
@@ -69,7 +69,8 @@ void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][6
for
(
qscale
=
qmin
;
qscale
<=
qmax
;
qscale
++
){
int
i
;
if
(
dsp
->
fdct
==
ff_jpeg_fdct_islow
if
(
dsp
->
fdct
==
ff_jpeg_fdct_islow_8
||
dsp
->
fdct
==
ff_jpeg_fdct_islow_10
#ifdef FAAN_POSTSCALE
||
dsp
->
fdct
==
ff_faandct
#endif
...
...
libavcodec/ppc/dsputil_ppc.c
View file @
0a72533e
...
...
@@ -172,8 +172,9 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
c
->
gmc1
=
gmc1_altivec
;
#if CONFIG_ENCODERS
if
(
avctx
->
dct_algo
==
FF_DCT_AUTO
||
avctx
->
dct_algo
==
FF_DCT_ALTIVEC
)
{
if
(
avctx
->
bits_per_raw_sample
<=
8
&&
(
avctx
->
dct_algo
==
FF_DCT_AUTO
||
avctx
->
dct_algo
==
FF_DCT_ALTIVEC
))
{
c
->
fdct
=
fdct_altivec
;
}
#endif //CONFIG_ENCODERS
...
...
libavcodec/x86/dsputilenc_mmx.c
View file @
0a72533e
...
...
@@ -1101,7 +1101,8 @@ void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx)
if
(
mm_flags
&
AV_CPU_FLAG_MMX
)
{
const
int
dct_algo
=
avctx
->
dct_algo
;
if
(
dct_algo
==
FF_DCT_AUTO
||
dct_algo
==
FF_DCT_MMX
){
if
(
avctx
->
bits_per_raw_sample
<=
8
&&
(
dct_algo
==
FF_DCT_AUTO
||
dct_algo
==
FF_DCT_MMX
))
{
if
(
mm_flags
&
AV_CPU_FLAG_SSE2
){
c
->
fdct
=
ff_fdct_sse2
;
}
else
if
(
mm_flags
&
AV_CPU_FLAG_MMX2
){
...
...
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