-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
207 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,8 @@ | ||
from libc.stdint cimport uint64_t | ||
cimport libav as lib | ||
|
||
|
||
cdef class AudioLayout: | ||
cdef lib.AVChannelLayout layout | ||
cdef _init(self, lib.AVChannelLayout layout) | ||
|
||
# The layout for FFMpeg; this is essentially a bitmask of channels. | ||
cdef uint64_t layout | ||
cdef int nb_channels | ||
|
||
cdef readonly tuple channels | ||
""" | ||
A tuple of :class:`AudioChannel` objects. | ||
:type: tuple | ||
""" | ||
|
||
cdef _init(self, uint64_t layout) | ||
|
||
|
||
cdef class AudioChannel: | ||
|
||
# The channel for FFmpeg. | ||
cdef uint64_t channel | ||
|
||
|
||
cdef AudioLayout get_audio_layout(int channels, uint64_t c_layout) | ||
cdef AudioLayout get_audio_layout(lib.AVChannelLayout c_layout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
channel_descriptions: dict[str, str] | ||
|
||
class AudioLayout: | ||
name: str | ||
layout: int | ||
nb_channels: int | ||
channels: tuple[AudioChannel, ...] | ||
def __init__(self, layout: int | str | AudioLayout): ... | ||
|
||
class AudioChannel: | ||
name: str | ||
description: str | ||
def __init__(self, layout: str | AudioLayout): ... |
Oops, something went wrong.