Browse Source

Drop Windows XP support remnants

tags/n4.0
Diego Biurrun 7 years ago
parent
commit
8f144d9e3d
6 changed files with 6 additions and 32 deletions
  1. +1
    -5
      libavcodec/dxva2_h264.c
  2. +1
    -5
      libavcodec/dxva2_hevc.c
  3. +2
    -5
      libavcodec/dxva2_mpeg2.c
  4. +1
    -5
      libavcodec/dxva2_vc1.c
  5. +1
    -8
      libavutil/hwcontext_d3d11va.c
  6. +0
    -4
      libavutil/hwcontext_dxva2.c

+ 1
- 5
libavcodec/dxva2_h264.c View File

@@ -20,16 +20,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include "dxva2_internal.h"
#include "h264dec.h" #include "h264dec.h"
#include "h264data.h" #include "h264data.h"
#include "h264_ps.h" #include "h264_ps.h"
#include "mpegutils.h" #include "mpegutils.h"


// The headers above may include w32threads.h, which uses the original
// _WIN32_WINNT define, while dxva2_internal.h redefines it to target a
// potentially newer version.
#include "dxva2_internal.h"

struct dxva2_picture_context { struct dxva2_picture_context {
DXVA_PicParams_H264 pp; DXVA_PicParams_H264 pp;
DXVA_Qmatrix_H264 qm; DXVA_Qmatrix_H264 qm;


+ 1
- 5
libavcodec/dxva2_hevc.c View File

@@ -22,14 +22,10 @@


#include "libavutil/avassert.h" #include "libavutil/avassert.h"


#include "dxva2_internal.h"
#include "hevc_data.h" #include "hevc_data.h"
#include "hevcdec.h" #include "hevcdec.h"


// The headers above may include w32threads.h, which uses the original
// _WIN32_WINNT define, while dxva2_internal.h redefines it to target a
// potentially newer version.
#include "dxva2_internal.h"

#define MAX_SLICES 256 #define MAX_SLICES 256


struct hevc_dxva2_picture_context { struct hevc_dxva2_picture_context {


+ 2
- 5
libavcodec/dxva2_mpeg2.c View File

@@ -21,13 +21,10 @@
*/ */


#include "libavutil/log.h" #include "libavutil/log.h"
#include "mpegutils.h"
#include "mpegvideo.h"


// The headers above may include w32threads.h, which uses the original
// _WIN32_WINNT define, while dxva2_internal.h redefines it to target a
// potentially newer version.
#include "dxva2_internal.h" #include "dxva2_internal.h"
#include "mpegutils.h"
#include "mpegvideo.h"


#define MAX_SLICES 1024 #define MAX_SLICES 1024
struct dxva2_picture_context { struct dxva2_picture_context {


+ 1
- 5
libavcodec/dxva2_vc1.c View File

@@ -20,15 +20,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */


#include "dxva2_internal.h"
#include "mpegutils.h" #include "mpegutils.h"
#include "vc1.h" #include "vc1.h"
#include "vc1data.h" #include "vc1data.h"


// The headers above may include w32threads.h, which uses the original
// _WIN32_WINNT define, while dxva2_internal.h redefines it to target a
// potentially newer version.
#include "dxva2_internal.h"

struct dxva2_picture_context { struct dxva2_picture_context {
DXVA_PictureParameters pp; DXVA_PictureParameters pp;
DXVA_SliceInfo si; DXVA_SliceInfo si;


+ 1
- 8
libavutil/hwcontext_d3d11va.c View File

@@ -20,14 +20,6 @@


#include <windows.h> #include <windows.h>


// Include thread.h before redefining _WIN32_WINNT, to get
// the right implementation for AVOnce
#include "thread.h"

#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif
#define COBJMACROS #define COBJMACROS


#include <initguid.h> #include <initguid.h>
@@ -46,6 +38,7 @@
#include "imgutils.h" #include "imgutils.h"
#include "pixdesc.h" #include "pixdesc.h"
#include "pixfmt.h" #include "pixfmt.h"
#include "thread.h"


typedef HRESULT(WINAPI *PFN_CREATE_DXGI_FACTORY)(REFIID riid, void **ppFactory); typedef HRESULT(WINAPI *PFN_CREATE_DXGI_FACTORY)(REFIID riid, void **ppFactory);




+ 0
- 4
libavutil/hwcontext_dxva2.c View File

@@ -18,10 +18,6 @@


#include <windows.h> #include <windows.h>


#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif
#define DXVA2API_USE_BITFIELDS #define DXVA2API_USE_BITFIELDS
#define COBJMACROS #define COBJMACROS




Loading…
Cancel
Save