Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
6a0976dc
Commit
6a0976dc
authored
Oct 02, 2014
by
Deb Mukherjee
Committed by
Gerrit Code Review
Oct 02, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Adds some missing I440 checks"
parents
a50c8bba
d32a0c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
vp9/vp9_cx_iface.c
vp9/vp9_cx_iface.c
+6
-2
No files found.
vp9/vp9_cx_iface.c
View file @
6a0976dc
...
...
@@ -303,16 +303,18 @@ static vpx_codec_err_t validate_img(vpx_codec_alg_priv_t *ctx,
break
;
case
VPX_IMG_FMT_I422
:
case
VPX_IMG_FMT_I444
:
case
VPX_IMG_FMT_I440
:
if
(
ctx
->
cfg
.
g_profile
!=
(
unsigned
int
)
PROFILE_1
)
{
ERROR
(
"Invalid image format. I422, I444 images are "
ERROR
(
"Invalid image format. I422, I444
, I440
images are "
"not supported in profile."
);
}
break
;
case
VPX_IMG_FMT_I42216
:
case
VPX_IMG_FMT_I44416
:
case
VPX_IMG_FMT_I44016
:
if
(
ctx
->
cfg
.
g_profile
!=
(
unsigned
int
)
PROFILE_1
&&
ctx
->
cfg
.
g_profile
!=
(
unsigned
int
)
PROFILE_3
)
{
ERROR
(
"Invalid image format. 16-bit I422, I444 images are "
ERROR
(
"Invalid image format. 16-bit I422, I444
, I440
images are "
"not supported in profile."
);
}
break
;
...
...
@@ -334,9 +336,11 @@ 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
;
case
VPX_IMG_FMT_I440
:
return
16
;
case
VPX_IMG_FMT_I42016
:
return
24
;
case
VPX_IMG_FMT_I42216
:
return
32
;
case
VPX_IMG_FMT_I44416
:
return
48
;
case
VPX_IMG_FMT_I44016
:
return
32
;
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