Jump to content
Phil Rhodes

The deep and lasting joy of fractional frame rates

Recommended Posts

I have decided that, every time I have to write a piece of code like this, I'm going to gripe about it to Americans.



uint8_t ltc_get_next_frame(){
  if(ltc_ff == ltc_framerate_maxframes[ltc_framerate_now]){
    if(ltc_df &&
      ltc_ss == 59 &&
      ltc_mm != 9 &&
      ltc_mm != 19 &&
      ltc_mm != 29 &&
      ltc_mm != 39 &&
      ltc_mm != 49 &&
      ltc_mm != 59     
      return 2;
    } else {
      return 0;
  } else {
    return ltc_ff + 1;

Share this post

Link to post
Share on other sites

Phil, how many people in the world, aside from you, understand the above???????????



If context is given, then lots, it isn't exactly super complex code

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Tai Audio


    Paralinx LLC

    G-Force Grips

    Metropolis Post

    Gamma Ray Digital Inc

    FJS International

    Ritter Battery

    Media Blackout - Custom Cables and AKS

    Wooden Camera

    Visual Products


    Just Cinema Gear

    Abel Cine

    Rig Wheels Passport

    New Pro Video - New and Used Equipment

    Serious Gear

    Broadcast Solutions Inc

  • Create New...