20 #include <com/avpkit/ferry/Logger.h>
21 #include <com/avpkit/core/Global.h>
22 #include <com/avpkit/core/MediaDataWrapper.h>
24 namespace com {
namespace avpkit {
namespace core {
28 VS_LOG_SETUP(VS_CPP_PACKAGE);
30 MediaDataWrapper :: MediaDataWrapper()
36 MediaDataWrapper :: ~MediaDataWrapper()
61 mTimeStamp = aTimeStamp;
67 return mTimeBase.get();
73 mTimeBase.reset(aBase,
true);
83 retval = mWrapped->getData();
95 retval = mWrapped->getSize();
124 obj = wrapper->
get();
129 VS_LOG_ERROR(
"Attempted to wrap an object that ultimately wraps itself. Ignoring");
134 mWrapped.reset(aObj,
true);
140 VS_REF_RELEASE(base);
141 setKey(aObj->
isKey());
155 mWrapped->setData(buffer);
161 return mWrapped.get();
172 return unwrapped.
get();
static const int64_t NO_PTS
A value that means no time stamp is set for a given object.
This class wraps represents a Rational number for the AVPKit.
Allows Java code to get data from a native buffers, and optionally modify native memory directly.
This class is only useful from C++.
T * get()
Call RefCounted::acquire() on the managed pointer and return it.
T * value()
Return the managed pointer without calling RefCounted::acquire() on it.
This library contains routines used by AVPKit libraries for "ferry"ing Java objects to and from nativ...
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...