Comments (3)
One thing I would point out is that ClockTime has methods like fromMillis and fromMicros. If you decide to get rid of ClockTime, all the javadocs (and parameter names) should make it clear that the long is expressed in nanoseconds (or whatever unit is appropriate). I would even go so far as to rename ClockTime.value
to ClockTime.nanos
.
from gst1-java-core.
Agreed, and ClockTime
might persist in some capacity as a utility class (or we just refer people to TimeUnit
). The key thing is to make Structure::getValue
consistent with other uses, and remove ClockTIme
from the lowlevel mappings so we're not creating unnecessary objects - not cheap there!
ClockTime
is just an unsigned 64-bit long in GStreamer - this change would be (mostly) consistent with upstream.
from gst1-java-core.
OK, ClockTime
will be replaced by long
for all parameters and return types. The type information is just not available from the native layer to make this consistent. But do we switch to TimeUnit
for conversion, or make ClockTime
a similar enum and utility holder wrapping TimeUnit
? And potentially handling the fact that the value is an unsigned long - although wrapping shouldn't be an issue any time soon! 😄
from gst1-java-core.
Related Issues (20)
- get() on WebRTCBin causes java.lang.InstantiationException HOT 6
- Question about multithreading with multiple pipelines. HOT 1
- Possible crash on async explicit dispose in 1.4.0 HOT 3
- How to load subtitles? Solution and example required.
- native memory still exists after Pipeline.close HOT 6
- Is it possible to have a custom thread pool to execute GstCallback (AppSink.connect) ? (question)
- How to receive each frame as its pointer(Long type) or Byte array or etc. HOT 1
- VAAPI invalid chip id or driver is being used. HOT 2
- Using GIO objects
- GType.valueOf(long) is not thead safe HOT 3
- JVM Crashes HOT 3
- What may be the reason why the pipeline cannot be created HOT 2
- Exception in thread "main" java.lang.Error: Invalid memory access HOT 2
- How to improve throughput
- WebRTCBin.createAnswer() callback not called sporadically (promise garbage collected) HOT 4
- No such Gstreamer factory: webrtcbin HOT 5
- How to get RTPSession from rtpbin
- Need to know the native pointer of a Buffer object
- Segfault in extractError function HOT 6
- gst_element_get_request_pad HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gst1-java-core.