Lines Matching refs:leading
146 #define JPG_MAKE_OFFSET(code,width,leading) \ argument
147 (((code<<leading) & JPG_MAKE_MASK(JPG_VLC_MAX_CODE_LEN)) >> (JPG_VLC_MAX_CODE_LEN-width))
369 …c uint16_t jpg_vlc_valid_symbol(const vlc_symbol_code_jpeg * symbol_code, const uint32_t leading) { in jpg_vlc_valid_symbol() argument
371 IMG_ASSERT( (symbol_code->code_length - leading - 1) >= 0 ); in jpg_vlc_valid_symbol()
375 entry |= ((symbol_code->code_length - leading - 1) << JPG_INSTR_OFFSET_WIDTH); in jpg_vlc_valid_symbol()
403 jpg_vlc_get_offset(const vlc_symbol_code_jpeg * symbol_code, uint32_t width, uint32_t leading) { in jpg_vlc_get_offset() argument
407 offset = symbol_code->code << leading; in jpg_vlc_get_offset()
416 const uint32_t leading) { in jpg_vlc_decode_direct_symbols() argument
421 IMG_ASSERT( symbol_code->code_length <= leading + width ); in jpg_vlc_decode_direct_symbols()
422 IMG_ASSERT( symbol_code->code_length > leading ); in jpg_vlc_decode_direct_symbols()
425 offset = symbol_code->code << leading; in jpg_vlc_decode_direct_symbols()
431 limit = offset + (1 << (width - (symbol_code->code_length - leading))); in jpg_vlc_decode_direct_symbols()
434 entry = jpg_vlc_valid_symbol( symbol_code, leading ); in jpg_vlc_decode_direct_symbols()