Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
f83c12b5
Commit
f83c12b5
authored
Jan 11, 2014
by
James Zern
Committed by
Gerrit Code Review
Jan 11, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "cosmetics: vp9_reconinter.h: make some variables const"
parents
01236769
44963dfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
vp9/common/vp9_reconinter.h
vp9/common/vp9_reconinter.h
+16
-16
No files found.
vp9/common/vp9_reconinter.h
View file @
f83c12b5
...
...
@@ -58,34 +58,34 @@ static void setup_pred_plane(struct buf_2d *dst,
static
void
setup_dst_planes
(
MACROBLOCKD
*
xd
,
const
YV12_BUFFER_CONFIG
*
src
,
int
mi_row
,
int
mi_col
)
{
uint8_t
*
buffers
[
4
]
=
{
src
->
y_buffer
,
src
->
u_buffer
,
src
->
v_buffer
,
src
->
alpha_buffer
};
int
strides
[
4
]
=
{
src
->
y_stride
,
src
->
uv_stride
,
src
->
uv_stride
,
src
->
alpha_stride
};
uint8_t
*
const
buffers
[
4
]
=
{
src
->
y_buffer
,
src
->
u_buffer
,
src
->
v_buffer
,
src
->
alpha_buffer
};
const
int
strides
[
4
]
=
{
src
->
y_stride
,
src
->
uv_stride
,
src
->
uv_stride
,
src
->
alpha_stride
};
int
i
;
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
++
i
)
{
struct
macroblockd_plane
*
pd
=
&
xd
->
plane
[
i
];
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
i
];
setup_pred_plane
(
&
pd
->
dst
,
buffers
[
i
],
strides
[
i
],
mi_row
,
mi_col
,
NULL
,
pd
->
subsampling_x
,
pd
->
subsampling_y
);
}
}
static
void
setup_pre_planes
(
MACROBLOCKD
*
xd
,
int
i
,
static
void
setup_pre_planes
(
MACROBLOCKD
*
xd
,
int
i
dx
,
const
YV12_BUFFER_CONFIG
*
src
,
int
mi_row
,
int
mi_col
,
const
struct
scale_factors
*
sf
)
{
if
(
src
)
{
int
j
;
uint8_t
*
buffers
[
4
]
=
{
src
->
y_buffer
,
src
->
u_buffer
,
src
->
v_buffer
,
src
->
alpha_buffer
};
int
strides
[
4
]
=
{
src
->
y_stride
,
src
->
uv_stride
,
src
->
uv_stride
,
src
->
alpha_stride
};
if
(
src
!=
NULL
)
{
int
i
;
uint8_t
*
const
buffers
[
4
]
=
{
src
->
y_buffer
,
src
->
u_buffer
,
src
->
v_buffer
,
src
->
alpha_buffer
};
const
int
strides
[
4
]
=
{
src
->
y_stride
,
src
->
uv_stride
,
src
->
uv_stride
,
src
->
alpha_stride
};
for
(
j
=
0
;
j
<
MAX_MB_PLANE
;
++
j
)
{
struct
macroblockd_plane
*
pd
=
&
xd
->
plane
[
j
];
setup_pred_plane
(
&
pd
->
pre
[
i
],
buffers
[
j
],
strides
[
j
]
,
mi_row
,
mi_col
,
sf
,
pd
->
subsampling_x
,
pd
->
subsampling_y
);
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
++
i
)
{
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
i
];
setup_pred_plane
(
&
pd
->
pre
[
i
dx
],
buffers
[
i
],
strides
[
i
],
mi_row
,
mi_col
,
sf
,
pd
->
subsampling_x
,
pd
->
subsampling_y
);
}
}
}
...
...
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