1
1
mirror of https://github.com/wader/fq.git synced 2024-11-24 11:16:09 +03:00
Commit Graph

668 Commits

Author SHA1 Message Date
Mattias Wadman
d854ed5737 bitio: Cleanup documentation a bit 2022-02-05 16:54:54 +01:00
Mattias Wadman
6b8867180c
Merge pull request #123 from wader/bitio-refactor-and-correct-slicing
bitio,decode: Refactor bitio usage and make buffer slicing more correct
2022-02-04 21:53:31 +01:00
Mattias Wadman
7c5215347d bitio,decode: Refactor bitio usage and make buffer slicing more correct
Remove bitio.Buffer layer. bitio.Buffer was a kitchen sink layer with helpers
now it's just a buffer and most functions have been moved to decode instead.

bitio package now only have primitive types and functions simialar to standard
library io and bytes packages.

Make nearly eveything internally use bitio.Bit* interfaces so that slicing work
correctly this will also make it possible to start experimenting with more
complicated silcing helpers, ex things like:
breplace(.header.bitrate; 123) to get a new buffer with bitrate changed.
2022-02-04 21:41:53 +01:00
Mattias Wadman
9ed08ec108
Merge pull request #122 from wader/doc-diagram-dep-colors
doc: Color edges in diagram based on dest
2022-02-02 19:52:08 +01:00
Mattias Wadman
710c29b24e doc: Color edges in diagram based on dest 2022-02-02 19:39:33 +01:00
Mattias Wadman
1547dbdd61
Merge pull request #121 from wader/decode-add-missing-scalar-args
decode: Add scalars args to FieldRootBitBuf
2022-02-01 22:59:39 +01:00
Mattias Wadman
556f6ee8e9
Merge pull request #120 from wader/protobuf-doc
protobuf: Add note about sub message decoding
2022-02-01 22:59:33 +01:00
Mattias Wadman
4ab6381dc4 decode: Add scalars args to FieldRootBitBuf
Also move *Value.TryScalarFn to value.go
2022-02-01 22:24:24 +01:00
Mattias Wadman
2ab395a03b protobuf: Add note about sub message decoding
Fix and cleanup some other doc also
2022-02-01 22:22:19 +01:00
Mattias Wadman
e12a14a948
Merge pull request #119 from wader/doc-more-display-fixes
doc: More display alias leftover fixes
2022-01-29 16:36:45 +01:00
Mattias Wadman
6b51b0676f doc: More display alias leftover fixes 2022-01-29 13:22:10 +01:00
Mattias Wadman
7634328536
Merge pull request #118 from wader/doc-display
doc: Document display and some more jq hints
2022-01-29 13:16:02 +01:00
Mattias Wadman
f0ce7179b2 doc: Document display and some more jq hints
Also fixed some verbose -> dv leftovers
2022-01-29 13:10:25 +01:00
Mattias Wadman
bc20f09fdb
Merge pull request #117 from wader/make-cleanup-targets
make: Cleanup some not very used targets
2022-01-29 12:31:10 +01:00
Mattias Wadman
b66e3287f2
Merge pull request #112 from wader/interp-cleanup-d-alises
interp: Cleanup display aliases, now: d, da, dd, dv, ddv
2022-01-29 12:28:46 +01:00
Mattias Wadman
fc52f20ed1
Merge pull request #116 from wader/doc-fix-filenames
doc,matroska: Fix filesname in example
2022-01-29 12:27:38 +01:00
Mattias Wadman
bf170be8ea make: Cleanup some not very used targets 2022-01-29 12:27:15 +01:00
Mattias Wadman
2efc3cba9b
Merge pull request #115 from wader/doc-example-usages
doc,interp: Add some example usages to cli help
2022-01-29 12:26:08 +01:00
Mattias Wadman
7bc2521938 doc,interp: Add some example usages to cli help 2022-01-29 12:21:51 +01:00
Mattias Wadman
8e47fb1a85 doc,matroska: Fix filesname in example 2022-01-29 12:20:47 +01:00
Mattias Wadman
cae9587c5c
Merge pull request #114 from wader/doc-per-format-doc
doc: Add per format documentation
2022-01-29 12:16:18 +01:00
Mattias Wadman
a8664ed5ba doc: Add per format documentation 2022-01-29 12:01:36 +01:00
Mattias Wadman
ce3508bd8e
Merge pull request #113 from wader/interp-if-add-platform
interp: Add Platform() method to OS interface
2022-01-29 11:35:59 +01:00
Mattias Wadman
ca68e6a1e4 interp: Add Platform() method to OS interface
Felt bad that main should have to know about it
2022-01-29 11:31:36 +01:00
Mattias Wadman
fc0aacb654 interp: Cleanup display aliases, now: d, da, dd, dv, ddv
Think it makes sense to have them all start with d.
Also f is often used as function argument name.
2022-01-28 18:25:38 +01:00
Mattias Wadman
94a863e69a
Merge pull request #111 from wader/decode-scalar-str-number-sym-helper
decode,scalar: Add scalar.Str{Uint/Int/F}ToSym to parse numbers
2022-01-28 17:36:38 +01:00
Mattias Wadman
6cd1c38fbf decode,scalar: Add scalar.Str{Uint/Int/F}ToSym to parse numbers 2022-01-28 17:18:50 +01:00
Mattias Wadman
b2e5a83860
Merge pull request #110 from wader/doc-improve-use-other-func-notation
doc: Use f($a; $b) instead of jq f/2 notation
2022-01-27 10:10:12 +01:00
Mattias Wadman
c52a1a2364 doc: Use f($a; $b) instead of jq f/2 notation
Also some general polish
2022-01-27 09:55:45 +01:00
Mattias Wadman
9918c9ad24
Merge pull request #109 from wader/version-os-arch
fq: Add arch and os to --version
2022-01-26 18:14:47 +01:00
Mattias Wadman
233d86a384 fq: Add arch and os to --version 2022-01-26 18:09:59 +01:00
Doctor-love
5bf83764b2
Merge pull request #108 from wader/fix-issue_template_clarify_install_method
Polish of problem template and clarifying questions
2022-01-26 16:09:45 +00:00
Joel Rangsmo
5a1d35e77c
Remove redudant question and fix typo 2022-01-26 15:50:32 +00:00
Joel Rangsmo
ab50088d7d
Polish of problem template and clarifying questions 2022-01-26 13:52:27 +00:00
Mattias Wadman
aea48847c5 github: Add basic issue template 2022-01-25 20:42:35 +01:00
Mattias Wadman
261acce4fc
Merge pull request #106 from wader/bump-make-golangci-lint-1.44.0
Update make-golangci-lint from 1.43.0 to 1.44.0
2022-01-25 17:33:38 +01:00
Mattias Wadman
911f24beeb
Merge pull request #107 from wader/bump-github-golangci-lint-1.44.0
Update github-golangci-lint from 1.43.0 to 1.44.0
2022-01-25 17:33:31 +01:00
Mattias Wadman
898dfec1d1 lint: Fix typeassert and case exhaustive warnings 2022-01-25 17:23:41 +01:00
bump
1e859cdaef Update github-golangci-lint from 1.43.0 to 1.44.0
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.44.0
2022-01-25 16:09:21 +00:00
bump
d02d8968e7 Update make-golangci-lint from 1.43.0 to 1.44.0 2022-01-25 16:09:18 +00:00
Mattias Wadman
9983149143
Merge pull request #104 from wader/mp3-less-max-sync-seek
mp3: Decrease max sync seek length between frames to 4k
2022-01-25 16:19:24 +01:00
Mattias Wadman
8d2d88f4d0 mp3: Decrease max sync seek length between frames to 4k
This might break mp3s with large id3v2 chunks embedded into the stream but
i think that is rare and probably means it is a dump of a mp3 radio stream etc.

An alternative approach is to also look for id3v2 etc between frames but then the mp3
root value probably should be an array of mix of things instead of a struct, or rename
header/footer to metadata?

Related to #103
2022-01-25 16:08:43 +01:00
Mattias Wadman
4cb9dcf0ef
Merge pull request #102 from wader/interp-grep-by
interp: Add grep_by/1 to recursively match using a filter
2022-01-24 18:30:16 +01:00
Mattias Wadman
e792598c69 interp: Add grep_by/1 to recursively match using a filter
Refactor other grep functions to use it
2022-01-24 18:26:25 +01:00
Mattias Wadman
4f490e5618
Merge pull request #99 from wader/mpeg-spu-fatal-infinit-loop
mpeg_spu: Fatal error on infinite loop
2022-01-24 17:53:56 +01:00
Mattias Wadman
bc107f82e4
Merge pull request #101 from wader/dump-sym-correct-color
interp: Use correct sym color
2022-01-24 17:53:46 +01:00
Mattias Wadman
8c15317fef
Merge pull request #100 from wader/fuzz-all-formats2
fuzz: Fuzz all formats
2022-01-24 17:53:40 +01:00
Mattias Wadman
c31ec2a388 interp: Use correct sym color 2022-01-24 16:57:35 +01:00
Mattias Wadman
b8efd8e549 fuzz: Fuzz all formats
Fix string readers to not panic on make slice with bogus sizes
2022-01-24 16:56:24 +01:00
Mattias Wadman
febce5a5a4 mpeg_spu: Fatal error on infinite loop 2022-01-24 16:53:55 +01:00