How to extract the compressed timesample? #1160
Unanswered
costineesti
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment







Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I've been trying to parse an MF4 file (4.1) to extract the total simulation time. First, I go to addres 0x40 (HD) in the file and then simply use this structure to get further and further:
(
next_cg_addr, first_ch_addr, acq_name_addr, acq_source_addr, first_sample_reduction_addr, comment_addr, cg_master_addr, record_id, cycles_nr, flags, path_separator, reserved1, samples_byte_nr, invalidation_bytes_nr,
) = v4c.CHANNEL_GROUP_RM_SHORT_uf(stream, address + COMMON_SIZE)
So, I don't use the library as I want to manually parse it.
I saw that cycles_nr gives me the simulation time but multiplied by a factor: (200.175 seconds are 200175 in cycles_nr). What I want now is to find the address where I can find that 0.001 factor to be able to multiply it with cycles_nr and get the true simulation time. Can you please help? I can provide code if necessary. I've been following these schemas:
Beta Was this translation helpful? Give feedback.
All reactions