1
1
mirror of https://github.com/wader/fq.git synced 2024-12-20 11:51:58 +03:00
fq/format/flac/testdata/frame.fqtest
2022-10-11 17:05:19 +02:00

43 lines
3.8 KiB
Plaintext

# test decode separate frame
$ fq '.frames[1] | tobytes | flac_frame | d' mono8.flac
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: (flac_frame)
| | | header{}:
0x000|ff f8 |.. | sync: 0b11111111111110 (valid)
0x000| f8 | . | reserved0: 0 (valid)
0x000| f8 | . | blocking_strategy: "fixed" (0)
0x000| c9 | . | block_size: 4096 (0b1100)
0x000| c9 | . | sample_rate: 44100 (0b1001)
0x000| 02 | . | channel_assignment: 1 (0) (mono)
0x000| 02 | . | sample_size: 8 (0b1)
0x000| 02 | . | reserved1: 0 (valid)
| | | end_of_header{}:
0x000| 01 | . | frame_number: 1
0x000| 10 | . | crc: 0x10 (valid)
| | | subframes[0:1]:
| | | [0]{}: subframe
0x000| 12 | . | zero_bit: 0 (valid)
0x000| 12 | . | subframe_type: "fixed" (0b1001)
| | | lpc_order: 1
0x000| 12 | . | wasted_bits_flag: 0
| | | subframe_sample_size: 8
| | | warmup_samples[0:1]:
0x000| 00 | . | [0]: 0
0x000| 04 | . | residual_coding_method: 4 (0) (rice)
0x000| 04 | . | partition_order: 1
| | | rice_partitions: 2
| | | partitions[0:2]:
| | | [0]{}: partition
| | | count: 2047
0x000| 04 3f | .? | rice_parameter: 0
0x000| 3f ff ff ff ff ff ff| ?......| samples: raw bits
0x010|ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff|................|
* |until 0x196.1 (397) | |
| | | [1]{}: partition
| | | count: 2048
0x190| c1 | . | rice_parameter: 0
0x190| c1 bb ff 39 99 32 4c 92 64 99| ...9.2L.d.| samples: raw bits
0x1a0|33 39 ff bb 6d 6d b6 df fe 66 66 4c 93 26 4c 99|39..mm...ffL.&L.|
* |until 0x33d.7 (424) | |
| | | byte_align: 0 (valid)
0x330| 5c 65| \e| footer_crc: "5c65" (raw bits) (valid)