1package {
2    default_applicable_licenses: [
3        "frameworks_av_media_codecs_m4v_h263_dec_license",
4    ],
5}
6
7// Added automatically by a large-scale-change
8// See: http://go/android-license-faq
9license {
10    name: "frameworks_av_media_codecs_m4v_h263_dec_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-Apache-2.0",
14    ],
15    license_text: [
16        "NOTICE",
17    ],
18}
19
20cc_library_static {
21    name: "libstagefright_m4vh263dec",
22    vendor_available: true,
23    apex_available: [
24        "//apex_available:platform",
25        "com.android.media.swcodec",
26    ],
27    min_sdk_version: "29",
28    host_supported: true,
29    shared_libs: ["liblog"],
30
31    srcs: [
32        "src/bitstream.cpp",
33        "src/block_idct.cpp",
34        "src/cal_dc_scaler.cpp",
35        "src/combined_decode.cpp",
36        "src/conceal.cpp",
37        "src/datapart_decode.cpp",
38        "src/dcac_prediction.cpp",
39        "src/dec_pred_intra_dc.cpp",
40        "src/get_pred_adv_b_add.cpp",
41        "src/get_pred_outside.cpp",
42        "src/idct.cpp",
43        "src/idct_vca.cpp",
44        "src/mb_motion_comp.cpp",
45        "src/mb_utils.cpp",
46        "src/packet_util.cpp",
47        "src/post_filter.cpp",
48        "src/pvdec_api.cpp",
49        "src/scaling_tab.cpp",
50        "src/vlc_decode.cpp",
51        "src/vlc_dequant.cpp",
52        "src/vlc_tab.cpp",
53        "src/vop.cpp",
54        "src/zigzag_tab.cpp",
55    ],
56
57    local_include_dirs: ["src"],
58    export_include_dirs: ["include"],
59
60    cflags: [
61        "-Werror",
62    ],
63
64    sanitize: {
65        misc_undefined: [
66            "signed-integer-overflow",
67        ],
68        cfi: true,
69    },
70
71    target: {
72        darwin: {
73            enabled: false,
74        },
75    },
76}
77