X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fframe_on_disk.h;h=7807c52b4a69cdb2a08819bb10636f9e59bdc44e;hb=94a228f7473325130704e96c82937b690703615b;hp=2ac86fca697291f2d7d22ff2c92985aef79a618d;hpb=7833c9657adc431872bee7ae739c88e54518bd9d;p=nageru diff --git a/futatabi/frame_on_disk.h b/futatabi/frame_on_disk.h index 2ac86fc..7807c52 100644 --- a/futatabi/frame_on_disk.h +++ b/futatabi/frame_on_disk.h @@ -20,6 +20,14 @@ struct FrameOnDisk { extern std::vector frames[MAX_STREAMS]; // Under frame_mu. extern std::vector frame_filenames; // Under frame_mu. +static bool inline operator==(const FrameOnDisk &a, const FrameOnDisk &b) +{ + return a.pts == b.pts && + a.offset == b.offset && + a.filename_idx == b.filename_idx && + a.size == b.size; +} + // A helper class to read frames from disk. It caches the file descriptor // so that the kernel has a better chance of doing readahead when it sees // the sequential reads. (For this reason, each display has a private