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
  • 12271 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
  • 5513 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
  • 12271 posts
  • Other

Posted 15 July 2018 - 02:48 PM

I don't care.


  • 0

#4 Richard Boddington

Richard Boddington
  • Sustaining Members
  • 5513 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
  • 134 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
  • 1470 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
  • PipPipPip
  • 221 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


Aerial Filmworks

CineLab

Abel Cine

Gamma Ray Digital Inc

Willys Widgets

Rig Wheels Passport

New Pro Video - New and Used Equipment

FJS International, LLC

Broadcast Solutions Inc

Glidecam

Metropolis Post

Technodolly

Paralinx LLC

Ritter Battery

Tai Audio

Visual Products

rebotnix Technologies

Media Blackout - Custom Cables and AKS

Wooden Camera

CineTape

The Slider

FJS International, LLC

Visual Products

Ritter Battery

Willys Widgets

Technodolly

CineLab

Tai Audio

CineTape

Abel Cine

Paralinx LLC

Wooden Camera

Gamma Ray Digital Inc

Rig Wheels Passport

Aerial Filmworks

The Slider

New Pro Video - New and Used Equipment

Glidecam

rebotnix Technologies

Broadcast Solutions Inc

Metropolis Post

Media Blackout - Custom Cables and AKS