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

How to Link JPEG library into this UVC library #41

Open
toBeGeekNo1 opened this issue Sep 1, 2020 · 1 comment
Open

How to Link JPEG library into this UVC library #41

toBeGeekNo1 opened this issue Sep 1, 2020 · 1 comment

Comments

@toBeGeekNo1
Copy link

Hi,my project need to use the JPEG relative API, but I use the steps described in the INSTALL_WINDOWS.md, It doesn't seem to provide a path to the JPEG library,Please give me a hand,thanks

@PeterPeterPan
Copy link

PeterPeterPan commented Sep 14, 2020

@toBeGeekNo1
I't my way:
First

Download libjpeg, and follow the step in install.txt.
For me, I follow the "Microsoft Windows, Visual Studio 2019 (v16):..."

Second

link the libjpeg for Visual Studio.
reference:
https://stackoverflow.com/questions/4445418/how-to-add-additional-libraries-to-visual-studio-project

Final

Using the function "uvc_mjpeg2rgb( )" in libuvc/src/frame-mjpeg.c instead of uvc_any2bgr( ).
frame-mjpeg.c wasn't linked by CMakeLists, so you can create a C file and just copy the code from frame-mjpeg.c.

Note: you may need to install opencv, too.

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

No branches or pull requests

2 participants