Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
7f63dabf
Commit
7f63dabf
authored
Aug 04, 2014
by
Jim Bankoski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
break at the end of clauses with assert(0) to avoid gcc warning
Change-Id: I1b3c5337f018dde27dc819ab18bd081d169a91e8
parent
c3591463
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
1 deletion
+18
-1
vp9/common/vp9_entropy.h
vp9/common/vp9_entropy.h
+1
-0
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_encodeframe.c
+6
-0
vp9/encoder/vp9_encodemb.c
vp9/encoder/vp9_encodemb.c
+5
-0
vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_firstpass.c
+1
-0
vp9/encoder/vp9_rd.c
vp9/encoder/vp9_rd.c
+1
-0
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_rdopt.c
+2
-0
vp9/vp9_cx_iface.c
vp9/vp9_cx_iface.c
+2
-1
No files found.
vp9/common/vp9_entropy.h
View file @
7f63dabf
...
...
@@ -183,6 +183,7 @@ static INLINE int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a,
break
;
default:
assert
(
0
&&
"Invalid transform size."
);
break
;
}
return
combine_entropy_contexts
(
above_ec
,
left_ec
);
...
...
vp9/encoder/vp9_encodeframe.c
View file @
7f63dabf
...
...
@@ -293,6 +293,7 @@ static void tree_to_node(void *data, BLOCK_SIZE bsize, variance_node *node) {
}
default:
{
assert
(
0
);
break
;
}
}
}
...
...
@@ -985,6 +986,7 @@ static void encode_sb(VP9_COMP *cpi, const TileInfo *const tile,
break
;
default:
assert
(
"Invalid partition type."
);
break
;
}
if
(
partition
!=
PARTITION_SPLIT
||
bsize
==
BLOCK_8X8
)
...
...
@@ -1412,6 +1414,7 @@ static void encode_sb_rt(VP9_COMP *cpi, const TileInfo *const tile,
break
;
default:
assert
(
"Invalid partition type."
);
break
;
}
if
(
partition
!=
PARTITION_SPLIT
||
bsize
==
BLOCK_8X8
)
...
...
@@ -1590,6 +1593,7 @@ static void rd_use_partition(VP9_COMP *cpi,
break
;
default:
assert
(
0
);
break
;
}
pl
=
partition_plane_context
(
xd
,
mi_row
,
mi_col
,
bsize
);
...
...
@@ -2952,6 +2956,7 @@ static void nonrd_use_partition(VP9_COMP *cpi,
break
;
default:
assert
(
"Invalid partition type."
);
break
;
}
if
(
bsize
==
BLOCK_64X64
&&
output_enabled
)
{
...
...
@@ -3028,6 +3033,7 @@ static void encode_nonrd_sb_row(VP9_COMP *cpi, const TileInfo *const tile,
break
;
default:
assert
(
0
);
break
;
}
}
}
...
...
vp9/encoder/vp9_encodemb.c
View file @
7f63dabf
...
...
@@ -348,6 +348,7 @@ void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block,
break
;
default:
assert
(
0
);
break
;
}
}
...
...
@@ -394,6 +395,7 @@ void vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block,
break
;
default:
assert
(
0
);
break
;
}
}
...
...
@@ -444,6 +446,7 @@ void vp9_xform_quant(MACROBLOCK *x, int plane, int block,
break
;
default:
assert
(
0
);
break
;
}
}
...
...
@@ -521,6 +524,7 @@ static void encode_block(int plane, int block, BLOCK_SIZE plane_bsize,
break
;
default:
assert
(
0
&&
"Invalid transform size"
);
break
;
}
}
...
...
@@ -692,6 +696,7 @@ static void encode_block_intra(int plane, int block, BLOCK_SIZE plane_bsize,
break
;
default:
assert
(
0
);
break
;
}
if
(
*
eob
)
*
(
args
->
skip
)
=
0
;
...
...
vp9/encoder/vp9_firstpass.c
View file @
7f63dabf
...
...
@@ -2117,6 +2117,7 @@ void configure_buffer_updates(VP9_COMP *cpi) {
break
;
default:
assert
(
0
);
break
;
}
if
(
cpi
->
use_svc
&&
cpi
->
svc
.
number_temporal_layers
==
1
)
{
cpi
->
refresh_golden_frame
=
0
;
...
...
vp9/encoder/vp9_rd.c
View file @
7f63dabf
...
...
@@ -357,6 +357,7 @@ void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size,
break
;
default:
assert
(
0
&&
"Invalid transform size."
);
break
;
}
}
...
...
vp9/encoder/vp9_rdopt.c
View file @
7f63dabf
...
...
@@ -2628,6 +2628,7 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
case
NONE
:
case
MAX_REF_FRAMES
:
assert
(
0
&&
"Invalid Reference frame"
);
break
;
}
}
if
(
mode_skip_mask
&
(
1
<<
mode_index
))
...
...
@@ -3225,6 +3226,7 @@ int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
case
NONE
:
case
MAX_REF_FRAMES
:
assert
(
0
&&
"Invalid Reference frame"
);
break
;
}
}
if
(
mode_skip_mask
&
(
1
<<
ref_index
))
...
...
vp9/vp9_cx_iface.c
View file @
7f63dabf
...
...
@@ -297,6 +297,7 @@ static vpx_codec_err_t validate_img(vpx_codec_alg_priv_t *ctx,
default:
ERROR
(
"Invalid image format. Only YV12, I420, I422, I444 images are "
"supported."
);
break
;
}
if
(
img
->
d_w
!=
ctx
->
cfg
.
g_w
||
img
->
d_h
!=
ctx
->
cfg
.
g_h
)
...
...
@@ -311,7 +312,7 @@ static int get_image_bps(const vpx_image_t *img) {
case
VPX_IMG_FMT_I420
:
return
12
;
case
VPX_IMG_FMT_I422
:
return
16
;
case
VPX_IMG_FMT_I444
:
return
24
;
default:
assert
(
0
&&
"Invalid image format"
);
default:
assert
(
0
&&
"Invalid image format"
);
break
;
}
return
0
;
}
...
...
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