Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: source/libvpx/examples.mk

Issue 341293003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/configure ('k') | source/libvpx/examples/vp9_spatial_svc_encoder.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ## 1 ##
2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 ## 3 ##
4 ## Use of this source code is governed by a BSD-style license 4 ## Use of this source code is governed by a BSD-style license
5 ## that can be found in the LICENSE file in the root of the source 5 ## that can be found in the LICENSE file in the root of the source
6 ## tree. An additional intellectual property rights grant can be found 6 ## tree. An additional intellectual property rights grant can be found
7 ## in the file PATENTS. All contributing project authors may 7 ## in the file PATENTS. All contributing project authors may
8 ## be found in the AUTHORS file in the root of the source tree. 8 ## be found in the AUTHORS file in the root of the source tree.
9 ## 9 ##
10 10
11 LIBYUV_SRCS += third_party/libyuv/include/libyuv/basic_types.h \ 11 LIBYUV_SRCS += third_party/libyuv/include/libyuv/basic_types.h \
12 third_party/libyuv/include/libyuv/cpu_id.h \ 12 third_party/libyuv/include/libyuv/cpu_id.h \
13 third_party/libyuv/include/libyuv/planar_functions.h \
14 third_party/libyuv/include/libyuv/row.h \
13 third_party/libyuv/include/libyuv/scale.h \ 15 third_party/libyuv/include/libyuv/scale.h \
14 third_party/libyuv/source/row.h \ 16 third_party/libyuv/include/libyuv/scale_row.h \
15 third_party/libyuv/source/scale.c \ 17 third_party/libyuv/source/cpu_id.cc \
16 third_party/libyuv/source/cpu_id.c 18 third_party/libyuv/source/planar_functions.cc \
19 third_party/libyuv/source/row_any.cc \
20 third_party/libyuv/source/row_common.cc \
21 third_party/libyuv/source/row_mips.cc \
22 third_party/libyuv/source/row_neon.cc \
23 third_party/libyuv/source/row_posix.cc \
24 third_party/libyuv/source/row_win.cc \
25 third_party/libyuv/source/scale.cc \
26 third_party/libyuv/source/scale_common.cc \
27 third_party/libyuv/source/scale_mips.cc \
28 third_party/libyuv/source/scale_neon.cc \
29 third_party/libyuv/source/scale_posix.cc \
30 third_party/libyuv/source/scale_win.cc
17 31
18 LIBWEBM_MUXER_SRCS += third_party/libwebm/mkvmuxer.cpp \ 32 LIBWEBM_MUXER_SRCS += third_party/libwebm/mkvmuxer.cpp \
19 third_party/libwebm/mkvmuxerutil.cpp \ 33 third_party/libwebm/mkvmuxerutil.cpp \
20 third_party/libwebm/mkvwriter.cpp \ 34 third_party/libwebm/mkvwriter.cpp \
21 third_party/libwebm/mkvmuxer.hpp \ 35 third_party/libwebm/mkvmuxer.hpp \
22 third_party/libwebm/mkvmuxertypes.hpp \ 36 third_party/libwebm/mkvmuxertypes.hpp \
23 third_party/libwebm/mkvmuxerutil.hpp \ 37 third_party/libwebm/mkvmuxerutil.hpp \
24 third_party/libwebm/mkvparser.hpp \ 38 third_party/libwebm/mkvparser.hpp \
25 third_party/libwebm/mkvwriter.hpp \ 39 third_party/libwebm/mkvwriter.hpp \
26 third_party/libwebm/webmids.hpp 40 third_party/libwebm/webmids.hpp
27 41
28 LIBWEBM_PARSER_SRCS = third_party/libwebm/mkvparser.cpp \ 42 LIBWEBM_PARSER_SRCS = third_party/libwebm/mkvparser.cpp \
29 third_party/libwebm/mkvreader.cpp \ 43 third_party/libwebm/mkvreader.cpp \
30 third_party/libwebm/mkvparser.hpp \ 44 third_party/libwebm/mkvparser.hpp \
31 third_party/libwebm/mkvreader.hpp 45 third_party/libwebm/mkvreader.hpp
32 46
33 # List of examples to build. UTILS are tools meant for distribution 47 # List of examples to build. UTILS are tools meant for distribution
34 # while EXAMPLES demonstrate specific portions of the API. 48 # while EXAMPLES demonstrate specific portions of the API.
35 UTILS-$(CONFIG_DECODERS) += vpxdec.c 49 UTILS-$(CONFIG_DECODERS) += vpxdec.c
36 vpxdec.SRCS += md5_utils.c md5_utils.h 50 vpxdec.SRCS += md5_utils.c md5_utils.h
37 vpxdec.SRCS += vpx_ports/mem_ops.h 51 vpxdec.SRCS += vpx_ports/mem_ops.h
38 vpxdec.SRCS += vpx_ports/mem_ops_aligned.h 52 vpxdec.SRCS += vpx_ports/mem_ops_aligned.h
39 vpxdec.SRCS += vpx_ports/vpx_timer.h 53 vpxdec.SRCS += vpx_ports/vpx_timer.h
40 vpxdec.SRCS += vpx/vpx_integer.h 54 vpxdec.SRCS += vpx/vpx_integer.h
41 vpxdec.SRCS += args.c args.h 55 vpxdec.SRCS += args.c args.h
42 vpxdec.SRCS += ivfdec.c ivfdec.h 56 vpxdec.SRCS += ivfdec.c ivfdec.h
43 vpxdec.SRCS += tools_common.c tools_common.h 57 vpxdec.SRCS += tools_common.c tools_common.h
44 vpxdec.SRCS += y4menc.c y4menc.h 58 vpxdec.SRCS += y4menc.c y4menc.h
45 vpxdec.SRCS += $(LIBYUV_SRCS) 59 ifeq ($(CONFIG_LIBYUV),yes)
60 vpxdec.SRCS += $(LIBYUV_SRCS)
61 endif
46 ifeq ($(CONFIG_WEBM_IO),yes) 62 ifeq ($(CONFIG_WEBM_IO),yes)
47 vpxdec.SRCS += $(LIBWEBM_PARSER_SRCS) 63 vpxdec.SRCS += $(LIBWEBM_PARSER_SRCS)
48 vpxdec.SRCS += webmdec.cc webmdec.h 64 vpxdec.SRCS += webmdec.cc webmdec.h
49 endif 65 endif
50 vpxdec.GUID = BA5FE66F-38DD-E034-F542-B1578C5FB950 66 vpxdec.GUID = BA5FE66F-38DD-E034-F542-B1578C5FB950
51 vpxdec.DESCRIPTION = Full featured decoder 67 vpxdec.DESCRIPTION = Full featured decoder
52 UTILS-$(CONFIG_ENCODERS) += vpxenc.c 68 UTILS-$(CONFIG_ENCODERS) += vpxenc.c
53 vpxenc.SRCS += args.c args.h y4minput.c y4minput.h vpxenc.h 69 vpxenc.SRCS += args.c args.h y4minput.c y4minput.h vpxenc.h
54 vpxenc.SRCS += ivfdec.c ivfdec.h 70 vpxenc.SRCS += ivfdec.c ivfdec.h
55 vpxenc.SRCS += ivfenc.c ivfenc.h 71 vpxenc.SRCS += ivfenc.c ivfenc.h
56 vpxenc.SRCS += rate_hist.c rate_hist.h 72 vpxenc.SRCS += rate_hist.c rate_hist.h
57 vpxenc.SRCS += tools_common.c tools_common.h 73 vpxenc.SRCS += tools_common.c tools_common.h
58 vpxenc.SRCS += warnings.c warnings.h 74 vpxenc.SRCS += warnings.c warnings.h
59 vpxenc.SRCS += vpx_ports/mem_ops.h 75 vpxenc.SRCS += vpx_ports/mem_ops.h
60 vpxenc.SRCS += vpx_ports/mem_ops_aligned.h 76 vpxenc.SRCS += vpx_ports/mem_ops_aligned.h
61 vpxenc.SRCS += vpx_ports/vpx_timer.h 77 vpxenc.SRCS += vpx_ports/vpx_timer.h
62 vpxenc.SRCS += vpxstats.c vpxstats.h 78 vpxenc.SRCS += vpxstats.c vpxstats.h
63 vpxenc.SRCS += $(LIBYUV_SRCS) 79 ifeq ($(CONFIG_LIBYUV),yes)
80 vpxenc.SRCS += $(LIBYUV_SRCS)
81 endif
64 ifeq ($(CONFIG_WEBM_IO),yes) 82 ifeq ($(CONFIG_WEBM_IO),yes)
65 vpxenc.SRCS += $(LIBWEBM_MUXER_SRCS) 83 vpxenc.SRCS += $(LIBWEBM_MUXER_SRCS)
66 vpxenc.SRCS += webmenc.cc webmenc.h 84 vpxenc.SRCS += webmenc.cc webmenc.h
67 endif 85 endif
68 vpxenc.GUID = 548DEC74-7A15-4B2B-AFC3-AA102E7C25C1 86 vpxenc.GUID = 548DEC74-7A15-4B2B-AFC3-AA102E7C25C1
69 vpxenc.DESCRIPTION = Full featured encoder 87 vpxenc.DESCRIPTION = Full featured encoder
70 EXAMPLES-$(CONFIG_VP9_ENCODER) += vp9_spatial_svc_encoder.c 88 ifeq ($(CONFIG_SPATIAL_SVC),yes)
71 vp9_spatial_svc_encoder.SRCS += args.c args.h 89 EXAMPLES-$(CONFIG_VP9_ENCODER) += vp9_spatial_svc_encoder.c
72 vp9_spatial_svc_encoder.SRCS += ivfenc.c ivfenc.h 90 vp9_spatial_svc_encoder.SRCS += args.c args.h
73 vp9_spatial_svc_encoder.SRCS += tools_common.c tools_common.h 91 vp9_spatial_svc_encoder.SRCS += ivfenc.c ivfenc.h
74 vp9_spatial_svc_encoder.SRCS += video_common.h 92 vp9_spatial_svc_encoder.SRCS += tools_common.c tools_common.h
75 vp9_spatial_svc_encoder.SRCS += video_writer.h video_writer.c 93 vp9_spatial_svc_encoder.SRCS += video_common.h
76 vp9_spatial_svc_encoder.SRCS += vpxstats.c vpxstats.h 94 vp9_spatial_svc_encoder.SRCS += video_writer.h video_writer.c
77 vp9_spatial_svc_encoder.GUID = 4A38598D-627D-4505-9C7B-D4020C84100D 95 vp9_spatial_svc_encoder.SRCS += vpxstats.c vpxstats.h
78 vp9_spatial_svc_encoder.DESCRIPTION = VP9 Spatial SVC Encoder 96 vp9_spatial_svc_encoder.GUID = 4A38598D-627D-4505-9C7B-D4020C84100D
97 vp9_spatial_svc_encoder.DESCRIPTION = VP9 Spatial SVC Encoder
98 endif
79 99
80 ifneq ($(CONFIG_SHARED),yes) 100 ifneq ($(CONFIG_SHARED),yes)
81 EXAMPLES-$(CONFIG_VP9_ENCODER) += resize_util.c 101 EXAMPLES-$(CONFIG_VP9_ENCODER) += resize_util.c
82 endif 102 endif
83 103
84 EXAMPLES-$(CONFIG_ENCODERS) += vpx_temporal_svc_encoder.c 104 EXAMPLES-$(CONFIG_ENCODERS) += vpx_temporal_svc_encoder.c
85 vpx_temporal_svc_encoder.SRCS += ivfenc.c ivfenc.h 105 vpx_temporal_svc_encoder.SRCS += ivfenc.c ivfenc.h
86 vpx_temporal_svc_encoder.SRCS += tools_common.c tools_common.h 106 vpx_temporal_svc_encoder.SRCS += tools_common.c tools_common.h
87 vpx_temporal_svc_encoder.SRCS += video_common.h 107 vpx_temporal_svc_encoder.SRCS += video_common.h
88 vpx_temporal_svc_encoder.SRCS += video_writer.h video_writer.c 108 vpx_temporal_svc_encoder.SRCS += video_writer.h video_writer.c
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 EXAMPLES-$(CONFIG_VP8_ENCODER) += vp8cx_set_ref.c 171 EXAMPLES-$(CONFIG_VP8_ENCODER) += vp8cx_set_ref.c
152 vp8cx_set_ref.SRCS += ivfenc.h ivfenc.c 172 vp8cx_set_ref.SRCS += ivfenc.h ivfenc.c
153 vp8cx_set_ref.SRCS += tools_common.h tools_common.c 173 vp8cx_set_ref.SRCS += tools_common.h tools_common.c
154 vp8cx_set_ref.SRCS += video_common.h 174 vp8cx_set_ref.SRCS += video_common.h
155 vp8cx_set_ref.SRCS += video_writer.h video_writer.c 175 vp8cx_set_ref.SRCS += video_writer.h video_writer.c
156 vp8cx_set_ref.GUID = C5E31F7F-96F6-48BD-BD3E-10EBF6E8057A 176 vp8cx_set_ref.GUID = C5E31F7F-96F6-48BD-BD3E-10EBF6E8057A
157 vp8cx_set_ref.DESCRIPTION = VP8 set encoder reference frame 177 vp8cx_set_ref.DESCRIPTION = VP8 set encoder reference frame
158 178
159 179
160 ifeq ($(CONFIG_MULTI_RES_ENCODING),yes) 180 ifeq ($(CONFIG_MULTI_RES_ENCODING),yes)
181 ifeq ($(CONFIG_LIBYUV),yes)
161 EXAMPLES-$(CONFIG_VP8_DECODER) += vp8_multi_resolution_encoder.c 182 EXAMPLES-$(CONFIG_VP8_DECODER) += vp8_multi_resolution_encoder.c
162 vp8_multi_resolution_encoder.SRCS += $(LIBYUV_SRCS) 183 vp8_multi_resolution_encoder.SRCS += $(LIBYUV_SRCS)
163 vp8_multi_resolution_encoder.GUID = 04f8738e-63c8-423b-90fa-7c2703a374de 184 vp8_multi_resolution_encoder.GUID = 04f8738e-63c8-423b-90fa-7c2703a374de
164 vp8_multi_resolution_encoder.DESCRIPTION = VP8 Multiple-resolution Encoding 185 vp8_multi_resolution_encoder.DESCRIPTION = VP8 Multiple-resolution Encoding
165 endif 186 endif
187 endif
166 188
167 # Handle extra library flags depending on codec configuration 189 # Handle extra library flags depending on codec configuration
168 190
169 # We should not link to math library (libm) on RVCT 191 # We should not link to math library (libm) on RVCT
170 # when building for bare-metal targets 192 # when building for bare-metal targets
171 ifeq ($(CONFIG_OS_SUPPORT), yes) 193 ifeq ($(CONFIG_OS_SUPPORT), yes)
172 CODEC_EXTRA_LIBS-$(CONFIG_VP8) += m 194 CODEC_EXTRA_LIBS-$(CONFIG_VP8) += m
173 CODEC_EXTRA_LIBS-$(CONFIG_VP9) += m 195 CODEC_EXTRA_LIBS-$(CONFIG_VP9) += m
174 else 196 else
175 ifeq ($(CONFIG_GCC), yes) 197 ifeq ($(CONFIG_GCC), yes)
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 # the makefiles). We may want to revisit this. 299 # the makefiles). We may want to revisit this.
278 define vcproj_template 300 define vcproj_template
279 $(1): $($(1:.$(VCPROJ_SFX)=).SRCS) vpx.$(VCPROJ_SFX) 301 $(1): $($(1:.$(VCPROJ_SFX)=).SRCS) vpx.$(VCPROJ_SFX)
280 @echo " [vcproj] $$@" 302 @echo " [vcproj] $$@"
281 $$(GEN_VCPROJ)\ 303 $$(GEN_VCPROJ)\
282 --exe\ 304 --exe\
283 --target=$$(TOOLCHAIN)\ 305 --target=$$(TOOLCHAIN)\
284 --name=$$(@:.$(VCPROJ_SFX)=)\ 306 --name=$$(@:.$(VCPROJ_SFX)=)\
285 --ver=$$(CONFIG_VS_VERSION)\ 307 --ver=$$(CONFIG_VS_VERSION)\
286 --proj-guid=$$($$(@:.$(VCPROJ_SFX)=).GUID)\ 308 --proj-guid=$$($$(@:.$(VCPROJ_SFX)=).GUID)\
309 --src-path-bare="$(SRC_PATH_BARE)" \
287 $$(if $$(CONFIG_STATIC_MSVCRT),--static-crt) \ 310 $$(if $$(CONFIG_STATIC_MSVCRT),--static-crt) \
288 --out=$$@ $$(INTERNAL_CFLAGS) $$(CFLAGS) \ 311 --out=$$@ $$(INTERNAL_CFLAGS) $$(CFLAGS) \
289 $$(INTERNAL_LDFLAGS) $$(LDFLAGS) -l$$(CODEC_LIB) $$^ 312 $$(INTERNAL_LDFLAGS) $$(LDFLAGS) -l$$(CODEC_LIB) $$^
290 endef 313 endef
291 ALL_EXAMPLES_BASENAME := $(notdir $(ALL_EXAMPLES)) 314 ALL_EXAMPLES_BASENAME := $(notdir $(ALL_EXAMPLES))
292 PROJECTS-$(CONFIG_MSVS) += $(ALL_EXAMPLES_BASENAME:.c=.$(VCPROJ_SFX)) 315 PROJECTS-$(CONFIG_MSVS) += $(ALL_EXAMPLES_BASENAME:.c=.$(VCPROJ_SFX))
293 INSTALL-BINS-$(CONFIG_MSVS) += $(foreach p,$(VS_PLATFORMS),\ 316 INSTALL-BINS-$(CONFIG_MSVS) += $(foreach p,$(VS_PLATFORMS),\
294 $(addprefix bin/$(p)/,$(ALL_EXAMPLES_BASENAME:.c= .exe))) 317 $(addprefix bin/$(p)/,$(ALL_EXAMPLES_BASENAME:.c= .exe)))
295 $(foreach proj,$(call enabled,PROJECTS),\ 318 $(foreach proj,$(call enabled,PROJECTS),\
296 $(eval $(call vcproj_template,$(proj)))) 319 $(eval $(call vcproj_template,$(proj))))
(...skipping 23 matching lines...) Expand all
320 "pieces like the samples are. Their source is included here"\ 343 "pieces like the samples are. Their source is included here"\
321 "for reference. The following utilities are included:" >> $@ 344 "for reference. The following utilities are included:" >> $@
322 @$(foreach ex,$(sort $(UTILS:.c=)),\ 345 @$(foreach ex,$(sort $(UTILS:.c=)),\
323 echo " - \subpage example_$(ex) $($(ex).DESCRIPTION)" >> $@;) 346 echo " - \subpage example_$(ex) $($(ex).DESCRIPTION)" >> $@;)
324 @echo "*/" >> $@ 347 @echo "*/" >> $@
325 348
326 CLEAN-OBJS += examples.doxy samples.dox $(ALL_EXAMPLES:.c=.dox) 349 CLEAN-OBJS += examples.doxy samples.dox $(ALL_EXAMPLES:.c=.dox)
327 DOCS-yes += examples.doxy samples.dox 350 DOCS-yes += examples.doxy samples.dox
328 examples.doxy: samples.dox $(ALL_EXAMPLES:.c=.dox) 351 examples.doxy: samples.dox $(ALL_EXAMPLES:.c=.dox)
329 @echo "INPUT += $^" > $@ 352 @echo "INPUT += $^" > $@
OLDNEW
« no previous file with comments | « source/libvpx/configure ('k') | source/libvpx/examples/vp9_spatial_svc_encoder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698