Sebastian Dröge
1294c28058
Add VideoFrameRef::copy_to_ref() and ::copy_plane_to_ref()
...
These take a VideoFrameRef instead of a VideoFrame as destination. Next
time we break API, the existing ::copy() and ::copy_plane() functions
should be modified.
2018-01-16 18:55:25 +02:00
Sebastian Dröge
7a779fe940
Don't implement Copy for VideoRectangle and pass by reference to center_video_rectangle()
2018-01-03 17:37:54 +02:00
Sebastian Dröge
24b263acef
Update version to 0.10.1
2018-01-03 17:08:21 +02:00
Sebastian Dröge
97097554e7
Update CHANGELOG.md for 0.10.1
2018-01-03 17:08:10 +02:00
Sebastian Dröge
0dd0442fb7
Add VideoFrameRef API
...
This is like VideoFrame, but can work on gst::BufferRefs and borrows
from it. VideoFrames can be converted into this by borrowing.
2018-01-03 16:54:45 +02:00
Sebastian Dröge
a8c2815c3b
Add GstVideoFilter bindings
...
Not very useful, but will be useful for gst-plugin-rs
2017-12-30 15:35:53 +02:00
Sebastian Dröge
c71623591a
Add unit test for gst_video::convert_sample_async()
2017-12-30 15:25:12 +02:00
Sebastian Dröge
7508184557
Fix memory leak for gst_video::convert_sample_async()
...
Values are passed owned to the callback
2017-12-30 15:25:12 +02:00
Sebastian Dröge
950e5dbc32
Run video_rectangle.rs through rustfmt
2017-12-30 15:25:12 +02:00
Philippe Normand
4ce1221ef4
gstreamer-video: VideoRectangle bindings
2017-12-30 15:25:12 +02:00
Sebastian Dröge
93723026eb
Add bindings for gst_video::convert_sample() and ::convert_sample_async()
2017-12-30 15:25:12 +02:00
Sebastian Dröge
85f44a0479
Update versions of all dependencies and point to releases instead of GIT
2017-12-22 14:57:27 +02:00
Sebastian Dröge
95562b8d22
Update CHANGELOG.md for 0.10.0
2017-12-22 14:44:24 +02:00
Sebastian Dröge
e0dc84c10a
Run everything through rustfmt again
2017-12-20 19:30:14 +02:00
Sebastian Dröge
70688fd6a9
Clean-up VideoFrame API
...
There's a buffer() for immutable references on all types now, and a
buffer_mut() for getting a mutable reference on the writable videoframe
Also some minor other cleanup
2017-12-16 11:41:48 +02:00
Sebastian Dröge
70e031b729
VideoInfo/AudioInfo are not Sync, only Send
2017-12-16 11:40:36 +02:00
Sebastian Dröge
d3b03de9ff
Nullability fix for VideoFormat::to_string() in case Unknown is passed
2017-12-16 10:58:10 +02:00
Sebastian Dröge
5fb6ce77ee
Add VideoMultiviewFramePacking enum and minor code cleanup
2017-12-16 10:56:19 +02:00
Sebastian Dröge
f2eabaddf7
Make all fields of the force-keyunit events optional in the builder
2017-12-10 22:43:28 +02:00
Sebastian Dröge
580fc603e0
Use builders for the key-unit and still-frame events too
2017-12-10 12:26:16 +02:00
Sebastian Dröge
5065bc76ee
Rename FormattedValue::from_glib/to_glib to from_raw/to_raw_value
...
Otherwise we conflict with GLib translation traits, which causes some
annoyances.
2017-12-10 12:10:25 +02:00
Sebastian Dröge
d55e08a6a4
Add bindings for force-keyunit and still-frame events
2017-12-10 11:57:11 +02:00
Sebastian Dröge
c99928d030
Change FormatValue related API to be more convenient to use
...
FormatValue is now renamed to GenericFormattedValue and the API slightly
changed. In addition there is now a FormattedValue trait, and a
SpecificFormattedValue trait plus types for Bytes, Buffers and the
existing ClockTime.
This allows to create functions like
Pad::query_duration<F: SpecificFormattedValue>() -> Option<F>
and doesn't require the caller to unwrap the generic value anymore,
which is completely unneeded in these cases.
In addition, Segment became FormattedSegment<T> with API to
upcast/downcast between the specific formatted values and the generic
formatted value. This greatly simplifies usage of Segments.
2017-12-09 19:45:18 +02:00
Sebastian Dröge
411f54afed
Run everything to rustfmt again
2017-12-01 19:02:53 +02:00
Sebastian Dröge
8a2e78e586
Regenerate with latest GIR to fix various issues with property getters
...
Get rid of unneeded transmutes and actually initialize flags/enum
GValues with the correct type instead of using integers.
2017-11-27 19:16:34 +02:00
Sebastian Dröge
3c9b7a395b
Get rid of some unneeded transmute() in VideoInfo
2017-11-27 14:03:33 +02:00
Sebastian Dröge
34f70ee0d7
Derive more useful traits for various enums
2017-11-27 14:03:30 +02:00
Sebastian Dröge
80ebc86e94
Update CHANGELOG.md from 0.9.1
2017-11-26 20:42:53 +02:00
Sebastian Dröge
ea3d08d65a
Update CHANGELOG.md with 0.9.0
2017-11-26 19:49:56 +02:00
Sebastian Dröge
f1e095eb0e
Update versions to 0.10.0
2017-11-26 18:33:12 +02:00
Sebastian Dröge
7eb8429046
Run everything through latest rustfmt-nightly again
2017-11-15 22:33:51 +02:00
Sebastian Dröge
d4bd1c2d76
Add dox feature to everything as needed
2017-11-12 13:33:02 +01:00
Sebastian Dröge
a557a8d66e
Require the dox feature of dependant crates
2017-11-12 12:58:30 +01:00
Sebastian Dröge
c39c0c7264
Implement ClockTime as ClockTime(Option<u64>)
...
And also implement a FormatValue type that holds a value together with
its format to make usage of the positions/durations/seek positions/etc
more convenient and safe.
Fixes https://github.com/sdroege/gstreamer-rs/issues/3
2017-11-11 11:57:29 +01:00
Sebastian Dröge
5d266bf31b
Regenerate with latest GIR
...
Which gives us mappings between instance and class struct for now.
2017-11-09 13:33:40 +02:00
Sebastian Dröge
3179806f01
Regenerate everything with latest GIR
...
And fix-up manual code
2017-11-05 19:08:39 +02:00
Sebastian Dröge
3193c19131
Add a table of contents to the README.md
2017-10-31 21:08:40 +02:00
Sebastian Dröge
1b5762c02f
Update README.md with installation instructions and some links for getting started
...
https://github.com/sdroege/gstreamer-rs/issues/49
https://github.com/sdroege/gstreamer-rs/issues/50
2017-10-30 13:00:39 +02:00
Sebastian Dröge
e1d134c4be
Run everything through latest rustfmt-nightly
2017-10-17 12:06:51 +03:00
Sebastian Dröge
92e0b525ad
Fix build of unit tests
2017-10-01 16:02:29 +02:00
Sebastian Dröge
19c5556239
Regenerate with latest GIR
2017-10-01 15:52:15 +02:00
Sebastian Dröge
55ef03110a
Fix documentation URIs
2017-09-15 00:50:24 +03:00
Sebastian Dröge
0de4c0c1af
Update CHANGELOG.md for 0.8.1
2017-09-15 00:50:22 +03:00
Sebastian Dröge
b4cb81cd56
Run everything through latest rustfmt-nightly
2017-09-10 15:21:26 +03:00
Sebastian Dröge
a0ba290d4d
Fix various clippy warnings in gstreamer-video
2017-09-10 15:21:26 +03:00
Sebastian Dröge
3b0e6843e2
Regenerate everything with latest GIR
2017-09-09 16:35:01 +03:00
Sebastian Dröge
be9f544d0a
Update crate versions to 0.9.0
...
0.8 bugfix release development will be in the 0.8 branch
2017-09-01 13:44:07 +03:00
Sebastian Dröge
a30582a1ef
Add README.md to all crate subdirectories
...
This way it would show up on crates.io
2017-09-01 12:08:59 +03:00
Sebastian Dröge
380fb319ba
Don't return &'static references from functions but give them a generic lifetime
...
https://github.com/rust-lang/rust/pull/42417#issue-233404573
2017-09-01 11:40:32 +03:00
Sebastian Dröge
15d05ed3ac
Don't use versions for GIT dependencies in master
2017-08-31 13:34:52 +03:00