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
d89c72e9
Commit
d89c72e9
authored
Oct 24, 2016
by
Jingning Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor tx_size to pixel number mapping in reconintra.c
Change-Id: Id66a14a869df8317c5bbb693d14262326fe84206
parent
62a2b9e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
av1/common/reconintra.c
av1/common/reconintra.c
+6
-6
No files found.
av1/common/reconintra.c
View file @
d89c72e9
...
...
@@ -228,7 +228,7 @@ static int av1_has_right(BLOCK_SIZE bsize, int mi_row, int mi_col,
TX_SIZE
txsz
,
int
y
,
int
x
,
int
ss_x
)
{
const
int
wl
=
mi_width_log2_lookup
[
bsize
];
const
int
w
=
AOMMAX
(
num_4x4_blocks_wide_lookup
[
bsize
]
>>
ss_x
,
1
);
const
int
step
=
1
<<
txsz
;
const
int
step
=
tx_size_wide_unit
[
txsz
]
;
// TODO(bshacklett, huisu): Currently the RD loop traverses 4X8 blocks in
// inverted N order while in the bitstream the subblocks are stored in Z
...
...
@@ -285,7 +285,7 @@ static int av1_has_bottom(BLOCK_SIZE bsize, int mi_row, int mi_col,
const
int
wl
=
mi_width_log2_lookup
[
bsize
];
const
int
hl
=
mi_height_log2_lookup
[
bsize
];
const
int
h
=
1
<<
(
hl
+
1
-
ss_y
);
const
int
step
=
1
<<
txsz
;
const
int
step
=
tx_size_wide_unit
[
txsz
]
;
const
uint8_t
*
order
=
orders
[
bsize
];
int
my_order
,
bl_order
;
...
...
@@ -673,7 +673,7 @@ static void dr_predictor(uint8_t *dst, ptrdiff_t stride, TX_SIZE tx_size,
INTRA_FILTER
filter_type
)
{
const
int
dx
=
get_dx
(
angle
);
const
int
dy
=
get_dy
(
angle
);
const
int
bs
=
4
*
num_4x4_blocks_wide_txsize_lookup
[
tx_size
];
const
int
bs
=
tx_size_wide
[
tx_size
];
assert
(
angle
>
0
&&
angle
<
270
);
if
(
angle
>
0
&&
angle
<
90
)
{
...
...
@@ -1202,7 +1202,7 @@ static void build_intra_predictors_high(
DECLARE_ALIGNED
(
16
,
uint16_t
,
above_data
[
MAX_SB_SIZE
+
16
]);
uint16_t
*
above_row
=
above_data
+
16
;
const
uint16_t
*
const_above_row
=
above_row
;
const
int
bs
=
4
*
num_4x4_blocks_wide_txsize_lookup
[
tx_size
];
const
int
bs
=
tx_size_wide
[
tx_size
];
int
need_left
=
extend_modes
[
mode
]
&
NEED_LEFT
;
int
need_above
=
extend_modes
[
mode
]
&
NEED_ABOVE
;
int
need_above_left
=
extend_modes
[
mode
]
&
NEED_ABOVELEFT
;
...
...
@@ -1363,7 +1363,7 @@ static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref,
DECLARE_ALIGNED
(
16
,
uint8_t
,
above_data
[
MAX_SB_SIZE
+
16
]);
uint8_t
*
above_row
=
above_data
+
16
;
const
uint8_t
*
const_above_row
=
above_row
;
const
int
bs
=
4
*
num_4x4_blocks_wide_txsize_lookup
[
tx_size
];
const
int
bs
=
tx_size_wide
[
tx_size
];
int
need_left
=
extend_modes
[
mode
]
&
NEED_LEFT
;
int
need_above
=
extend_modes
[
mode
]
&
NEED_ABOVE
;
int
need_above_left
=
extend_modes
[
mode
]
&
NEED_ABOVELEFT
;
...
...
@@ -1551,7 +1551,7 @@ void av1_predict_intra_block(const MACROBLOCKD *xd, int wpx, int hpx,
#if CONFIG_PALETTE
if
(
xd
->
mi
[
0
]
->
mbmi
.
palette_mode_info
.
palette_size
[
plane
!=
0
]
>
0
)
{
const
int
bs
=
4
*
num_4x4_blocks_wide_txsize_lookup
[
tx_size
];
const
int
bs
=
tx_size_wide
[
tx_size
];
const
int
stride
=
wpx
;
int
r
,
c
;
uint8_t
*
map
=
NULL
;
...
...
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