Lines Matching refs:l_frames
12 int32 l_frames; in us_to_timecode() local
21 l_frames = int32((((micros % 1000000) * 29.97) / 1000000) + (micros / 1000000 * 29.97)); in us_to_timecode()
24 l_frames = int32((((micros % 1000000) * 29.95) / 1000000) + (micros / 1000000 * 29.95)); in us_to_timecode()
27 … l_frames = (((micros % 1000000) * code->fps_div) / 1000000) + (micros / 1000000 * code->fps_div); in us_to_timecode()
32 l_frames = int32((((micros % 1000000) * 29.97) / 1000000) + (micros / 1000000 * 29.97)); in us_to_timecode()
35 return frames_to_timecode(l_frames, hours, minutes, seconds, frames, code); in us_to_timecode()
40 int32 l_frames; in timecode_to_us() local
44 if (timecode_to_frames(hours, minutes, seconds, frames, &l_frames, code) == B_OK) { in timecode_to_us()
51 *micros = bigtime_t(l_frames * ((1000000 / 29.97) + 0.5)); in timecode_to_us()
54 *micros = bigtime_t(l_frames * ((1000000 / 29.95) + 0.5)); in timecode_to_us()
57 *micros = l_frames * 1000000 / code->fps_div; in timecode_to_us()
62 *micros = bigtime_t(l_frames * ((1000000 / 29.97) + 0.5)); in timecode_to_us()
70 status_t frames_to_timecode(int32 l_frames, int * hours, int * minutes, int * seconds, int * frames… in frames_to_timecode() argument
86 total_mins = l_frames / fps_div / 60; in frames_to_timecode()
90 l_frames += extra_frames; in frames_to_timecode()
92 total_mins = l_frames / fps_div / 60; in frames_to_timecode()
97 l_frames += extra_frames2 - extra_frames; in frames_to_timecode()
100 total_mins = l_frames / fps_div / 60; in frames_to_timecode()
109 total_mins = l_frames / fps_div / 60; in frames_to_timecode()
113 l_frames += extra_frames; in frames_to_timecode()
115 total_mins = l_frames / fps_div / 60; in frames_to_timecode()
120 l_frames += extra_frames2 - extra_frames; in frames_to_timecode()
123 total_mins = l_frames / fps_div / 60; in frames_to_timecode()
129 *seconds = l_frames / fps_div; // DIV in frames_to_timecode()
130 *frames = l_frames % fps_div; // MOD in frames_to_timecode()
142 status_t timecode_to_frames(int hours, int minutes, int seconds, int frames, int32 * l_frames, cons… in timecode_to_frames() argument
155 *l_frames = (total_mins * 60) + seconds; in timecode_to_frames()
156 *l_frames = (*l_frames * fps_div) + frames; in timecode_to_frames()
162 *l_frames = *l_frames - extra_frames; in timecode_to_frames()
167 *l_frames = (total_mins * 60) + seconds; in timecode_to_frames()
168 *l_frames = (*l_frames * 30) + frames; in timecode_to_frames()
173 *l_frames = *l_frames - extra_frames; in timecode_to_frames()