• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: [
3        "frameworks_av_media_codecs_m4v_h263_enc_license",
4    ],
5}
6
7// Added automatically by a large-scale-change that took the approach of
8// 'apply every license found to every target'. While this makes sure we respect
9// every license restriction, it may not be entirely correct.
10//
11// e.g. GPL in an MIT project might only apply to the contrib/ directory.
12//
13// Please consider splitting the single license below into multiple licenses,
14// taking care not to lose any license_kind information, and overriding the
15// default license using the 'licenses: [...]' property on targets as needed.
16//
17// For unused files, consider creating a 'fileGroup' with "//visibility:private"
18// to attach the license to, and including a comment whether the files may be
19// used in the current project.
20// See: http://go/android-license-faq
21license {
22    name: "frameworks_av_media_codecs_m4v_h263_enc_license",
23    visibility: [":__subpackages__"],
24    license_kinds: [
25        "SPDX-license-identifier-Apache-2.0",
26        "SPDX-license-identifier-BSD",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33cc_library_static {
34    name: "libstagefright_m4vh263enc",
35    vendor_available: true,
36    apex_available: [
37        "//apex_available:platform",
38        "com.android.media.swcodec",
39    ],
40    min_sdk_version: "29",
41    host_supported: true,
42    target: {
43        darwin: {
44            enabled: false,
45        },
46    },
47
48    srcs: [
49        "src/bitstream_io.cpp",
50        "src/combined_encode.cpp", "src/datapart_encode.cpp",
51        "src/dct.cpp",
52        "src/findhalfpel.cpp",
53        "src/fastcodemb.cpp",
54        "src/fastidct.cpp",
55        "src/fastquant.cpp",
56        "src/me_utils.cpp",
57        "src/mp4enc_api.cpp",
58        "src/rate_control.cpp",
59        "src/motion_est.cpp",
60        "src/motion_comp.cpp",
61        "src/sad.cpp",
62        "src/sad_halfpel.cpp",
63        "src/vlc_encode.cpp",
64        "src/vop.cpp",
65    ],
66
67    cflags: [
68        "-DBX_RC",
69        "-Werror",
70    ],
71
72    local_include_dirs: ["src"],
73    export_include_dirs: ["include"],
74
75    sanitize: {
76        misc_undefined: [
77            "signed-integer-overflow",
78        ],
79        cfi: true,
80    },
81}
82
83//###############################################################################
84
85cc_test {
86    name: "libstagefright_m4vh263enc_test",
87    gtest: false,
88
89    srcs: ["test/m4v_h263_enc_test.cpp"],
90
91    local_include_dirs: ["src"],
92
93    cflags: [
94        "-DBX_RC",
95        "-Wall",
96        "-Werror",
97    ],
98
99    sanitize: {
100        misc_undefined: [
101            "signed-integer-overflow",
102        ],
103        cfi: true,
104    },
105
106    static_libs: ["libstagefright_m4vh263enc"],
107}
108