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

Commit 2508e0cb authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

camera/device/1.0: Use a bitfield for the callback flags

Bug: 32991603
Test: Compiles
Change-Id: If5dd0d0fb7851589f8a72114bd528d3213724471
parent a35e97cd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ struct CameraInfo {
 * 4. 0x07 is enabling a callback with frame copied out only once. A typical
 *    use case is the Barcode scanner application.
 */
enum FrameCallbackFlags : uint32_t {
enum FrameCallbackFlag : uint32_t {
    ENABLE_MASK = 0x01,
    ONE_SHOT_MASK = 0x02,
    COPY_OUT_MASK = 0x04,
@@ -100,6 +100,8 @@ enum FrameCallbackFlags : uint32_t {
    BARCODE_SCANNER = 0x07
};

typedef bitfield<FrameCallbackFlag> FrameCallbackFlags;

/**
 * Subset of commands in /system/core/include/system/camera.h relevant for
 * ICameraDevice@1.0::sendCommand()