Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
5f732c20
Commit
5f732c20
authored
10 years ago
by
Marco Paniconi
Browse files
Options
Download
Patches
Plain Diff
Fix build for examples/vp8_multi_resolution_encoder.
Change-Id: I7ec4e0e05487fe80d93e31e0f6a21f326b5c7276
parent
8a78dc49
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
sandbox/Jingning/experimental
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples.mk
+2
-1
examples.mk
examples/vp8_multi_resolution_encoder.c
+3
-21
examples/vp8_multi_resolution_encoder.c
with
5 additions
and
22 deletions
examples.mk
+
2
−
1
View file @
5f732c20
...
...
@@ -179,7 +179,8 @@ vp8cx_set_ref.DESCRIPTION = VP8 set encoder reference frame
ifeq
($(CONFIG_MULTI_RES_ENCODING),yes)
ifeq
($(CONFIG_LIBYUV),yes)
EXAMPLES-$(CONFIG_VP8_DECODER)
+=
vp8_multi_resolution_encoder.c
EXAMPLES-$(CONFIG_VP8_ENCODER)
+=
vp8_multi_resolution_encoder.c
vp8_multi_resolution_encoder.SRCS
+=
tools_common.h tools_common.c
vp8_multi_resolution_encoder.SRCS
+=
$(
LIBYUV_SRCS
)
vp8_multi_resolution_encoder.GUID
=
04f8738e-63c8-423b-90fa-7c2703a374de
vp8_multi_resolution_encoder.DESCRIPTION
=
VP8 Multiple-resolution Encoding
...
...
This diff is collapsed.
Click to expand it.
examples/vp8_multi_resolution_encoder.c
+
3
−
21
View file @
5f732c20
...
...
@@ -27,8 +27,9 @@
#define interface (vpx_codec_vp8_cx())
#define fourcc 0x30385056
#define IVF_FILE_HDR_SZ (32)
#define IVF_FRAME_HDR_SZ (12)
void
usage_exit
()
{
exit
(
EXIT_FAILURE
);
}
/*
* The input video frame is downsampled several times to generate a multi-level
...
...
@@ -45,25 +46,6 @@
#include
"third_party/libyuv/include/libyuv/scale.h"
#include
"third_party/libyuv/include/libyuv/cpu_id.h"
static
void
die
(
const
char
*
fmt
,
...)
{
va_list
ap
;
va_start
(
ap
,
fmt
);
vprintf
(
fmt
,
ap
);
if
(
fmt
[
strlen
(
fmt
)
-
1
]
!=
'\n'
)
printf
(
"
\n
"
);
exit
(
EXIT_FAILURE
);
}
static
void
die_codec
(
vpx_codec_ctx_t
*
ctx
,
const
char
*
s
)
{
const
char
*
detail
=
vpx_codec_error_detail
(
ctx
);
printf
(
"%s: %s
\n
"
,
s
,
vpx_codec_error
(
ctx
));
if
(
detail
)
printf
(
" %s
\n
"
,
detail
);
exit
(
EXIT_FAILURE
);
}
int
(
*
read_frame_p
)(
FILE
*
f
,
vpx_image_t
*
img
);
static
int
read_frame
(
FILE
*
f
,
vpx_image_t
*
img
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets