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

Extend image client for raw images #40

Merged
merged 15 commits into from
Jun 25, 2024

Conversation

cfreundl
Copy link
Member

Contains also extensions for configuring the application accordingly (together with an example).

When the amount of data is less than Client.BUF_LEN then try to receive
exactly (number_bytes - total_recved) and not number_bytes, and
Client.BUF_LEN bytes otherwise, so choose the minimum of those two values.

Signed-off-by: Christoph Freundl <[email protected]>
@cfreundl cfreundl requested review from Galoshi and bnozka April 25, 2024 09:23
@cfreundl cfreundl self-assigned this Apr 25, 2024
examples/create_rawimage_application.py Outdated Show resolved Hide resolved
source/device/image_client.py Show resolved Hide resolved
source/device/image_client.py Outdated Show resolved Hide resolved
source/device/image_client.py Show resolved Hide resolved
Use the original binary data as much as possible and avoid string
conversions when extracting the required data or counting bytes.

Signed-off-by: Christoph Freundl <[email protected]>
Extend the PCIC format to also receive raw uncompressed images if
available in the application. Depending on the received chunk type the
correct image is constructed for both JPEG data and raw 8-bit pixel data.

Signed-off-by: Christoph Freundl <[email protected]>
This allows to set/get the camera application parameter
"2dUncompressedImages"

Signed-off-by: Christoph Freundl <[email protected]>
@cfreundl cfreundl force-pushed the extend-image-client-for-raw-images branch from a8ed9f7 to 7ca5f7e Compare April 26, 2024 08:20
@Galoshi Galoshi added enhancement New feature or request code improvement Improved code stability labels Jun 25, 2024
@Galoshi Galoshi merged commit 26d6ff8 into master Jun 25, 2024
3 checks passed
@Galoshi Galoshi deleted the extend-image-client-for-raw-images branch June 25, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code improvement Improved code stability enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants