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
Guillaume Martres
aom-rav1e
Commits
f1f07403
Commit
f1f07403
authored
Apr 23, 2014
by
Deb Mukherjee
Committed by
Gerrit Code Review
Apr 23, 2014
Browse files
Merge "Rename FilterMode for compatibility with libyuv"
parents
1ed427a5
20c30771
Changes
3
Hide whitespace changes
Inline
Side-by-side
third_party/libyuv/include/libyuv/scale.h
View file @
f1f07403
...
...
@@ -23,7 +23,7 @@ typedef enum {
kFilterNone
=
0
,
// Point sample; Fastest
kFilterBilinear
=
1
,
// Faster than box, but lower quality scaling down.
kFilterBox
=
2
// Highest quality
}
FilterMode
;
}
FilterMode
Enum
;
// Scales a YUV 4:2:0 image from the src width and height to the
// dst width and height.
...
...
@@ -43,7 +43,7 @@ int I420Scale(const uint8* src_y, int src_stride_y,
uint8
*
dst_u
,
int
dst_stride_u
,
uint8
*
dst_v
,
int
dst_stride_v
,
int
dst_width
,
int
dst_height
,
FilterMode
filtering
);
FilterMode
Enum
filtering
);
// Legacy API. Deprecated
int
Scale
(
const
uint8
*
src_y
,
const
uint8
*
src_u
,
const
uint8
*
src_v
,
...
...
third_party/libyuv/source/scale.c
View file @
f1f07403
...
...
@@ -3053,7 +3053,7 @@ static void ScalePlaneDown2(int src_width, int src_height,
int
dst_width
,
int
dst_height
,
int
src_stride
,
int
dst_stride
,
const
uint8
*
src_ptr
,
uint8
*
dst_ptr
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
void
(
*
ScaleRowDown2
)(
const
uint8
*
src_ptr
,
int
src_stride
,
uint8
*
dst_ptr
,
int
dst_width
);
assert
(
IS_ALIGNED
(
src_width
,
2
));
...
...
@@ -3097,7 +3097,7 @@ static void ScalePlaneDown4(int src_width, int src_height,
int
dst_width
,
int
dst_height
,
int
src_stride
,
int
dst_stride
,
const
uint8
*
src_ptr
,
uint8
*
dst_ptr
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
void
(
*
ScaleRowDown4
)(
const
uint8
*
src_ptr
,
int
src_stride
,
uint8
*
dst_ptr
,
int
dst_width
);
assert
(
IS_ALIGNED
(
src_width
,
4
));
...
...
@@ -3142,7 +3142,7 @@ static void ScalePlaneDown8(int src_width, int src_height,
int
dst_width
,
int
dst_height
,
int
src_stride
,
int
dst_stride
,
const
uint8
*
src_ptr
,
uint8
*
dst_ptr
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
void
(
*
ScaleRowDown8
)(
const
uint8
*
src_ptr
,
int
src_stride
,
uint8
*
dst_ptr
,
int
dst_width
);
assert
(
IS_ALIGNED
(
src_width
,
8
));
...
...
@@ -3181,7 +3181,7 @@ static void ScalePlaneDown34(int src_width, int src_height,
int
dst_width
,
int
dst_height
,
int
src_stride
,
int
dst_stride
,
const
uint8
*
src_ptr
,
uint8
*
dst_ptr
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
void
(
*
ScaleRowDown34_0
)(
const
uint8
*
src_ptr
,
int
src_stride
,
uint8
*
dst_ptr
,
int
dst_width
);
void
(
*
ScaleRowDown34_1
)(
const
uint8
*
src_ptr
,
int
src_stride
,
...
...
@@ -3274,7 +3274,7 @@ static void ScalePlaneDown38(int src_width, int src_height,
int
dst_width
,
int
dst_height
,
int
src_stride
,
int
dst_stride
,
const
uint8
*
src_ptr
,
uint8
*
dst_ptr
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
void
(
*
ScaleRowDown38_3
)(
const
uint8
*
src_ptr
,
int
src_stride
,
uint8
*
dst_ptr
,
int
dst_width
);
void
(
*
ScaleRowDown38_2
)(
const
uint8
*
src_ptr
,
int
src_stride
,
...
...
@@ -3634,7 +3634,7 @@ static void ScalePlaneAnySize(int src_width, int src_height,
int
dst_width
,
int
dst_height
,
int
src_stride
,
int
dst_stride
,
const
uint8
*
src_ptr
,
uint8
*
dst_ptr
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
if
(
!
filtering
)
{
ScalePlaneSimple
(
src_width
,
src_height
,
dst_width
,
dst_height
,
src_stride
,
dst_stride
,
src_ptr
,
dst_ptr
);
...
...
@@ -3657,7 +3657,7 @@ static void ScalePlaneDown(int src_width, int src_height,
int
dst_width
,
int
dst_height
,
int
src_stride
,
int
dst_stride
,
const
uint8
*
src_ptr
,
uint8
*
dst_ptr
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
if
(
!
filtering
)
{
ScalePlaneSimple
(
src_width
,
src_height
,
dst_width
,
dst_height
,
src_stride
,
dst_stride
,
src_ptr
,
dst_ptr
);
...
...
@@ -3703,7 +3703,7 @@ static void ScalePlane(const uint8* src, int src_stride,
int
src_width
,
int
src_height
,
uint8
*
dst
,
int
dst_stride
,
int
dst_width
,
int
dst_height
,
FilterMode
filtering
,
int
use_ref
)
{
FilterMode
Enum
filtering
,
int
use_ref
)
{
// Use specialized scales to improve performance for common resolutions.
// For example, all the 1/2 scalings will use ScalePlaneDown2()
if
(
dst_width
==
src_width
&&
dst_height
==
src_height
)
{
...
...
@@ -3767,7 +3767,7 @@ int I420Scale(const uint8* src_y, int src_stride_y,
uint8
*
dst_u
,
int
dst_stride_u
,
uint8
*
dst_v
,
int
dst_stride_v
,
int
dst_width
,
int
dst_height
,
FilterMode
filtering
)
{
FilterMode
Enum
filtering
)
{
if
(
!
src_y
||
!
src_u
||
!
src_v
||
src_width
<=
0
||
src_height
==
0
||
!
dst_y
||
!
dst_u
||
!
dst_v
||
dst_width
<=
0
||
dst_height
<=
0
)
{
return
-
1
;
...
...
@@ -3832,7 +3832,7 @@ int Scale(const uint8* src_y, const uint8* src_u, const uint8* src_v,
int
src_halfheight
=
(
src_height
+
1
)
>>
1
;
int
dst_halfwidth
=
(
dst_width
+
1
)
>>
1
;
int
dst_halfheight
=
(
dst_height
+
1
)
>>
1
;
FilterMode
filtering
=
interpolate
?
kFilterBox
:
kFilterNone
;
FilterMode
Enum
filtering
=
interpolate
?
kFilterBox
:
kFilterNone
;
ScalePlane
(
src_y
,
src_stride_y
,
src_width
,
src_height
,
dst_y
,
dst_stride_y
,
dst_width
,
dst_height
,
...
...
vpxdec.c
View file @
f1f07403
...
...
@@ -119,7 +119,7 @@ static const arg_def_t *vp8_pp_args[] = {
#endif
static
int
vpx_image_scale
(
vpx_image_t
*
src
,
vpx_image_t
*
dst
,
FilterMode
mode
)
{
FilterMode
Enum
mode
)
{
assert
(
src
->
fmt
==
VPX_IMG_FMT_I420
);
assert
(
dst
->
fmt
==
VPX_IMG_FMT_I420
);
return
I420Scale
(
src
->
planes
[
VPX_PLANE_Y
],
src
->
stride
[
VPX_PLANE_Y
],
...
...
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