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
65f14128
Commit
65f14128
authored
Feb 20, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intrax8: Use a constant buffer instead of a ScratchpadContext
The size of the block is fixed (8x8 plus padding).
parent
eaeba6f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
intrax8.c
libavcodec/intrax8.c
+2
-3
intrax8.h
libavcodec/intrax8.h
+1
-0
No files found.
libavcodec/intrax8.c
View file @
65f14128
...
...
@@ -330,12 +330,11 @@ static int x8_get_dc_rlf(IntraX8Context *const w, const int mode,
static
int
x8_setup_spatial_predictor
(
IntraX8Context
*
const
w
,
const
int
chroma
)
{
MpegEncContext
*
const
s
=
w
->
s
;
int
range
;
int
sum
;
int
quant
;
w
->
dsp
.
setup_spatial_compensation
(
w
->
dest
[
chroma
],
s
->
sc
.
edge_emu_buffer
,
w
->
dsp
.
setup_spatial_compensation
(
w
->
dest
[
chroma
],
w
->
scratchpad
,
w
->
frame
->
linesize
[
chroma
>
0
],
&
range
,
&
sum
,
w
->
edges
);
if
(
chroma
)
{
...
...
@@ -699,7 +698,7 @@ static int x8_decode_intra_mb(IntraX8Context *const w, const int chroma)
dsp_x8_put_solidcolor
(
w
->
predicted_dc
,
w
->
dest
[
chroma
],
w
->
frame
->
linesize
[
!!
chroma
]);
}
else
{
w
->
dsp
.
spatial_compensation
[
w
->
orient
](
s
->
sc
.
edge_emu_buffer
,
w
->
dsp
.
spatial_compensation
[
w
->
orient
](
w
->
scratchpad
,
w
->
dest
[
chroma
],
w
->
frame
->
linesize
[
!!
chroma
]);
}
...
...
libavcodec/intrax8.h
View file @
65f14128
...
...
@@ -51,6 +51,7 @@ typedef struct IntraX8Context {
int
divide_quant_dc_luma
;
int
divide_quant_dc_chroma
;
uint8_t
*
dest
[
3
];
uint8_t
scratchpad
[
42
];
// size of the block is fixed (8x8 plus padding)
// changed per block
int
edges
;
...
...
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