Skip to content
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
merged 190 commits into from
Aug 10, 2024
Merged

Conversation

prateekmedia
Copy link
Member

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.
  • I have mentioned this change in the changelog.

My familiarity with the project is as follows (check one):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

Rewrote argument parsing with all the structs and enums too into rust.

Help arguments demo:
image

Closed old PR as sample platform broke for it: #1547

@PunitLodha PunitLodha self-requested a review July 5, 2024 09:17
@ccextractor-bot

This comment was marked as outdated.

@ccextractor-bot

This comment was marked as outdated.

Comment on lines 77 to 97
# cmake_ocr_hardsubx:
# runs-on: macos-latest
# env:
# PKG_CONFIG_PATH: /opt/homebrew/opt/ffmpeg@6/lib/pkgconfig:$PKG_CONFIG_PATH
# FFMPEG_PKG_CONFIG_PATH: /opt/homebrew/opt/ffmpeg@6/lib/pkgconfig
# FFMPEG_INCLUDE_DIR: /opt/homebrew/opt/ffmpeg@6/include
# FFMPEG_LIBS_DIR: /opt/homebrew/opt/ffmpeg@6/lib
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# run: brew install coreutils pkg-config autoconf automake libtool tesseract leptonica gpac ffmpeg@6
# - name: cmake
# run: |
# mkdir build && cd build
# cmake -DWITH_OCR=ON -DWITH_HARDSUBX=ON ../src
# - name: build
# run: |
# make -j$(nproc)
# working-directory: build
# - name: Display version information
# run: ./build/ccextractor --version
Copy link
Member

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?

with:
toolchain: stable
override: true
- name: rustfmt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be named test

@@ -6,5 +6,5 @@ cd ..\..\windows
IF "%~1"=="-r" (
copy x86_64-pc-windows-msvc\release\ccx_rust.lib .\ccx_rust.lib
) ELSE (
copy x86_64-pc-windows-msvc\debug\ccx_rust.lib .\ccx_rust.lib
copy x86_64-pc-windows-msvc\release-with-debug\ccx_rust.lib .\ccx_rust.lib
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have release with debug here?

Comment on lines +38 to +40
[profile.release-with-debug]
inherits = "release"
debug = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@PunitLodha
Copy link
Member

@prateekmedia also fix the merge conflicts

@prateekmedia
Copy link
Member Author

@PunitLodha Done!

@PunitLodha
Copy link
Member

@prateekmedia could you take a look at why the CI is failing

@prateekmedia
Copy link
Member Author

@PunitLodha Done!

@PunitLodha PunitLodha merged commit 9340cc7 into CCExtractor:master Aug 10, 2024
15 of 17 checks passed
@IshanGrover2004
Copy link
Contributor

IshanGrover2004 commented Aug 25, 2024

@prateekmedia @PunitLodha Are the sample test ran on this PR, Because I tested some samples on current CCExtractor code & its crashes which was working fine before this merging happens (I checked on each commit through when it is failing, found out this is the one which causes).

Sample platform on commit - Linux & Windows

@prateekmedia
Copy link
Member Author

@IshanGrover2004 The teletext PR will resolve the crashes currently.

@prateekmedia prateekmedia deleted the rusty-ccextractor branch August 26, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants