1 #INTEL CONFIDENTIAL 2 #Copyright 2009 Intel Corporation All Rights Reserved. 3 #The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors. The Material contains trade secrets and proprietary and confidential information of Intel or its suppliers and licensors. The Material is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way without Intels prior express written permission. 4 5 #No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel or otherwise. Any license under such intellectual property rights must be express and approved by Intel in writing. 6 # 7 VC1PATH=./../codecs/vc1/parser 8 MP2PATH=./../codecs/mp2/parser 9 MP4PATH=./../codecs/mp4/parser 10 H264PATH=./../codecs/h264/parser 11 12 PARSER_INCLUDE_PATH=-I./include \ 13 -I../include \ 14 -I../../include \ 15 -I./vc1/include \ 16 -I../codecs/vc1/include \ 17 -I../codecs/mp2/include \ 18 -I../codecs/mp4/include \ 19 -I../codecs/h264/include \ 20 -I../codecs/vc1/parser 21 22 23 PARSER_MACROS= -DVBP \ 24 -DHOST_ONLY \ 25 -DG_LOG_DOMAIN=\"vbp\" 26 27 28 la_CFLAGS = $(GLIB_CFLAGS) \ 29 $(MIX_CFLAGS) \ 30 $(GOBJECT_CFLAGS) \ 31 $(GTHREAD_CFLAGS) \ 32 $(PARSER_INCLUDE_PATH) \ 33 $(PARSER_MACROS) \ 34 -DMIXVBP_CURRENT=@MIXVBP_CURRENT@ \ 35 -DMIXVBP_AGE=@MIXVBP_AGE@ \ 36 -DMIXVBP_REVISION=@MIXVBP_REVISION@ 37 38 la_LIBADD = $(GLIB_LIBS) \ 39 $(GOBJECT_LIBS) \ 40 $(GTHREAD_LIBS) 41 42 la_LDFLAGS = $(GLIB_LIBS) \ 43 $(GOBJECT_LIBS) \ 44 $(GTHREAD_LIBS) \ 45 -version-info @MIXVBP_CURRENT@:@MIXVBP_REVISION@:@MIXVBP_AGE@ 46 47 lib_LTLIBRARIES = libmixvbp.la \ 48 libmixvbp_vc1.la \ 49 libmixvbp_mpeg2.la \ 50 libmixvbp_mpeg4.la \ 51 libmixvbp_h264.la 52 53 54 ###################################### vbp loader ######################################## 55 56 # sources used to compile 57 libmixvbp_la_SOURCES = vbp_loader.c \ 58 vbp_utils.c \ 59 vbp_trace.c \ 60 vbp_h264_parser.c \ 61 vbp_vc1_parser.c \ 62 vbp_mp42_parser.c \ 63 viddec_pm.c \ 64 viddec_pm_stubs.c \ 65 viddec_pm_parser_ops.c \ 66 viddec_pm_utils_bstream.c \ 67 viddec_pm_tags.c \ 68 viddec_emit.c \ 69 viddec_pm_utils_list.c \ 70 viddec_parse_sc.c \ 71 viddec_parse_sc_stub.c 72 73 libmixvbp_la_CFLAGS = $(la_CFLAGS) 74 libmixvbp_la_LIBADD = $(la_LIBADD) 75 libmixvbp_la_LDFLAGS = $(la_LDFLAGS) 76 libmixvbp_la_LIBTOOLFLAGS = --tag=disable-static 77 78 ###################################### VC-1 parser ######################################## 79 80 libmixvbp_vc1_la_SOURCES = $(VC1PATH)/vc1parse.c \ 81 $(VC1PATH)/vc1parse_bitplane.c \ 82 $(VC1PATH)/vc1parse_bpic.c \ 83 $(VC1PATH)/vc1parse_bpic_adv.c \ 84 $(VC1PATH)/vc1parse_common_tables.c \ 85 $(VC1PATH)/vc1parse_huffman.c \ 86 $(VC1PATH)/vc1parse_ipic.c \ 87 $(VC1PATH)/vc1parse_ipic_adv.c \ 88 $(VC1PATH)/vc1parse_mv_com.c \ 89 $(VC1PATH)/vc1parse_pic_com.c \ 90 $(VC1PATH)/vc1parse_pic_com_adv.c \ 91 $(VC1PATH)/vc1parse_ppic.c \ 92 $(VC1PATH)/vc1parse_ppic_adv.c \ 93 $(VC1PATH)/vc1parse_vopdq.c \ 94 $(VC1PATH)/viddec_vc1_parse.c \ 95 $(VC1PATH)/mix_vbp_vc1_stubs.c 96 97 libmixvbp_vc1_la_CFLAGS = $(la_CFLAGS) 98 libmixvbp_vc1_la_LIBADD = $(la_LIBADD) libmixvbp.la 99 libmixvbp_vc1_la_LDFLAGS = $(la_LDFLAGS) 100 libmixvbp_vc1_la_LIBTOOLFLAGS = --tag=disable-static 101 102 ###################################### MPEG-2 parser ######################################## 103 104 libmixvbp_mpeg2_la_SOURCES = $(MP2PATH)/viddec_mpeg2_metadata.c \ 105 $(MP2PATH)/viddec_mpeg2_parse.c \ 106 $(MP2PATH)/mix_vbp_mpeg2_stubs.c 107 108 libmixvbp_mpeg2_la_CFLAGS = $(la_CFLAGS) 109 libmixvbp_mpeg2_la_LIBADD = $(la_LIBADD) libmixvbp.la 110 libmixvbp_mpeg2_la_LDFLAGS = $(la_LDFLAGS) 111 libmixvbp_mpeg2_la_LIBTOOLFLAGS = --tag=disable-static 112 113 ###################################### MPEG-4 parser ######################################## 114 115 libmixvbp_mpeg4_la_SOURCES = $(MP4PATH)/viddec_mp4_parse.c \ 116 $(MP4PATH)/viddec_parse_sc_mp4.c \ 117 $(MP4PATH)/viddec_mp4_visualobject.c \ 118 $(MP4PATH)/viddec_mp4_videoobjectplane.c \ 119 $(MP4PATH)/viddec_mp4_shortheader.c \ 120 $(MP4PATH)/viddec_mp4_videoobjectlayer.c \ 121 $(MP4PATH)/viddec_mp4_decodevideoobjectplane.c 122 123 libmixvbp_mpeg4_la_CFLAGS = $(la_CFLAGS) 124 libmixvbp_mpeg4_la_LIBADD = $(la_LIBADD) libmixvbp.la 125 libmixvbp_mpeg4_la_LDFLAGS = $(la_LDFLAGS) 126 libmixvbp_mpeg4_la_LIBTOOLFLAGS = --tag=disable-static 127 128 ###################################### H.264 parser ######################################## 129 130 libmixvbp_h264_la_SOURCES = $(H264PATH)/h264parse.c \ 131 $(H264PATH)/h264parse_bsd.c \ 132 $(H264PATH)/h264parse_math.c \ 133 $(H264PATH)/h264parse_mem.c \ 134 $(H264PATH)/h264parse_sei.c \ 135 $(H264PATH)/h264parse_sh.c \ 136 $(H264PATH)/h264parse_pps.c \ 137 $(H264PATH)/h264parse_sps.c \ 138 $(H264PATH)/h264parse_dpb.c \ 139 $(H264PATH)/viddec_h264_parse.c \ 140 $(H264PATH)/mix_vbp_h264_stubs.c 141 142 libmixvbp_h264_la_CFLAGS = $(la_CFLAGS) 143 libmixvbp_h264_la_LIBADD = $(la_LIBADD) libmixvbp.la 144 libmixvbp_h264_la_LDFLAGS = $(la_LDFLAGS) 145 libmixvbp_h264_la_LIBTOOLFLAGS = --tag=disable-static 146 147 ############################################################################################## 148 149 # headers we need but don't want installed 150 noinst_HEADERS = ./vbp_h264_parser.h \ 151 ./vbp_mp42_parser.h \ 152 ./vbp_vc1_parser.h \ 153 ./vbp_trace.h \ 154 ./vbp_loader.h \ 155 ./vbp_utils.h \ 156 ./include/fw_pvt.h \ 157 ./include/ipc_fw_custom.h \ 158 ./include/viddec_emitter.h \ 159 ./include/viddec_fw_debug.h \ 160 ./include/viddec_fw_parser_fw_ipc.h \ 161 ./include/viddec_h264_parse.h \ 162 ./include/viddec_mp4_parse.h \ 163 ./include/viddec_mpeg2_parse.h \ 164 ./include/viddec_parser_ops.h \ 165 ./include/viddec_pm.h \ 166 ./include/viddec_pm_parse.h \ 167 ./include/viddec_pm_tags.h \ 168 ./include/viddec_pm_utils_bstream.h \ 169 ./include/viddec_pm_utils_list.h \ 170 ./include/viddec_vc1_parse.h \ 171 ../include/stdint.h \ 172 ../include/viddec_debug.h \ 173 ../include/viddec_fw_version.h \ 174 ../../include/viddec_fw_common_defs.h \ 175 ../../include/viddec_fw_decoder_host.h \ 176 ../../include/viddec_fw_frame_attr.h \ 177 ../../include/viddec_fw_item_types.h \ 178 ../../include/viddec_fw_parser_host.h \ 179 ../../include/viddec_fw_workload.h \ 180 ../../fw/include/stdint.h \ 181 ../../fw/include/viddec_debug.h \ 182 ../../fw/include/viddec_fw_version.h \ 183 ../../fw/codecs/h264/include/h264.h \ 184 ../../fw/codecs/h264/include/h264parse.h \ 185 ../../fw/codecs/h264/include/h264parse_dpb.h \ 186 ../../fw/codecs/h264/include/h264parse_sei.h \ 187 ../../fw/codecs/mp2/include/mpeg2.h \ 188 ../../fw/codecs/mp2/include/viddec_mpeg2.h \ 189 ../../fw/codecs/mp4/include/viddec_fw_mp4.h \ 190 ../../fw/codecs/mp4/parser/viddec_mp4_decodevideoobjectplane.h \ 191 ../../fw/codecs/mp4/parser/viddec_mp4_parse.h \ 192 ../../fw/codecs/mp4/parser/viddec_mp4_shortheader.h \ 193 ../../fw/codecs/mp4/parser/viddec_mp4_videoobjectlayer.h \ 194 ../../fw/codecs/mp4/parser/viddec_mp4_videoobjectplane.h \ 195 ../../fw/codecs/mp4/parser/viddec_mp4_visualobject.h \ 196 ../../fw/codecs/vc1/include/vc1common.h \ 197 ../../fw/codecs/vc1/parser/vc1.h \ 198 ../../fw/codecs/vc1/parser/vc1parse.h \ 199 ../../fw/codecs/vc1/parser/vc1parse_common_defs.h 200 201 202 mixincludedir=$(includedir)/mixvbp 203 mixinclude_HEADERS = vbp_loader.h 204 205 ############################################################################################## 206