Source File
common.go
Belonging Package
github.com/pion/rtp/codecs
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage codecsfunc minInt(, int) int {if < {return}return}// audioDepacketizer is a mixin for audio codec depacketizers.type audioDepacketizer struct{}func ( *audioDepacketizer) ( bool, []byte) bool {return true}func ( *audioDepacketizer) ( []byte) bool {return true}// videoDepacketizer is a mixin for video codec depacketizers.type videoDepacketizer struct {zeroAllocation bool}func ( *videoDepacketizer) ( bool, []byte) bool {return}// SetZeroAllocation enables Zero Allocation mode for the depacketizer// By default the Depacketizers will allocate as they parse. These allocations// are needed for Metadata and other optional values. If you don't need this information// enabling SetZeroAllocation gives you higher performance at a reduced feature set.func ( *videoDepacketizer) ( bool) {.zeroAllocation =}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |