Comments (6)
For example, right now there are no bindings for gp_filesystem_get_file
in CameraFS
, but there are CameraFilePath::{download, get_in_memory}
.
Since the former is strictly more general (supports any files, not just those captured via capture_image
), replacing the latter with CameraFS
bindings would cover both use-cases.
from gphoto2-rs.
Yes but from where do I get a CameraFilesystem
? and is it meant to be used in for this? the docs say it should be only used by camera drivers
from gphoto2-rs.
Yes but from where do I get a
CameraFilesystem
?
What do you mean? You already have bindings for it in filesys.rs
🤔
the docs say it should be only used by camera drivers
Oh, I haven't seen those. Are you saying CameraFS
bindings shouldn't exist at all?
from gphoto2-rs.
What do you mean? You already have bindings for it in filesys.rs thinking
Actually no, CameraFS
just has a reference and calls the gp_camera_file_*
and gp_camera_folder_*
functions. (I agree that this naming is confusing)
Oh, I haven't seen those. Are you saying CameraFS bindings shouldn't exist at all?
Our CameraFS is ok since it used the filesystem functions on the camera, just the CameraFilesystem
should not be used
from gphoto2-rs.
Actually no,
CameraFS
just has a reference and calls thegp_camera_file_*
andgp_camera_folder_*
functions. (I agree that this naming is confusing)
Ah sorry I got confused, I thought it's using gp_filesystem_*
functions for some reason.
Our CameraFS is ok since it used the filesystem functions on the camera, just the
CameraFilesystem
should not be used
I guess you meant to link to https://github.com/gphoto/libgphoto2/blob/8b462f8c835b9d3ab0cee4117e0b0458dac00445/gphoto2/gphoto2-filesys.h#L227-L233 instead, since that comment is about Camera
fields.
Anyway, okay, yeah, I got confused about specific APIs :) In that case my suggestion about unifying entry points for filesystem access still stands, but it's just about moving download
& get_in_memory
into CameraFS
instead of CameraFilePath
.
from gphoto2-rs.
Reopening as per #35 (comment).
from gphoto2-rs.
Related Issues (20)
- CameraFile shouldn't keep ownership of the original File HOT 1
- libgphoto2 has thread safety issues
- Memory unsoundness in port_info (and maybe others) HOT 8
- Hook up gp_log_add_func HOT 3
- Add ability to set context progress functions
- Add a way to upload file from in-memory slice HOT 5
- Investigate encodings and localisation HOT 12
- libgphoto2 is actually not thread-safe at all :( HOT 11
- Problem with tauri HOT 2
- Example code in README.md does not work HOT 1
- Downloading previews
- 0 byte file left behind HOT 1
- Task future is not multithreading-friendly HOT 1
- [Solved] Compilation error on Linux Mint: 'stdarg.h' file not found HOT 2
- Mixed Widget types in error message. HOT 2
- Switch from log to tracing? HOT 2
- Interaction between Context::set_progress_handlers and Task::set_progress_handler
- Missing Feature: Liveview HOT 3
- Windows help: runs great in mingw64 & ucrt64, gets Error loading a library output when trying to run outside of msys2 env. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gphoto2-rs.