X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=stream.h;h=057a48cbe08e516be02f756ce4aeac3701672ee2;hb=6544fa0ec3f3a501bcb89ea977756911bd7f3ebd;hp=c98feb46e3bb2e09f5913c1ea31a018e02680075;hpb=d0aad5446b9896e3ba15c8a50c345e185dc1631f;p=cubemap diff --git a/stream.h b/stream.h index c98feb4..057a48c 100644 --- a/stream.h +++ b/stream.h @@ -24,7 +24,7 @@ struct Stream { // Must be in sync with StreamConfig::Encoding. enum Encoding { STREAM_ENCODING_RAW = 0, STREAM_ENCODING_METACUBE }; - Stream(const std::string &stream_id, size_t backlog_size, size_t prebuffering_bytes, Encoding encoding); + Stream(const std::string &stream_id, size_t backlog_size, size_t prebuffering_bytes, Encoding encoding, Encoding src_encoding); ~Stream(); // Serialization/deserialization. @@ -51,6 +51,9 @@ struct Stream { // be Metacube, for reflecting to another Cubemap instance). Encoding encoding; + // What encoding we expect the incoming data to be in (usually Metacube). + Encoding src_encoding; + // The stream data itself, stored in a circular buffer. // // We store our data in a file, so that we can send the data to the