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

Json support phase 1 #291

Closed
wants to merge 11 commits into from

Conversation

tszumski
Copy link
Collaborator

@tszumski tszumski commented Dec 16, 2024

  1. Fix compilation error on some configurations:
error: ‘abi’ has not been declared
demangled = abi::__cxa_demangle(info.dli_sname, nullptr, 0, &status);
  1. Add nlohmann/json C++ json parser
  2. Parse json client config and connection config
  3. Add JSON configuration support for mesh client and connections
  4. Create JSON sender and receiver applications
  5. ST2110 bridges to take json parsed config
  6. Clone and modify sender/receiver sample app to support json
  7. Fix cmake/linker/grpc
  8. Add new 4 fields into MeshBuffer,
    • Introduced setPayloadLen and setMetadataLen(partially) methods for MeshBuffer.
    • Updated references from data_len and data to payload_len and payload_ptr across various files.
    • Adjusted validation tests to reflect changes in buffer structure.

@tszumski tszumski force-pushed the tszumski-json-phase1 branch 2 times, most recently from 86a06b5 to 0651d43 Compare December 16, 2024 11:27
VIDEO_FORMAT_YUV422P, ///< planar YUV 4:2:2, 16bpp
VIDEO_FORMAT_YUV422P10LE, ///< planar YUV 4:2:2, 20bpp
VIDEO_FORMAT_YUV444P10LE, ///< planar YUV 4:4:4, 30bpp
VIDEO_FORMAT_RGB8, ///< packed RGB 3:3:2, 8bpp
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really plan to support very lossy RGB8 (8bpp), or RGB24 (24bpp, 8-bit format)?

Copy link
Collaborator

@marcin-le marcin-le Dec 16, 2024

Choose a reason for hiding this comment

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

FFmpeg describes RGB8 as 2:3:3. 3:3:2 is a BGR8.

IO... bgr8                   3              8      3-3-2

Additionally, ST2110 does not support this format. The minimum is 8:8:8.

@tszumski tszumski marked this pull request as ready for review December 16, 2024 15:44
demangled = abi::__cxa_demangle(info.dli_sname, nullptr, 0, &status);
- Introduced setPayloadLen and setMetadataLen(partially) methods for MeshBuffer.
- Updated references from data_len and data to payload_len and payload_ptr across various files.
- Adjusted validation tests to reflect changes in buffer structure.
@tszumski tszumski force-pushed the tszumski-json-phase1 branch from 2f6e0f5 to e84d6f0 Compare December 18, 2024 07:00
@@ -41,6 +41,7 @@ set(MCMDP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
set(MEMIF_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libmemif)
set(MCMDP_SAMPLE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/samples)
set(PROTO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../protos)
set(NLOHMANN_JSON_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/nlohmann)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move upper, after libmemif

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in cb1a6cd

@ko80 ko80 marked this pull request as draft January 10, 2025 20:37
@ko80
Copy link
Collaborator

ko80 commented Jan 10, 2025

@tszumski Consider closing this PR as #300 has been merged.

@tszumski
Copy link
Collaborator Author

Closing, as #300 has been merged

@tszumski tszumski closed this Jan 11, 2025
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