Commit graph

800 commits

Author SHA1 Message Date
Sebastian Dröge
5b75f11cd0 WIP initial version of harness/testclock bindings 2018-11-02 11:20:33 +02:00
Charlie Turner
98c69609cc Cturner/add tutorial 9 (#142)
Add basic-tutorial 9
2018-10-31 23:43:04 +02:00
Víctor Manuel Jáquez Leal
60c9cdfda1 Update autogenerated code with latest gir 2018-10-31 17:33:15 +02:00
Víctor Manuel Jáquez Leal
1be9f59091 Update gir-file to 1.14.4
Using Debian gir files

But kept the changes in commit 485d7e48 and 9265cc82
2018-10-31 17:33:15 +02:00
Víctor Manuel Jáquez Leal
4435cf41e3 fix README.md from previous merge 2018-10-31 17:33:15 +02:00
Arun Raghavan
f4685c4629 Use FlowError instead of FlowReturn as error part of Result
This prevents the possibility of a Result that is an Err(Ok), which
would not be meaningful.
2018-10-29 14:40:39 +00:00
Arun Raghavan
a4f25df045 enums: Implement the From trait for error/success
This implements the From trait for all *Error/*Success enums to the
corresponding *Return enum.
2018-10-28 18:41:27 +00:00
Sebastian Dröge
6325e0fcce Fix build with ser_de feature enabled 2018-10-28 17:48:42 +00:00
Sebastian Dröge
9f8ec3b35b Rename TagList::iter_tag_list() to TagList::iter_generic() and ::iter_tag_list_simple() to ::iter()
It's the generic iterator for going over values, and the simple one is
the one you usually want.

Also rename iterator types, but those are internal anyway.
2018-10-28 17:30:25 +00:00
Sebastian Dröge
8a6bcbcedb Run through rustfmt once again 2018-10-28 13:47:02 +00:00
Sebastian Dröge
54d8065dd3 Add TagList::iter_tag_list_simple() for getting a single value per tag 2018-10-28 13:46:28 +00:00
Sebastian Dröge
7207bbed69 Add various global functions to the pbutils library 2018-10-28 12:39:27 +00:00
Sebastian Dröge
0947c8f087 Rename gst::Bin traits from BinExt to GstBinExt to prevent conflicts with gtk::Bin 2018-10-28 11:30:41 +00:00
Guillaume Gomez
ff6b09d301 Improve mac osx installation instructions a bit 2018-10-23 00:17:19 +01:00
Jan Alexander Steffens (heftig)
fd2776f0b0 examples: Make gstreamer-rtsp-server-sys properly optional
Fixes https://github.com/sdroege/gstreamer-rs/issues/136
2018-10-19 17:57:04 +03:00
alexagv
e56b9e485b Add libvpx to brew install
brew install gst-plugins-good does not include libvpx by default causing the rtpfecserver example to fail as it uses vp8enc
2018-10-16 18:49:28 +03:00
Sebastian Dröge
e4ecc88825 Remove some unneeded lifetime annotations from video meta code and pass more parameters by reference 2018-10-11 11:58:01 +03:00
Sebastian Dröge
7189a6a7c1 Replace various transmutes in meta code with pointer casts 2018-10-11 11:58:01 +03:00
Sebastian Dröge
e2950749e8 Remove some unneeded lifetime annotations 2018-10-11 11:58:01 +03:00
Sebastian Dröge
d19c70694a Use ? operator instead of explictly propagating None 2018-10-11 11:58:01 +03:00
Sebastian Dröge
fa29872863 Fix various clippy warnings in the serde code 2018-10-11 11:58:01 +03:00
Sebastian Dröge
5d9a3b4272 Use ptr::add(i) instead of ptr::offset(i as isize) 2018-10-11 11:58:01 +03:00
Jordan Petridis
d085569b3e Add a rustfmt config
We stick to the default rustfmt style, but the config is needed
to ignore the auto-generated code.
2018-10-08 17:02:57 +03:00
Jordan Petridis
a585519db4 CI: Add a rustfmt check 2018-10-08 17:02:57 +03:00
Jordan Petridis
4127425f6b CI: Cache the cargo registry 2018-10-08 17:02:57 +03:00
Jordan Petridis
3acdf7b996 CI: add color to the cargo output 2018-10-08 17:02:57 +03:00
Jordan Petridis
7856442176 CI: Add initial gitlab-ci config
Duplicates the functionality of the travis config
2018-10-08 17:02:57 +03:00
Sebastian Dröge
eb0a804a50 Run everything through latest rustfmt 2018-10-08 15:02:23 +03:00
Sebastian Dröge
2c7dff3b45 Run everything through rustfmt again 2018-10-08 09:32:08 +03:00
Sebastian Dröge
2d45d3840f Clean up imports a bit 2018-10-08 09:31:39 +03:00
Sebastian Dröge
cb3cf66bd8 Onle re-export traits from the pbutils prelude 2018-10-08 09:26:53 +03:00
Sebastian Dröge
53cf6704e7 Remove EncodingTarget::add_profile() and consider it immutable 2018-10-08 09:23:48 +03:00
Sebastian Dröge
70fde430c9 Add copyright header 2018-10-08 09:22:32 +03:00
Sebastian Dröge
8e413fa3c9 Store encoding profiles inside the container builder as a Vec 2018-10-08 09:17:26 +03:00
Sebastian Dröge
5d17718e3b Remove unnecessary mut 2018-10-08 09:09:14 +03:00
Sebastian Dröge
3069af42bb Remove automatically inserted docs from git 2018-10-08 09:08:49 +03:00
Thiago Santos
382138b75a More encoding_profile binding improvements
- enable is_equal function again (unsure why it was disabled)
- remove restriction-caps property, encoding-profile objects are
immutable
- remove cast need by using IsA<EncodingProfile> in parameters and
returning the correct type of encodingprofile subclass from the build()
functions. It used a internal hack for storing those IsA objects in
order to keep the API clean and ready to be used, this should be sorted
out as soon as we figure out how to store them in the buidlers.
- encodebin example: remove Result error propagation when it is caused
by programming mistakes. A panic will happen in those cases.
- run rustfmt
2018-10-08 09:06:46 +03:00
Thiago Santos
43235969be encoding_profile: set_restriction is transfer-full not transfer-none
Avoid refcounting mistakes by using the right converting functions
before calling the ffi layer functions
2018-10-08 09:06:46 +03:00
Thiago Santos
f3c8dfeb9b EncodingProfile: remove setters and constructors, use builders
Provide builders for the EncodingProfile so that the created objects are
imutable and can have the Send and Sync traits
2018-10-08 09:06:46 +03:00
Thiago Santos
861f052c3d encoding_profile: add builders for all types 2018-10-08 09:06:46 +03:00
Thiago Santos
67bdfee1f6 encodebin: add an example for encodebin usage 2018-10-08 09:06:46 +03:00
Thiago Santos
485d7e4881 pbutils: adding encoding-profile bindings 2018-10-08 09:06:46 +03:00
Sebastian Dröge
7a0310a1f5 Remove travis cargo cache 2018-10-05 17:19:08 +03:00
Sebastian Dröge
c56e9ddfea Also implement copy() returning the wrapper miniobject on the reference type
This way CapsRef::copy() will return a Caps, and not a GstRc<CapsRef>.
2018-10-05 16:36:15 +03:00
Sebastian Dröge
9265cc8232 Correctly generate VideoOverlayFormatFlags as flags 2018-10-04 11:39:15 +03:00
Sebastian Dröge
30b9527112 Implement ::copy() directly on miniobject wrapper types
This provides the additional wrapping as the one via get via deref will
only give back a GstRc<T> without the additional wrapping.
2018-10-03 16:54:00 +03:00
Sebastian Dröge
8f71a81cb5 Regenerate with latest gir to get rid of unneeded notify signal connectors for construct-only properties 2018-10-03 13:57:07 +03:00
Sebastian Dröge
0f704646f6 Add more complete bindings for allocation query
Everything apart from allocators are covered now.
2018-10-01 22:56:32 +03:00
Sebastian Dröge
35353445de VideoOverlayComposition is supposed to be immutable
So remove the add() function and instead require an
IntoIterator<Item=&VideoOverlayRetangle> in the constructor, and require
at least one item in the iterator or return None.
2018-10-01 14:52:31 +03:00
Sebastian Dröge
6d5bded7b3 Get rid of lifetime for the Meta structs
The structs themselves don't reference the buffer, the reference to
these structs is borrowed from the buffer.
2018-09-30 01:17:12 +03:00