Lines Matching refs:hr
163 HRESULT hr;
165 hr = ID3D11VideoDevice_CheckVideoDecoderFormat((ID3D11VideoDevice *)service,
169 return SUCCEEDED(hr) && is_supported;
176 HRESULT hr;
180 hr = IDirectXVideoDecoderService_GetDecoderRenderTargets((IDirectXVideoDecoderService *)decoder_service, &guid, &target_count, &target_list);
181 if (SUCCEEDED(hr)) {
326 HRESULT hr;
329 hr = IDirectXVideoDecoderService_GetDecoderConfigurations(sctx->dxva2_service, device_guid, desc, NULL, &cfg_count, &cfg_list);
330 if (FAILED(hr)) {
352 HRESULT hr;
359 hr = IDirect3DDeviceManager9_OpenDeviceHandle(device_hwctx->devmgr,
361 if (FAILED(hr)) {
366 hr = IDirect3DDeviceManager9_GetVideoService(device_hwctx->devmgr, device_handle,
370 if (FAILED(hr)) {
375 hr = IDirectXVideoDecoderService_GetDecoderDeviceGuids(sctx->dxva2_service, &guid_count, &guid_list);
376 if (FAILED(hr)) {
397 hr = IDirectXVideoDecoderService_CreateVideoDecoder(sctx->dxva2_service, &device_guid,
400 if (FAILED(hr)) {
427 HRESULT hr;
430 hr = ID3D11VideoDevice_GetVideoDecoderConfigCount(video_device, desc, &cfg_count);
431 if (FAILED(hr)) {
440 hr = ID3D11VideoDevice_GetVideoDecoderConfig(video_device, desc, i, &cfg_list[i]);
441 if (FAILED(hr)) {
442 av_log(avctx, AV_LOG_ERROR, "Unable to retrieve decoder configurations. (hr=0x%lX)\n", hr);
478 HRESULT hr;
495 hr = ID3D11VideoDevice_GetVideoDecoderProfile(device_hwctx->video_device, i, &guid_list[i]);
496 if (FAILED(hr)) {
531 hr = ID3D11VideoDevice_CreateVideoDecoderOutputView(device_hwctx->video_device,
535 if (FAILED(hr)) {
541 hr = ID3D11VideoDevice_CreateVideoDecoder(device_hwctx->video_device, &desc,
543 if (FAILED(hr)) {
806 HRESULT hr = 0;
810 hr = ID3D11VideoContext_GetDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context,
817 hr = IDirectXVideoDecoder_GetBuffer(DXVA2_CONTEXT(ctx)->decoder, type,
820 if (FAILED(hr)) {
822 type, (unsigned)hr);
855 hr = ID3D11VideoContext_ReleaseDecoderBuffer(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder, type);
859 hr = IDirectXVideoDecoder_ReleaseBuffer(DXVA2_CONTEXT(ctx)->decoder, type);
861 if (FAILED(hr)) {
864 type, (unsigned)hr);
903 HRESULT hr;
917 hr = ID3D11VideoContext_DecoderBeginFrame(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder,
923 hr = IDirectXVideoDecoder_BeginFrame(DXVA2_CONTEXT(ctx)->decoder,
927 if (hr != E_PENDING || ++runs > 50)
933 if (FAILED(hr)) {
934 av_log(avctx, AV_LOG_ERROR, "Failed to begin frame: 0x%x\n", (unsigned)hr);
1014 hr = ID3D11VideoContext_SubmitDecoderBuffers(D3D11VA_CONTEXT(ctx)->video_context,
1025 hr = IDirectXVideoDecoder_Execute(DXVA2_CONTEXT(ctx)->decoder, &exec);
1028 if (FAILED(hr)) {
1029 av_log(avctx, AV_LOG_ERROR, "Failed to execute: 0x%x\n", (unsigned)hr);
1036 hr = ID3D11VideoContext_DecoderEndFrame(D3D11VA_CONTEXT(ctx)->video_context, D3D11VA_CONTEXT(ctx)->decoder);
1040 hr = IDirectXVideoDecoder_EndFrame(DXVA2_CONTEXT(ctx)->decoder, NULL);
1043 if (FAILED(hr)) {
1044 av_log(avctx, AV_LOG_ERROR, "Failed to end frame: 0x%x\n", (unsigned)hr);