Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy B. Terriberry
rav1e
Commits
8b1f5016
Commit
8b1f5016
authored
May 17, 2019
by
Xu Guangxin
Committed by
Luca Barbato
May 28, 2019
Browse files
refact: move y4mmuxer to seperate file
parent
f21d3d66
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/muxer/mod.rs
View file @
8b1f5016
...
...
@@ -7,12 +7,12 @@
// Media Patent License 1.0 was not distributed with this source code in the
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
mod
muxer
;
pub
use
muxer
::
*
;
mod
ivf
;
use
self
::
ivf
::
IvfMuxer
;
mod
y4m
;
pub
use
self
::
y4m
::
write_y4m_frame
;
use
std
::
io
;
pub
trait
Muxer
{
...
...
src/bin/muxer/
muxer
.rs
→
src/bin/muxer/
y4m
.rs
View file @
8b1f5016
...
...
@@ -8,9 +8,9 @@
// PATENTS file, you can obtain it at www.aomedia.org/license/patent.
use
crate
::
decoder
::
VideoDetails
;
use
rav1e
::
*
;
use
std
::
io
::
Write
;
use
std
::
slice
;
use
rav1e
::
*
;
pub
fn
write_y4m_frame
<
T
:
Pixel
>
(
y4m_enc
:
&
mut
y4m
::
Encoder
<
'_
,
Box
<
dyn
Write
>>
,
rec
:
&
rav1e
::
Frame
<
T
>
,
y4m_details
:
VideoDetails
)
{
let
pitch_y
=
if
y4m_details
.bit_depth
>
8
{
y4m_details
.width
*
2
}
else
{
y4m_details
.width
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment