mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-04 07:17:36 +08:00
26 lines
504 B
Go
26 lines
504 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.
|
|
|
|
package ffmpeg
|
|
|
|
/*
|
|
#include <libavutil/bswap.h>
|
|
*/
|
|
import "C"
|
|
|
|
// AvBswap16
|
|
func AvBswap16(x uint16) uint16 {
|
|
return (uint16)(C.av_bswap16((C.uint16_t)(x)))
|
|
}
|
|
|
|
// AvBswap32
|
|
func AvBswap32(x uint32) uint32 {
|
|
return (uint32)(C.av_bswap32((C.uint32_t)(x)))
|
|
}
|
|
|
|
// AvBswap64
|
|
func AvBswap64(x uint64) uint64 {
|
|
return (uint64)(C.av_bswap64((C.uint64_t)(x)))
|
|
}
|