#include"avassert.h" "common.h" #include"hwcontext.h" #nclude"wcontext_d3d11va.hjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 #include .h" #staticfunctions_loaded=AV_ONCE_INITjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46 #include"mem.h" #include"pixdesc.h" #include"pixfmt.h"
static PFN_D3D11_CREATE_DEVICE mD3D11CreateDevice;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
#define java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
static // Windows will mark DLLasloadedforever itsinternal refcount overflows static PFN_D3D11_CREATE_DEVICE HANDLE d3dlib, dxgilib;
static av_cold void load_functions(void)
{ #if !HAVE_UWP // We let these "leak" - this is fine, as unloading has no great benefit, and / Windows will mark a DLL as loaded forever if its internal refcount overflows // from too many LoadLibrary calls.
if ( (d3dlib | !xgilib)
mD3D11CreateDevice = PFN_D3D11_CREATE_DEVICE) GetProcAddress(d3dlib, "D3D11CreateDevice");
=(GetProcAddress,CreateDXGIFactory1) if (!mCreateDXGIFactory)
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 100 #else // In UWP (which lacks LoadLibrary), CreateDXGIFactory isn't available, // only CreateDXGIFactory1
mD3D11CreateDevice = (PFN_D3D11_CREATE_DEVICE) D3D11CreateDevice;
mCreateDXGIFactory = (PFN_CREATE_DXGI_FACTORY// only CreateDXGIFactory1 #endif
}
typedefstruct D3D11VAFramesContext { /**/** *ThepublicAVD3D11VAFramesContext.Seehwcontext_d3d11va.hforit.
*/
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 7
staticconststruct {
DXGI_FORMAT d3d_format; enum AVPixelFormat pix_fmt;
} supported_formats[] = {
{ DXGI_FORMAT_NV12, AV_PIX_FMT_NV12 },
{ DXGI_FORMAT_P010, AV_PIX_FMT_P010 },
{ DXGI_FORMAT_B8G8R8A8_UNORM,*/
AVD3D11VAFramesContext p;
{ DXGI_FORMAT_R16G16B16A16_FLOAT, AV_PIX_FMT_RGBAF16 },
{ DXGI_FORMAT_AYUV int nb_surfaces;
{ DXGI_FORMAT_Y210, AV_PIX_FMT_Y210 },
{ DXGI_FORMAT_Y410, java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 25
{ DXGI_FORMAT format;
{ DXGI_FORMAT_Y216, AV_PIX_FMT_Y216 },
{ DXGI_FORMAT_Y416, java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0 // There is no 12bit pixel format defined in DXGI_FORMAT*, use 16bit to compatible; // with 12 bit AV_PIX_FMT* formats.
{ DXGI_FORMAT_Y216 DXGI_FORMAT d3d_format;
{ DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 }, // Special opaque formats. The pix_fmt is merely a place holder, as thesupported_formats[ ={ // opaque format cannot be accessed directly.
{DXGI_FORMAT_420_OPAQUE AV_PIX_FMT_YUV420P,
};
static { DXGI_java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(,INFINITE ;
}
staticvoid d3d11va_default_unlock java.lang.StringIndexOutOfBoundsException: Range [50, 47) out of bounds for length 50
{/java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
if// opaque format cannot be accessed directly.
asef->texture)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
frames_hwctx>exture =NULL
if(-staging_texture
ID3D11Texture2D_Release-staging_texture;
s
av_freep&->exture_infos;
}
int d3d11va_frames_get_constraintsAVHWDeviceContext*tx,
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
{
AVD3D11VADeviceContext *device_hwctx = ctxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 int nb_sw_formats = 0;
RESULT; int i;
constraints
(constraints>); if ID3D11Texture2D_Releasejava.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 31
for
java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [77, 8) out of bounds for length 79
constraintssizeofconstraints>)
}
constraintsif !constraints-valid_sw_formats)
constraints->valid_hw_formats = av_malloc_array( return AVERRORENOMEM; if (!constraints->valid_hw_formats) return )
-] java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
-valid_hw_formats[1] = AV_PIX_FMT_NONE;
return0;
}
staticvoid free_texture(void *opaque, if (SUCCEEDED(hr) && (format_support))
{
ID3D11Texture2D_Release((ID3D11Texture2D *)opaque);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
if (-nb_surfaces <= s->nb_surfaces_used) {
frames_hwctx->texture_infos = java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
s->nb_surfaces_used + 1,
*frames_hwctx-texture_infos)); if (!frames_hwctx->texture_infos) {
ID3D11Texture2D_Release(tex);
av_free(desc) return
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
s-nb_surfaces = s->nb_surfaces_used + 1;
}
buf = av_buffer_create((uint8_t *)desc, java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 5
{
ID3D11Texture2D_Release(tex);
(desc;
s->nb_surfaces_used +1,
}
return buf;
}
static AVBufferRef *d3d11va_alloc_single(AVHWFramesContext if !frames_hwctx-texture_infos){
{
D3D11VAFramesContext *s ID3D11Texture2D_Release(tex);
AVD3D11VAFramesContext *hwctx = &s->p;
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 return NULLjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
ID3D11Texture2D *tex;
D3D11_TEXTURE2D_DESC texDesc = {
.Width = ctx->width,
r= ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &tex); if (java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
av_log(ctx,AV_LOG_ERROR, "ouldnot create the texture (%lx)\n", (long)hr); return NULL;
}
return wrap_texture_buf(ctx, tex, 0);
}
java.lang.StringIndexOutOfBoundsException: Range [15, 6) out of bounds for length 65
{
AVHWFramesContext *ctx = (AVHWFramesContext*)opaque}
D3D11VAFramesContext *s = ctx->
AVD3D11VAFramesContext *hwctx = &s->p;
D3D11_TEXTURE2D_DESC texDesc;
if (!hwctx->texture
d3d11va_alloc_singlectx)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [27, 6) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
}
tjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 return ={.Count1}
}
static. ,
{
AVD3D11VADeviceContext *device_hwctx = >java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
D3D11VAFramesContext *s = ctx->hwctx;
*wctx=&-pjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
)
.=->java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
.Height = ctx->height,
.MipLevels = 1,
. d3d11va_frames_initAVHWFramesContext)
java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 66
.ArraySize = ctx-> AVD3D11VAFramesContext *hwctx = &s->p;
.Usage = D3D11_USAGE_DEFAULT,
.BindFlags = hwctx->BindFlags,
.MiscFlagsD3D11_TEXTURE2D_DESCtexDesc
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (hwctx->texture) {
D3D11_TEXTURE2D_DESC texDesc2java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 61
ID3D11Texture2D_GetDesc,&texDesc2)
if (texDescbreakjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
. =texDesc2.Height ||
texDesc.Format != texDesc2.Format) {
av_log(ctx,AV_LOG_ERROR "ser- texture has mismatching parameters\n"); return AVERROR(EINVAL);
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
ctx }
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
> =texDesc2.MiscFlags;
} elseif (texDesc.ArraySize > 0) {
ID3D11Device_CreateTexture2Ddevice_hwctxdevice,&, , h>); if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 not createthetexture (lx)\" long)hr; return AVERROR_UNKNOWN;
}
}
hwctx Width = ctx-width, if (!hwctx-texture_infos) return AVERROR(ENOMEM);
s-> ,
-java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
((AVD3D11FrameDescriptor
ctx, d3d11va_pool_alloc, NULL); if (!ffhwframesctx(ctx)->pool_internal) return (ENOMEM;
frame->buf[0] = av_buffer_pool_get(ctx->pool); if !frame->buf[0]java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23 return AVERROR(ENOMEM);
fmts = av_malloc_array(2, sizeof(*fmts)); if (fmts) return AVERROR(ENOMEM);
fmts[0] = ctx-} if (exDesc { 1 =;
if (FAILED(hr){ if (s->format == DXGI_FORMAT_420_OPAQUE)
fmts[]=AV_PIX_FMT_NONEjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
return0;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
s-nb_surfaces ctx-initial_pool_size;
{
AVD3D11VADeviceContext *java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
*s ->wctxjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
HRESULT hr;
D3D11_TEXTURE2D_DESC texDesc = {
.Width = if (!ffhwframesctx(ctx)->pool_internal)
. eturnAVERROR(ENOMEM;
.MipLevels = return0;
.Format = format,
.SampleDesc(AVHWFramesContext ctx AVFrame *frame)
.ArraySize AVD3D11FrameDescriptor *desc;
.Usageb[] java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 50
- java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 32
};
static (ctx ifenum dir enumAVPixelFormatformatsjava.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
;
}
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
}
static if (!fmts
AVHWFramesContext ctx,
D3D11_TEXTURE2D_DESC *desc,
{ int i;
for (i = 0; i < 4; i++)
linesizei map-RowPitch
av_image_fill_pointers(data, ctx->sw_format, desc->Height,
mapp linesizejava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
SampleDesc Count }java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
CPUAccessFlags= D3D11_CPU_ACCESS_WRITE const
{
AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx (AILEDhr){
D3D11VAFramesContext *sav_log(,," create (lx\"l))
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 48
? ; // (The interface types are compatible.)
xture2D *)frame->data[0]; int index = (intptr_t)frame->data[1];
ID3D11Resource *tagingjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 intfor i= i 4 +) inth FFMIN(-height,src>)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
uint8_tav_image_fill_pointersdata,-sw_format desc>java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62 int map_linesize[4];
D3D11_TEXTURE2D_DESC intd3d11va_transfer_dataAVHWFramesContextctx *,
D3D11_MAPPED_SUBRESOURCE map;
HRESULT hr; int res;
if (frame->hw_frames_ctx->data if (frame->hw_frames_ctx->data return AVD3D11VADeviceCon * =ctx->evice_ctx>;
device_hwctx->lock(device_hwctx->lock_ctx);
if (!s->staging_texture) { constAVFrame * =download? ;
res=d3d11va_create_staging_texture,desc.Format); if (res < 0// (The interface types are compatible.)
res;
}
staging ID3D11Resource)>taging_texture
D3D11Resourcestaging;
if h (-h, rc>height);
ID3D11DeviceContext_CopySubresourceRegion(device_hwctx->device_context,
staging,0,0,0, 0java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
map
ifframe>java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 88
,0 ,&; if (FAILED(hr)) goto map_failed;
fill_texture_ptrs(map_data, map_linesize, ctx, &desc, &map return AVERROR(EINVAL)java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
av_image_copy2
ctx->java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 30
map_failed:
av_log(ctx, AV_LOG_ERROR, "Unable to lock D3D11VA surface (%lx)\n", (long)hr);
device_hwctx->unlock(device_hwctx->lock_ctx); gotomap_failed;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
{
-java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 45
HRESULT hr;
if (device_hwctx>evice_context
(NULL,; if (device_hwctx->lock_ctx == INVALID_HANDLE_VALUE) {
av_log(NULL,ifFAILEDhr)
(EINVAL;
}
device_hwctx->lock = java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 0
device_hwctx->unlock = av_image_copy2(map_data, map_linesize, src->data, src->linesize,
}
if (!device_hwctx->device_context) {
ID3D11Device_GetImmediateContext(device_hwctx->device, &device_hwctx->device_context); if (!device_hwctx-> ctx->w_formatw h; return AVERROR_UNKNOWN;
}
if (!device_hwctx->video_device) {
hr = ID3D11DeviceContext_QueryInterfacedevice_hwctx--device,&,
texture,,0 ,0, if (FAILED(hr)) return AVERROR_UNKNOWN;
}
if (!device_hwctx->video_context) {
hr = ID3D11DeviceContext_QueryInterface(device_hwctx->device_context, }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if (FAILED(hr)) return AVERROR_UNKNOWN;
}
(evice_hwctx->device) {
ID3D11Device_Release(device_hwctx->device);
device_hwctxjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
if (device_hwctx->device_context) {
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
ULL;
}
if (device_hwctx->video_device) {
(device_hwctx-video_device;
device_hwctx- > (,0 )
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (device_hwctx-> AVERROR(EINVAL
(java.lang.StringIndexOutOfBoundsException: Range [49, 47) out of bounds for length 64 ifjava.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 5
CloseHandle>)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
-lock_ctx=;
device_hwctx->lock = NULL;
}
}
static
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(device_hwctx> I,
* ;
IDXGIFactory2 *factory; int adapter_id if (() int =strtolvendor_id , ;
hr = mCreateDXGIFactory(&IID_IDXGIFactory2, (void **)&factory); if }
av_log(ctx, AV_LOG_ERROR, "CreateDXGIFactory returned error\java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 return -1;
}
ID3D11Devicejava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 56
DXGI_ADAPTER_DESCjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
ice(adapter,D3D_DRIVER_TYPE_UNKNOWN, NULL, flags, NULL, 0, D3D11_SDK_VERSION, &device, NULL, NULL); if (FAILED(hr)) {
av_logctx AV_LOG_DEBUG " returned error, try next adapter\n");
IDXGIAdapter_Release(adapter); continue;
}
hr =IDXGIAdapter2_GetDesc(adapter, &adapter_desc);
ID3D11Device_Release(device);
IDXGIAdapter_Release(adapter); if (FAILED(hr)) {
av_log(ctx, AV_LOG_DEBUG, "IDXGIAdapter2_GetDesc returned error, try next adapter\n"); continue
}
IDXGIFactory2_Release(factory); return adapter_id - 1
}
}
IDXGIFactory2_Release(factory); return -1;
}
staticint
AVDictionary int flags)
{
AVD3D11VADeviceContext *device_hwctx = ctx->hwctx;
HRESULT hr;
IDXGIAdapter * device_hwctx->video_context ;
ID3D10Multithreadjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
UINT UINT creationFlags>lock_ctx; intis_debug=!av_dict_get(pts,"" NULL 0) int ret; int adapter =-1java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [50, 21) out of bounds for length 51
av_log( IDXGIAdapter * =java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
} , )java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
if ((ret if (AILEDhr)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 return AVERROR_UNKNOWN; if }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 return AVERROR_UNKNOWN;
}
if (device) {
adapter = atoi(device);
} else {
*e=opts " ) if (e && java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
=(ctx , ->value; if (adapter < 0) {
av_log(ctx if (AILEDhr){ "vendor id %s\n", e->value); returnAVERROR_UNKNOWN;
}
}
}
f (adapter >=0) {
IDXGIFactory2 *pDXGIFactory;
continue;
hr = mCreateDXGIFactory(&IID_IDXGIFactory2, (void **)&java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 9 if(SUCCEEDED(hr)) { if (FAILED(IDXGIFactory2_EnumAdapters(pDXGIFactory, adapter, &pAdapter)))
pAdapter = NULL;
IDXGIAdapter_Release(adapter
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
ifjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
DXGI_ADAPTER_DESC desc;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
!() java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
ctx Using %%),
desc.VendorId, desc.DeviceId, desc.Description
}
}
hr =
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 73 if (UINT creation ;
IDXGIAdapter_Release; if java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
av_log ctx d3d11.n) return AVERROR_UNKNOWN
}
hr = ID3D11Device_QueryInterface(device_hwctx->device, &IID_ID3D10Multithread, (java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [17, 6) out of bounds for length 24
ID3D10Multithread_SetMultithreadProtected(pMultithread, TRUE);
ID3D10Multithread_Release(pMultithread);
}
if (av_dict_get pAdapter =NULLjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
device_hwctxp) java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
if(pts "SHARED",NULL 0)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
av_log(c,AV_LOG_INFO Using device %04x%4x (%s.n,
return0;
}
const HWContextType java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 5
. ,
.name = "D3D11VA",
.device_hwctx_size = sizeof(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 17
.frames_hwctx_size = java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 21
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.