X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fvideo_stream.h;h=1b3358735344adbc009ccccf2eb5ca710ba60f95;hb=fcae09355c1a00a68015b3d727339aebd2e52aa4;hp=03f82d6fbb93d8ce96e12b1cdc5167108dec3971;hpb=e20bf0f86703779f11d575f44173ff73544e1c2d;p=nageru diff --git a/futatabi/video_stream.h b/futatabi/video_stream.h index 03f82d6..1b33587 100644 --- a/futatabi/video_stream.h +++ b/futatabi/video_stream.h @@ -111,7 +111,15 @@ private: int64_t output_pts; enum Type { ORIGINAL, FADED, INTERPOLATED, FADED_INTERPOLATED, REFRESH } type; - FrameOnDisk frame1; // The only frame for original frames. + + // For original frames only. Made move-only so we know explicitly + // we don't copy these ~200 kB files around inadvertedly. + // + // TODO: Consider using vector instead, so we save one copy. + std::unique_ptr encoded_jpeg; + + // For everything except original frames. + FrameOnDisk frame1; // For fades only (including fades against interpolated frames). FrameOnDisk secondary_frame;