Jump to content



Photo

The deep and lasting joy of fractional frame rates


  • Please log in to reply
6 replies to this topic

#1 Phil Rhodes

Phil Rhodes
  • Sustaining Members
  • 12342 posts
  • Other

Posted 15 July 2018 - 07:36 AM

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.

 

Grrrr.

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;
  }
}

  • 0

#2 Richard Boddington

Richard Boddington
  • Sustaining Members
  • 5521 posts
  • Director

Posted 15 July 2018 - 01:43 PM

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

 

R,


  • 0

#3 Phil Rhodes

Phil Rhodes
  • Sustaining Members
  • 12342 posts
  • Other

Posted 15 July 2018 - 02:48 PM

I don't care.


  • 0

#4 Richard Boddington

Richard Boddington
  • Sustaining Members
  • 5521 posts
  • Director

Posted 15 July 2018 - 02:55 PM

Ok just so we're clear.  :)

 

R,


  • 0

#5 Brenton Lee

Brenton Lee
  • Basic Members
  • PipPipPip
  • 152 posts
  • Student
  • Melbourne, Australia

Posted 15 July 2018 - 10:26 PM

well i figured out that it has something to do with integers and thats about it 


  • 0

#6 Macks Fiiod

Macks Fiiod
  • Basic Members
  • PipPipPipPip
  • 1580 posts
  • Director
  • Og from DC, Now in NJ

Posted 15 July 2018 - 11:47 PM

Time to consider a new career, Phil. Maybe a stuntman?


  • 0

#7 David Peterson

David Peterson
  • Basic Members
  • PipPipPipPip
  • 261 posts
  • Cinematographer
  • Auckland, New Zealand.

Posted 16 July 2018 - 02:42 AM

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

 

R,

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


  • 0


Gamma Ray Digital Inc

Tai Audio

CineLab

Paralinx LLC

Rig Wheels Passport

Ritter Battery

Abel Cine

Metropolis Post

Media Blackout - Custom Cables and AKS

New Pro Video - New and Used Equipment

Visual Products

Glidecam

Wooden Camera

Broadcast Solutions Inc

FJS International, LLC

New Pro Video - New and Used Equipment

Glidecam

Tai Audio

Rig Wheels Passport

Ritter Battery

Metropolis Post

Media Blackout - Custom Cables and AKS

Abel Cine

CineLab

Wooden Camera

Paralinx LLC

FJS International, LLC

Broadcast Solutions Inc

Gamma Ray Digital Inc

Visual Products