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

Commit 3ef7c8bd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "graphics/common: add stable AIDL types"

parents 3550f9a9 03b66e1d
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
aidl_interface {
    name: "vintf-graphics-common",
    vendor_available: true,
    vndk: {
        enabled: true,
        support_system_process: true,
    },
    srcs: [
        "android/hardware/graphics/common/*.aidl",
    ],
    stability: "vintf",
    backend: {
        java: {
            enabled: false,
        },
        cpp: {
            enabled: false,
        },
    },
}
+35 −0
Original line number Diff line number Diff line
/**
 * Copyright (c) 2019, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.graphics.common;

/**
 * Blend modes, settable per layer.
 */
@VintfStability
@Backing(type="int")
enum BlendMode {
    INVALID = 0,

    /** colorOut = colorSrc */
    NONE = 1,

    /** colorOut = colorSrc + colorDst * (1 - alphaSrc) */
    PREMULTIPLIED = 2,

    /** colorOut = colorSrc * alphaSrc + colorDst * (1 - alphaSrc) */
    COVERAGE = 3,
}
+39 −0
Original line number Diff line number Diff line
/**
 * Copyright (c) 2019, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.graphics.common;

/**
 * Used by IAllocator/IMapper (gralloc) to describe standard chroma siting
 */
@VintfStability
@Backing(type="long")
enum ChromaSiting {
    /* This format does not have chroma siting. */
    NONE = 0,

    /* This format has chroma siting but the type being used is unknown. */
    UNKNOWN = 1,

    /* Cb and Cr are sited interstitially, halfway between alternate luma samples.
     * This is used by 4:2:0 for JPEG/JFIF, H.261, MPEG-1. */
    SITED_INTERSTITIAL = 2,

    /* Cb and Cr are horizontally sited coincident with a luma sample.
     * Cb and Cr are vertically sited interstitially.
     * This is used by 4:2:0 for MPEG-2 frame pictures. */
    COSITED_HORIZONTAL = 3,
}
+30 −0
Original line number Diff line number Diff line
/**
 * Copyright (c) 2019, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.graphics.common;

/**
 * Used by IAllocator/IMapper (gralloc) to describe standard compression strategies
 */
@VintfStability
@Backing(type="long")
enum Compression {
    /* Represents all uncompressed buffers */
    NONE = 0,

    /* VESA Display Stream Compression (DSC) */
    DISPLAY_STREAM_COMPRESSION = 1,
}
+682 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading