-
Notifications
You must be signed in to change notification settings - Fork 422
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
[rust] add parser #1619
Merged
PunitLodha
merged 190 commits into
CCExtractor:master
from
prateekmedia:rusty-ccextractor
Aug 10, 2024
+6,114
−1,072
Merged
[rust] add parser #1619
Changes from 182 commits
Commits
Show all changes
190 commits
Select commit
Hold shift + click to select a range
71c83b6
feat: unpack gpac
prateekmedia b8b5994
fix: linux ci
prateekmedia 1c9d7b5
fix: mac build
prateekmedia e3fecf9
fix: remove unused [no ci]
prateekmedia 3b1e5d0
fix: ignore config.h [no ci]
prateekmedia 9ed4fe0
temp commit, will drop this soon
prateekmedia 82c30ce
fix: install gpac
prateekmedia c99950a
fix: gpac
prateekmedia 0794d92
fix: formatting
prateekmedia 4d18e2e
fix: preproccessor directive
prateekmedia fe112e6
fix: comment display version for now
prateekmedia 4086914
fix: display dlls code
prateekmedia 6e0bcbf
fix: bundle vcruntime in hardsubx windows
prateekmedia cadc476
fix: again
prateekmedia b69733f
fix: erros in ci
prateekmedia fcf225f
fix: ci
prateekmedia 93bbe3d
fix: add vcruntime in additional dependencies
prateekmedia fa4af06
fix: try to copy vcruntime after build
prateekmedia 0ca6373
fix: space in runtime library
prateekmedia a937be2
fix: remove for now [no ci]
prateekmedia 4853b29
fix: things in vcxproj
prateekmedia 104fd2f
fix: ci for leptonica sys
prateekmedia 62ef593
fix: docs
prateekmedia 01a6a82
fix: copy dlls on post build event
prateekmedia 46a13a4
fix: copy vcruntime after build
prateekmedia 78cefa2
Merge branch 'CCExtractor:master' into master
prateekmedia c16ab8d
feat: add arguments through clap
prateekmedia afa0fff
fix: type of some arguments
prateekmedia 6429154
fix: "-" and "--" in comments
prateekmedia 658d531
fix: format files
prateekmedia 1028785
fix: add argument parsing till mkvlang
prateekmedia 1d1fe4c
fix: one todo item
prateekmedia 497b8d7
chore: lint fixes
prateekmedia 1c64346
fix: nocodec value
prateekmedia 27b4b01
fix: for nocodec
prateekmedia e4f443c
fix: add cfg feature for hardsubx
prateekmedia 81c652c
feat: complete till startcreditstext
prateekmedia 9259702
fix: add more notes, args: option affect processed
prateekmedia b5d710c
feat: port all till network stuff
prateekmedia 6d4796f
fix: complete almost all argument parsing
prateekmedia 12d1495
fix: error free code
prateekmedia 8f21456
fix: complete params port
prateekmedia 7c685d1
fix: hardsubx erros
prateekmedia a8ba5a2
feat: clean up main function
prateekmedia ffd2943
fix: pr reviews
prateekmedia 2e85bb8
fix: make input,output function better
prateekmedia fe2ce06
fix: variant not used warning
prateekmedia 2191e44
fix: warnings
prateekmedia 7142885
fix: all clippy warnings
prateekmedia 8f8c161
feat: add tests
prateekmedia 4ecd8de
feat: add tests
prateekmedia 9e16276
chore: lint fixes
prateekmedia 1a36bc7
fix: move unit tests to correct folder
prateekmedia 9e12d45
fix: remove unncessary files
prateekmedia c3f113b
fix: make function for parse_args
prateekmedia 060cddf
fix: review changes
prateekmedia 375432b
fix: Impl CcxOptions whenever I could
prateekmedia 24220b4
fix: try to convert rust to c
prateekmedia 8fe4afe
chore: push c code
prateekmedia aa8a173
fix: add more rust to c conversions
prateekmedia e292ccb
fix: use set methods for bitfield
prateekmedia 41d99cd
fix: errors
prateekmedia 0ce5e04
fix: arguments parsing
prateekmedia b9eb4fc
fix: all issues
prateekmedia 06970a1
fix: many errors
prateekmedia 4fcde9d
chore: lint fix
prateekmedia b0dabce
fix: err
prateekmedia 2dc0d23
fix: unsafe function error
prateekmedia 0b53387
fix: unsafe warning
prateekmedia 800d879
fix: safety lint
prateekmedia 3a553aa
chore: add docs
prateekmedia 62c36f6
fix: windows build
prateekmedia 2de905d
fix: function
prateekmedia f5fdc0e
fix: dependencies
prateekmedia 5c8609b
fix: set_binary_mode
prateekmedia 8fda4bd
chore: lint fix
prateekmedia da7e726
fix: set_binary_mode for windows
prateekmedia 54e7a7b
fix: error
prateekmedia 4468f2a
fix: undefined reference error
prateekmedia 9e5319b
chore: remove comment
prateekmedia 3555064
Merge branch 'CCExtractor:master' into rusty-ccextractor
prateekmedia 73de871
fix: output field
prateekmedia dfc64e2
chore: fix lint
prateekmedia 094671e
fix: ru1, ru2, ru3
prateekmedia 9db014f
fix: undef before
prateekmedia 13fd4f2
fix: parameter and update deps
prateekmedia 4edf72f
chore: update vcpkg
prateekmedia 823f1b3
feat: add release-with-debug profile
prateekmedia 617267c
fix; uncomment code
prateekmedia 76ed1bf
Merge branch 'master' into rusty-ccextractor
prateekmedia 83ec282
fix: update visual studio to 2022
prateekmedia 63b3b37
chore: update docs
prateekmedia b1f9e55
fix: use default vcpkg
prateekmedia b56d44e
fix: caching logic on release ci
prateekmedia 822edc1
fix: vcpkg caching
prateekmedia 4f3be46
fix: add setup vcpkg
prateekmedia 7a16ba8
chore: remove unneccesary formatting
prateekmedia 0a2ed69
fix: Always write 2 bytes for UTF-16BE
prateekmedia 62d1e8d
Merge branch 'CCExtractor:master' into master
prateekmedia 36bee73
fix: formatting
prateekmedia 2c5a894
Merge branch 'CCExtractor:master' into master
prateekmedia 39b4f5d
Merge branch 'CCExtractor:master' into master
prateekmedia b65f340
feat: add rest of the notes to bring continuity
prateekmedia 0e0edc6
fix: remove extra line
prateekmedia cdb65f9
fix: add hardsubx note
prateekmedia e5c6e2d
Merge branch 'CCExtractor:master' into rusty-ccextractor
prateekmedia 4db3260
Merge branch 'CCExtractor:master' into master
prateekmedia 8a95f7c
fix: source code format error
prateekmedia bd68411
chore: lint fixes acc to rustfmt
prateekmedia dee7d41
feat: add unit test ci
prateekmedia 132de1a
fix: conversion of strings, add file queue handling
prateekmedia 5a43799
fix: decoder cfg
prateekmedia fe093c0
Merge branch 'master' into rusty-ccextractor
prateekmedia 9c5eb06
fix: update dependencies
prateekmedia 021fa39
chore: lint fix
prateekmedia a0cef4b
chore: add safety doc
prateekmedia 36aa62a
fix: default value for CcxOptions
prateekmedia a4aa3c6
fix(rust): default value for teletext
prateekmedia 461ef55
fix: leptonica version for windows
prateekmedia 11b3315
fix: format errors
prateekmedia e7da98c
fix: workflow
prateekmedia 7db22c8
Revert "fix: leptonica version for windows"
prateekmedia 2f83b38
fix: pin ffmpeg to 6 for mac
prateekmedia 210d94d
fix(parser): default values and unwrap's
prateekmedia a75b3e5
fix(parser): hardsubx fixes
prateekmedia a391534
chore(parse): lint fixes
prateekmedia 0ad0116
fix(windows): switch back to sdk 2019
prateekmedia 71ab3e9
fix(workflow): windows workflow revert
prateekmedia 5a9d13b
fix(windows): revert to old files which were working before
prateekmedia 10cba7a
fix(workflow): pin vcpkg packages
prateekmedia 6c93f2d
chore(rust): downgrade leptonica
prateekmedia 13e45f0
fix(windows): move vcpkg.json to correct place
prateekmedia 3b683b0
fix(windows): improve vcxproj
prateekmedia 39f1455
fix(windows): workflow
prateekmedia 30f7343
fix(windows): workflow
prateekmedia 0fa3b9d
fix(windows): workflow clone from vcpkg everytime
prateekmedia c3f6619
fix(workflow): error
prateekmedia d8392c8
fix(workflow): don't skip building vcpkg
prateekmedia 44eea4e
fix: remove depth from vcpkg
prateekmedia d775242
temporary commit
prateekmedia c083596
fix(windows): pin gpac and use local vcpkg manifest properly
prateekmedia fe0c993
fix(windows): install vcpkg dependencies manually
prateekmedia 3bf6e51
fix(windows): update dll names
prateekmedia f452b3f
fix(windows); dependencies copy
prateekmedia 4046ca5
fix(windows): don't continue on error for release
prateekmedia a9ae858
fix(macos): build ffmpeg for mac workflow
prateekmedia 4a47f53
fix: move ffmpeg to current workspace
prateekmedia 5fef868
Merge remote-tracking branch 'origin' into rusty-ccextractor
prateekmedia e38f250
Merge branch 'master' into rusty-ccextractor
prateekmedia d14c88f
fix: re-add profile for windows
prateekmedia c5ea8fa
fix: pkg config for mac
prateekmedia 65ecb67
fix(mac): use ffmpeg@6 from brew
prateekmedia a140094
fix(macos): there is no ffmpeg_prebuilt
prateekmedia 5e71d20
fix(macos): specify ffmpeg pkg config
prateekmedia ab21af8
fix(macos): globally define pkg config
prateekmedia 409c1b0
fix(macos): add ffmpeg include and libs dir
prateekmedia 71f28cf
fix(macos): include ffmpeg headers in makefile
prateekmedia ba628b9
fix: include ffmpeg libraries and include directories
prateekmedia 02445c8
fix: try to manually specify ffmpeg header in rust
prateekmedia f6b62ce
fix: also include leptonica headres
prateekmedia c618f1c
fix: leptonica name
prateekmedia fafb4bc
fix: test
prateekmedia 7dcda15
fix: string null when output_filename is empty
prateekmedia d46d885
fix: error
prateekmedia 9efb629
fix: remove cflgas
prateekmedia 3a4f7d2
fix(mac): disable cmake ocr hardsubx
prateekmedia cf4fc75
chore: update gitignore
prateekmedia 3ff533b
fix: null if string is empty
prateekmedia 5e81583
fix: allow --in
prateekmedia c0d63b6
chore: bump version to 1.0 in rust
prateekmedia 11bf64a
chore: add space to trigger sp
prateekmedia bdd2d18
fix: don't panic with rust
prateekmedia d2dcf3b
fix: add double dashes to indicate parameters
prateekmedia e26df57
chore: update CHANGES.txt
prateekmedia 7514df3
fix: test
prateekmedia 0f0e3cf
fix(workflow): update workflow name
prateekmedia ae396b5
fix(rust): linux output_filename in sampleplatform
prateekmedia ca440e0
fix(rust): parser default values
prateekmedia efa12dc
fix(rust): exit with MalformedParameter instead of panic
prateekmedia f0055a9
fix(decoder): revert always write 2 bytes
prateekmedia 50cb4e8
Merge branch 'master' into rusty-ccextractor
prateekmedia 463113f
chore(rust): format
prateekmedia 068b9ca
Merge remote-tracking branch 'upstream/master' into rusty-ccextractor
prateekmedia 71eee02
chore: update lock file
prateekmedia 9b2becf
fix(test): test lib_ccxr and rename to test
prateekmedia 8d87a18
fix(mac): remove failing cmake_ocr test
prateekmedia 7d66a5a
fix: ci errors
prateekmedia 75ae7dd
fix: feature related changes
prateekmedia 9f55324
fix: trim down default features
prateekmedia a98e308
fix: don't check clippy for all features
prateekmedia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Unit Test Rust | ||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/test.yml" | ||
- "src/rust/**" | ||
tags-ignore: | ||
- "*.*" | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- ".github/workflows/test.yml" | ||
- "src/rust/**" | ||
jobs: | ||
test_rust: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./src/rust | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
src/rust/.cargo/registry | ||
src/rust/.cargo/git | ||
src/rust/target | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-cargo- | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: rustfmt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be named test |
||
run: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be uncommented?