| OLD | NEW |
| 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/scale.h \ | 13 third_party/libyuv/include/libyuv/scale.h \ |
| 14 third_party/libyuv/source/row.h \ | 14 third_party/libyuv/source/row.h \ |
| 15 third_party/libyuv/source/scale.c \ | 15 third_party/libyuv/source/scale.c \ |
| 16 third_party/libyuv/source/cpu_id.c | 16 third_party/libyuv/source/cpu_id.c |
| 17 | 17 |
| 18 # List of examples to build. UTILS are files that are taken from the source | 18 # List of examples to build. UTILS are files that are taken from the source |
| 19 # tree directly, and GEN_EXAMPLES are files that are created from the | 19 # tree directly, and GEN_EXAMPLES are files that are created from the |
| 20 # examples folder. | 20 # examples folder. |
| 21 UTILS-$(CONFIG_DECODERS) += vpxdec.c | 21 UTILS-$(CONFIG_DECODERS) += vpxdec.c |
| 22 vpxdec.SRCS += md5_utils.c md5_utils.h | 22 vpxdec.SRCS += md5_utils.c md5_utils.h |
| 23 vpxdec.SRCS += vpx_ports/vpx_timer.h | 23 vpxdec.SRCS += vpx_ports/vpx_timer.h |
| 24 vpxdec.SRCS += vpx/vpx_integer.h | 24 vpxdec.SRCS += vpx/vpx_integer.h |
| 25 vpxdec.SRCS += args.c args.h | 25 vpxdec.SRCS += args.c args.h |
| 26 vpxdec.SRCS += ivfdec.c ivfdec.h | 26 vpxdec.SRCS += ivfdec.c ivfdec.h |
| 27 vpxdec.SRCS += tools_common.c tools_common.h | 27 vpxdec.SRCS += tools_common.c tools_common.h |
| 28 vpxdec.SRCS += webmdec.c webmdec.h | 28 vpxdec.SRCS += webmdec.c webmdec.h |
| 29 vpxdec.SRCS += y4menc.c y4menc.h |
| 29 vpxdec.SRCS += nestegg/halloc/halloc.h | 30 vpxdec.SRCS += nestegg/halloc/halloc.h |
| 30 vpxdec.SRCS += nestegg/halloc/src/align.h | 31 vpxdec.SRCS += nestegg/halloc/src/align.h |
| 31 vpxdec.SRCS += nestegg/halloc/src/halloc.c | 32 vpxdec.SRCS += nestegg/halloc/src/halloc.c |
| 32 vpxdec.SRCS += nestegg/halloc/src/hlist.h | 33 vpxdec.SRCS += nestegg/halloc/src/hlist.h |
| 33 vpxdec.SRCS += nestegg/halloc/src/macros.h | 34 vpxdec.SRCS += nestegg/halloc/src/macros.h |
| 34 vpxdec.SRCS += nestegg/include/nestegg/nestegg.h | 35 vpxdec.SRCS += nestegg/include/nestegg/nestegg.h |
| 35 vpxdec.SRCS += nestegg/src/nestegg.c | 36 vpxdec.SRCS += nestegg/src/nestegg.c |
| 36 vpxdec.SRCS += $(LIBYUV_SRCS) | 37 vpxdec.SRCS += $(LIBYUV_SRCS) |
| 37 vpxdec.GUID = BA5FE66F-38DD-E034-F542-B1578C5FB950 | 38 vpxdec.GUID = BA5FE66F-38DD-E034-F542-B1578C5FB950 |
| 38 vpxdec.DESCRIPTION = Full featured decoder | 39 vpxdec.DESCRIPTION = Full featured decoder |
| (...skipping 17 matching lines...) Expand all Loading... |
| 56 UTILS-$(CONFIG_VP8_ENCODER) += vp8_scalable_patterns.c | 57 UTILS-$(CONFIG_VP8_ENCODER) += vp8_scalable_patterns.c |
| 57 vp8_scalable_patterns.GUID = 0D6A210B-F482-4D6F-8570-4A9C01ACC88C | 58 vp8_scalable_patterns.GUID = 0D6A210B-F482-4D6F-8570-4A9C01ACC88C |
| 58 vp8_scalable_patterns.DESCRIPTION = Temporal Scalability Encoder | 59 vp8_scalable_patterns.DESCRIPTION = Temporal Scalability Encoder |
| 59 UTILS-$(CONFIG_VP9_ENCODER) += vp9_spatial_scalable_encoder.c | 60 UTILS-$(CONFIG_VP9_ENCODER) += vp9_spatial_scalable_encoder.c |
| 60 vp9_spatial_scalable_encoder.SRCS += args.c args.h | 61 vp9_spatial_scalable_encoder.SRCS += args.c args.h |
| 61 vp9_spatial_scalable_encoder.SRCS += ivfenc.c ivfenc.h | 62 vp9_spatial_scalable_encoder.SRCS += ivfenc.c ivfenc.h |
| 62 vp9_spatial_scalable_encoder.SRCS += tools_common.c tools_common.h | 63 vp9_spatial_scalable_encoder.SRCS += tools_common.c tools_common.h |
| 63 vp9_spatial_scalable_encoder.GUID = 4A38598D-627D-4505-9C7B-D4020C84100D | 64 vp9_spatial_scalable_encoder.GUID = 4A38598D-627D-4505-9C7B-D4020C84100D |
| 64 vp9_spatial_scalable_encoder.DESCRIPTION = Spatial Scalable Encoder | 65 vp9_spatial_scalable_encoder.DESCRIPTION = Spatial Scalable Encoder |
| 65 | 66 |
| 67 ifeq ($(CONFIG_SHARED),no) |
| 68 UTILS-$(CONFIG_VP9_ENCODER) += resize_util.c |
| 69 endif |
| 70 |
| 66 # XMA example disabled for now, not used in VP8 | 71 # XMA example disabled for now, not used in VP8 |
| 67 #UTILS-$(CONFIG_DECODERS) += example_xma.c | 72 #UTILS-$(CONFIG_DECODERS) += example_xma.c |
| 68 #example_xma.GUID = A955FC4A-73F1-44F7-135E-30D84D32F022 | 73 #example_xma.GUID = A955FC4A-73F1-44F7-135E-30D84D32F022 |
| 69 #example_xma.DESCRIPTION = External Memory Allocation mode usage | 74 #example_xma.DESCRIPTION = External Memory Allocation mode usage |
| 70 | 75 |
| 71 GEN_EXAMPLES-$(CONFIG_VP8_DECODER) += simple_decoder.c | 76 GEN_EXAMPLES-$(CONFIG_VP8_DECODER) += simple_decoder.c |
| 72 simple_decoder.GUID = D3BBF1E9-2427-450D-BBFF-B2843C1D44CC | 77 simple_decoder.GUID = D3BBF1E9-2427-450D-BBFF-B2843C1D44CC |
| 73 simple_decoder.DESCRIPTION = Simplified decoder loop | 78 simple_decoder.SRCS += ivfdec.h ivfdec.c |
| 79 simple_decoder.SRCS += tools_common.h tools_common.c |
| 80 simple_decoder.DESCRIPTION = Simplified decoder loop |
| 74 GEN_EXAMPLES-$(CONFIG_VP8_DECODER) += postproc.c | 81 GEN_EXAMPLES-$(CONFIG_VP8_DECODER) += postproc.c |
| 75 postproc.GUID = 65E33355-F35E-4088-884D-3FD4905881D7 | 82 postproc.GUID = 65E33355-F35E-4088-884D-3FD4905881D7 |
| 76 postproc.DESCRIPTION = Decoder postprocessor control | 83 postproc.DESCRIPTION = Decoder postprocessor control |
| 77 GEN_EXAMPLES-$(CONFIG_VP8_DECODER) += decode_to_md5.c | 84 GEN_EXAMPLES-$(CONFIG_VP8_DECODER) += decode_to_md5.c |
| 78 decode_to_md5.SRCS += md5_utils.h md5_utils.c | 85 decode_to_md5.SRCS += md5_utils.h md5_utils.c |
| 79 decode_to_md5.GUID = 59120B9B-2735-4BFE-B022-146CA340FE42 | 86 decode_to_md5.SRCS += ivfdec.h ivfdec.c |
| 80 decode_to_md5.DESCRIPTION = Frame by frame MD5 checksum | 87 decode_to_md5.SRCS += tools_common.h tools_common.c |
| 88 decode_to_md5.GUID = 59120B9B-2735-4BFE-B022-146CA340FE42 |
| 89 decode_to_md5.DESCRIPTION = Frame by frame MD5 checksum |
| 81 | 90 |
| 82 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += simple_encoder.c | 91 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += simple_encoder.c |
| 83 simple_encoder.GUID = 4607D299-8A71-4D2C-9B1D-071899B6FBFD | 92 simple_encoder.GUID = 4607D299-8A71-4D2C-9B1D-071899B6FBFD |
| 84 simple_encoder.DESCRIPTION = Simplified encoder loop | 93 simple_encoder.DESCRIPTION = Simplified encoder loop |
| 85 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += twopass_encoder.c | 94 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += twopass_encoder.c |
| 86 twopass_encoder.GUID = 73494FA6-4AF9-4763-8FBB-265C92402FD8 | 95 twopass_encoder.GUID = 73494FA6-4AF9-4763-8FBB-265C92402FD8 |
| 87 twopass_encoder.DESCRIPTION = Two-pass encoder loop | 96 twopass_encoder.DESCRIPTION = Two-pass encoder loop |
| 88 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += force_keyframe.c | 97 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += force_keyframe.c |
| 89 force_keyframe.GUID = 3C67CADF-029F-4C86-81F5-D6D4F51177F0 | 98 force_keyframe.GUID = 3C67CADF-029F-4C86-81F5-D6D4F51177F0 |
| 90 force_keyframe.DESCRIPTION = Force generation of keyframes | 99 force_keyframe.DESCRIPTION = Force generation of keyframes |
| (...skipping 11 matching lines...) Expand all Loading... |
| 102 error_resilient.GUID = DF5837B9-4145-4F92-A031-44E4F832E00C | 111 error_resilient.GUID = DF5837B9-4145-4F92-A031-44E4F832E00C |
| 103 error_resilient.DESCRIPTION = Error Resiliency Feature | 112 error_resilient.DESCRIPTION = Error Resiliency Feature |
| 104 | 113 |
| 105 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += vp8_set_maps.c | 114 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += vp8_set_maps.c |
| 106 vp8_set_maps.GUID = ECB2D24D-98B8-4015-A465-A4AF3DCC145F | 115 vp8_set_maps.GUID = ECB2D24D-98B8-4015-A465-A4AF3DCC145F |
| 107 vp8_set_maps.DESCRIPTION = VP8 set active and ROI maps | 116 vp8_set_maps.DESCRIPTION = VP8 set active and ROI maps |
| 108 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += vp8cx_set_ref.c | 117 GEN_EXAMPLES-$(CONFIG_VP8_ENCODER) += vp8cx_set_ref.c |
| 109 vp8cx_set_ref.GUID = C5E31F7F-96F6-48BD-BD3E-10EBF6E8057A | 118 vp8cx_set_ref.GUID = C5E31F7F-96F6-48BD-BD3E-10EBF6E8057A |
| 110 vp8cx_set_ref.DESCRIPTION = VP8 set encoder reference frame | 119 vp8cx_set_ref.DESCRIPTION = VP8 set encoder reference frame |
| 111 | 120 |
| 112 # C file is provided, not generated automatically. | 121 |
| 113 UTILS-$(CONFIG_MULTI_RES_ENCODING) += vp8_multi_resolution_encoder.c | 122 ifeq ($(CONFIG_MULTI_RES_ENCODING),yes) |
| 114 vp8_multi_resolution_encoder.SRCS += $(LIBYUV_SRCS) | 123 GEN_EXAMPLES-$(CONFIG_VP8_DECODER) += vp8_multi_resolution_encoder.c |
| 115 vp8_multi_resolution_encoder.GUID = 04f8738e-63c8-423b-90fa-7c2703a374de | 124 vp8_multi_resolution_encoder.SRCS += $(LIBYUV_SRCS) |
| 116 vp8_multi_resolution_encoder.DESCRIPTION = VP8 Multiple-resolution Encoding | 125 vp8_multi_resolution_encoder.GUID = 04f8738e-63c8-423b-90fa-7c2703a374de |
| 126 vp8_multi_resolution_encoder.DESCRIPTION = VP8 Multiple-resolution Encoding |
| 127 endif |
| 117 | 128 |
| 118 # Handle extra library flags depending on codec configuration | 129 # Handle extra library flags depending on codec configuration |
| 119 | 130 |
| 120 # We should not link to math library (libm) on RVCT | 131 # We should not link to math library (libm) on RVCT |
| 121 # when building for bare-metal targets | 132 # when building for bare-metal targets |
| 122 ifeq ($(CONFIG_OS_SUPPORT), yes) | 133 ifeq ($(CONFIG_OS_SUPPORT), yes) |
| 123 CODEC_EXTRA_LIBS-$(CONFIG_VP8) += m | 134 CODEC_EXTRA_LIBS-$(CONFIG_VP8) += m |
| 124 CODEC_EXTRA_LIBS-$(CONFIG_VP9) += m | 135 CODEC_EXTRA_LIBS-$(CONFIG_VP9) += m |
| 125 else | 136 else |
| 126 ifeq ($(CONFIG_GCC), yes) | 137 ifeq ($(CONFIG_GCC), yes) |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 $(call objs,$($(notdir $(bin:$(EXE_SFX)=)).SRCS)) \ | 209 $(call objs,$($(notdir $(bin:$(EXE_SFX)=)).SRCS)) \ |
| 199 -l$(CODEC_LIB) $(addprefix -l,$(CODEC_EXTRA_LIBS))\ | 210 -l$(CODEC_LIB) $(addprefix -l,$(CODEC_EXTRA_LIBS))\ |
| 200 )))\ | 211 )))\ |
| 201 $(if $(LIPO_OBJS),$(eval $(call lipo_bin_template,$(bin))))\ | 212 $(if $(LIPO_OBJS),$(eval $(call lipo_bin_template,$(bin))))\ |
| 202 ) | 213 ) |
| 203 | 214 |
| 204 | 215 |
| 205 # Rules to generate the GEN_EXAMPLES sources | 216 # Rules to generate the GEN_EXAMPLES sources |
| 206 .PRECIOUS: %.c | 217 .PRECIOUS: %.c |
| 207 CLEAN-OBJS += $(GEN_EXAMPLES) | 218 CLEAN-OBJS += $(GEN_EXAMPLES) |
| 208 %.c: examples/%.txt | 219 %.c: examples/%.c |
| 209 @echo " [EXAMPLE] $@" | 220 @echo " [EXAMPLE] $@" |
| 210 » @$(SRC_PATH_BARE)/examples/gen_example_code.sh $< > $@ | 221 » @cp $< $@ |
| 211 | 222 |
| 212 | 223 |
| 213 # The following pairs define a mapping of locations in the distribution | 224 # The following pairs define a mapping of locations in the distribution |
| 214 # tree to locations in the source/build trees. | 225 # tree to locations in the source/build trees. |
| 215 INSTALL_MAPS += src/%.c %.c | 226 INSTALL_MAPS += src/%.c %.c |
| 216 INSTALL_MAPS += src/% $(SRC_PATH_BARE)/% | 227 INSTALL_MAPS += src/% $(SRC_PATH_BARE)/% |
| 217 INSTALL_MAPS += bin/% % | 228 INSTALL_MAPS += bin/% % |
| 218 INSTALL_MAPS += % % | 229 INSTALL_MAPS += % % |
| 219 | 230 |
| 220 | 231 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 245 --proj-guid=$$($$(@:.$(VCPROJ_SFX)=).GUID)\ | 256 --proj-guid=$$($$(@:.$(VCPROJ_SFX)=).GUID)\ |
| 246 $$(if $$(CONFIG_STATIC_MSVCRT),--static-crt) \ | 257 $$(if $$(CONFIG_STATIC_MSVCRT),--static-crt) \ |
| 247 --out=$$@ $$(INTERNAL_CFLAGS) $$(CFLAGS) \ | 258 --out=$$@ $$(INTERNAL_CFLAGS) $$(CFLAGS) \ |
| 248 $$(INTERNAL_LDFLAGS) $$(LDFLAGS) -l$$(CODEC_LIB) $$^ | 259 $$(INTERNAL_LDFLAGS) $$(LDFLAGS) -l$$(CODEC_LIB) $$^ |
| 249 endef | 260 endef |
| 250 PROJECTS-$(CONFIG_MSVS) += $(ALL_EXAMPLES:.c=.$(VCPROJ_SFX)) | 261 PROJECTS-$(CONFIG_MSVS) += $(ALL_EXAMPLES:.c=.$(VCPROJ_SFX)) |
| 251 INSTALL-BINS-$(CONFIG_MSVS) += $(foreach p,$(VS_PLATFORMS),\ | 262 INSTALL-BINS-$(CONFIG_MSVS) += $(foreach p,$(VS_PLATFORMS),\ |
| 252 $(addprefix bin/$(p)/,$(ALL_EXAMPLES:.c=.exe))) | 263 $(addprefix bin/$(p)/,$(ALL_EXAMPLES:.c=.exe))) |
| 253 $(foreach proj,$(call enabled,PROJECTS),\ | 264 $(foreach proj,$(call enabled,PROJECTS),\ |
| 254 $(eval $(call vcproj_template,$(proj)))) | 265 $(eval $(call vcproj_template,$(proj)))) |
| 255 | |
| 256 | |
| 257 | |
| 258 # | |
| 259 # Documentation Rules | |
| 260 # | |
| 261 %.dox: examples/%.txt | |
| 262 @echo " [DOXY] $@" | |
| 263 @$(SRC_PATH_BARE)/examples/gen_example_text.sh $< | \ | |
| 264 $(SRC_PATH_BARE)/examples/gen_example_doxy.php \ | |
| 265 example_$(@:.dox=) $(@:.dox=.c) > $@ | |
| 266 | |
| 267 %.dox: %.c | |
| 268 @echo " [DOXY] $@" | |
| 269 @echo "/*!\page example_$(@:.dox=) $(@:.dox=)" > $@ | |
| 270 @echo " \includelineno $(notdir $<)" >> $@ | |
| 271 @echo "*/" >> $@ | |
| 272 | |
| 273 samples.dox: examples.mk | |
| 274 @echo " [DOXY] $@" | |
| 275 @echo "/*!\page samples Sample Code" > $@ | |
| 276 @echo " This SDK includes a number of sample applications."\ | |
| 277 "each sample documents a feature of the SDK in both prose"\ | |
| 278 "and the associated C code. In general, later samples"\ | |
| 279 "build upon prior samples, so it is best to work through the"\ | |
| 280 "list in order. The following samples are included: ">>$@ | |
| 281 @$(foreach ex,$(GEN_EXAMPLES:.c=),\ | |
| 282 echo " - \subpage example_$(ex) $($(ex).DESCRIPTION)" >> $@;) | |
| 283 @echo >> $@ | |
| 284 @echo " In addition, the SDK contains a number of utilities."\ | |
| 285 "Since these utilities are built upon the concepts described"\ | |
| 286 "in the sample code listed above, they are not documented in"\ | |
| 287 "pieces like the samples are. Thir sourcre is included here"\ | |
| 288 "for reference. The following utilities are included:" >> $@ | |
| 289 @$(foreach ex,$(UTILS:.c=),\ | |
| 290 echo " - \subpage example_$(ex) $($(ex).DESCRIPTION)" >> $@;) | |
| 291 @echo "*/" >> $@ | |
| 292 | |
| 293 CLEAN-OBJS += examples.doxy samples.dox $(ALL_EXAMPLES:.c=.dox) | |
| 294 DOCS-yes += examples.doxy samples.dox $(ALL_EXAMPLES:.c=.dox) | |
| 295 examples.doxy: samples.dox $(ALL_EXAMPLES:.c=.dox) | |
| 296 @echo "INPUT += $^" > $@ | |
| OLD | NEW |