Home | History | Annotate | Download | only in videocodec
      1 ifeq ($(strip $(BOARD_USES_WRS_OMXIL_CORE)),true)
      2 LOCAL_PATH := $(call my-dir)
      3 
      4 ifeq ($(strip $(USE_VIDEO_EFFECT)),true)
      5 LOCAL_C_FLAGS := -DUSE_VIDEO_EFFECT
      6 endif
      7 
      8 ################################################################################
      9 
     10 include $(CLEAR_VARS)
     11 
     12 ifeq ($(TARGET_HAS_ISV),true)
     13 LOCAL_CFLAGS += -DTARGET_HAS_ISV
     14 endif
     15 
     16 LOCAL_SHARED_LIBRARIES := \
     17     libwrs_omxil_common \
     18     libva_videodecoder \
     19     liblog \
     20     libva \
     21     libva-android
     22 
     23 LOCAL_C_INCLUDES := \
     24     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     25     $(TARGET_OUT_HEADERS)/khronos/openmax \
     26     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
     27     $(TARGET_OUT_HEADERS)/libva \
     28     $(call include-path-for, frameworks-native)/media/hardware \
     29     $(call include-path-for, frameworks-native)/media/openmax \
     30     $(call include-path-for, libhardware)
     31 
     32 PLATFORM_USE_GEN_HW := \
     33     baytrail \
     34     cherrytrail
     35 
     36 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
     37 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
     38 endif
     39 
     40 LOCAL_SRC_FILES := \
     41     OMXComponentCodecBase.cpp \
     42     OMXVideoDecoderBase.cpp \
     43     OMXVideoDecoderAVC.cpp
     44 
     45 LOCAL_CFLAGS += -Werror
     46 LOCAL_MODULE_TAGS := optional
     47 LOCAL_MODULE := libOMXVideoDecoderAVC
     48 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
     49 LOCAL_CFLAGS += -DVED_TILING
     50 endif
     51 
     52 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
     53 LOCAL_CFLAGS += -DVED_TILING
     54 endif
     55 
     56 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
     57 LOCAL_CFLAGS += -DVED_TILING
     58 LOCAL_CFLAGS += -DUSE_META_DATA
     59 endif
     60 
     61 ifeq ($(TARGET_VPP_USE_GEN),true)
     62 LOCAL_CFLAGS += -DDEINTERLACE_EXT
     63 endif
     64 
     65 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
     66 LOCAL_CFLAGS += -DUSE_GEN_HW
     67 endif
     68 
     69 # TODO: Fix this.
     70 LOCAL_CFLAGS += -Wno-error=unused-variable
     71 
     72 include $(BUILD_SHARED_LIBRARY)
     73 
     74 ################################################################################
     75 
     76 PLATFORM_SUPPORT_VP8 := \
     77     merrifield \
     78     morganfield \
     79     moorefield \
     80     baytrail \
     81     cherrytrail
     82 
     83 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_VP8)),)
     84 include $(CLEAR_VARS)
     85 
     86 ifeq ($(TARGET_HAS_ISV),true)
     87 LOCAL_CFLAGS += -DTARGET_HAS_ISV
     88 endif
     89 
     90 LOCAL_SHARED_LIBRARIES := \
     91     libwrs_omxil_common \
     92     libva_videodecoder \
     93     liblog \
     94     libva \
     95     libva-android
     96 
     97 LOCAL_C_INCLUDES := \
     98     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     99     $(TARGET_OUT_HEADERS)/khronos/openmax \
    100     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    101     $(TARGET_OUT_HEADERS)/libva \
    102     $(call include-path-for, frameworks-native)/media/hardware \
    103     $(call include-path-for, frameworks-native)/media/openmax \
    104     $(call include-path-for, libhardware)
    105 
    106 LOCAL_SRC_FILES := \
    107     OMXComponentCodecBase.cpp \
    108     OMXVideoDecoderBase.cpp \
    109     OMXVideoDecoderVP8.cpp
    110 
    111 LOCAL_CFLAGS += -Werror
    112 LOCAL_MODULE_TAGS := optional
    113 LOCAL_MODULE := libOMXVideoDecoderVP8
    114 
    115 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    116 LOCAL_CFLAGS += -DVED_TILING
    117 endif
    118 
    119 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    120 LOCAL_CFLAGS += -DVED_TILING
    121 LOCAL_CFLAGS += -DUSE_META_DATA
    122 endif
    123 
    124 PLATFORM_USE_GEN_HW := \
    125     baytrail \
    126     cherrytrail
    127 
    128 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    129 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    130 endif
    131 
    132 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    133 LOCAL_CFLAGS += -DUSE_GEN_HW
    134 endif
    135 
    136 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    137 LOCAL_CFLAGS += -DUSE_X_TILE
    138 endif
    139 
    140 # TODO: Fix this.
    141 LOCAL_CFLAGS += -Wno-error=unused-variable
    142 
    143 include $(BUILD_SHARED_LIBRARY)
    144 endif
    145 
    146 ################################################################################
    147 
    148 # VP9 with SW decode and HW Render
    149 include $(CLEAR_VARS)
    150 
    151 ifeq ($(TARGET_HAS_ISV),true)
    152 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    153 endif
    154 
    155 LOCAL_SHARED_LIBRARIES := \
    156     libwrs_omxil_common \
    157     libva_videodecoder \
    158     liblog \
    159     libva \
    160     libva-android \
    161     libva-tpi
    162 
    163 LOCAL_STATIC_LIBRARIES := \
    164     libvpx_internal
    165 
    166 LOCAL_C_INCLUDES := \
    167     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    168     $(TARGET_OUT_HEADERS)/khronos/openmax \
    169     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    170     $(TARGET_OUT_HEADERS)/libva \
    171     $(LOCAL_PATH)/libvpx_internal/libvpx \
    172     $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_codec \
    173     $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_ports \
    174     $(call include-path-for, frameworks-native)/media/hardware \
    175     $(call include-path-for, frameworks-native)/media/openmax \
    176     $(call include-path-for, libhardware)
    177 
    178 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    179 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    180 endif
    181 
    182 LOCAL_SRC_FILES := \
    183     OMXComponentCodecBase.cpp \
    184     OMXVideoDecoderBase.cpp \
    185     OMXVideoDecoderVP9HWR.cpp
    186 
    187 LOCAL_CFLAGS += -Werror
    188 LOCAL_MODULE_TAGS := optional
    189 LOCAL_MODULE := libOMXVideoDecoderVP9HWR
    190 
    191 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    192 LOCAL_CFLAGS += -DVED_TILING
    193 endif
    194 
    195 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    196 LOCAL_CFLAGS += -DVED_TILING
    197 endif
    198 
    199 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    200 LOCAL_CFLAGS += -DUSE_GEN_HW
    201 endif
    202 
    203 # TODO: Fix this.
    204 LOCAL_CFLAGS += -Wno-error=unused-variable
    205 
    206 include $(BUILD_SHARED_LIBRARY)
    207 
    208 # VP9 hybrid decoder and HW Render
    209 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    210 include $(CLEAR_VARS)
    211 ifeq ($(TARGET_HAS_VPP),true)
    212 LOCAL_CFLAGS += -DTARGET_HAS_VPP
    213 endif
    214 LOCAL_SHARED_LIBRARIES := \
    215     libwrs_omxil_common \
    216     liblog \
    217     libva_videodecoder \
    218     libdl \
    219 
    220 LOCAL_C_INCLUDES := \
    221     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    222     $(TARGET_OUT_HEADERS)/khronos/openmax \
    223     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    224     $(TARGET_OUT_HEADERS)/libva \
    225     $(call include-path-for, frameworks-native)/media/hardware \
    226     $(call include-path-for, frameworks-native)/media/openmax \
    227     $(call include-path-for, libhardware)
    228 
    229 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    230     LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    231 else
    232     LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/pvr/hal
    233 endif
    234 
    235 LOCAL_SRC_FILES := \
    236     OMXComponentCodecBase.cpp \
    237     OMXVideoDecoderBase.cpp \
    238     OMXVideoDecoderVP9Hybrid.cpp
    239 
    240 LOCAL_CFLAGS += -Werror
    241 LOCAL_MODULE_TAGS := optional
    242 LOCAL_MODULE := libOMXVideoDecoderVP9Hybrid
    243 
    244 # OMXVideoDecoderVP9Hybrid.h hides overloaded virtual function FillRenderBuffer.
    245 LOCAL_CLANG_CFLAGS += -Wno-overloaded-virtual
    246 
    247 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    248 LOCAL_CFLAGS += -DVED_TILING
    249 endif
    250 
    251 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    252 LOCAL_CFLAGS += -DVED_TILING
    253 LOCAL_CFLAGS += -DUSE_META_DATA
    254 endif
    255 
    256 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    257 LOCAL_CFLAGS += -DUSE_GEN_HW
    258 endif
    259 
    260 # TODO: Fix this.
    261 LOCAL_CFLAGS += -Wno-error=unused-variable
    262 
    263 include $(BUILD_SHARED_LIBRARY)
    264 endif
    265 
    266 include $(CLEAR_VARS)
    267 ifeq ($(TARGET_HAS_ISV),true)
    268 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    269 endif
    270 
    271 LOCAL_SHARED_LIBRARIES := \
    272     libwrs_omxil_common \
    273     libva_videodecoder \
    274     liblog \
    275     libva \
    276     libva-android
    277 
    278 LOCAL_C_INCLUDES := \
    279     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    280     $(TARGET_OUT_HEADERS)/khronos/openmax \
    281     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    282     $(TARGET_OUT_HEADERS)/libva \
    283     $(call include-path-for, frameworks-native)/media/hardware \
    284     $(call include-path-for, frameworks-native)/media/openmax \
    285     $(call include-path-for, libhardware)
    286 
    287 PLATFORM_USE_GEN_HW := \
    288     baytrail \
    289     cherrytrail
    290 
    291 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    292 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    293 endif
    294 
    295 LOCAL_SRC_FILES := \
    296     OMXComponentCodecBase.cpp \
    297     OMXVideoDecoderBase.cpp \
    298     OMXVideoDecoderMPEG4.cpp
    299 
    300 LOCAL_CFLAGS += -Werror
    301 LOCAL_MODULE_TAGS := optional
    302 LOCAL_MODULE := libOMXVideoDecoderMPEG4
    303 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    304 LOCAL_CFLAGS += -DVED_TILING
    305 endif
    306 
    307 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    308 LOCAL_CFLAGS += -DVED_TILING
    309 endif
    310 
    311 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    312 LOCAL_CFLAGS += -DVED_TILING
    313 LOCAL_CFLAGS += -DUSE_META_DATA
    314 endif
    315 
    316 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    317 LOCAL_CFLAGS += -DUSE_GEN_HW
    318 endif
    319 
    320 # TODO: Fix this.
    321 LOCAL_CFLAGS += -Wno-error=unused-variable
    322 
    323 include $(BUILD_SHARED_LIBRARY)
    324 
    325 ################################################################################
    326 
    327 include $(CLEAR_VARS)
    328 ifeq ($(TARGET_HAS_ISV),true)
    329 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    330 endif
    331 
    332 LOCAL_SHARED_LIBRARIES := \
    333     libwrs_omxil_common \
    334     libva_videodecoder \
    335     liblog \
    336     libva \
    337     libva-android
    338 
    339 LOCAL_C_INCLUDES := \
    340     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    341     $(TARGET_OUT_HEADERS)/khronos/openmax \
    342     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    343     $(TARGET_OUT_HEADERS)/libva \
    344     $(call include-path-for, frameworks-native)/media/hardware \
    345     $(call include-path-for, frameworks-native)/media/openmax \
    346     $(call include-path-for, libhardware)
    347 
    348 PLATFORM_USE_GEN_HW := \
    349     baytrail \
    350     cherrytrail
    351 
    352 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    353 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    354 endif
    355 
    356 LOCAL_SRC_FILES := \
    357     OMXComponentCodecBase.cpp \
    358     OMXVideoDecoderBase.cpp \
    359     OMXVideoDecoderH263.cpp
    360 
    361 LOCAL_CFLAGS += -Werror
    362 LOCAL_MODULE_TAGS := optional
    363 LOCAL_MODULE := libOMXVideoDecoderH263
    364 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    365 LOCAL_CFLAGS += -DVED_TILING
    366 endif
    367 
    368 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    369 LOCAL_CFLAGS += -DVED_TILING
    370 endif
    371 
    372 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    373 LOCAL_CFLAGS += -DVED_TILING
    374 LOCAL_CFLAGS += -DUSE_META_DATA
    375 endif
    376 
    377 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    378 LOCAL_CFLAGS += -DUSE_GEN_HW
    379 endif
    380 
    381 # TODO: Fix this.
    382 LOCAL_CFLAGS += -Wno-error=unused-variable
    383 
    384 include $(BUILD_SHARED_LIBRARY)
    385 
    386 ################################################################################
    387 
    388 include $(CLEAR_VARS)
    389 ifeq ($(TARGET_HAS_ISV),true)
    390 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    391 endif
    392 
    393 LOCAL_SHARED_LIBRARIES := \
    394     libwrs_omxil_common \
    395     libva_videodecoder \
    396     liblog \
    397     libva \
    398     libva-android
    399 
    400 LOCAL_C_INCLUDES := \
    401     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    402     $(TARGET_OUT_HEADERS)/khronos/openmax \
    403     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    404     $(TARGET_OUT_HEADERS)/libva \
    405     $(call include-path-for, frameworks-native)/media/hardware \
    406     $(call include-path-for, frameworks-native)/media/openmax \
    407     $(call include-path-for, libhardware)
    408 
    409 PLATFORM_USE_GEN_HW := \
    410     baytrail \
    411     cherrytrail
    412 
    413 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
    414 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
    415 endif
    416 
    417 LOCAL_SRC_FILES := \
    418     OMXComponentCodecBase.cpp \
    419     OMXVideoDecoderBase.cpp \
    420     OMXVideoDecoderWMV.cpp
    421 
    422 LOCAL_CFLAGS += -Werror
    423 LOCAL_MODULE_TAGS := optional
    424 LOCAL_MODULE := libOMXVideoDecoderWMV
    425 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    426 LOCAL_CFLAGS += -DVED_TILING
    427 endif
    428 
    429 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    430 LOCAL_CFLAGS += -DVED_TILING
    431 endif
    432 
    433 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    434 LOCAL_CFLAGS += -DVED_TILING
    435 endif
    436 
    437 ifeq ($(TARGET_VPP_USE_GEN),true)
    438 LOCAL_CFLAGS += -DDEINTERLACE_EXT
    439 endif
    440 
    441 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
    442 LOCAL_CFLAGS += -DUSE_GEN_HW
    443 endif
    444 
    445 # TODO: Fix this.
    446 LOCAL_CFLAGS += -Wno-error=unused-variable
    447 
    448 include $(BUILD_SHARED_LIBRARY)
    449 
    450 ################################################################################
    451 
    452 #Build secure AVC video decoder only on supported platforms
    453 ifeq ($(USE_INTEL_SECURE_AVC),true)
    454 
    455 include $(CLEAR_VARS)
    456 ifeq ($(TARGET_HAS_ISV),true)
    457 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    458 endif
    459 
    460 LOCAL_SHARED_LIBRARIES := \
    461     libwrs_omxil_common \
    462     libdrm \
    463     libva_videodecoder \
    464     liblog \
    465     libva \
    466     libva-android \
    467     libcutils
    468 
    469 LOCAL_C_INCLUDES := \
    470     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    471     $(TARGET_OUT_HEADERS)/khronos/openmax \
    472     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    473     $(TARGET_OUT_HEADERS)/libva \
    474     $(TARGET_OUT_HEADERS)/libdrm \
    475     $(call include-path-for, frameworks-native)/media/hardware \
    476     $(call include-path-for, frameworks-native)/media/openmax \
    477     $(call include-path-for, libhardware)
    478 
    479 LOCAL_SRC_FILES := \
    480     OMXComponentCodecBase.cpp \
    481     OMXVideoDecoderBase.cpp
    482 
    483 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    484 LOCAL_SRC_FILES += \
    485     securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp \
    486     securevideo/moorefield/drm_vendor_api.c
    487 LOCAL_CFLAGS += -DVED_TILING
    488 LOCAL_CFLAGS += -DUSE_META_DATA
    489 LOCAL_SHARED_LIBRARIES += libdl
    490 endif
    491 
    492 LOCAL_CFLAGS += -Werror
    493 LOCAL_MODULE_TAGS := optional
    494 LOCAL_MODULE := libOMXVideoDecoderAVCSecure
    495 
    496 # TODO: Fix this.
    497 LOCAL_CFLAGS += -Wno-error=unused-variable
    498 
    499 include $(BUILD_SHARED_LIBRARY)
    500 
    501 endif #USE_INTEL_SECURE_AVC
    502 
    503 ################################################################################
    504 PLATFORM_SUPPORT_MPEG2 := \
    505     moorefield
    506 
    507 ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_MPEG2)),)
    508 include $(CLEAR_VARS)
    509 
    510 ifeq ($(TARGET_HAS_ISV),true)
    511 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    512 endif
    513 
    514 LOCAL_CPPFLAGS :=
    515 LOCAL_LDFLAGS :=
    516 
    517 LOCAL_SHARED_LIBRARIES := \
    518     libwrs_omxil_common \
    519     libva_videodecoder \
    520     liblog \
    521     libva \
    522     libva-android
    523 
    524 LOCAL_C_INCLUDES := \
    525     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    526     $(TARGET_OUT_HEADERS)/khronos/openmax \
    527     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    528     $(TARGET_OUT_HEADERS)/libva \
    529     $(call include-path-for, frameworks-native)/media/hardware \
    530     $(call include-path-for, frameworks-native)/media/openmax
    531 
    532 LOCAL_SRC_FILES := \
    533     OMXComponentCodecBase.cpp\
    534     OMXVideoDecoderBase.cpp\
    535     OMXVideoDecoderMPEG2.cpp
    536 
    537 LOCAL_MODULE_TAGS := optional
    538 LOCAL_MODULE := libOMXVideoDecoderMPEG2
    539 
    540 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    541 LOCAL_CFLAGS += -DVED_TILING
    542 endif
    543 
    544 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    545 LOCAL_CFLAGS += -DVED_TILING
    546 LOCAL_CFLAGS += -DUSE_META_DATA
    547 endif
    548 
    549 # TODO: Fix this.
    550 LOCAL_CFLAGS += -Wno-error=unused-variable
    551 
    552 include $(BUILD_SHARED_LIBRARY)
    553 endif
    554 
    555 ################################################################################
    556 
    557 include $(CLEAR_VARS)
    558 ifeq ($(TARGET_HAS_ISV),true)
    559 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    560 endif
    561 
    562 LOCAL_SHARED_LIBRARIES := \
    563     libwrs_omxil_common \
    564     liblog \
    565     libva_videoencoder \
    566     libva \
    567     libva-android \
    568     libva-tpi \
    569     libutils \
    570     libcutils \
    571     libhardware \
    572     libintelmetadatabuffer
    573 
    574 LOCAL_C_INCLUDES := \
    575     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    576     $(TARGET_OUT_HEADERS)/khronos/openmax \
    577     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    578     $(TARGET_OUT_HEADERS)/libva \
    579     $(call include-path-for, frameworks-native)/media/hardware \
    580     $(call include-path-for, frameworks-native)/media/openmax \
    581 
    582 LOCAL_SRC_FILES := \
    583     OMXComponentCodecBase.cpp \
    584     OMXVideoEncoderBase.cpp \
    585     OMXVideoEncoderAVC.cpp
    586 
    587 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    588 LOCAL_CFLAGS += -Werror
    589 LOCAL_MODULE_TAGS := optional
    590 LOCAL_MODULE := libOMXVideoEncoderAVC
    591 include $(BUILD_SHARED_LIBRARY)
    592 
    593 ################################################################################
    594 
    595 include $(CLEAR_VARS)
    596 ifeq ($(TARGET_HAS_ISV),true)
    597 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    598 endif
    599 
    600 LOCAL_SHARED_LIBRARIES := \
    601     libwrs_omxil_common \
    602     liblog \
    603     libva_videoencoder \
    604     libva \
    605     libva-android \
    606     libva-tpi \
    607     libutils \
    608     libcutils \
    609     libhardware \
    610     libintelmetadatabuffer
    611 
    612 LOCAL_C_INCLUDES := \
    613     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    614     $(TARGET_OUT_HEADERS)/khronos/openmax \
    615     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    616     $(TARGET_OUT_HEADERS)/libva \
    617     $(call include-path-for, frameworks-native)/media/hardware \
    618     $(call include-path-for, frameworks-native)/media/openmax \
    619 
    620 LOCAL_SRC_FILES := \
    621     OMXComponentCodecBase.cpp \
    622     OMXVideoEncoderBase.cpp \
    623     OMXVideoEncoderH263.cpp
    624 
    625 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    626 
    627 ifeq ($(SW_MPEG4_ENCODER),true)
    628     LOCAL_CFLAGS += -DSYNC_MODE
    629 endif
    630 LOCAL_CFLAGS += -Werror
    631 LOCAL_MODULE_TAGS := optional
    632 LOCAL_MODULE := libOMXVideoEncoderH263
    633 include $(BUILD_SHARED_LIBRARY)
    634 
    635 ################################################################################
    636 
    637 include $(CLEAR_VARS)
    638 ifeq ($(TARGET_HAS_ISV),true)
    639 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    640 endif
    641 
    642 LOCAL_SHARED_LIBRARIES := \
    643     libwrs_omxil_common \
    644     liblog \
    645     libva_videoencoder \
    646     libva \
    647     libva-android \
    648     libva-tpi \
    649     libutils \
    650     libcutils \
    651     libhardware \
    652     libintelmetadatabuffer
    653 
    654 LOCAL_C_INCLUDES := \
    655     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    656     $(TARGET_OUT_HEADERS)/khronos/openmax \
    657     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    658     $(TARGET_OUT_HEADERS)/libva \
    659     $(call include-path-for, frameworks-native)/media/hardware \
    660     $(call include-path-for, frameworks-native)/media/openmax \
    661 
    662 LOCAL_SRC_FILES := \
    663     OMXComponentCodecBase.cpp \
    664     OMXVideoEncoderBase.cpp \
    665     OMXVideoEncoderMPEG4.cpp
    666 
    667 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    668 
    669 LOCAL_CFLAGS += -Werror
    670 LOCAL_MODULE_TAGS := optional
    671 LOCAL_MODULE := libOMXVideoEncoderMPEG4
    672 include $(BUILD_SHARED_LIBRARY)
    673 
    674 ################################################################################
    675 
    676 include $(CLEAR_VARS)
    677 ifeq ($(TARGET_HAS_ISV),true)
    678 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    679 endif
    680 
    681 LOCAL_SHARED_LIBRARIES := \
    682     libwrs_omxil_common \
    683     libva_videodecoder \
    684     liblog \
    685     libva \
    686     libva-android
    687 
    688 LOCAL_C_INCLUDES := \
    689     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    690     $(TARGET_OUT_HEADERS)/khronos/openmax \
    691     $(TARGET_OUT_HEADERS)/libmix_videodecoder \
    692     $(TARGET_OUT_HEADERS)/libva \
    693     $(call include-path-for, frameworks-native)/media/hardware \
    694     $(call include-path-for, frameworks-native)/media/openmax \
    695     $(call include-path-for, libhardware)
    696 
    697 LOCAL_SRC_FILES := \
    698     OMXComponentCodecBase.cpp \
    699     OMXVideoDecoderBase.cpp \
    700     OMXVideoDecoderPAVC.cpp
    701 
    702 LOCAL_CFLAGS += -Werror
    703 LOCAL_MODULE_TAGS := optional
    704 LOCAL_MODULE := libOMXVideoDecoderPAVC
    705 ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
    706 LOCAL_CFLAGS += -DVED_TILING
    707 endif
    708 
    709 ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
    710 LOCAL_CFLAGS += -DVED_TILING
    711 endif
    712 
    713 ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
    714 LOCAL_CFLAGS += -DVED_TILING
    715 endif
    716 
    717 # TODO: Fix this.
    718 LOCAL_CFLAGS += -Wno-error=unused-variable
    719 
    720 include $(BUILD_SHARED_LIBRARY)
    721 
    722 ################################################################################
    723 
    724 include $(CLEAR_VARS)
    725 ifeq ($(TARGET_HAS_ISV),true)
    726 LOCAL_CFLAGS += -DTARGET_HAS_ISV
    727 endif
    728 
    729 LOCAL_SHARED_LIBRARIES := \
    730     libwrs_omxil_common \
    731     liblog \
    732     libva_videoencoder \
    733     libva \
    734     libva-android \
    735     libva-tpi \
    736     libutils \
    737     libcutils \
    738     libhardware \
    739     libintelmetadatabuffer
    740 
    741 LOCAL_C_INCLUDES := \
    742     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
    743     $(TARGET_OUT_HEADERS)/khronos/openmax \
    744     $(TARGET_OUT_HEADERS)/libmix_videoencoder \
    745     $(TARGET_OUT_HEADERS)/libva \
    746     $(call include-path-for, frameworks-native)/media/hardware \
    747     $(call include-path-for, frameworks-native)/media/openmax \
    748 
    749 LOCAL_SRC_FILES := \
    750     OMXComponentCodecBase.cpp \
    751     OMXVideoEncoderBase.cpp \
    752     OMXVideoEncoderVP8.cpp
    753 
    754 LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
    755 LOCAL_CFLAGS += -Werror
    756 LOCAL_MODULE_TAGS := optional
    757 LOCAL_MODULE := libOMXVideoEncoderVP8
    758 include $(BUILD_SHARED_LIBRARY)
    759 
    760 endif # ifeq ($(strip $(BOARD_USES_WRS_OMXIL_CORE)),true)
    761