diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/i965_jpeg_encode_test.cpp | 10 | ||||
-rw-r--r-- | test/i965_streamable.h | 9 |
2 files changed, 9 insertions, 10 deletions
diff --git a/test/i965_jpeg_encode_test.cpp b/test/i965_jpeg_encode_test.cpp index 80ca1fd..a196c20 100644 --- a/test/i965_jpeg_encode_test.cpp +++ b/test/i965_jpeg_encode_test.cpp @@ -27,9 +27,7 @@ #include <algorithm> #include <cstring> -#include <fstream> #include <memory> -#include <sstream> #include <tuple> namespace JPEG { @@ -128,14 +126,6 @@ protected: virtual void repr(std::ostream& os) const = 0; }; -template <typename T> -const std::string toString(const T& t) -{ - std::ostringstream os; - os << t; - return os.str(); -} - const TestInput::Shared NV12toI420(const TestInput::SharedConst& nv12) { TestInput::Shared i420( diff --git a/test/i965_streamable.h b/test/i965_streamable.h index 1c2f217..aab3111 100644 --- a/test/i965_streamable.h +++ b/test/i965_streamable.h @@ -28,6 +28,7 @@ #include <array> #include <iostream> #include <iomanip> +#include <sstream> #include <va/va.h> namespace std { @@ -56,6 +57,14 @@ namespace std { } }// namespace std +template <typename T> +const std::string toString(const T& t) +{ + std::ostringstream os; + os << t; + return os.str(); +} + inline std::ostream& operator<<(std::ostream& os, const VAEncPictureParameterBufferJPEG& b) { |