mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-04 07:17:36 +08:00
22 lines
483 B
Go
22 lines
483 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_qsv
|
|
|
|
package ffmpeg
|
|
|
|
/*
|
|
#include <libavcodec/qsv.h>
|
|
*/
|
|
import "C"
|
|
|
|
// AVQSVContext
|
|
type AVQSVContext = C.struct_AVQSVContext
|
|
|
|
// AvQsvAllocContext allocates a new context.
|
|
// It must be freed by the caller with AvFree().
|
|
func AvQsvAllocContext() *AVQSVContext {
|
|
return (*AVQSVContext)(C.av_qsv_alloc_context())
|
|
}
|