X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FVideo.hh;h=5f56f9e1d33e103ac0bf912b7f6584d0e45b516d;hp=0dca8bbfeb5b36a79ead18a0760a89964c55a19c;hb=a4debfe4a5f5d339410788971b698ba00cb7f09c;hpb=25aefe01ef7dbdb603c51411e04b0d6a6107684f diff --git a/src/Moof/Video.hh b/src/Moof/Video.hh index 0dca8bb..5f56f9e 100644 --- a/src/Moof/Video.hh +++ b/src/Moof/Video.hh @@ -35,6 +35,8 @@ #include +#include + namespace Mf { @@ -126,11 +128,19 @@ public: void makeActive(); void swap(); + int getWidth() const; + int getHeight() const; + - struct Exception : public std::runtime_error + struct Exception : public Mf::Exception { - explicit Exception(const std::string& what_arg) : - std::runtime_error(what_arg) {} + explicit Exception(unsigned error) : + Mf::Exception(error) {} + + void raise() + { + throw *this; + } }; };