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
3594554a
Commit
3594554a
authored
Feb 15, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc: dsputil: Simplify high_bit_depth checks
parent
49fe2807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
dsputil_vis.c
libavcodec/sparc/dsputil_vis.c
+2
-5
No files found.
libavcodec/sparc/dsputil_vis.c
View file @
3594554a
...
...
@@ -3501,16 +3501,14 @@ av_cold void ff_dsputil_init_vis(DSPContext *c, AVCodecContext *avctx)
int
accel
=
vis_level
();
const
int
high_bit_depth
=
avctx
->
bits_per_raw_sample
>
8
;
if
(
accel
&
ACCEL_SPARC_VIS
)
{
if
(
avctx
->
bits_per_raw_sample
<=
8
&&
avctx
->
idct_algo
==
FF_IDCT_SIMPLEVIS
)
{
if
(
accel
&
ACCEL_SPARC_VIS
&&
!
high_bit_depth
)
{
if
(
avctx
->
idct_algo
==
FF_IDCT_SIMPLEVIS
)
{
c
->
idct_put
=
ff_simple_idct_put_vis
;
c
->
idct_add
=
ff_simple_idct_add_vis
;
c
->
idct
=
ff_simple_idct_vis
;
c
->
idct_permutation_type
=
FF_TRANSPOSE_IDCT_PERM
;
}
if
(
!
high_bit_depth
)
{
c
->
put_pixels_tab
[
0
][
0
]
=
MC_put_o_16_vis
;
c
->
put_pixels_tab
[
0
][
1
]
=
MC_put_x_16_vis
;
c
->
put_pixels_tab
[
0
][
2
]
=
MC_put_y_16_vis
;
...
...
@@ -3545,6 +3543,5 @@ av_cold void ff_dsputil_init_vis(DSPContext *c, AVCodecContext *avctx)
c
->
avg_no_rnd_pixels_tab
[
1
]
=
MC_avg_no_round_x_16_vis
;
c
->
avg_no_rnd_pixels_tab
[
2
]
=
MC_avg_no_round_y_16_vis
;
c
->
avg_no_rnd_pixels_tab
[
3
]
=
MC_avg_no_round_xy_16_vis
;
}
}
}
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