20 #ifndef IVIDEORESAMPLER_H_
21 #define IVIDEORESAMPLER_H_
23 #include <com/avpkit/ferry/RefCounted.h>
24 #include <com/avpkit/core/AVPKit.h>
25 #include <com/avpkit/core/IPixelFormat.h>
26 #include <com/avpkit/core/IVideoPicture.h>
27 #include <com/avpkit/core/IProperty.h>
29 namespace com {
namespace avpkit {
namespace core
44 FEATURE_IMAGERESCALING,
45 FEATURE_COLORSPACECONVERSION,
135 virtual int32_t
setProperty(
const char *name,
const char* value)=0;
183 %newobject getPropertyAsString(
const char*);
184 %typemap(newfree)
char *
"free($1);";
247 int32_t outputWidth, int32_t outputHeight,
249 int32_t inputWidth, int32_t inputHeight,
258 static bool isSupported(
Feature feature);
Represents settable properties that effect how AVPKit objects operate.
This class wraps represents a Rational number for the AVPKit.
Represents one raw (undecoded) picture in a video stream, plus a timestamp for when to display that v...
Converts IVideoPicture objects of a given width, height and format to a new width,...
virtual double getPropertyAsDouble(const char *name)=0
Gets the value of this property, and returns as a double;.
virtual int64_t getPropertyAsLong(const char *name)=0
Gets the value of this property, and returns as an long;.
virtual int32_t setProperty(const char *name, const char *value)=0
Sets a property on this Object.
virtual int32_t setProperty(const char *name, IRational *value)=0
Looks up the property 'name' and sets the value of the property to 'value'.
virtual IProperty * getPropertyMetaData(int32_t propertyNo)=0
Returns the name of the numbered property.
virtual IProperty * getPropertyMetaData(const char *name)=0
Returns the name of the numbered property.
virtual char * getPropertyAsString(const char *name)=0
Gets a property on this Object.
virtual int32_t getNumProperties()=0
Returns the total number of settable properties on this object.
virtual int32_t getInputHeight()=0
Get the height in pixels we expect on the input frame to the resampler.
virtual int32_t setProperty(const char *name, double value)=0
Looks up the property 'name' and sets the value of the property to 'value'.
virtual int32_t setProperty(const char *name, bool value)=0
Looks up the property 'name' and sets the value of the property to 'value'.
virtual int32_t getOutputHeight()=0
Get the output height, in pixels.
virtual int32_t getOutputWidth()=0
Get the output width, in pixels.
virtual bool getPropertyAsBoolean(const char *name)=0
Gets the value of this property, and returns as a boolean.
virtual IPixelFormat::Type getInputPixelFormat()=0
Get the input pixel format.
virtual int32_t resample(IVideoPicture *outVideoPicture, IVideoPicture *inVideoPicture)=0
Resample in to out based on the resampler parameters.
virtual int32_t getInputWidth()=0
Get the width in pixels we expect on the input frame to the resampler.
virtual int32_t setProperty(const char *name, int64_t value)=0
Looks up the property 'name' and sets the value of the property to 'value'.
virtual int32_t setProperty(IMetaData *valuesToSet, IMetaData *valuesNotFound)=0
Feature
Features that the VideoResampler may optionally support.
virtual IPixelFormat::Type getOutputPixelFormat()=0
Get the output pixel format.
virtual IRational * getPropertyAsRational(const char *name)=0
Gets the value of this property, and returns as an IRational;.
Parent of all Ferry objects – it mains reference counts in native code.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...