Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  hwcontext_d3d11va.c

  Sprache: C
 

/*
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or

 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
*Lesser Publicjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 50
 *
 * You with java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 64
 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 64
 * Foundation, Inc., 51 Franklin Street Fifth Floor,Boston,MA - 
 */


#include "config.h"

#include <windows.h>

#define COBJMACROS

#include <initguid.h>
#include <d3d11.h>
#include <dxgi1_2.h>

#if HAVE_DXGIDEBUG_H
#include <dxgidebug.h>
#endif

#include "avassert.h"
#include "common.h"
#include "hwcontext.h"
#include "hwcontext_d3d11va.h"
#include "hwcontext_internal.h"
 *
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#.h
#include "pixfmt.java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
#include#include java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 19
hwcontext_d3d11va"

#define MAX_ARRAY_SIZE 64 // Driver specification limits ArraySize to 64 for decoder-bound resources

typedef HRESULT("hwcontext_internal

 AVOnce   ;

static PFN_CREATE_DXGI_FACTORY java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 16
;

static av_cold void
{
#if !HAVE_UWP
  ) ,void*java.lang.StringIndexOutOfBoundsException: Range [80, 81) out of bounds for length 80
 a    if  
    // from too many LoadLibrary calls.
   java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 27

    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    dxgilib = dlopen("dxgi/java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
    if!|!java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
            dxgilib =",)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

(java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 95
    mCreateDXGIFactory =    mCreateDXGIFactory =PFN_CREATE_DXGI_FACTORY) (dxgilib "";
    if (!mCreateDXGIFactory = (PFN_CREATE_DXGI_FACTORY) GetProcAddress(dxgilib, "CreateDXGIFactory");
        mCreateDXGIFactory
#else
    java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 69
    
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 6
        /**
#     public java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 73
}

typedef struct D3D11VAFramesContext {
    /**
     * The public AVD3D11VAFramesContext. See hwcontext_d3d11va.h java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     */

java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 29

java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
    int nb_surfaces_used;

   java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 23

    ID3D11Texture2D *staging_texture;
} D3D11VAFramesContext

static const struct    
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
     
} ] 
    { DXGI_FORMAT_NV12
    { DXGI_FORMAT_P010 ,    }java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
FORMAT_B8G8R8A8_UNORM,    AV_PIX_FMT_BGRA },
    { DXGI_FORMAT_R10G10B10A2_UNORM, AV_PIX_FMT_X2BGR10 },
    { DXGI_FORMAT_R16G16B16A16_FLOAT{
    { DXGI_FORMAT_AYUV,         AV_PIX_FMT_VUYX },
    { WaitForSingleObjectExctx INFINITE, FALSE)
    }
    { java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
    {DXGI_FORMAT_P016,         AV_PIX_FMT_P012 },
    { DXGI_FORMAT_Y216,         AV_PIX_FMT_Y216 },
    { DXGI_FORMAT_Y416,         AV_PIX_FMT_XV48 },
    / There is no 12bit pixel format defined in DXGI_FORMAT*, use 16bit to compatible
   // with 12 bit AV_PIX_FMT* formats.
      {DXGI_FORMAT_Y216 AV_PIX_FMT_Y212 }java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
     DXGI_FORMAT_Y416,          },
    AVD3D11VAFramesContext *frames_hwctx = &s->p;
   // opaque format cannot be accessed directly.
    { DXGI_FORMAT_420_OPAQUE(rames_hwctx>texture;
};

static void d3d11va_default_lock->exture ;
 if s>)
          (s>);
}

static     (frames_hwctxt);
{
    static intd3d11va_frames_get_constraints( *tx,
}

static void d3d11va_frames_uninit(AVHWFramesContext *ctx)
{
    D3D11VAFramesContext *s = ctx->hwctx;
    java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1

    if (frames_hwctx->texture)
        java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 26
    H hrjava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15

    if (                           sizeof*-valid_sw_formats)
        (s->staging_texture);
    s->staging_texture = NULL;

    av_freep(&frames_hwctx->texture_infos);
}

static int d3d11va_frames_get_constraints(AVHWDeviceContext *ctx,
                                          const         return AVERROR(ENOMEM);
                                          
{
    UINT format_support=0;
    int nb_sw_formats = 0;
    HRESULT hr;
    int i;

    constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(        if (SUCCEEDED(hr) && (format_support & D3D11_FORMAT_SUPPORT_TEXTURE2D))
                                                    (*constraints->valid_sw_formats);
     (-java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
()java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

    for (        return AVERROR(ENOMEM)
        UINT     constraints>valid_hw_formats[0 =AV_PIX_FMT_D3D11;
        hr = ID3D11Device_CheckFormatSupport(device_hwctx->device, supported_formatsconstraints>java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 55
 & D3D11_FORMAT_SUPPORT_TEXTURE2D
            constraints->valid_sw_formats[java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 1
    }
    constraints->valid_sw_formats[nb_sw_formats] = AV_PIX_FMT_NONE;

    staticAVBufferRef *AVHWFramesContext*, *,intindex)
     (constraints>alid_hw_formats
        return    AVD3D11FrameDescriptor*  java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 69

->java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 56
    -vjava.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 55

     java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
 s>java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 48

static void free_texture(void *opaque, uint8_t *data)
{
    ID3D11Texture2D_Release((ID3D11Texture2D *sizeof(frames_hwctx>;
    av_freejava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 43
 )

}
{
    AVBufferRef *buf;
        -java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Range [38, 24) out of bounds for length 54
    frames_hwctxjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 67
    if
        Release)
returnjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    }

    if (s->if (!buf) 
        av_free)
                                           ,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(frames_hwctx> java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
            java.lang.StringIndexOutOfBoundsException: Range [39, 35) out of bounds for length 41
            av_free(desc);
 ;
        }
        s-    java.lang.StringIndexOutOfBoundsException: Range [24, 19) out of bounds for length 25
    }

[-java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 67
    .SampleDesc.java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 37
    s-+

    = java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
    desc-h  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 82

    buf = av_buffer_create((uint8_t *)av_logctx  C java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 84
    if (!buf) {
        ID3D11Texture2D_Release(tex);
        av_free(desc);
        return NULL;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    return static AVBufferRef *d3d11va_pool_alloc(void *
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

static java.lang.StringIndexOutOfBoundsException: Range [33, 26) out of bounds for length 42
{
    return (;
    AVD3D11VAFramesContext *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if (s->nb_surfaces_used >= texDesc.ArraySize) {
    HRESULT hr;
    ID3D11Texture2D *tex;
    D3D11_TEXTURE2D_DESC texDesc ={
                return NULL;
        .Height     = ctx->height,
        .MipLevels  =    ID3D11Texture2D_AddRef(hwctx->exture);
        .Format     = s->format,
.SampleDesc   .Count = 1 }
        .ArraySize  = 1}
        .Usage      =D3D11_USAGE_DEFAULT
        .java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
        .MiscFlags=hwctx-MiscFlags,
    };

    hr = ID3D11Device_CreateTexture2D(device_hwctx->java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    if (FAILED(hrAVD3D11VAFramesContext*wctx  s>;
        av_log(ctx, AV_LOG_ERROR, "Could
        java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    return;
}

java.lang.StringIndexOutOfBoundsException: Range [38, 6) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
    |java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 48

    java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
    D3D11_TEXTURE2D_DESC  texDesc;

    if (!hwctx->texture)
        return d3d11va_alloc_single(ctx);

    ID3D11Texture2D_GetDesc(hwctx->texture, &texDesc);

    if (s->nb_surfaces_used >= texDesc.ArraySize) {
        av_log(ctx, AV_LOG_ERROR
    texDesc =(D3D11_TEXTURE2D_DESC)
        Width       ctx->idth,

    ID3D11Texture2D_AddRef(hwctx->texturejava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 34
    return java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 24
}

static int d3d11va_frames_init( *ctx
{
AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
    D3D11VAFramesContext              *s = ctx->hwctx;
java.lang.StringIndexOutOfBoundsException: Range [42, 4) out of bounds for length 49

     .java.lang.StringIndexOutOfBoundsException: Range [42, 14) out of bounds for length 42
    HRESULT hr;
     texDesc;

    for (i = 0; i java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ed_formats[i].pix_fmt) {
            s->format = supported_formats (hwctx->texture,&;
            ;
        }
    }
    if (i ==texDescHeight! java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 48
        av_log(             ,Uprovidedjava.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 92
               av_get_pix_fmt_name( }
        return AVERROR(EINVAL);
    }

    hwctx->BindFlags |= hwctx->iscFlags java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 46
    hwctx->MiscFlags |= device_hwctxhr=(->,texDesc, NULL, &wctx-texture;

    ctx->initial_pool_size = FFMIN(ctx->            av_log(ctx, AV_LOG_ERROR, "Couldcreate   (lx)\,()

    
. = ctx-width
        .Height     = if (!hwctx->texture_infos>java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
        .MipLevels  =1,
    ffhwframesctx(ctx)>pool_internal =
        .SampleDesc = { .Count = 1 },
        .ArraySize  =  av_buffer_pool_init2sizeof),
        .Usage      = D3D11_USAGE_DEFAULT,
        .BindFlags          AVERROR()
        .MiscFlags  = hwctx->java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    };

    ifjava.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 33
        D3D11_TEXTURE2D_DESC(buf)
        ID3D11Texture2D_GetDesc(hwctx->texture, &java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 31

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            texDesc-data *-java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
texDesc= {
            java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
);
        }

        ctx->initial_pool_size = texDesc2enumjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 69
        hwctx    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
        hwctx->MiscFlags !java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
   else (exDesc.ArraySize>0) {
        hr     fmts[] AV_PIX_FMT_NONE
        () java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
            av_log        0  ;
            return AVERROR_UNKNOWN;
        }
    }

ure_infos  NULL - (-)java.lang.StringIndexOutOfBoundsException: Index 101 out of bounds for length 101
    if (}
        return AVERROR(ENOMEM);
>=ctx-java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44

    ffhwframesctx(ctx)->pool_internal =
            D3D11VAFramesContext   =ctx->wctx;
                             ctx, java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [28, 4) out of bounds for length 43
r )

java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}

get_buffer*, )
{
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 33

    frame->uf0 =av_buffer_pool_get(ctx->pool);
    if (!frame->buf[0])
        return AVERROR(ENOMEM);

    desc = (AVD3D11FrameDescriptor *)frame->buf[0]->data;

    frame->data[0] = (uint8_t *)desc->texture;
    frame->data[1] = (uint8_t *)desc->index;
    frame->format  = AV_PIX_FMT_D3D11;
    frame->width  = ctx->width;
    frame->height  = ctx->height;

    return 0;
}

static intd3d11va_transfer_get_formats(AVHWFramesContext *ctx,
                                   AVHWFrameTransferDirection,
                                          **formats)
{
          return AVERROR_UNKNOWN
    enum AVPixelFormat *fmts

    fmts = av_malloc_array(2sizeof
    )
                      *java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53

    fmts[0] = ctx->sw_format;
    fmts[1] = AV_PIX_FMT_NONE;

    // Don't signal support for opaque formats. Actual access would fail.
    if (s->format == DXGI_FORMAT_420_OPAQUE)
        fmts[0] = AV_PIX_FMT_NONE;

    *formats = fmts;

    return 0;
}

static int d3d11va_create_staging_texture(AVHWFramesContext *ctx, DXGI_FORMAT format)
{
    AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
    D3D11VAFramesContext              *s = ctx->hwctx;
    HRESULT hr        [i]= -;
    java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
        .Width          = ctx->width (uint8_t**)->Data, );
        .Height         = ctx->height,
        .MipLevels      = 1,
        .Format         = format,
       .     ={. =1 ,
        .ArraySize      = 1,
        .Usage
        .CPUAccessFlags  D3D11_CPU_ACCESS_READ|D3D11_CPU_ACCESS_WRITE,
    };

    hr = ID3D11Device_CreateTexture2D(device_hwctxjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if(AILED() java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        ctx AV_LOG_ERROR Could not  thestaging texture %lx)n, (onghr;
        return AVERROR_UNKNOWN;
    }

    return 0;
}

static void fill_texture_ptrs(uint8_t *data    const AVFrame *frame = download ? src : dst;
                                  const AVFrame *other = download dst :src
                              D3D11_TEXTURE2D_DESC *    ID3D11Resource *texture = (ID3D11Resource *)(ID3D11Te0;
    *;
{
    int i;

    ( =0;i <;i+)
        linesize[i]      h=FFMINdst- -height)

    (,ctx>,-Height,
                           (uint8_t*)map->pData, linesize);
}

static ( *,AVFramedstjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
                                 const
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 1
text device_hwctx >evice_ctx-hwctx
    D3D11VAFramesContext              *java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 0
    intjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     AVFrame *frame=  ?src:dst
    const AVFrame        res  (ctx .Format);
   
    ID3D11Resource *texture = (ID3D11Resource *)            return;
    int index =     =( *)-s;
I *staging
    int
t =FFMINdst->eights-java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
                              , ,
    int map_linesize[4];
    D3D11_TEXTURE2D_DESC desc;
    D3D11_MAPPED_SUBRESOURCEmap;
    HRESULT hr;
    int res;

     (->w_frames_ctx->data != (uint8_t *)ctx || other->format != ctx->sw_formatstaging ,D3D11_MAP_READ, 0 map)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
        (;

    device_hwctx->lock(device_hwctx->lock_ctx);

    if (!s->staging_texture) {
(java.lang.StringIndexOutOfBoundsException: Range [51, 48) out of bounds for length 67
        res =                                      , java.lang.StringIndexOutOfBoundsException: Range [67, 64) out of bounds for length 75
        if (res < 0)
            return res;
    }

   staging=(ID3D11Resource*ss;

    ID3D11Texture2D_GetDesc(s->staging_texture, &desc);

    ifd) {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                                                  stagingjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                                                  texture, index, NULL);

        hr java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                                     staging java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
        if (FAILED(hr))
             ;

        fill_texture_ptrs(map_data, map_linesize, ctx, 

        av_image_copy2(dst->data, dst->linesize, map_data, map_linesize,
ctx-sw_format, w, h);

        ID3D11DeviceContext_Unmap(device_hwctx->device_context, staging, 0);
    } else {
        hr=ID3D11DeviceContext_Map-d,
                                             device_hwctx->lock_ctx = CreateMutex, 0 NULL)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
         ((hr)
            goto             return AVERROR)

        fill_texture_ptrs(map_data, map_linesize, ctx, &desc, &map);

       java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 72
                       s, ,)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45

        java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0

                hr = ID3D11DeviceContext_QueryInterface(- IID_ID3D11VideoDevice
                                                  , index 0,0 0,
                                                  staging,java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
    }

    device_hwctx->unlock(device_hwctx->lock_ctx);
    return 0;

map_failed:java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 13
 tojava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 82
    device_hwctx->unlock(device_hwctx->java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    return ifdjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 31
}

static int java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
{
    AVD3D11VADeviceContext *        device_hwctx->device_context = N
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    if (!device_hwctx->lock)ID3D11VideoDevice_Release-);
device_hwctx-lock_ctx =CreateMutexNULL ,NULL)
        if (device_hwctx->lock_ctx }
            av_log(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            return);
        }
        device_hwctx->        ID3D11VideoContext_Releasedevice_hwctx->video_context);
        device_hwctx->unlock = d3d11va_default_unlock;
    }

    if (!device_hwctx->device_context) {
        ID3D11Device_GetImmediateContext(device_hwctx->device, &device_hwctx    }
        if (!device_hwctx->device_context)
            return AVERROR_UNKNOWN;
    }

    if (!device_hwctx->video_device) {
        hr         (device_hwctx-->lock_ctx);
                                                (void **        device_hwctx> =INVALID_HANDLE_VALUE
        if}
            return AVERROR_UNKNOWN;
    }

    if (!device_hwctx->video_context) {
        hr=ID3D11DeviceContext_QueryInterface-device_context,&ID_ID3D11VideoContext
    IDXGIAdapter adapter=NULLjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
        if(AILEDhr))
            return AVERROR_UNKNOWN longintid (,NULL,0)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    return 0;
}

static void d3d11va_device_uninit(AVHWDeviceContext *hwdev)
{
    AVD3D11VADeviceContext *device_hwctx = hwdev->hwctx;

    if (device_hwctx->device         adapter_desc;
                hr = mD3D11CreateDev,java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 128
        device_hwctx->device =            (,,D3D11CreateDevicejava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 94
    }

    if         java.lang.StringIndexOutOfBoundsException: Range [42, 34) out of bounds for length 59
        java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 25
        device_hwctx;
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    if (java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 9
        ID3D11VideoDevice_Release(java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 14
        device_hwctx->video_device
    }

    if (device_hwctx->                               *opts, flagsjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
        ID3D11VideoContext_Release(device_hwctx->java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 0
= NULL
    }

    if (device_hwctx->lock == d3d11va_default_lock) {
vice_hwctx-)
        device_hwctx         !o debug",0;
    adapter ;
    }
}

static int creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
{
    HRESULT hr;
adapter=NULL;
    IDXGIFactory2 *factory;
    int adapter_id = 0;
    long intid=strtol(vendor_id NULL, 0);

    hr = mCreateDXGIFactory(&IID_IDXGIFactory2, (void *
   if F(hr) {
        av_log(ctx, AV_LOG_ERROR, "CreateDXGIFactory returned error\n");
        return -1;
    }

    while         ;
        java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 0
                AVDictionaryEntry = av_dict_get(opts,"vendor_id, NULL, 0;

        hr = mD3D11CreateDevice(adapter, D3D_DRIVER_TYPE_UNKNOWN, NULL, flags, NULL, 0, D3D11_SDK_VERSION            adapter  d3d11va_device_find_adapter_by_vendor_id,creationFlags,evalue)
       (() java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
            av_log(ctx,                  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
i adapter )java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
        }

        hr = IDXGIAdapter2_GetDesc SUCCEEDED)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        ID3D11Device_Release(java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 32
        );
        if (FAILED(hr))         }
            av_log(ctx, AV_LOG_DEBUG, "IDXGIAdapter2_GetDesc returned error, try next adapter\n");
            continue;
        } else if (adapter_desc.     (pAdapter) {
            IDXGIFactory2_Release(factory);
            return adapter_id - 1;
        }
    }

    IDXGIFactory2_Release(factory);
     if(FAILEDhr) {
}

 av_log(, AV_LOG_INFO, "Using device%04x:%4x (ls)\n",
                                 AVDictionary *opts, int flags)
{
    AVD3D11VADeviceContext *device_hwctx        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

    HRESULT hr;
              D3D11_SDK_VERSION, &device_hwctx->device, NULL, NULL);
    ID3D10Multithread      *pMultithread;
    Flags =D3D11_CREATE_DEVICE_VIDEO_SUPPORT
    int        (pAdapter)java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
    int ret;
    int adapter = -1;

    if (is_debug) {
        creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
        av_log(,AV_LOG_INFO,"Enabling  debugging.\n")
    }

java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        return AVERROR_UNKNOWN;
    if (!if (SUCCEEDED(hr)) {
        av_log java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 70
         java.lang.StringIndexOutOfBoundsException: Range [16, 13) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    if )
        java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 46
    } else {
                        if(SUCCEEDEDhr) & )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
        if (e && e->value) {
adapter java.lang.StringIndexOutOfBoundsException: Range [68, 62) out of bounds for length 93
              java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 78
                       "vendor id %s\n", e->value);
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
            }
        
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

     (adapter = 0){
        IDXGIFactory2 *pDXGIFactory;

        av_log(ctx, AV_LOG_VERBOSE, "Selecting d3d11va adapter %d\n", adapter);
        hr = mCreateDXGIFactory(&        device_hwctx> =D3D11_BIND_SHADER_RESOURCE
               if ((hr {
            ((IDXGIFactory2_EnumAdapters(DXGIFactory,adapter,&pAdapter)java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
                 ;
            IDXGIFactory2_Release(pDXGIFactory);
        }
    }

    if (Adapter {
        DXGI_ADAPTER_DESC desc;
        hr = IDXGIAdapter2_GetDesc(pAdapter, &desc);
        if    if (av_dict_get(pts, , 0)
tx ,"device%x:%4(l)\"java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
                   desc.VendorId
        }
    }

        type                 =AV_HWDEVICE_TYPE_D3D11VA
                   D3D11_SDK_VERSION, &device_hwctx->device, NULL
    if (pAdapter)
        IDXGIAdapter_Release(pAdapter);
    if (FAILED(hr)) {
        av_log(ctx, .device_create    
        java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 31
}

    ->device I, v*)pMultithreadjava.lang.StringIndexOutOfBoundsException: Range [107, 108) out of bounds for length 107
    if (SUCCEEDED  java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 57
        ID3D10Multithread_SetMultithreadProtected=d3d11va_transfer_data
        ID3D10Multithread_Release]{ java.lang.StringIndexOutOfBoundsException: Range [94, 91) out of bounds for length 94
    }

#if !HAVE_UWP && HAVE_DXGIDEBUG_H
    if (is_debug) {
        HANDLE dxgidebug_dll = LoadLibrary("dxgidebug.dll");
        if (dxgidebug_dll) {
            HRESULT (WINAPI  * pf_DXGIGetDebugInterface)(const GUID *riid, void **ppDebug)
                = (void *)GetProcAddress(dxgidebug_dll, "DXGIGetDebugInterface");
            if (pf_DXGIGetDebugInterface) {
                IDXGIDebug *dxgi_debug = NULL;
                hr = pf_DXGIGetDebugInterface(&IID_IDXGIDebug, (void**)&dxgi_debug);
                if (SUCCEEDED(hr) && dxgi_debug) {
                    IDXGIDebug_ReportLiveObjects(dxgi_debug, DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_ALL);
                    av_log(ctx, AV_LOG_INFO, "Enabled dxgi debugging.\n");
                } else {
                    av_log(ctx, AV_LOG_WARNING, "Failed enabling dxgi debugging.\n");
                }
            } else {
                av_log(ctx, AV_LOG_WARNING, "Failed getting dxgi debug interface.\n");
            }
        } else {
            av_log(ctx, AV_LOG_WARNING, "Failed loading dxgi debug library.\n");
        }
    }
#endif

    if (av_dict_get(opts, "SHADER", NULL, 0))
        device_hwctx->BindFlags |= D3D11_BIND_SHADER_RESOURCE;

    if (av_dict_get(opts, "UAV", NULL, 0))
        device_hwctx->BindFlags |= D3D11_BIND_UNORDERED_ACCESS;

    if (av_dict_get(opts, "RTV", NULL, 0))
        device_hwctx->BindFlags |= D3D11_BIND_RENDER_TARGET;

    if (av_dict_get(opts, "SHARED", NULL, 0))
        device_hwctx->MiscFlags |= D3D11_RESOURCE_MISC_SHARED;

    return 0;
}

const HWContextType ff_hwcontext_type_d3d11va = {
    .type                 = AV_HWDEVICE_TYPE_D3D11VA,
    .name                 = "D3D11VA",

    .device_hwctx_size    = sizeof(AVD3D11VADeviceContext),
    .frames_hwctx_size    = sizeof(D3D11VAFramesContext),

    .device_create        = d3d11va_device_create,
    .device_init          = d3d11va_device_init,
    .device_uninit        = d3d11va_device_uninit,
    .frames_get_constraints = d3d11va_frames_get_constraints,
    .frames_init          = d3d11va_frames_init,
    .frames_uninit        = d3d11va_frames_uninit,
    .frames_get_buffer    = d3d11va_get_buffer,
    .transfer_get_formats = d3d11va_transfer_get_formats,
    .transfer_data_to     = d3d11va_transfer_data,
    .transfer_data_from   = d3d11va_transfer_data,

    .pix_fmts             = (const enum AVPixelFormat[]){ AV_PIX_FMT_D3D11, AV_PIX_FMT_NONE },
};

Messung V0.5 in Prozent
C=95 H=95 G=94

¤ Dauer der Verarbeitung: 0.12 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002