diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2007-10-26 13:42:55 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2007-10-26 13:42:55 +0400 |
commit | bcd1ddc842285db3958c138426f26585beba27e7 (patch) | |
tree | 4879afd1ece4fe777929f62a295d2ec91cc36140 /src/filters/transform/mpcvideodec/stdafx.cpp | |
parent | 263c22f9c1c65c73ee161e7f5b27db483b2da6c3 (diff) |
Support for AMV added, crop to rcTarget / rcSource, DXVA2 logs added
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@326 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpcvideodec/stdafx.cpp')
-rw-r--r-- | src/filters/transform/mpcvideodec/stdafx.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/filters/transform/mpcvideodec/stdafx.cpp b/src/filters/transform/mpcvideodec/stdafx.cpp index bdacb59f9..99e3fdb8e 100644 --- a/src/filters/transform/mpcvideodec/stdafx.cpp +++ b/src/filters/transform/mpcvideodec/stdafx.cpp @@ -25,5 +25,23 @@ #include "stdafx.h"
-// TODO: reference any additional headers you need in STDAFX.H
-// and not in this file
+
+#define LOG_FILE _T("dxva.log")
+
+void LOG(LPCTSTR fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ if(TCHAR* buff = new TCHAR[_vsctprintf(fmt, args) + 1])
+ {
+ _vstprintf(buff, fmt, args);
+ if(FILE* f = _tfopen(LOG_FILE, _T("at")))
+ {
+ fseek(f, 0, 2);
+ _ftprintf(f, _T("%s\n"), buff);
+ fclose(f);
+ }
+ delete [] buff;
+ }
+ va_end(args);
+}
\ No newline at end of file |