Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–4574 unchanged (4574 lines)
4575 } else if (p_delta < 0) {
4576 p_delta = Math::abs(p_delta) - 1;
4577 if (p_delta == 0) {
4578 return 1;
4579 }
4580 }
4581 return nearest_shift((uint32_t)p_delta);
4582 }
4583
4584 void _compute_max_shifts(uint32_t p_from, uint32_t p_to, uint32_t *max_shifts, uint32_t &max_frame_delta_shift) const {
4585 for (uint32_t j = 0; j < components; j++) {
4586 max_shifts[j] = 0;
4587 }
4588 max_frame_delta_shift = 0;
4589
4590 for (uint32_t i = p_from + 1; i <= p_to; i++) {
4591 int32_t frame_delta = temp_packets[i].frame - temp_packets[i - 1].frame;
4592 max_frame_delta_shift = MAX(max_frame_delta_shift, nearest_shift((uint32_t)frame_delta));
4593 for (uint32_t j = 0; j < components; j++) {
4594 int32_t diff = _compute_delta16_signed(temp_packets[i - 1].data[j], temp_packets[i].data[j]);
4595 uint32_t shift = _compute_shift_bits_signed(diff);
4596 max_shifts[j] = MAX(shift, max_shifts[j]);
4597 }
4598 }
…lines 4599–6553 unchanged (1955 lines)

After

…lines 1–4574 unchanged (4574 lines)
4575 } else if (p_delta < 0) {
4576 p_delta = Math::abs(p_delta) - 1;
4577 if (p_delta == 0) {
4578 return 1;
4579 }
4580 }
4581 return Math::nearest_shift((uint32_t)p_delta);
4582 }
4583
4584 void _compute_max_shifts(uint32_t p_from, uint32_t p_to, uint32_t *max_shifts, uint32_t &max_frame_delta_shift) const {
4585 for (uint32_t j = 0; j < components; j++) {
4586 max_shifts[j] = 0;
4587 }
4588 max_frame_delta_shift = 0;
4589
4590 for (uint32_t i = p_from + 1; i <= p_to; i++) {
4591 int32_t frame_delta = temp_packets[i].frame - temp_packets[i - 1].frame;
4592 max_frame_delta_shift = MAX(max_frame_delta_shift, Math::nearest_shift((uint32_t)frame_delta));
4593 for (uint32_t j = 0; j < components; j++) {
4594 int32_t diff = _compute_delta16_signed(temp_packets[i - 1].data[j], temp_packets[i].data[j]);
4595 uint32_t shift = _compute_shift_bits_signed(diff);
4596 max_shifts[j] = MAX(shift, max_shifts[j]);
4597 }
4598 }
…lines 4599–6553 unchanged (1955 lines)

Before

translation_unit
comment "/***********************************************************"...
comment "/* animation.cpp "...
comment "/***********************************************************"...
comment "/* This file is part of: "...
comment "/* GODOT ENGINE "...
comment "/* https://godotengine.org "...
comment "/***********************************************************"...
comment "/* Copyright (c) 2014-present Godot Engine contributors (see"...
comment "/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. "...
comment "/* "...
comment "/* Permission is hereby granted, free of charge, to any pers"...
comment "/* a copy of this software and associated documentation file"...
comment "/* \"Software\"), to deal in the Software without restriction,"...
comment "/* without limitation the rights to use, copy, modify, merge"...
comment "/* distribute, sublicense, and/or sell copies of the Softwar"...
comment "/* permit persons to whom the Software is furnished to do so"...
comment "/* the following conditions: "...
comment "/* "...
comment "/* The above copyright notice and this permission notice sha"...
comment "/* included in all copies or substantial portions of the Sof"...
comment "/* "...
comment "/* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY"...
comment "/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARR"...
comment "/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON"...
comment "/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIA"...
comment "/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION O"...
comment "/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION "...
comment "/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. "...
comment "/***********************************************************"...
preproc_include
#include "#include"
string_literal
" "\""
string_content "animation.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "animation.compat.inc"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/io/marshalls.h"
" "\""
function_definition (+5140 nodes collapsed)
function_definition (+3942 nodes collapsed)
function_definition (+614 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "reset_state"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "clear"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition (+382 nodes collapsed)
function_definition (+578 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "is_capture_included"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "capture_included"
; ";"
} "}"
function_definition (+119 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+58 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+77 nodes collapsed)
function_definition (+99 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition (+54 nodes collapsed)
template_declaration (+221 nodes collapsed)
function_definition (+180 nodes collapsed)
comment "////"
function_definition (+178 nodes collapsed)
function_definition (+240 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+127 nodes collapsed)
comment "////"
function_definition (+178 nodes collapsed)
function_definition (+235 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+129 nodes collapsed)
comment "////"
function_definition (+178 nodes collapsed)
function_definition (+240 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+127 nodes collapsed)
comment "////"
function_definition (+174 nodes collapsed)
function_definition (+235 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+118 nodes collapsed)
comment "////"
function_definition (+57 nodes collapsed)
function_definition (+770 nodes collapsed)
function_definition (+2055 nodes collapsed)
function_definition (+1294 nodes collapsed)
function_definition (+598 nodes collapsed)
function_definition (+867 nodes collapsed)
function_definition (+1006 nodes collapsed)
function_definition (+1173 nodes collapsed)
function_definition (+645 nodes collapsed)
function_definition (+250 nodes collapsed)
function_definition (+1339 nodes collapsed)
function_definition (+598 nodes collapsed)
template_declaration (+458 nodes collapsed)
comment "// Linear interpolation for anytype."
function_definition (+48 nodes collapsed)
function_definition (+48 nodes collapsed)
function_definition (+47 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+204 nodes collapsed)
comment "// Cubic interpolation for anytype."
function_definition (+86 nodes collapsed)
function_definition (+86 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+88 nodes collapsed)
function_definition (+318 nodes collapsed)
template_declaration (+2564 nodes collapsed)
function_definition (+178 nodes collapsed)
function_definition (+130 nodes collapsed)
function_definition (+104 nodes collapsed)
template_declaration (+478 nodes collapsed)
function_definition (+4708 nodes collapsed)
function_definition (+229 nodes collapsed)
function_definition (+163 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition (+53 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+39 nodes collapsed)
function_definition (+187 nodes collapsed)
function_definition (+152 nodes collapsed)
function_definition (+118 nodes collapsed)
function_definition (+273 nodes collapsed)
function_definition (+148 nodes collapsed)
function_definition (+467 nodes collapsed)
function_definition (+467 nodes collapsed)
function_definition (+143 nodes collapsed)
function_definition (+155 nodes collapsed)
function_definition (+155 nodes collapsed)
preproc_ifdef (+1367 nodes collapsed)
comment "// TOOLS_ENABLED"
function_definition (+659 nodes collapsed)
function_definition (+263 nodes collapsed)
function_definition (+158 nodes collapsed)
function_definition (+166 nodes collapsed)
function_definition (+166 nodes collapsed)
function_definition (+185 nodes collapsed)
function_definition (+149 nodes collapsed)
function_definition (+149 nodes collapsed)
function_definition (+108 nodes collapsed)
function_definition (+101 nodes collapsed)
comment "//"
function_definition (+162 nodes collapsed)
function_definition (+149 nodes collapsed)
function_definition (+158 nodes collapsed)
function_definition (+47 nodes collapsed)
function_definition
type_identifier "real_t"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "get_length"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "length"
; ";"
} "}"
function_definition (+32 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+70 nodes collapsed)
function_definition (+148 nodes collapsed)
function_definition (+106 nodes collapsed)
function_definition (+29 nodes collapsed)
function_definition
type_identifier "real_t"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "get_step"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "step"
; ";"
} "}"
function_definition (+310 nodes collapsed)
function_definition (+3585 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition (+409 nodes collapsed)
function_definition (+464 nodes collapsed)
function_definition (+464 nodes collapsed)
function_definition (+526 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+395 nodes collapsed)
function_definition (+1728 nodes collapsed)
function_definition (+264 nodes collapsed)
preproc_function_def
#define "#define"
identifier "print_animc"
preproc_params
( "("
identifier "m_str"
) ")"
comment "//#define print_animc(m_str) print_line(m_str);"
struct_specifier
struct "struct"
type_identifier "AnimationCompressionDataState"
field_declaration_list
{ "{"
field_declaration
enum_specifier
enum "enum"
enumerator_list
{ "{"
enumerator
identifier "MIN_OPTIMIZE_PACKETS"
= "="
number_literal "5"
, ","
enumerator
identifier "MAX_PACKETS"
= "="
number_literal "16"
} "}"
; ";"
field_declaration
primitive_type "uint32_t"
field_identifier "components"
= "="
number_literal "3"
; ";"
field_declaration
template_type
type_identifier "LocalVector"
template_argument_list
< "<"
type_descriptor
primitive_type "uint8_t"
> ">"
field_identifier "data"
; ";"
comment "// Committed packets."
field_declaration (+31 nodes collapsed)
field_declaration
primitive_type "float"
field_identifier "split_tolerance"
= "="
number_literal "1.5"
; ";"
field_declaration
template_type
type_identifier "LocalVector"
template_argument_list
< "<"
type_descriptor
type_identifier "PacketData"
> ">"
field_identifier "temp_packets"
; ";"
comment "//used for rollback if the new frame does not fit"
field_declaration
primitive_type "int32_t"
field_identifier "validated_packet_count"
= "="
number_literal "-1"
; ";"
function_definition (+75 nodes collapsed)
function_definition
storage_class_specifier
static "static"
primitive_type "uint32_t"
function_declarator
field_identifier "_compute_shift_bits_signed"
parameter_list
( "("
parameter_declaration
primitive_type "int32_t"
identifier "p_delta"
) ")"
compound_statement
{ "{"
if_statement (+63 nodes collapsed)
return_statement
return "return"
call_expression
identifier "nearest_shift"
argument_list
( "("
cast_expression
( "("
type_descriptor
primitive_type "uint32_t"
) ")"
identifier "p_delta"
) ")"
; ";"
} "}"
function_definition
primitive_type "void"
function_declarator (+26 nodes collapsed)
compound_statement
{ "{"
for_statement (+33 nodes collapsed)
expression_statement
assignment_expression
identifier "max_frame_delta_shift"
= "="
number_literal "0"
; ";"
for_statement
for "for"
( "("
declaration
primitive_type "uint32_t"
init_declarator
identifier "i"
= "="
binary_expression
identifier "p_from"
+ "+"
number_literal "1"
; ";"
binary_expression
identifier "i"
<= "<="
identifier "p_to"
; ";"
update_expression
identifier "i"
++ "++"
) ")"
compound_statement
{ "{"
declaration (+29 nodes collapsed)
expression_statement
assignment_expression
identifier "max_frame_delta_shift"
= "="
call_expression
identifier "MAX"
argument_list
( "("
identifier "max_frame_delta_shift"
, ","
call_expression
identifier "nearest_shift"
argument_list
( "("
cast_expression
( "("
type_descriptor
primitive_type "uint32_t"
) ")"
identifier "frame_delta"
) ")"
) ")"
; ";"
for_statement (+100 nodes collapsed)
} "}"
} "}"
function_definition (+551 nodes collapsed)
function_definition (+305 nodes collapsed)
function_definition (+103 nodes collapsed)
function_definition (+794 nodes collapsed)
} "}"
; ";"
struct_specifier (+61 nodes collapsed)
; ";"
function_definition (+686 nodes collapsed)
struct_specifier (+170 nodes collapsed)
; ";"
function_definition (+4002 nodes collapsed)
function_definition (+205 nodes collapsed)
function_definition (+213 nodes collapsed)
function_definition (+207 nodes collapsed)
template_declaration (+1401 nodes collapsed)
template_declaration (+807 nodes collapsed)
function_definition (+233 nodes collapsed)
function_definition (+107 nodes collapsed)
function_definition (+104 nodes collapsed)
function_definition (+64 nodes collapsed)
template_declaration (+818 nodes collapsed)
comment "// Helper functions for Rotation."
function_definition (+241 nodes collapsed)
function_definition (+169 nodes collapsed)
comment "// Helper math functions for Variant."
function_definition (+76 nodes collapsed)
function_definition (+217 nodes collapsed)
function_definition (+265 nodes collapsed)
function_definition (+542 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+169 nodes collapsed)
function_definition (+1238 nodes collapsed)
function_definition (+1266 nodes collapsed)
function_definition (+1700 nodes collapsed)
function_definition (+1757 nodes collapsed)
function_definition (+3399 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "Animation"
parameter_list
( "("
) ")"
compound_statement
{ "{"
} "}"
function_definition (+56 nodes collapsed)

After

translation_unit
comment "/***********************************************************"...
comment "/* animation.cpp "...
comment "/***********************************************************"...
comment "/* This file is part of: "...
comment "/* GODOT ENGINE "...
comment "/* https://godotengine.org "...
comment "/***********************************************************"...
comment "/* Copyright (c) 2014-present Godot Engine contributors (see"...
comment "/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. "...
comment "/* "...
comment "/* Permission is hereby granted, free of charge, to any pers"...
comment "/* a copy of this software and associated documentation file"...
comment "/* \"Software\"), to deal in the Software without restriction,"...
comment "/* without limitation the rights to use, copy, modify, merge"...
comment "/* distribute, sublicense, and/or sell copies of the Softwar"...
comment "/* permit persons to whom the Software is furnished to do so"...
comment "/* the following conditions: "...
comment "/* "...
comment "/* The above copyright notice and this permission notice sha"...
comment "/* included in all copies or substantial portions of the Sof"...
comment "/* "...
comment "/* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY"...
comment "/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARR"...
comment "/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON"...
comment "/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIA"...
comment "/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION O"...
comment "/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION "...
comment "/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. "...
comment "/***********************************************************"...
preproc_include
#include "#include"
string_literal
" "\""
string_content "animation.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "animation.compat.inc"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "core/io/marshalls.h"
" "\""
function_definition (+5140 nodes collapsed)
function_definition (+3942 nodes collapsed)
function_definition (+614 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "reset_state"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "clear"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition (+382 nodes collapsed)
function_definition (+578 nodes collapsed)
function_definition
primitive_type "bool"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "is_capture_included"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "capture_included"
; ";"
} "}"
function_definition (+119 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+58 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+77 nodes collapsed)
function_definition (+99 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition (+54 nodes collapsed)
template_declaration (+221 nodes collapsed)
function_definition (+180 nodes collapsed)
comment "////"
function_definition (+178 nodes collapsed)
function_definition (+240 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+127 nodes collapsed)
comment "////"
function_definition (+178 nodes collapsed)
function_definition (+235 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+129 nodes collapsed)
comment "////"
function_definition (+178 nodes collapsed)
function_definition (+240 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+127 nodes collapsed)
comment "////"
function_definition (+174 nodes collapsed)
function_definition (+235 nodes collapsed)
function_definition (+226 nodes collapsed)
function_definition (+118 nodes collapsed)
comment "////"
function_definition (+57 nodes collapsed)
function_definition (+770 nodes collapsed)
function_definition (+2055 nodes collapsed)
function_definition (+1294 nodes collapsed)
function_definition (+598 nodes collapsed)
function_definition (+867 nodes collapsed)
function_definition (+1006 nodes collapsed)
function_definition (+1173 nodes collapsed)
function_definition (+645 nodes collapsed)
function_definition (+250 nodes collapsed)
function_definition (+1339 nodes collapsed)
function_definition (+598 nodes collapsed)
template_declaration (+458 nodes collapsed)
comment "// Linear interpolation for anytype."
function_definition (+48 nodes collapsed)
function_definition (+48 nodes collapsed)
function_definition (+47 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+204 nodes collapsed)
comment "// Cubic interpolation for anytype."
function_definition (+86 nodes collapsed)
function_definition (+86 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+88 nodes collapsed)
function_definition (+318 nodes collapsed)
template_declaration (+2564 nodes collapsed)
function_definition (+178 nodes collapsed)
function_definition (+130 nodes collapsed)
function_definition (+104 nodes collapsed)
template_declaration (+478 nodes collapsed)
function_definition (+4708 nodes collapsed)
function_definition (+229 nodes collapsed)
function_definition (+163 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition (+53 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+39 nodes collapsed)
function_definition (+187 nodes collapsed)
function_definition (+152 nodes collapsed)
function_definition (+118 nodes collapsed)
function_definition (+273 nodes collapsed)
function_definition (+148 nodes collapsed)
function_definition (+467 nodes collapsed)
function_definition (+467 nodes collapsed)
function_definition (+143 nodes collapsed)
function_definition (+155 nodes collapsed)
function_definition (+155 nodes collapsed)
preproc_ifdef (+1367 nodes collapsed)
comment "// TOOLS_ENABLED"
function_definition (+659 nodes collapsed)
function_definition (+263 nodes collapsed)
function_definition (+158 nodes collapsed)
function_definition (+166 nodes collapsed)
function_definition (+166 nodes collapsed)
function_definition (+185 nodes collapsed)
function_definition (+149 nodes collapsed)
function_definition (+149 nodes collapsed)
function_definition (+108 nodes collapsed)
function_definition (+101 nodes collapsed)
comment "//"
function_definition (+162 nodes collapsed)
function_definition (+149 nodes collapsed)
function_definition (+158 nodes collapsed)
function_definition (+47 nodes collapsed)
function_definition
type_identifier "real_t"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "get_length"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "length"
; ";"
} "}"
function_definition (+32 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition (+63 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+70 nodes collapsed)
function_definition (+148 nodes collapsed)
function_definition (+106 nodes collapsed)
function_definition (+29 nodes collapsed)
function_definition
type_identifier "real_t"
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "get_step"
parameter_list
( "("
) ")"
type_qualifier
const "const"
compound_statement
{ "{"
return_statement
return "return"
identifier "step"
; ";"
} "}"
function_definition (+310 nodes collapsed)
function_definition (+3585 nodes collapsed)
function_definition (+128 nodes collapsed)
function_definition (+409 nodes collapsed)
function_definition (+464 nodes collapsed)
function_definition (+464 nodes collapsed)
function_definition (+526 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+403 nodes collapsed)
function_definition (+395 nodes collapsed)
function_definition (+1728 nodes collapsed)
function_definition (+264 nodes collapsed)
preproc_function_def
#define "#define"
identifier "print_animc"
preproc_params
( "("
identifier "m_str"
) ")"
comment "//#define print_animc(m_str) print_line(m_str);"
struct_specifier
struct "struct"
type_identifier "AnimationCompressionDataState"
field_declaration_list
{ "{"
field_declaration
enum_specifier
enum "enum"
enumerator_list
{ "{"
enumerator
identifier "MIN_OPTIMIZE_PACKETS"
= "="
number_literal "5"
, ","
enumerator
identifier "MAX_PACKETS"
= "="
number_literal "16"
} "}"
; ";"
field_declaration
primitive_type "uint32_t"
field_identifier "components"
= "="
number_literal "3"
; ";"
field_declaration
template_type
type_identifier "LocalVector"
template_argument_list
< "<"
type_descriptor
primitive_type "uint8_t"
> ">"
field_identifier "data"
; ";"
comment "// Committed packets."
field_declaration (+31 nodes collapsed)
field_declaration
primitive_type "float"
field_identifier "split_tolerance"
= "="
number_literal "1.5"
; ";"
field_declaration
template_type
type_identifier "LocalVector"
template_argument_list
< "<"
type_descriptor
type_identifier "PacketData"
> ">"
field_identifier "temp_packets"
; ";"
comment "//used for rollback if the new frame does not fit"
field_declaration
primitive_type "int32_t"
field_identifier "validated_packet_count"
= "="
number_literal "-1"
; ";"
function_definition (+75 nodes collapsed)
function_definition
storage_class_specifier
static "static"
primitive_type "uint32_t"
function_declarator
field_identifier "_compute_shift_bits_signed"
parameter_list
( "("
parameter_declaration
primitive_type "int32_t"
identifier "p_delta"
) ")"
compound_statement
{ "{"
if_statement (+63 nodes collapsed)
return_statement
return "return"
call_expression
qualified_identifier
namespace_identifier "Math"
:: "::"
identifier "nearest_shift"
argument_list
( "("
cast_expression
( "("
type_descriptor
primitive_type "uint32_t"
) ")"
identifier "p_delta"
) ")"
; ";"
} "}"
function_definition
primitive_type "void"
function_declarator (+26 nodes collapsed)
compound_statement
{ "{"
for_statement (+33 nodes collapsed)
expression_statement
assignment_expression
identifier "max_frame_delta_shift"
= "="
number_literal "0"
; ";"
for_statement
for "for"
( "("
declaration
primitive_type "uint32_t"
init_declarator
identifier "i"
= "="
binary_expression
identifier "p_from"
+ "+"
number_literal "1"
; ";"
binary_expression
identifier "i"
<= "<="
identifier "p_to"
; ";"
update_expression
identifier "i"
++ "++"
) ")"
compound_statement
{ "{"
declaration (+29 nodes collapsed)
expression_statement
assignment_expression
identifier "max_frame_delta_shift"
= "="
call_expression
identifier "MAX"
argument_list
( "("
identifier "max_frame_delta_shift"
, ","
call_expression
qualified_identifier
namespace_identifier "Math"
:: "::"
identifier "nearest_shift"
argument_list
( "("
cast_expression
( "("
type_descriptor
primitive_type "uint32_t"
) ")"
identifier "frame_delta"
) ")"
) ")"
; ";"
for_statement (+100 nodes collapsed)
} "}"
} "}"
function_definition (+551 nodes collapsed)
function_definition (+305 nodes collapsed)
function_definition (+103 nodes collapsed)
function_definition (+794 nodes collapsed)
} "}"
; ";"
struct_specifier (+61 nodes collapsed)
; ";"
function_definition (+686 nodes collapsed)
struct_specifier (+170 nodes collapsed)
; ";"
function_definition (+4002 nodes collapsed)
function_definition (+205 nodes collapsed)
function_definition (+213 nodes collapsed)
function_definition (+207 nodes collapsed)
template_declaration (+1401 nodes collapsed)
template_declaration (+807 nodes collapsed)
function_definition (+233 nodes collapsed)
function_definition (+107 nodes collapsed)
function_definition (+104 nodes collapsed)
function_definition (+64 nodes collapsed)
template_declaration (+818 nodes collapsed)
comment "// Helper functions for Rotation."
function_definition (+241 nodes collapsed)
function_definition (+169 nodes collapsed)
comment "// Helper math functions for Variant."
function_definition (+76 nodes collapsed)
function_definition (+217 nodes collapsed)
function_definition (+265 nodes collapsed)
function_definition (+542 nodes collapsed)
function_definition (+120 nodes collapsed)
function_definition (+169 nodes collapsed)
function_definition (+1238 nodes collapsed)
function_definition (+1266 nodes collapsed)
function_definition (+1700 nodes collapsed)
function_definition (+1757 nodes collapsed)
function_definition (+3399 nodes collapsed)
function_definition (+54 nodes collapsed)
function_definition
function_declarator
qualified_identifier
namespace_identifier "Animation"
:: "::"
identifier "Animation"
parameter_list
( "("
) ")"
compound_statement
{ "{"
} "}"
function_definition (+56 nodes collapsed)