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 update the memory blocks? #5

Open
wwfly93 opened this issue Jan 19, 2024 · 0 comments
Open

How to update the memory blocks? #5

wwfly93 opened this issue Jan 19, 2024 · 0 comments

Comments

@wwfly93
Copy link

wwfly93 commented Jan 19, 2024

I am learning the sample code about  "tests/media_sender" in Rivermax SDK , and have some question about the data sending process. 

Within the "thread_data::init" function, a huge memory is allocated and filled with ycbcr video data, then assign the memory blocks to the output media stream by "rmx_output_media_assign_mem_blocks". But in the "thread_data::run_intrenal" function, the thread proc only "build_rtp_header" between "rmx_output_media_get_next_chunk" and "rmx_output_media_commit_chunk", it dosen't fill the packet payload. 
    1. does it mean that  Rivermax will use the previously assigned memory block, is it loop?
    2. Is it possible to set the reading order? 
    3. If I want to modify the sent data in real time, can I use the previous memory block pointer or should I use the pointer obtained from "rmx_output_media_get_chunk_strides"?
    4. Is there an internal synchronization mechanism for modifying and sending memory blocks?
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

1 participant