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

Allow implicit conversion from gray8_ptr_t to gray8_step_ptr_t #713

Closed
huangqinjin opened this issue Jul 30, 2022 · 3 comments
Closed

Allow implicit conversion from gray8_ptr_t to gray8_step_ptr_t #713

huangqinjin opened this issue Jul 30, 2022 · 3 comments
Labels
status/need-feedback Asking for more details about the problem status/need-minimal-example Asking for Minimal Working Example to reproduce the problem

Comments

@huangqinjin
Copy link

In this case, the memunit step is just sizeof(pixel).

@mloskot
Copy link
Member

mloskot commented Jul 30, 2022

It would be helpful if you could explain rationale behind your suggestion, what's the use case.

@huangqinjin
Copy link
Author

Such that gray8_view_t can convert to gray8_step_view_t implicitly.

@mloskot
Copy link
Member

mloskot commented Aug 1, 2022

If there was one type of pixel/view/image available in GIL, such 'convenience' would make sense - wherever you see it missing - but it is a generic library...
Unless, you present an actual problem or use case in form of a minimum working example, then it will be very hard to see what you really mean.

@mloskot mloskot closed this as completed Aug 1, 2022
@mloskot mloskot added status/need-feedback Asking for more details about the problem status/need-minimal-example Asking for Minimal Working Example to reproduce the problem labels Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-feedback Asking for more details about the problem status/need-minimal-example Asking for Minimal Working Example to reproduce the problem
Projects
None yet
Development

No branches or pull requests

2 participants