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
0c89dca7
Commit
0c89dca7
authored
Aug 17, 2017
by
Angie Chiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use || to replace && logics in try_level_down()
Change-Id: I6e9e1c94f688ed84c49d3b861dbac15c37248827
parent
8e4c3a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
av1/encoder/encodetxb.c
av1/encoder/encodetxb.c
+6
-6
No files found.
av1/encoder/encodetxb.c
View file @
0c89dca7
...
...
@@ -777,8 +777,8 @@ int try_level_down(int coeff_idx, const TxbCache *txb_cache,
const
int
nb_col
=
col
-
sig_ref_offset
[
i
][
1
];
const
int
nb_coeff_idx
=
nb_row
*
txb_info
->
stride
+
nb_col
;
if
(
!
(
nb_row
>=
0
&&
nb_col
>=
0
&&
nb_row
<
txb_info
->
height
&&
nb_col
<
txb_info
->
stride
)
)
if
(
nb_row
<
0
||
nb_col
<
0
||
nb_row
>=
txb_info
->
height
||
nb_col
>=
txb_info
->
stride
)
continue
;
const
int
nb_scan_idx
=
iscan
[
nb_coeff_idx
];
...
...
@@ -799,8 +799,8 @@ int try_level_down(int coeff_idx, const TxbCache *txb_cache,
const
int
nb_col
=
col
-
base_ref_offset
[
i
][
1
];
const
int
nb_coeff_idx
=
nb_row
*
txb_info
->
stride
+
nb_col
;
if
(
!
(
nb_row
>=
0
&&
nb_col
>=
0
&&
nb_row
<
txb_info
->
height
&&
nb_col
<
txb_info
->
stride
)
)
if
(
nb_row
<
0
||
nb_col
<
0
||
nb_row
>=
txb_info
->
height
||
nb_col
>=
txb_info
->
stride
)
continue
;
const
int
nb_scan_idx
=
iscan
[
nb_coeff_idx
];
...
...
@@ -821,8 +821,8 @@ int try_level_down(int coeff_idx, const TxbCache *txb_cache,
const
int
nb_col
=
col
-
br_ref_offset
[
i
][
1
];
const
int
nb_coeff_idx
=
nb_row
*
txb_info
->
stride
+
nb_col
;
if
(
!
(
nb_row
>=
0
&&
nb_col
>=
0
&&
nb_row
<
txb_info
->
height
&&
nb_col
<
txb_info
->
stride
)
)
if
(
nb_row
<
0
||
nb_col
<
0
||
nb_row
>=
txb_info
->
height
||
nb_col
>=
txb_info
->
stride
)
continue
;
const
int
nb_scan_idx
=
iscan
[
nb_coeff_idx
];
...
...
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