Home
last modified time | relevance | path

Searched refs:byteLen (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/libdrm/mobile1/src/parser/
Dparser_dcf.c23 int32_t byteLen; in drm_parseUintVar() local
29 byteLen = 0; in drm_parseUintVar()
30 …while ((buffer[byteLen] & UINT_VAR_FLAG) > 0 && byteLen < MAX_UINT_VAR_BYTE) /* UINT_VAR_FLAG == 0… in drm_parseUintVar()
31 byteLen++; in drm_parseUintVar()
33 if (byteLen >= MAX_UINT_VAR_BYTE) /* MAX_UINT_VAR_BYTE == 5 */ in drm_parseUintVar()
36 *len = (uint8_t)(byteLen + 1); in drm_parseUintVar()
37 sum = buffer[byteLen]; in drm_parseUintVar()
38 for (i = byteLen - 1; i >= 0; i--) in drm_parseUintVar()
39 sum += ((buffer[i] & UINT_VAR_DATA) << 7 * (byteLen - i)); /* UINT_VAR_DATA == 0x7F */ in drm_parseUintVar()
/frameworks/base/media/libdrm/mobile1/src/xml/
Dxml_tinyparser.c586 int32_t i, byteLen; in WBXML_GetUintVar() local
589 byteLen = 0; in WBXML_GetUintVar()
590 while ((buffer[byteLen] & 0x80) > 0 && byteLen < MAX_UINT_VAR_BYTE) in WBXML_GetUintVar()
591 byteLen++; in WBXML_GetUintVar()
593 if (byteLen > MAX_UINT_VAR_BYTE) in WBXML_GetUintVar()
596 *len = byteLen + 1; in WBXML_GetUintVar()
597 sum = buffer[byteLen]; in WBXML_GetUintVar()
598 for (i = byteLen - 1; i >= 0; i--) in WBXML_GetUintVar()
599 sum += ((buffer[i] & 0x7F) << 7 * (byteLen - i)); in WBXML_GetUintVar()