Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
d83d61d9
Commit
d83d61d9
authored
Nov 27, 2013
by
Dmitry Kovalev
Browse files
Moving reaster_block_offset{,_int16} from vp9_blockd.h to vp9_rdopt.h.
Change-Id: I5a5888d4639cc6b7eb266be47581dd15ba08c91e
parent
e2f1d02e
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_blockd.h
View file @
d83d61d9
...
...
@@ -386,19 +386,6 @@ static INLINE void foreach_transformed_block_uv(
foreach_transformed_block_in_plane
(
xd
,
bsize
,
plane
,
visit
,
arg
);
}
static
int
raster_block_offset
(
BLOCK_SIZE
plane_bsize
,
int
raster_block
,
int
stride
)
{
const
int
bw
=
b_width_log2
(
plane_bsize
);
const
int
y
=
4
*
(
raster_block
>>
bw
);
const
int
x
=
4
*
(
raster_block
&
((
1
<<
bw
)
-
1
));
return
y
*
stride
+
x
;
}
static
int16_t
*
raster_block_offset_int16
(
BLOCK_SIZE
plane_bsize
,
int
raster_block
,
int16_t
*
base
)
{
const
int
stride
=
4
<<
b_width_log2
(
plane_bsize
);
return
base
+
raster_block_offset
(
plane_bsize
,
raster_block
,
stride
);
}
static
void
txfrm_block_to_raster_xy
(
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
,
int
block
,
int
*
x
,
int
*
y
)
{
...
...
vp9/encoder/vp9_rdopt.c
View file @
d83d61d9
...
...
@@ -113,6 +113,19 @@ static int rd_thresh_block_size_factor[BLOCK_SIZES] =
#define MV_COST_WEIGHT 108
#define MV_COST_WEIGHT_SUB 120
static
int
raster_block_offset
(
BLOCK_SIZE
plane_bsize
,
int
raster_block
,
int
stride
)
{
const
int
bw
=
b_width_log2
(
plane_bsize
);
const
int
y
=
4
*
(
raster_block
>>
bw
);
const
int
x
=
4
*
(
raster_block
&
((
1
<<
bw
)
-
1
));
return
y
*
stride
+
x
;
}
static
int16_t
*
raster_block_offset_int16
(
BLOCK_SIZE
plane_bsize
,
int
raster_block
,
int16_t
*
base
)
{
const
int
stride
=
4
<<
b_width_log2
(
plane_bsize
);
return
base
+
raster_block_offset
(
plane_bsize
,
raster_block
,
stride
);
}
static
void
fill_mode_costs
(
VP9_COMP
*
c
)
{
VP9_COMMON
*
const
cm
=
&
c
->
common
;
int
i
,
j
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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