Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
c3a56ee5
Commit
c3a56ee5
authored
Jul 19, 2013
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Jul 19, 2013
Browse files
Merge "Moving Scale2Ration function from vp9_onyx.h to vp9_onyx_if.c."
parents
0d204f48
9f3c0e34
Changes
2
Show whitespace changes
Inline
Side-by-side
vp9/common/vp9_onyx.h
View file @
c3a56ee5
...
...
@@ -64,34 +64,6 @@ extern "C"
FRAMEFLAGS_ALTREF
=
4
,
}
FRAMETYPE_FLAGS
;
#include <assert.h>
static
INLINE
void
Scale2Ratio
(
int
mode
,
int
*
hr
,
int
*
hs
)
{
switch
(
mode
)
{
case
NORMAL
:
*
hr
=
1
;
*
hs
=
1
;
break
;
case
FOURFIVE
:
*
hr
=
4
;
*
hs
=
5
;
break
;
case
THREEFIVE
:
*
hr
=
3
;
*
hs
=
5
;
break
;
case
ONETWO
:
*
hr
=
1
;
*
hs
=
2
;
break
;
default:
*
hr
=
1
;
*
hs
=
1
;
assert
(
0
);
break
;
}
}
typedef
struct
{
int
version
;
// 4 versions of bitstream defined:
// 0 - best quality/slowest decode,
...
...
vp9/encoder/vp9_onyx_if.c
View file @
c3a56ee5
...
...
@@ -131,6 +131,32 @@ static int gf_low_motion_minq[QINDEX_RANGE];
static
int
gf_high_motion_minq
[
QINDEX_RANGE
];
static
int
inter_minq
[
QINDEX_RANGE
];
static
INLINE
void
Scale2Ratio
(
int
mode
,
int
*
hr
,
int
*
hs
)
{
switch
(
mode
)
{
case
NORMAL
:
*
hr
=
1
;
*
hs
=
1
;
break
;
case
FOURFIVE
:
*
hr
=
4
;
*
hs
=
5
;
break
;
case
THREEFIVE
:
*
hr
=
3
;
*
hs
=
5
;
break
;
case
ONETWO
:
*
hr
=
1
;
*
hs
=
2
;
break
;
default:
*
hr
=
1
;
*
hs
=
1
;
assert
(
0
);
break
;
}
}
// Functions to compute the active minq lookup table entries based on a
// formulaic approach to facilitate easier adjustment of the Q tables.
// The formulae were derived from computing a 3rd order polynomial best
...
...
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