mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-04 07:17:36 +08:00
26 lines
656 B
Go
26 lines
656 B
Go
// Copyright (c) 2023 QRTC. All rights reserved.
|
|
// Use of this source code is governed by a MIT
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build ffmpeg_hw_d3d11va
|
|
|
|
package ffmpeg
|
|
|
|
/*
|
|
#include <libavcodec/d3d11va.h>
|
|
*/
|
|
import "C"
|
|
|
|
const (
|
|
FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG = C.FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG
|
|
FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO = C.FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO
|
|
)
|
|
|
|
// AVD3D11VAContext
|
|
type AVD3D11VAContext C.struct_AVD3D11VAContext
|
|
|
|
// AvD3d11vaAllocContext allocates an AVD3D11VAContext.
|
|
func AvD3d11vaAllocContext() *AVD3D11VAContext {
|
|
return (*AVD3D11VAContext)(C.av_d3d11va_alloc_context())
|
|
}
|