-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
32-bit float data from hero6.raw #156
Comments
I'm actually, seeing this for other types as well. The |
This is correct, as it describes the array size. So float [][3] would be type 'f' with a size 12. short [][3] is type 's' with size 6. |
@dnewman-gpsw ah, so an array of arrays? |
Yes. The repeat is the number on time entries. So GPMF is always in form type[repeat][typesize/sizeof(type)] e.g. float[repeat][typesize/sizeof(float)] |
What about char values? Do those remain as two-dimensional array? |
No 1D, generally you will typesize = strlen("the string"), and a repeat of 1. On the earliest cameras this was reverse, but still 1D. The only common acception, but still following or the rules. SUIN/UNIT fields can have a 2D array of chars, which is 1D arrary of fixed length strings. |
@dnewman-gpsw I'm seeing in the |
@bcardarella See this thread for ideas: I "convert" all 'c' streams as if it had repeats 1 before parsing as a string (switching place of size and repeat if necessary). |
Towards the end of the hero6.raw sample file there are a few chunks of data that identify of type
'f'
for a 32-bit float but the size is 12 with a repeat of 30. For a 32-bit float the size should be 4. Or is there something I'm missing here?The text was updated successfully, but these errors were encountered: