8#ifndef css_bytecode_bytecode_h_
9#define css_bytecode_bytecode_h_
104 return (opcode & 0x3ff) | (flags << 10) | ((value & 0x3fff) << 18);
109 return (OPV & 0x3ff);
114 return ((OPV >> 10) & 0xff);
117static inline uint16_t getValue(
css_code_t OPV)
129 return (getFlags(OPV) >> 1) & 0x7;
132static inline bool hasFlagValue(
css_code_t OPV)
uint32_t colour
Definition bytecode.h:96
unit
Definition bytecode.h:49
@ UNIT_VW
Definition bytecode.h:63
@ UNIT_DPPX
Definition bytecode.h:89
@ UNIT_CH
Definition bytecode.h:59
@ UNIT_GRAD
Definition bytecode.h:74
@ UNIT_PCT
Definition bytecode.h:70
@ UNIT_PT
Definition bytecode.h:57
@ UNIT_Q
Definition bytecode.h:68
@ UNIT_VB
Definition bytecode.h:65
@ UNIT_KHZ
Definition bytecode.h:84
@ UNIT_VMIN
Definition bytecode.h:66
@ UNIT_DPCM
Definition bytecode.h:88
@ UNIT_LENGTH
Definition bytecode.h:50
@ UNIT_CALC_NUMBER
Definition bytecode.h:93
@ UNIT_S
Definition bytecode.h:80
@ UNIT_CM
Definition bytecode.h:55
@ UNIT_REM
Definition bytecode.h:60
@ UNIT_TURN
Definition bytecode.h:76
@ UNIT_ANGLE
Definition bytecode.h:72
@ UNIT_IN
Definition bytecode.h:54
@ UNIT_RESOLUTION
Definition bytecode.h:86
@ UNIT_EX
Definition bytecode.h:52
@ UNIT_MM
Definition bytecode.h:56
@ UNIT_HZ
Definition bytecode.h:83
@ UNIT_VMAX
Definition bytecode.h:67
@ UNIT_CALC_ANY
Definition bytecode.h:92
@ UNIT_DEG
Definition bytecode.h:73
@ UNIT_PC
Definition bytecode.h:58
@ UNIT_EM
Definition bytecode.h:53
@ UNIT_TIME
Definition bytecode.h:78
@ UNIT_PX
Definition bytecode.h:51
@ UNIT_VI
Definition bytecode.h:64
@ UNIT_RAD
Definition bytecode.h:75
@ UNIT_FREQ
Definition bytecode.h:82
@ UNIT_DPI
Definition bytecode.h:87
@ UNIT_LH
Definition bytecode.h:61
@ UNIT_VH
Definition bytecode.h:62
@ UNIT_MS
Definition bytecode.h:79
shape
Definition bytecode.h:98
@ SHAPE_RECT
Definition bytecode.h:99
flag_value
Definition bytecode.h:23
@ FLAG_VALUE_INHERIT
Definition bytecode.h:25
@ FLAG_VALUE_REVERT
Definition bytecode.h:27
@ FLAG_VALUE_INITIAL
Definition bytecode.h:26
@ FLAG_VALUE_UNSET
Definition bytecode.h:28
@ FLAG_VALUE__NONE
Definition bytecode.h:24
uint32_t css_code_t
Definition bytecode.h:19
flag
Definition bytecode.h:31
@ FLAG_UNSET
Definition bytecode.h:36
@ FLAG_IMPORTANT
Definition bytecode.h:32
@ FLAG_REVERT
Definition bytecode.h:35
@ FLAG_INITIAL
Definition bytecode.h:34
@ FLAG_INHERIT
Definition bytecode.h:33
calc_opcodes
Definition bytecode.h:39
@ CALC_PUSH_VALUE
Definition bytecode.h:41
@ CALC_FINISH
Definition bytecode.h:46
@ CALC_ADD
Definition bytecode.h:42
@ CALC_MULTIPLY
Definition bytecode.h:44
@ CALC_DIVIDE
Definition bytecode.h:45
@ CALC_PUSH_NUMBER
Definition bytecode.h:40
@ CALC_SUBTRACT
Definition bytecode.h:43
enum css_properties_e opcode_t
Definition bytecode.h:21
css_properties_e
Definition properties.h:16
#define VALUE_IS_CALC
Definition opcodes.h:13