资源简介
利用ffmpeg 调用dxdva 实现硬件加速

代码片段和文件信息
/*****************************************************************************
* dxva2_api.c: Video Acceleration helpers
*****************************************************************************
* Copyright (C) 2012 tuyuandong
*
* Authors: tuyuandong
*
* This file is part of FFmpeg.
*****************************************************************************/
#if _WIN32_WINNT < 0x600
/* dxva2 needs Vista\win7\win8 support */
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x600
#endif
#include
#define DXVA2API_USE_BITFIELDS
#define COBJMACROS
#include
#include
#include
#include
#include
#include
#include
#include
#include “va.h“
#include /* must be last included to not redefine existing GUIDs */
#include
/* dxva2api.h GUIDs: http://msdn.microsoft.com/en-us/library/windows/desktop/ms697067(v=vs100).aspx
* assume that they are declared in dxva2api.h */
#define MS_GUID(name l w1 w2 b1 b2 b3 b4 b5 b6 b7 b8)
#ifdef __MINGW32__
#include <_mingw.h>
#if !defined(__MINGW64_VERSION_MAJOR)
#undef MS_GUID
#define MS_GUID DEFINE_GUID /* dxva2api.h fails to declare those redefine as static */
#define DXVA2_E_NEW_VIDEO_DEVICE MAKE_HRESULT(1 4 4097)
#else
#include
#endif
#endif /* __MINGW32__ */
MS_GUID(IID_IDirectXVideoDecoderService 0xfc51a551 0xd5e7 0x11d9 0xaf0x550x000x050x4e0x430xff0x02);
MS_GUID(IID_IDirectXVideoAccelerationService 0xfc51a550 0xd5e7 0x11d9 0xaf0x550x000x050x4e0x430xff0x02);
MS_GUID (DXVA_NoEncrypt 0x1b81bed0 0xa0c7 0x11d3 0xb9 0x84 0x00 0xc0 0x4f 0x2e 0x73 0xc5);
/* Codec capabilities GUID sorted by codec */
MS_GUID (DXVA2_ModeMPEG2_MoComp 0xe6a9f44b 0x61b0 0x4563 0x9e 0xa4 0x63 0xd2 0xa3 0xc6 0xfe 0x66);
MS_GUID (DXVA2_ModeMPEG2_IDCT 0xbf22ad00 0x03ea 0x4690 0x80 0x77 0x47 0x33 0x46 0x20 0x9b 0x7e);
MS_GUID (DXVA2_ModeMPEG2_VLD 0xee27417f 0x5e28 0x4e65 0xbe 0xea 0x1d 0x26 0xb5 0x08 0xad 0xc9);
DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD 0x86695f12 0x340e 0x4f04 0x9f 0xd3 0x92 0x53 0xdd 0x32 0x74 0x60);
DEFINE_GUID(DXVA2_ModeMPEG1_VLD 0x6f3ec719 0x3735 0x42cc 0x80 0x63 0x65 0xcc 0x3c 0xb3 0x66 0x16);
MS_GUID (DXVA2_ModeH264_A 0x1b81be64 0xa0c7 0x11d3 0xb9 0x84 0x00 0xc0 0x4f 0x2e 0x73 0xc5);
MS_GUID (DXVA2_ModeH264_B 0x1b81be65 0xa0c7 0x11d3 0xb9 0x84 0x00 0xc0 0x4f 0x2e 0x73 0xc5);
MS_GUID (DXVA2_ModeH264_C 0x1b81be66 0xa0c7 0x11d3 0xb9 0x84 0x00 0xc0 0x4f 0x2e 0x73 0xc5);
MS_GUID (DXVA2_ModeH264_D 0x1b81be67 0xa0c7 0x11d3
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-03-21 15:14 ffmpeg dxva2 的实现\
目录 0 2013-03-21 15:14 ffmpeg dxva2 的实现\bin\
文件 6941198 2012-12-15 15:31 ffmpeg dxva2 的实现\bin\avcodec-53.dll
文件 1136654 2012-12-15 15:31 ffmpeg dxva2 的实现\bin\avformat-53.dll
文件 158734 2012-12-15 15:31 ffmpeg dxva2 的实现\bin\avutil-51.dll
文件 25614 2012-12-15 15:31 ffmpeg dxva2 的实现\bin\OnlyVideo.exe
文件 41186 2013-03-21 14:12 ffmpeg dxva2 的实现\dxva2api.c
文件 18984 2012-11-10 13:40 ffmpeg dxva2 的实现\dxva2api.h
文件 1815 2012-12-04 12:18 ffmpeg dxva2 的实现\make_dxva
文件 7631 2013-03-21 14:12 ffmpeg dxva2 的实现\OnlyVideo.c
文件 4982 2013-03-21 14:10 ffmpeg dxva2 的实现\va.c
文件 1784 2013-03-21 14:10 ffmpeg dxva2 的实现\va.h
相关资源
- nginx-rtmp-win32-master.rar
- FFMEPG实现h264解码
- ffmpegh265rtmp.zip
- ffserver(windows下编译32位)
- qt_ffmpeg_mp4_export_and_import.zip
- 最简单的基于FFmpeg的推流器 1.2
- 简单的ffmpeg推流demo
- FFmpeg和SDL,读内存中的视频流,进行
- ffmpeg之pcm转AAC
- ffmpeg-2.8.14.tar.gz
- 利用ffmpeg的filter混音
- vs2010 ffmpeg实时解码h264码流
- ffmpeg 音视频转码代码
- windows上自己编译的最新的ffmpeg库
- Qt基于FFmpeg播放本地 H.264H264文件
- 从ffmpeg中抽取的h264解码器,可用于
- ffplay源代码
- 最简单的基于FFmpeg的推流器以推送R
- DVD文件VOB的生成代码
- FFmpeg 采集摄像头输出rtmp直播流媒体,
- 基于ffmpeg将avi视频转换为mp4视频
- (补充)修改output-example,将H.264AAC帧
- ffmpeg-win64位库
- X264实时编码,FFmpeg实时解码
- FFmpeg API读取视音频文件信息的一个工
- 使用FFmpeg采集摄像头图像和麦克风音
- opencv_ffmpeg249.dll
- FFmpeg-3.1 windows vs2013编译动态库静态库
- 基于FFmpeg4.0.2的AAC编码器
- FFmpeg获取网络摄像头数据解码
评论
共有 条评论