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

s12m timecodes #991

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

s12m timecodes #991

wants to merge 10 commits into from

Conversation

JDarnley
Copy link
Contributor

Supersedes #530

Comments very much welcome

@kierank
Copy link
Contributor

kierank commented Jun 23, 2024

I'm not sure what I think about storing them in a uref as BCD. I see why you did it but it's a bit ugly. But then again anything else would add complexity.

@nto
Copy link
Collaborator

nto commented Jul 4, 2024

Perhaps the functions in uref_attr_s12m.h should validate their input values and return UBASE_ERR_INVALID when out of range?

@JDarnley
Copy link
Contributor Author

I added that, well something that a user can choose to use if they don't trust the data. I assume you wanted the check in the to/from functions and for those to return an error code rather than the timecode pack itself.

I wonder if I should change the check function to return false if the count is 0. Is something, someone going to add a 4 byte attribute just to hold one 0?

I also needed a function to set a flag in a different position for NTSC and PAL so that got created.

@JDarnley
Copy link
Contributor Author

JDarnley commented Aug 2, 2024

I can't get timecodes out of upipe_blackmagic_sink with any of the equipment I have available. I'm not sure why. The driver might be too old or there could be a problem with the C++ code. I'll investigate some more in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants