Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9485bc7b authored by Ram Mohan's avatar Ram Mohan Committed by Dichen Zhang
Browse files

ultrahdr: rework jpegr unit tests

- Allocations are modified to scope bound resource management
- Add some more units for encode apis for better coverage
- clang-formatted the code
- Improved the modularity for extending the tests to cover for
stride support for 420 input

Bug:
Test: ./libultrahdr_test

Change-Id: Iecc6242bca132229f51793132f0bc31cb04654f9
parent e57a61af
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ package {
}

cc_test {
    name: "libultrahdr_test",
    name: "ultrahdr_unit_test",
    test_suites: ["device-tests"],
    srcs: [
        "gainmapmath_test.cpp",
@@ -45,7 +45,7 @@ cc_test {
}

cc_test {
    name: "libjpegencoderhelper_test",
    name: "jpegencoderhelper_test",
    test_suites: ["device-tests"],
    srcs: [
        "jpegencoderhelper_test.cpp",
@@ -61,7 +61,7 @@ cc_test {
}

cc_test {
    name: "libjpegdecoderhelper_test",
    name: "jpegdecoderhelper_test",
    test_suites: ["device-tests"],
    srcs: [
        "jpegdecoderhelper_test.cpp",
−2.65 MiB

File deleted.

+1584 −1144

File changed.

Preview size limit exceeded, changes collapsed.