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
  • 12302 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
  • 5517 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
  • 12302 posts
  • Other

Posted 15 July 2018 - 02:48 PM

I don't care.


  • 0

#4 Richard Boddington

Richard Boddington
  • Sustaining Members
  • 5517 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
  • 142 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
  • 1533 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
  • 248 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


CineTape

Broadcast Solutions Inc

The Slider

Media Blackout - Custom Cables and AKS

Technodolly

Ritter Battery

CineLab

Paralinx LLC

Metropolis Post

Willys Widgets

Tai Audio

Visual Products

Gamma Ray Digital Inc

Rig Wheels Passport

Wooden Camera

rebotnix Technologies

New Pro Video - New and Used Equipment

Abel Cine

Glidecam

FJS International, LLC

Aerial Filmworks

Tai Audio

Willys Widgets

FJS International, LLC

Visual Products

rebotnix Technologies

Rig Wheels Passport

Aerial Filmworks

The Slider

Glidecam

Ritter Battery

New Pro Video - New and Used Equipment

CineTape

Broadcast Solutions Inc

Paralinx LLC

Metropolis Post

Technodolly

Media Blackout - Custom Cables and AKS

Wooden Camera

Gamma Ray Digital Inc

CineLab

Abel Cine