#include "clip_list.h"
#include "mainwindow.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "ui_mainwindow.h"
#include <math.h>
#include "disk_space_estimator.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include <memory>
#include <stdio.h>
//
// The bitrate is measured over a simple 30-second sliding window.
-#include "timebase.h"
+#include "shared/timebase.h"
#include <deque>
#include <functional>
// Report that a video frame with the given pts and size has just been
// written (possibly appended) to the given file.
//
- // <pts> is taken to be in TIMEBASE units (see timebase.h).
+ // <pts> is taken to be in TIMEBASE units (see shared/timebase.h).
void report_write(const std::string &filename, size_t bytes, uint64_t pts);
private:
#include "player.h"
#include "shared/post_to_main_thread.h"
#include "ref_counted_gl_sync.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "ui_mainwindow.h"
#include "vaapi_jpeg_decoder.h"
#include "frame_on_disk.h"
#include "player.h"
#include "shared/post_to_main_thread.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "ui_mainwindow.h"
#include <QMouseEvent>
}
#include "defs.h"
-#include "timebase.h"
+#include "shared/timebase.h"
using namespace std;
#include <thread>
#include <vector>
-#include "timebase.h"
+#include "shared/timebase.h"
struct MuxMetrics {
// “written” will usually be equal video + audio + mux overhead,
#include "httpd.h"
#include "jpeg_frame_view.h"
#include "mux.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "video_stream.h"
#include <algorithm>
#include "alsa_pool.h"
#include "bmusb/bmusb.h"
-#include "timebase.h"
+#include "shared/timebase.h"
using namespace std;
using namespace std::chrono;
#include "defs.h"
#include "mux.h"
-#include "timebase.h"
+#include "shared/timebase.h"
using namespace std;
#include "flags.h"
#include "metrics.h"
#include "state.pb.h"
-#include "timebase.h"
+#include "shared/timebase.h"
using namespace bmusb;
using namespace std;
#include "defs.h"
#include "input_mapping.h"
#include "resampling_queue.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#define NUM_BENCHMARK_CARDS 4
#define NUM_WARMUP_FRAMES 100
#include "flags.h"
#include "metrics.h"
#include "print_latency.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "v210_converter.h"
using namespace movit;
#include <memory>
#include "metrics.h"
-#include "timebase.h"
+#include "shared/timebase.h"
DiskSpaceEstimator::DiskSpaceEstimator(DiskSpaceEstimator::callback_t callback)
: callback(callback)
#include <functional>
#include <string>
-#include "timebase.h"
+#include "shared/timebase.h"
class DiskSpaceEstimator
{
// responsible for writing to the stream on disk.
//
// If the filename changed since last time, the estimation is reset.
- // <pts> is taken to be in TIMEBASE units (see timebase.h).
+ // <pts> is taken to be in TIMEBASE units (see shared/timebase.h).
void report_write(const std::string &filename, uint64_t pts);
private:
#include "flags.h"
#include "image_input.h"
#include "ref_counted_frame.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#define FRAME_SIZE (8 << 20) // 8 MB.
#include "mixer.h"
#include "mux.h"
#include "quittable_sleeper.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "x264_encoder.h"
#include <assert.h>
#include "pbo_frame_allocator.h"
#include "ref_counted_gl_sync.h"
#include "resampling_queue.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "timecode_renderer.h"
#include "v210_converter.h"
#include "video_encoder.h"
#include "ref_counted_frame.h"
#include "ref_counted_gl_sync.h"
#include "theme.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "video_encoder.h"
#include "ycbcr_interpretation.h"
#include "defs.h"
#include "flags.h"
#include "metrics.h"
-#include "timebase.h"
+#include "shared/timebase.h"
using namespace std;
#include <thread>
#include <vector>
-#include "timebase.h"
+#include "shared/timebase.h"
struct MuxMetrics {
// “written” will usually be equal video + audio + mux overhead,
#include "print_latency.h"
#include "quicksync_encoder_impl.h"
#include "ref_counted_frame.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "x264_encoder.h"
using namespace movit;
#include "audio_encoder.h"
#include "defs.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "print_latency.h"
#include "ref_counted_gl_sync.h"
+++ /dev/null
-#ifndef _TIMEBASE_H
-#define _TIMEBASE_H 1
-
-// Common timebase that allows us to represent one frame exactly in all the
-// relevant frame rates:
-//
-// Timebase: 1/120000
-// Frame at 50fps: 2400/120000
-// Frame at 60fps: 2000/120000
-// Frame at 59.94fps: 2002/120000
-// Frame at 23.976fps: 5005/120000
-//
-// If we also wanted to represent one sample at 48000 Hz, we'd need
-// to go to 300000. Also supporting one sample at 44100 Hz would mean
-// going to 44100000; probably a bit excessive.
-#define TIMEBASE 120000
-
-// Some muxes, like MP4 (or at least avformat's implementation of it),
-// are not too fond of values above 2^31. At timebase 120000, that's only
-// about five hours or so, so we define a coarser timebase that doesn't
-// get 59.94 precisely (so there will be a marginal amount of pts jitter),
-// but can do at least 50 and 60 precisely, and months of streaming.
-#define COARSE_TIMEBASE 300
-
-#endif // !defined(_TIMEBASE_H)
#include "httpd.h"
#include "mux.h"
#include "quicksync_encoder.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "x264_encoder.h"
class RefCountedFrame;
#include "metrics.h"
#include "mux.h"
#include "print_latency.h"
-#include "timebase.h"
+#include "shared/timebase.h"
#include "x264_dynamic.h"
#include "x264_speed_control.h"