Skip to content

Clip and Alert Flags

bp2008 edited this page May 9, 2022 · 3 revisions

Flags list as of February 6, 2022

#define BIDBFLAG_AUDIO (1<<0)
#define BIDBFLAG_FLAGGED (1<<1)
#define BIDBFLAG_PROTECTED (1<<2)
#define BIDBFLAG_CORRUPT (1<<3)
#define BIDBFLAG_DELETE (1<<4)
#define BIDBFLAG_DELETED (1<<5)
#define BIDBFLAG_ARCHIVE (1<<6)
#define BIDBFLAG_ARCHIVED (1<<7)
#define BIDBFLAG_RECORDING (1<<8)
#define BIDBFLAG_EXPORT (1<<9)
#define BIDBFLAG_EXPORTED (1<<10)
#define BIDBFLAG_SPECIALOBJ (1<<11)

#define BIDBFLAG_AI_CONFIRMED_X (1<<14)
#define BIDBFLAG_AI_OCCUPIED_X (1<<15)

#define BIDBFLAG_ALERT_OFFSETTIME (1<<16)
#define BIDBFLAG_ALERT_MOTION (1<<17)
#define BIDBFLAG_ALERT_ONVIF (1<<18)
#define BIDBFLAG_ALERT_AUDIO (1<<19)
#define BIDBFLAG_ALERT_EXTERNAL (1<<20)
#define BIDBFLAG_ALERT_DIO (1<<21)
#define BIDBFLAG_ALERT_GROUP (1<<22)
#define BIDBFLAG_ALERT_CANCELLED (1<<23)
#define BIDBFLAG_ALERT_NOSIGNAL (1<<24)
#define BIDBFLAG_ALERT_HIDDEN (1<<25)

#define BIDBFLAG_AI_PERSON (1<<26)
#define BIDBFLAG_AI_VEHICLE (1<<27)
#define BIDBFLAG_AI_CONFIRMED (1<<28)
#define BIDBFLAG_AI_OCCUPIED (1<<29)

#define BIDBFLAG_ALERT_TRIGGERBITS (BIDBFLAG_ALERT_MOTION|BIDBFLAG_ALERT_NOSIGNAL|BIDBFLAG_ALERT_AUDIO|BIDBFLAG_ALERT_EXTERNAL|BIDBFLAG_ALERT_ONVIF|BIDBFLAG_ALERT_DIO|BIDBFLAG_ALERT_GROUP|BIDBFLAG_ALERT_CANCELLED)

Items with flags BIDBFLAG_DELETED | BIDBFLAG_ALERT_HIDDEN are not shown on the timeline.

This is a list of clip/alert flags from the BI developer as of mid-2018. (Updated April 1, 2019 to add Sentry flags)

DB flags field:

#define BIDBFLAG_AUDIO		(1<<0)
#define BIDBFLAG_FLAGGED	(1<<1)
#define BIDBFLAG_PROTECTED	(1<<2)
#define BIDBFLAG_CORRUPT	(1<<3)
#define BIDBFLAG_DELETE		(1<<4)
#define BIDBFLAG_DELETED	(1<<5)
#define BIDBFLAG_ARCHIVE	(1<<6)
#define BIDBFLAG_ARCHIVED	(1<<7)
#define BIDBFLAG_RECORDING	(1<<8)
#define BIDBFLAG_EXPORT		(1<<9)
#define BIDBFLAG_EXPORTED	(1<<10)
#define BIDBFLAG_SENTRY_TRIGGER		(1<<14)
#define BIDBFLAG_SENTRY_OCCUPIED	(1<<15)
#define BIDBFLAG_ALERT_OFFSETTIME	(1<<16)
#define BIDBFLAG_ALERT_MOTION		(1<<17)
#define BIDBFLAG_ALERT_NOSIGNAL		(1<<18)
#define BIDBFLAG_ALERT_AUDIO		(1<<19)
#define BIDBFLAG_ALERT_EXTERNAL		(1<<20)
#define BIDBFLAG_ALERT_DIO		(1<<21)
#define BIDBFLAG_ALERT_GROUP		(1<<22)

BIDBFLAG_ALERT_OFFSETTIME is not an alert, just tells me that the old "kilobyte position" in the file is not used, but time instead.
Clone this wiki locally