Source code
Copy as Markdown
Other Tools
// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Javamethods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef MediaCodec_h__
#define MediaCodec_h__
#include "mozilla/jni/Refs.h"
namespace mozilla {
namespace java {
namespace sdk {
class AudioFormat : public mozilla::jni::ObjectBase<AudioFormat>
{
public:
static constexpr char name[] =
"android/media/AudioFormat";
explicit AudioFormat(const Context& ctx) : ObjectBase<AudioFormat>(ctx) {}
static constexpr int32_t CHANNEL_CONFIGURATION_DEFAULT = 1;
static constexpr int32_t CHANNEL_CONFIGURATION_INVALID = 0;
static constexpr int32_t CHANNEL_CONFIGURATION_MONO = 2;
static constexpr int32_t CHANNEL_CONFIGURATION_STEREO = 3;
static constexpr int32_t CHANNEL_INVALID = 0;
static constexpr int32_t CHANNEL_IN_BACK = 32;
static constexpr int32_t CHANNEL_IN_BACK_PROCESSED = 512;
static constexpr int32_t CHANNEL_IN_DEFAULT = 1;
static constexpr int32_t CHANNEL_IN_FRONT = 16;
static constexpr int32_t CHANNEL_IN_FRONT_PROCESSED = 256;
static constexpr int32_t CHANNEL_IN_LEFT = 4;
static constexpr int32_t CHANNEL_IN_LEFT_PROCESSED = 64;
static constexpr int32_t CHANNEL_IN_MONO = 16;
static constexpr int32_t CHANNEL_IN_PRESSURE = 1024;
static constexpr int32_t CHANNEL_IN_RIGHT = 8;
static constexpr int32_t CHANNEL_IN_RIGHT_PROCESSED = 128;
static constexpr int32_t CHANNEL_IN_STEREO = 12;
static constexpr int32_t CHANNEL_IN_VOICE_DNLINK = 32768;
static constexpr int32_t CHANNEL_IN_VOICE_UPLINK = 16384;
static constexpr int32_t CHANNEL_IN_X_AXIS = 2048;
static constexpr int32_t CHANNEL_IN_Y_AXIS = 4096;
static constexpr int32_t CHANNEL_IN_Z_AXIS = 8192;
static constexpr int32_t CHANNEL_OUT_5POINT1 = 252;
static constexpr int32_t CHANNEL_OUT_5POINT1POINT2 = 3145980;
static constexpr int32_t CHANNEL_OUT_5POINT1POINT4 = 737532;
static constexpr int32_t CHANNEL_OUT_6POINT1 = 1276;
static constexpr int32_t CHANNEL_OUT_7POINT1 = 1020;
static constexpr int32_t CHANNEL_OUT_7POINT1POINT2 = 3152124;
static constexpr int32_t CHANNEL_OUT_7POINT1POINT4 = 743676;
static constexpr int32_t CHANNEL_OUT_7POINT1_SURROUND = 6396;
static constexpr int32_t CHANNEL_OUT_9POINT1POINT4 = 202070268;
static constexpr int32_t CHANNEL_OUT_9POINT1POINT6 = 205215996;
static constexpr int32_t CHANNEL_OUT_BACK_CENTER = 1024;
static constexpr int32_t CHANNEL_OUT_BACK_LEFT = 64;
static constexpr int32_t CHANNEL_OUT_BACK_RIGHT = 128;
static constexpr int32_t CHANNEL_OUT_BOTTOM_FRONT_CENTER = 8388608;
static constexpr int32_t CHANNEL_OUT_BOTTOM_FRONT_LEFT = 4194304;
static constexpr int32_t CHANNEL_OUT_BOTTOM_FRONT_RIGHT = 16777216;
static constexpr int32_t CHANNEL_OUT_DEFAULT = 1;
static constexpr int32_t CHANNEL_OUT_FRONT_CENTER = 16;
static constexpr int32_t CHANNEL_OUT_FRONT_LEFT = 4;
static constexpr int32_t CHANNEL_OUT_FRONT_LEFT_OF_CENTER = 256;
static constexpr int32_t CHANNEL_OUT_FRONT_RIGHT = 8;
static constexpr int32_t CHANNEL_OUT_FRONT_RIGHT_OF_CENTER = 512;
static constexpr int32_t CHANNEL_OUT_FRONT_WIDE_LEFT = 67108864;
static constexpr int32_t CHANNEL_OUT_FRONT_WIDE_RIGHT = 134217728;
static constexpr int32_t CHANNEL_OUT_LOW_FREQUENCY = 32;
static constexpr int32_t CHANNEL_OUT_LOW_FREQUENCY_2 = 33554432;
static constexpr int32_t CHANNEL_OUT_MONO = 4;
static constexpr int32_t CHANNEL_OUT_QUAD = 204;
static constexpr int32_t CHANNEL_OUT_SIDE_LEFT = 2048;
static constexpr int32_t CHANNEL_OUT_SIDE_RIGHT = 4096;
static constexpr int32_t CHANNEL_OUT_STEREO = 12;
static constexpr int32_t CHANNEL_OUT_SURROUND = 1052;
static constexpr int32_t CHANNEL_OUT_TOP_BACK_CENTER = 262144;
static constexpr int32_t CHANNEL_OUT_TOP_BACK_LEFT = 131072;
static constexpr int32_t CHANNEL_OUT_TOP_BACK_RIGHT = 524288;
static constexpr int32_t CHANNEL_OUT_TOP_CENTER = 8192;
static constexpr int32_t CHANNEL_OUT_TOP_FRONT_CENTER = 32768;
static constexpr int32_t CHANNEL_OUT_TOP_FRONT_LEFT = 16384;
static constexpr int32_t CHANNEL_OUT_TOP_FRONT_RIGHT = 65536;
static constexpr int32_t CHANNEL_OUT_TOP_SIDE_LEFT = 1048576;
static constexpr int32_t CHANNEL_OUT_TOP_SIDE_RIGHT = 2097152;
static constexpr int32_t CONTENTS_FILE_DESCRIPTOR = 1;
static constexpr int32_t ENCODING_AAC_ELD = 15;
static constexpr int32_t ENCODING_AAC_HE_V1 = 11;
static constexpr int32_t ENCODING_AAC_HE_V2 = 12;
static constexpr int32_t ENCODING_AAC_LC = 10;
static constexpr int32_t ENCODING_AAC_XHE = 16;
static constexpr int32_t ENCODING_AC3 = 5;
static constexpr int32_t ENCODING_AC4 = 17;
static constexpr int32_t ENCODING_DEFAULT = 1;
static constexpr int32_t ENCODING_DOLBY_MAT = 19;
static constexpr int32_t ENCODING_DOLBY_TRUEHD = 14;
static constexpr int32_t ENCODING_DRA = 28;
static constexpr int32_t ENCODING_DSD = 31;
static constexpr int32_t ENCODING_DTS = 7;
static constexpr int32_t ENCODING_DTS_HD = 8;
static constexpr int32_t ENCODING_DTS_HD_MA = 29;
static constexpr int32_t ENCODING_DTS_UHD = 27;
static constexpr int32_t ENCODING_DTS_UHD_P1 = 27;
static constexpr int32_t ENCODING_DTS_UHD_P2 = 30;
static constexpr int32_t ENCODING_E_AC3 = 6;
static constexpr int32_t ENCODING_E_AC3_JOC = 18;
static constexpr int32_t ENCODING_IEC61937 = 13;
static constexpr int32_t ENCODING_INVALID = 0;
static constexpr int32_t ENCODING_MP3 = 9;
static constexpr int32_t ENCODING_MPEGH_BL_L3 = 23;
static constexpr int32_t ENCODING_MPEGH_BL_L4 = 24;
static constexpr int32_t ENCODING_MPEGH_LC_L3 = 25;
static constexpr int32_t ENCODING_MPEGH_LC_L4 = 26;
static constexpr int32_t ENCODING_OPUS = 20;
static constexpr int32_t ENCODING_PCM_16BIT = 2;
static constexpr int32_t ENCODING_PCM_24BIT_PACKED = 21;
static constexpr int32_t ENCODING_PCM_32BIT = 22;
static constexpr int32_t ENCODING_PCM_8BIT = 3;
static constexpr int32_t ENCODING_PCM_FLOAT = 4;
static constexpr int32_t PARCELABLE_WRITE_RETURN_VALUE = 1;
static constexpr int32_t SAMPLE_RATE_UNSPECIFIED = 0;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaCodec : public mozilla::jni::ObjectBase<MediaCodec>
{
public:
static constexpr char name[] =
"android/media/MediaCodec";
explicit MediaCodec(const Context& ctx) : ObjectBase<MediaCodec>(ctx) {}
class BufferInfo;
class CryptoInfo;
struct Configure_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
mozilla::jni::Object::Param,
mozilla::jni::Object::Param,
int32_t> Args;
static constexpr char name[] = "configure";
static constexpr char signature[] =
"(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void configure(MediaFormat, Surface, MediaCrypto, int)
auto Configure(mozilla::jni::Object::Param, mozilla::jni::Object::Param, mozilla::jni::Object::Param, int32_t) const -> nsresult;
struct Configure2_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
mozilla::jni::Object::Param,
int32_t,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "configure";
static constexpr char signature[] =
"(Landroid/media/MediaFormat;Landroid/view/Surface;ILandroid/media/MediaDescrambler;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void configure(MediaFormat, Surface, int, MediaDescrambler)
auto Configure(mozilla::jni::Object::Param, mozilla::jni::Object::Param, int32_t, mozilla::jni::Object::Param) const -> nsresult;
struct CreateByCodecName_t {
typedef MediaCodec Owner;
typedef MediaCodec::LocalRef ReturnType;
typedef MediaCodec::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "createByCodecName";
static constexpr char signature[] =
"(Ljava/lang/String;)Landroid/media/MediaCodec;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static MediaCodec createByCodecName(String)
static auto CreateByCodecName(mozilla::jni::String::Param, MediaCodec::LocalRef*) -> nsresult;
struct CreateDecoderByType_t {
typedef MediaCodec Owner;
typedef MediaCodec::LocalRef ReturnType;
typedef MediaCodec::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "createDecoderByType";
static constexpr char signature[] =
"(Ljava/lang/String;)Landroid/media/MediaCodec;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static MediaCodec createDecoderByType(String)
static auto CreateDecoderByType(mozilla::jni::String::Param, MediaCodec::LocalRef*) -> nsresult;
struct CreateEncoderByType_t {
typedef MediaCodec Owner;
typedef MediaCodec::LocalRef ReturnType;
typedef MediaCodec::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "createEncoderByType";
static constexpr char signature[] =
"(Ljava/lang/String;)Landroid/media/MediaCodec;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static MediaCodec createEncoderByType(String)
static auto CreateEncoderByType(mozilla::jni::String::Param, MediaCodec::LocalRef*) -> nsresult;
struct CreateInputSurface_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "createInputSurface";
static constexpr char signature[] =
"()Landroid/view/Surface;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Surface createInputSurface()
auto CreateInputSurface(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct CreatePersistentInputSurface_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "createPersistentInputSurface";
static constexpr char signature[] =
"()Landroid/view/Surface;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static Surface createPersistentInputSurface()
static auto CreatePersistentInputSurface(mozilla::jni::Object::LocalRef*) -> nsresult;
struct DequeueInputBuffer_t {
typedef MediaCodec Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<
int64_t> Args;
static constexpr char name[] = "dequeueInputBuffer";
static constexpr char signature[] =
"(J)I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// int dequeueInputBuffer(long)
auto DequeueInputBuffer(int64_t, int32_t*) const -> nsresult;
struct DequeueOutputBuffer_t {
typedef MediaCodec Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
int64_t> Args;
static constexpr char name[] = "dequeueOutputBuffer";
static constexpr char signature[] =
"(Landroid/media/MediaCodec$BufferInfo;J)I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// int dequeueOutputBuffer(BufferInfo, long)
auto DequeueOutputBuffer(mozilla::jni::Object::Param, int64_t, int32_t*) const -> nsresult;
struct Flush_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "flush";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void flush()
auto Flush() const -> nsresult;
struct GetCanonicalName_t {
typedef MediaCodec Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getCanonicalName";
static constexpr char signature[] =
"()Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String getCanonicalName()
auto GetCanonicalName(mozilla::jni::String::LocalRef*) const -> nsresult;
struct GetCodecInfo_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getCodecInfo";
static constexpr char signature[] =
"()Landroid/media/MediaCodecInfo;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// MediaCodecInfo getCodecInfo()
auto GetCodecInfo(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetInputBuffer_t {
typedef MediaCodec Owner;
typedef mozilla::jni::ByteBuffer::LocalRef ReturnType;
typedef mozilla::jni::ByteBuffer::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "getInputBuffer";
static constexpr char signature[] =
"(I)Ljava/nio/ByteBuffer;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// ByteBuffer getInputBuffer(int)
auto GetInputBuffer(int32_t, mozilla::jni::ByteBuffer::LocalRef*) const -> nsresult;
struct GetInputBuffers_t {
typedef MediaCodec Owner;
typedef mozilla::jni::ObjectArray::LocalRef ReturnType;
typedef mozilla::jni::ObjectArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getInputBuffers";
static constexpr char signature[] =
"()[Ljava/nio/ByteBuffer;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// ByteBuffer[] getInputBuffers()
auto GetInputBuffers(mozilla::jni::ObjectArray::LocalRef*) const -> nsresult;
struct GetInputFormat_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getInputFormat";
static constexpr char signature[] =
"()Landroid/media/MediaFormat;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// MediaFormat getInputFormat()
auto GetInputFormat(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetInputImage_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "getInputImage";
static constexpr char signature[] =
"(I)Landroid/media/Image;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Image getInputImage(int)
auto GetInputImage(int32_t, mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetMetrics_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getMetrics";
static constexpr char signature[] =
"()Landroid/os/PersistableBundle;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// PersistableBundle getMetrics()
auto GetMetrics(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetName_t {
typedef MediaCodec Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getName";
static constexpr char signature[] =
"()Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String getName()
auto GetName(mozilla::jni::String::LocalRef*) const -> nsresult;
struct GetOutputBuffer_t {
typedef MediaCodec Owner;
typedef mozilla::jni::ByteBuffer::LocalRef ReturnType;
typedef mozilla::jni::ByteBuffer::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "getOutputBuffer";
static constexpr char signature[] =
"(I)Ljava/nio/ByteBuffer;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// ByteBuffer getOutputBuffer(int)
auto GetOutputBuffer(int32_t, mozilla::jni::ByteBuffer::LocalRef*) const -> nsresult;
struct GetOutputBuffers_t {
typedef MediaCodec Owner;
typedef mozilla::jni::ObjectArray::LocalRef ReturnType;
typedef mozilla::jni::ObjectArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getOutputBuffers";
static constexpr char signature[] =
"()[Ljava/nio/ByteBuffer;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// ByteBuffer[] getOutputBuffers()
auto GetOutputBuffers(mozilla::jni::ObjectArray::LocalRef*) const -> nsresult;
struct GetOutputFormat_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getOutputFormat";
static constexpr char signature[] =
"()Landroid/media/MediaFormat;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// MediaFormat getOutputFormat()
auto GetOutputFormat(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetOutputFormat2_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "getOutputFormat";
static constexpr char signature[] =
"(I)Landroid/media/MediaFormat;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// MediaFormat getOutputFormat(int)
auto GetOutputFormat(int32_t, mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetOutputImage_t {
typedef MediaCodec Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "getOutputImage";
static constexpr char signature[] =
"(I)Landroid/media/Image;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Image getOutputImage(int)
auto GetOutputImage(int32_t, mozilla::jni::Object::LocalRef*) const -> nsresult;
struct QueueInputBuffer_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
int32_t,
int32_t,
int64_t,
int32_t> Args;
static constexpr char name[] = "queueInputBuffer";
static constexpr char signature[] =
"(IIIJI)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void queueInputBuffer(int, int, int, long, int)
auto QueueInputBuffer(int32_t, int32_t, int32_t, int64_t, int32_t) const -> nsresult;
struct QueueSecureInputBuffer_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
int32_t,
mozilla::jni::Object::Param,
int64_t,
int32_t> Args;
static constexpr char name[] = "queueSecureInputBuffer";
static constexpr char signature[] =
"(IILandroid/media/MediaCodec$CryptoInfo;JI)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void queueSecureInputBuffer(int, int, CryptoInfo, long, int)
auto QueueSecureInputBuffer(int32_t, int32_t, mozilla::jni::Object::Param, int64_t, int32_t) const -> nsresult;
struct Release_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "release";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void release()
auto Release() const -> nsresult;
struct ReleaseOutputBuffer_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
bool> Args;
static constexpr char name[] = "releaseOutputBuffer";
static constexpr char signature[] =
"(IZ)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void releaseOutputBuffer(int, boolean)
auto ReleaseOutputBuffer(int32_t, bool) const -> nsresult;
struct ReleaseOutputBuffer2_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
int64_t> Args;
static constexpr char name[] = "releaseOutputBuffer";
static constexpr char signature[] =
"(IJ)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void releaseOutputBuffer(int, long)
auto ReleaseOutputBuffer(int32_t, int64_t) const -> nsresult;
struct Reset_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "reset";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void reset()
auto Reset() const -> nsresult;
struct SetAudioPresentation_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setAudioPresentation";
static constexpr char signature[] =
"(Landroid/media/AudioPresentation;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setAudioPresentation(AudioPresentation)
auto SetAudioPresentation(mozilla::jni::Object::Param) const -> nsresult;
struct SetCallback_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setCallback";
static constexpr char signature[] =
"(Landroid/media/MediaCodec$Callback;Landroid/os/Handler;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setCallback(Callback, Handler)
auto SetCallback(mozilla::jni::Object::Param, mozilla::jni::Object::Param) const -> nsresult;
struct SetCallback2_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setCallback";
static constexpr char signature[] =
"(Landroid/media/MediaCodec$Callback;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setCallback(Callback)
auto SetCallback(mozilla::jni::Object::Param) const -> nsresult;
struct SetInputSurface_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setInputSurface";
static constexpr char signature[] =
"(Landroid/view/Surface;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setInputSurface(Surface)
auto SetInputSurface(mozilla::jni::Object::Param) const -> nsresult;
struct SetOnFrameRenderedListener_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setOnFrameRenderedListener";
static constexpr char signature[] =
"(Landroid/media/MediaCodec$OnFrameRenderedListener;Landroid/os/Handler;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setOnFrameRenderedListener(OnFrameRenderedListener, Handler)
auto SetOnFrameRenderedListener(mozilla::jni::Object::Param, mozilla::jni::Object::Param) const -> nsresult;
struct SetOutputSurface_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setOutputSurface";
static constexpr char signature[] =
"(Landroid/view/Surface;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setOutputSurface(Surface)
auto SetOutputSurface(mozilla::jni::Object::Param) const -> nsresult;
struct SetParameters_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setParameters";
static constexpr char signature[] =
"(Landroid/os/Bundle;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setParameters(Bundle)
auto SetParameters(mozilla::jni::Object::Param) const -> nsresult;
struct SetVideoScalingMode_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "setVideoScalingMode";
static constexpr char signature[] =
"(I)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setVideoScalingMode(int)
auto SetVideoScalingMode(int32_t) const -> nsresult;
struct SignalEndOfInputStream_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "signalEndOfInputStream";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void signalEndOfInputStream()
auto SignalEndOfInputStream() const -> nsresult;
struct Start_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "start";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void start()
auto Start() const -> nsresult;
struct Stop_t {
typedef MediaCodec Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "stop";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void stop()
auto Stop() const -> nsresult;
static constexpr int32_t BUFFER_FLAG_CODEC_CONFIG = 2;
static constexpr int32_t BUFFER_FLAG_DECODE_ONLY = 32;
static constexpr int32_t BUFFER_FLAG_END_OF_STREAM = 4;
static constexpr int32_t BUFFER_FLAG_KEY_FRAME = 1;
static constexpr int32_t BUFFER_FLAG_PARTIAL_FRAME = 8;
static constexpr int32_t BUFFER_FLAG_SYNC_FRAME = 1;
static constexpr int32_t CONFIGURE_FLAG_DETACHED_SURFACE = 8;
static constexpr int32_t CONFIGURE_FLAG_ENCODE = 1;
static constexpr int32_t CONFIGURE_FLAG_USE_BLOCK_MODEL = 2;
static constexpr int32_t CONFIGURE_FLAG_USE_CRYPTO_ASYNC = 4;
static constexpr int32_t CRYPTO_MODE_AES_CBC = 2;
static constexpr int32_t CRYPTO_MODE_AES_CTR = 1;
static constexpr int32_t CRYPTO_MODE_UNENCRYPTED = 0;
static constexpr int32_t INFO_OUTPUT_BUFFERS_CHANGED = -3;
static constexpr int32_t INFO_OUTPUT_FORMAT_CHANGED = -2;
static constexpr int32_t INFO_TRY_AGAIN_LATER = -1;
static const char16_t PARAMETER_KEY_HDR10_PLUS_INFO[];
static const char16_t PARAMETER_KEY_LOW_LATENCY[];
static const char16_t PARAMETER_KEY_OFFSET_TIME[];
static const char16_t PARAMETER_KEY_QP_OFFSET_MAP[];
static const char16_t PARAMETER_KEY_QP_OFFSET_RECTS[];
static const char16_t PARAMETER_KEY_REQUEST_SYNC_FRAME[];
static const char16_t PARAMETER_KEY_SUSPEND[];
static const char16_t PARAMETER_KEY_SUSPEND_TIME[];
static const char16_t PARAMETER_KEY_TUNNEL_PEEK[];
static const char16_t PARAMETER_KEY_VIDEO_BITRATE[];
static constexpr int32_t VIDEO_SCALING_MODE_SCALE_TO_FIT = 1;
static constexpr int32_t VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING = 2;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaCodec::BufferInfo : public mozilla::jni::ObjectBase<BufferInfo>
{
public:
static constexpr char name[] =
"android/media/MediaCodec$BufferInfo";
explicit BufferInfo(const Context& ctx) : ObjectBase<BufferInfo>(ctx) {}
struct New_t {
typedef BufferInfo Owner;
typedef BufferInfo::LocalRef ReturnType;
typedef BufferInfo::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// BufferInfo()
static auto New(BufferInfo::LocalRef*) -> nsresult;
struct Set_t {
typedef BufferInfo Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
int32_t,
int64_t,
int32_t> Args;
static constexpr char name[] = "set";
static constexpr char signature[] =
"(IIJI)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void set(int, int, long, int)
auto Set(int32_t, int32_t, int64_t, int32_t) const -> nsresult;
struct Flags_t {
typedef BufferInfo Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "flags";
static constexpr char signature[] =
"I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Flags(int32_t*) const -> nsresult;
auto Flags(int32_t) const -> nsresult;
struct Offset_t {
typedef BufferInfo Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "offset";
static constexpr char signature[] =
"I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Offset(int32_t*) const -> nsresult;
auto Offset(int32_t) const -> nsresult;
struct PresentationTimeUs_t {
typedef BufferInfo Owner;
typedef int64_t ReturnType;
typedef int64_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "presentationTimeUs";
static constexpr char signature[] =
"J";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto PresentationTimeUs(int64_t*) const -> nsresult;
auto PresentationTimeUs(int64_t) const -> nsresult;
struct Size_t {
typedef BufferInfo Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "size";
static constexpr char signature[] =
"I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Size(int32_t*) const -> nsresult;
auto Size(int32_t) const -> nsresult;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaCodec::CryptoInfo : public mozilla::jni::ObjectBase<CryptoInfo>
{
public:
static constexpr char name[] =
"android/media/MediaCodec$CryptoInfo";
explicit CryptoInfo(const Context& ctx) : ObjectBase<CryptoInfo>(ctx) {}
struct New_t {
typedef CryptoInfo Owner;
typedef CryptoInfo::LocalRef ReturnType;
typedef CryptoInfo::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// CryptoInfo()
static auto New(CryptoInfo::LocalRef*) -> nsresult;
struct Set_t {
typedef CryptoInfo Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
mozilla::jni::IntArray::Param,
mozilla::jni::IntArray::Param,
mozilla::jni::ByteArray::Param,
mozilla::jni::ByteArray::Param,
int32_t> Args;
static constexpr char name[] = "set";
static constexpr char signature[] =
"(I[I[I[B[BI)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void set(int, int[], int[], byte[], byte[], int)
auto Set(int32_t, mozilla::jni::IntArray::Param, mozilla::jni::IntArray::Param, mozilla::jni::ByteArray::Param, mozilla::jni::ByteArray::Param, int32_t) const -> nsresult;
struct SetPattern_t {
typedef CryptoInfo Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setPattern";
static constexpr char signature[] =
"(Landroid/media/MediaCodec$CryptoInfo$Pattern;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setPattern(Pattern)
auto SetPattern(mozilla::jni::Object::Param) const -> nsresult;
struct ToString_t {
typedef CryptoInfo Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "toString";
static constexpr char signature[] =
"()Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String toString()
auto ToString(mozilla::jni::String::LocalRef*) const -> nsresult;
struct Iv_t {
typedef CryptoInfo Owner;
typedef mozilla::jni::ByteArray::LocalRef ReturnType;
typedef mozilla::jni::ByteArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "iv";
static constexpr char signature[] =
"[B";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Iv(mozilla::jni::ByteArray::LocalRef*) const -> nsresult;
auto Iv(mozilla::jni::ByteArray::Param) const -> nsresult;
struct Key_t {
typedef CryptoInfo Owner;
typedef mozilla::jni::ByteArray::LocalRef ReturnType;
typedef mozilla::jni::ByteArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "key";
static constexpr char signature[] =
"[B";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Key(mozilla::jni::ByteArray::LocalRef*) const -> nsresult;
auto Key(mozilla::jni::ByteArray::Param) const -> nsresult;
struct Mode_t {
typedef CryptoInfo Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mode";
static constexpr char signature[] =
"I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Mode(int32_t*) const -> nsresult;
auto Mode(int32_t) const -> nsresult;
struct NumBytesOfClearData_t {
typedef CryptoInfo Owner;
typedef mozilla::jni::IntArray::LocalRef ReturnType;
typedef mozilla::jni::IntArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "numBytesOfClearData";
static constexpr char signature[] =
"[I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto NumBytesOfClearData(mozilla::jni::IntArray::LocalRef*) const -> nsresult;
auto NumBytesOfClearData(mozilla::jni::IntArray::Param) const -> nsresult;
struct NumBytesOfEncryptedData_t {
typedef CryptoInfo Owner;
typedef mozilla::jni::IntArray::LocalRef ReturnType;
typedef mozilla::jni::IntArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "numBytesOfEncryptedData";
static constexpr char signature[] =
"[I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto NumBytesOfEncryptedData(mozilla::jni::IntArray::LocalRef*) const -> nsresult;
auto NumBytesOfEncryptedData(mozilla::jni::IntArray::Param) const -> nsresult;
struct NumSubSamples_t {
typedef CryptoInfo Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "numSubSamples";
static constexpr char signature[] =
"I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto NumSubSamples(int32_t*) const -> nsresult;
auto NumSubSamples(int32_t) const -> nsresult;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaCodecInfo : public mozilla::jni::ObjectBase<MediaCodecInfo>
{
public:
static constexpr char name[] =
"android/media/MediaCodecInfo";
explicit MediaCodecInfo(const Context& ctx) : ObjectBase<MediaCodecInfo>(ctx) {}
class CodecCapabilities;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaCodecInfo::CodecCapabilities : public mozilla::jni::ObjectBase<CodecCapabilities>
{
public:
static constexpr char name[] =
"android/media/MediaCodecInfo$CodecCapabilities";
explicit CodecCapabilities(const Context& ctx) : ObjectBase<CodecCapabilities>(ctx) {}
static constexpr int32_t COLOR_Format12bitRGB444 = 3;
static constexpr int32_t COLOR_Format16bitARGB1555 = 5;
static constexpr int32_t COLOR_Format16bitARGB4444 = 4;
static constexpr int32_t COLOR_Format16bitBGR565 = 7;
static constexpr int32_t COLOR_Format16bitRGB565 = 6;
static constexpr int32_t COLOR_Format18BitBGR666 = 41;
static constexpr int32_t COLOR_Format18bitARGB1665 = 9;
static constexpr int32_t COLOR_Format18bitRGB666 = 8;
static constexpr int32_t COLOR_Format19bitARGB1666 = 10;
static constexpr int32_t COLOR_Format24BitABGR6666 = 43;
static constexpr int32_t COLOR_Format24BitARGB6666 = 42;
static constexpr int32_t COLOR_Format24bitARGB1887 = 13;
static constexpr int32_t COLOR_Format24bitBGR888 = 12;
static constexpr int32_t COLOR_Format24bitRGB888 = 11;
static constexpr int32_t COLOR_Format25bitARGB1888 = 14;
static constexpr int32_t COLOR_Format32bitABGR2101010 = 2130750114;
static constexpr int32_t COLOR_Format32bitABGR8888 = 2130747392;
static constexpr int32_t COLOR_Format32bitARGB8888 = 16;
static constexpr int32_t COLOR_Format32bitBGRA8888 = 15;
static constexpr int32_t COLOR_Format64bitABGRFloat = 2130710294;
static constexpr int32_t COLOR_Format8bitRGB332 = 2;
static constexpr int32_t COLOR_FormatCbYCrY = 27;
static constexpr int32_t COLOR_FormatCrYCbY = 28;
static constexpr int32_t COLOR_FormatL16 = 36;
static constexpr int32_t COLOR_FormatL2 = 33;
static constexpr int32_t COLOR_FormatL24 = 37;
static constexpr int32_t COLOR_FormatL32 = 38;
static constexpr int32_t COLOR_FormatL4 = 34;
static constexpr int32_t COLOR_FormatL8 = 35;
static constexpr int32_t COLOR_FormatMonochrome = 1;
static constexpr int32_t COLOR_FormatRGBAFlexible = 2134288520;
static constexpr int32_t COLOR_FormatRGBFlexible = 2134292616;
static constexpr int32_t COLOR_FormatRawBayer10bit = 31;
static constexpr int32_t COLOR_FormatRawBayer8bit = 30;
static constexpr int32_t COLOR_FormatRawBayer8bitcompressed = 32;
static constexpr int32_t COLOR_FormatSurface = 2130708361;
static constexpr int32_t COLOR_FormatYCbYCr = 25;
static constexpr int32_t COLOR_FormatYCrYCb = 26;
static constexpr int32_t COLOR_FormatYUV411PackedPlanar = 18;
static constexpr int32_t COLOR_FormatYUV411Planar = 17;
static constexpr int32_t COLOR_FormatYUV420Flexible = 2135033992;
static constexpr int32_t COLOR_FormatYUV420PackedPlanar = 20;
static constexpr int32_t COLOR_FormatYUV420PackedSemiPlanar = 39;
static constexpr int32_t COLOR_FormatYUV420Planar = 19;
static constexpr int32_t COLOR_FormatYUV420SemiPlanar = 21;
static constexpr int32_t COLOR_FormatYUV422Flexible = 2135042184;
static constexpr int32_t COLOR_FormatYUV422PackedPlanar = 23;
static constexpr int32_t COLOR_FormatYUV422PackedSemiPlanar = 40;
static constexpr int32_t COLOR_FormatYUV422Planar = 22;
static constexpr int32_t COLOR_FormatYUV422SemiPlanar = 24;
static constexpr int32_t COLOR_FormatYUV444Flexible = 2135181448;
static constexpr int32_t COLOR_FormatYUV444Interleaved = 29;
static constexpr int32_t COLOR_FormatYUVP010 = 54;
static constexpr int32_t COLOR_QCOM_FormatYUV420SemiPlanar = 2141391872;
static constexpr int32_t COLOR_TI_FormatYUV420PackedSemiPlanar = 2130706688;
static const char16_t FEATURE_AdaptivePlayback[];
static const char16_t FEATURE_DetachedSurface[];
static const char16_t FEATURE_DynamicColorAspects[];
static const char16_t FEATURE_DynamicTimestamp[];
static const char16_t FEATURE_EncodingStatistics[];
static const char16_t FEATURE_FrameParsing[];
static const char16_t FEATURE_HdrEditing[];
static const char16_t FEATURE_HlgEditing[];
static const char16_t FEATURE_IntraRefresh[];
static const char16_t FEATURE_LowLatency[];
static const char16_t FEATURE_MultipleFrames[];
static const char16_t FEATURE_PartialFrame[];
static const char16_t FEATURE_QpBounds[];
static const char16_t FEATURE_Roi[];
static const char16_t FEATURE_SecurePlayback[];
static const char16_t FEATURE_TunneledPlayback[];
struct ColorFormats_t {
typedef CodecCapabilities Owner;
typedef mozilla::jni::IntArray::LocalRef ReturnType;
typedef mozilla::jni::IntArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "colorFormats";
static constexpr char signature[] =
"[I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto ColorFormats() const -> mozilla::jni::IntArray::LocalRef;
auto ColorFormats(mozilla::jni::IntArray::Param) const -> void;
struct ProfileLevels_t {
typedef CodecCapabilities Owner;
typedef mozilla::jni::ObjectArray::LocalRef ReturnType;
typedef mozilla::jni::ObjectArray::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "profileLevels";
static constexpr char signature[] =
"[Landroid/media/MediaCodecInfo$CodecProfileLevel;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto ProfileLevels() const -> mozilla::jni::ObjectArray::LocalRef;
auto ProfileLevels(mozilla::jni::ObjectArray::Param) const -> void;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaDrm : public mozilla::jni::ObjectBase<MediaDrm>
{
public:
static constexpr char name[] =
"android/media/MediaDrm";
explicit MediaDrm(const Context& ctx) : ObjectBase<MediaDrm>(ctx) {}
class KeyStatus;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaDrm::KeyStatus : public mozilla::jni::ObjectBase<KeyStatus>
{
public:
static constexpr char name[] =
"android/media/MediaDrm$KeyStatus";
explicit KeyStatus(const Context& ctx) : ObjectBase<KeyStatus>(ctx) {}
static constexpr int32_t STATUS_EXPIRED = 1;
static constexpr int32_t STATUS_INTERNAL_ERROR = 4;
static constexpr int32_t STATUS_OUTPUT_NOT_ALLOWED = 2;
static constexpr int32_t STATUS_PENDING = 3;
static constexpr int32_t STATUS_USABLE = 0;
static constexpr int32_t STATUS_USABLE_IN_FUTURE = 5;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class MediaFormat : public mozilla::jni::ObjectBase<MediaFormat>
{
public:
static constexpr char name[] =
"android/media/MediaFormat";
explicit MediaFormat(const Context& ctx) : ObjectBase<MediaFormat>(ctx) {}
struct New_t {
typedef MediaFormat Owner;
typedef MediaFormat::LocalRef ReturnType;
typedef MediaFormat::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// MediaFormat()
static auto New(MediaFormat::LocalRef*) -> nsresult;
struct New2_t {
typedef MediaFormat Owner;
typedef MediaFormat::LocalRef ReturnType;
typedef MediaFormat::Param SetterType;
typedef mozilla::jni::Args<
MediaFormat::Param> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Landroid/media/MediaFormat;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// MediaFormat(MediaFormat)
static auto New(MediaFormat::Param, MediaFormat::LocalRef*) -> nsresult;
struct ContainsFeature_t {
typedef MediaFormat Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "containsFeature";
static constexpr char signature[] =
"(Ljava/lang/String;)Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// boolean containsFeature(String)
auto ContainsFeature(mozilla::jni::String::Param, bool*) const -> nsresult;
struct ContainsKey_t {
typedef MediaFormat Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "containsKey";
static constexpr char signature[] =
"(Ljava/lang/String;)Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// boolean containsKey(String)
auto ContainsKey(mozilla::jni::String::Param, bool*) const -> nsresult;
struct CreateAudioFormat_t {
typedef MediaFormat Owner;
typedef MediaFormat::LocalRef ReturnType;
typedef MediaFormat::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
int32_t,
int32_t> Args;
static constexpr char name[] = "createAudioFormat";
static constexpr char signature[] =
"(Ljava/lang/String;II)Landroid/media/MediaFormat;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static MediaFormat createAudioFormat(String, int, int)
static auto CreateAudioFormat(mozilla::jni::String::Param, int32_t, int32_t, MediaFormat::LocalRef*) -> nsresult;
struct CreateSubtitleFormat_t {
typedef MediaFormat Owner;
typedef MediaFormat::LocalRef ReturnType;
typedef MediaFormat::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::String::Param> Args;
static constexpr char name[] = "createSubtitleFormat";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/String;)Landroid/media/MediaFormat;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static MediaFormat createSubtitleFormat(String, String)
static auto CreateSubtitleFormat(mozilla::jni::String::Param, mozilla::jni::String::Param, MediaFormat::LocalRef*) -> nsresult;
struct CreateVideoFormat_t {
typedef MediaFormat Owner;
typedef MediaFormat::LocalRef ReturnType;
typedef MediaFormat::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
int32_t,
int32_t> Args;
static constexpr char name[] = "createVideoFormat";
static constexpr char signature[] =
"(Ljava/lang/String;II)Landroid/media/MediaFormat;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static MediaFormat createVideoFormat(String, int, int)
static auto CreateVideoFormat(mozilla::jni::String::Param, int32_t, int32_t, MediaFormat::LocalRef*) -> nsresult;
struct GetByteBuffer_t {
typedef MediaFormat Owner;
typedef mozilla::jni::ByteBuffer::LocalRef ReturnType;
typedef mozilla::jni::ByteBuffer::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::ByteBuffer::Param> Args;
static constexpr char name[] = "getByteBuffer";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// ByteBuffer getByteBuffer(String, ByteBuffer)
auto GetByteBuffer(mozilla::jni::String::Param, mozilla::jni::ByteBuffer::Param, mozilla::jni::ByteBuffer::LocalRef*) const -> nsresult;
struct GetByteBuffer2_t {
typedef MediaFormat Owner;
typedef mozilla::jni::ByteBuffer::LocalRef ReturnType;
typedef mozilla::jni::ByteBuffer::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getByteBuffer";
static constexpr char signature[] =
"(Ljava/lang/String;)Ljava/nio/ByteBuffer;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// ByteBuffer getByteBuffer(String)
auto GetByteBuffer(mozilla::jni::String::Param, mozilla::jni::ByteBuffer::LocalRef*) const -> nsresult;
struct GetFeatureEnabled_t {
typedef MediaFormat Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getFeatureEnabled";
static constexpr char signature[] =
"(Ljava/lang/String;)Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// boolean getFeatureEnabled(String)
auto GetFeatureEnabled(mozilla::jni::String::Param, bool*) const -> nsresult;
struct GetFeatures_t {
typedef MediaFormat Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getFeatures";
static constexpr char signature[] =
"()Ljava/util/Set;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Set getFeatures()
auto GetFeatures(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetFloat_t {
typedef MediaFormat Owner;
typedef float ReturnType;
typedef float SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
float> Args;
static constexpr char name[] = "getFloat";
static constexpr char signature[] =
"(Ljava/lang/String;F)F";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// float getFloat(String, float)
auto GetFloat(mozilla::jni::String::Param, float, float*) const -> nsresult;
struct GetFloat2_t {
typedef MediaFormat Owner;
typedef float ReturnType;
typedef float SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getFloat";
static constexpr char signature[] =
"(Ljava/lang/String;)F";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// float getFloat(String)
auto GetFloat(mozilla::jni::String::Param, float*) const -> nsresult;
struct GetInteger_t {
typedef MediaFormat Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
int32_t> Args;
static constexpr char name[] = "getInteger";
static constexpr char signature[] =
"(Ljava/lang/String;I)I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// int getInteger(String, int)
auto GetInteger(mozilla::jni::String::Param, int32_t, int32_t*) const -> nsresult;
struct GetInteger2_t {
typedef MediaFormat Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getInteger";
static constexpr char signature[] =
"(Ljava/lang/String;)I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// int getInteger(String)
auto GetInteger(mozilla::jni::String::Param, int32_t*) const -> nsresult;
struct GetKeys_t {
typedef MediaFormat Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getKeys";
static constexpr char signature[] =
"()Ljava/util/Set;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Set getKeys()
auto GetKeys(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetLong_t {
typedef MediaFormat Owner;
typedef int64_t ReturnType;
typedef int64_t SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
int64_t> Args;
static constexpr char name[] = "getLong";
static constexpr char signature[] =
"(Ljava/lang/String;J)J";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// long getLong(String, long)
auto GetLong(mozilla::jni::String::Param, int64_t, int64_t*) const -> nsresult;
struct GetLong2_t {
typedef MediaFormat Owner;
typedef int64_t ReturnType;
typedef int64_t SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getLong";
static constexpr char signature[] =
"(Ljava/lang/String;)J";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// long getLong(String)
auto GetLong(mozilla::jni::String::Param, int64_t*) const -> nsresult;
struct GetNumber_t {
typedef MediaFormat Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "getNumber";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/Number;)Ljava/lang/Number;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Number getNumber(String, Number)
auto GetNumber(mozilla::jni::String::Param, mozilla::jni::Object::Param, mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetNumber2_t {
typedef MediaFormat Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getNumber";
static constexpr char signature[] =
"(Ljava/lang/String;)Ljava/lang/Number;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Number getNumber(String)
auto GetNumber(mozilla::jni::String::Param, mozilla::jni::Object::LocalRef*) const -> nsresult;
struct GetString_t {
typedef MediaFormat Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getString";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String getString(String, String)
auto GetString(mozilla::jni::String::Param, mozilla::jni::String::Param, mozilla::jni::String::LocalRef*) const -> nsresult;
struct GetString2_t {
typedef MediaFormat Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getString";
static constexpr char signature[] =
"(Ljava/lang/String;)Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String getString(String)
auto GetString(mozilla::jni::String::Param, mozilla::jni::String::LocalRef*) const -> nsresult;
struct GetValueTypeForKey_t {
typedef MediaFormat Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getValueTypeForKey";
static constexpr char signature[] =
"(Ljava/lang/String;)I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// int getValueTypeForKey(String)
auto GetValueTypeForKey(mozilla::jni::String::Param, int32_t*) const -> nsresult;
struct RemoveFeature_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "removeFeature";
static constexpr char signature[] =
"(Ljava/lang/String;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void removeFeature(String)
auto RemoveFeature(mozilla::jni::String::Param) const -> nsresult;
struct RemoveKey_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "removeKey";
static constexpr char signature[] =
"(Ljava/lang/String;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void removeKey(String)
auto RemoveKey(mozilla::jni::String::Param) const -> nsresult;
struct SetByteBuffer_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::ByteBuffer::Param> Args;
static constexpr char name[] = "setByteBuffer";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/nio/ByteBuffer;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setByteBuffer(String, ByteBuffer)
auto SetByteBuffer(mozilla::jni::String::Param, mozilla::jni::ByteBuffer::Param) const -> nsresult;
struct SetFeatureEnabled_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
bool> Args;
static constexpr char name[] = "setFeatureEnabled";
static constexpr char signature[] =
"(Ljava/lang/String;Z)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setFeatureEnabled(String, boolean)
auto SetFeatureEnabled(mozilla::jni::String::Param, bool) const -> nsresult;
struct SetFloat_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
float> Args;
static constexpr char name[] = "setFloat";
static constexpr char signature[] =
"(Ljava/lang/String;F)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setFloat(String, float)
auto SetFloat(mozilla::jni::String::Param, float) const -> nsresult;
struct SetInteger_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
int32_t> Args;
static constexpr char name[] = "setInteger";
static constexpr char signature[] =
"(Ljava/lang/String;I)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setInteger(String, int)
auto SetInteger(mozilla::jni::String::Param, int32_t) const -> nsresult;
struct SetLong_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
int64_t> Args;
static constexpr char name[] = "setLong";
static constexpr char signature[] =
"(Ljava/lang/String;J)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setLong(String, long)
auto SetLong(mozilla::jni::String::Param, int64_t) const -> nsresult;
struct SetString_t {
typedef MediaFormat Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::String::Param> Args;
static constexpr char name[] = "setString";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/String;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setString(String, String)
auto SetString(mozilla::jni::String::Param, mozilla::jni::String::Param) const -> nsresult;
struct ToString_t {
typedef MediaFormat Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "toString";
static constexpr char signature[] =
"()Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String toString()
auto ToString(mozilla::jni::String::LocalRef*) const -> nsresult;
static constexpr int32_t COLOR_RANGE_FULL = 1;
static constexpr int32_t COLOR_RANGE_LIMITED = 2;
static constexpr int32_t COLOR_STANDARD_BT2020 = 6;
static constexpr int32_t COLOR_STANDARD_BT601_NTSC = 4;
static constexpr int32_t COLOR_STANDARD_BT601_PAL = 2;
static constexpr int32_t COLOR_STANDARD_BT709 = 1;
static constexpr int32_t COLOR_TRANSFER_HLG = 7;
static constexpr int32_t COLOR_TRANSFER_LINEAR = 1;
static constexpr int32_t COLOR_TRANSFER_SDR_VIDEO = 3;
static constexpr int32_t COLOR_TRANSFER_ST2084 = 6;
static const char16_t KEY_AAC_DRC_ALBUM_MODE[];
static const char16_t KEY_AAC_DRC_ATTENUATION_FACTOR[];
static const char16_t KEY_AAC_DRC_BOOST_FACTOR[];
static const char16_t KEY_AAC_DRC_EFFECT_TYPE[];
static const char16_t KEY_AAC_DRC_HEAVY_COMPRESSION[];
static const char16_t KEY_AAC_DRC_OUTPUT_LOUDNESS[];
static const char16_t KEY_AAC_DRC_TARGET_REFERENCE_LEVEL[];
static const char16_t KEY_AAC_ENCODED_TARGET_LEVEL[];
static const char16_t KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT[];
static const char16_t KEY_AAC_PROFILE[];
static const char16_t KEY_AAC_SBR_MODE[];
static const char16_t KEY_ALLOW_FRAME_DROP[];
static const char16_t KEY_AUDIO_SESSION_ID[];
static const char16_t KEY_BITRATE_MODE[];
static const char16_t KEY_BIT_RATE[];
static const char16_t KEY_BUFFER_BATCH_MAX_OUTPUT_SIZE[];
static const char16_t KEY_BUFFER_BATCH_THRESHOLD_OUTPUT_SIZE[];
static const char16_t KEY_CAPTION_SERVICE_NUMBER[];
static const char16_t KEY_CAPTURE_RATE[];
static const char16_t KEY_CHANNEL_COUNT[];
static const char16_t KEY_CHANNEL_MASK[];
static const char16_t KEY_CODECS_STRING[];
static const char16_t KEY_COLOR_FORMAT[];
static const char16_t KEY_COLOR_RANGE[];
static const char16_t KEY_COLOR_STANDARD[];
static const char16_t KEY_COLOR_TRANSFER[];
static const char16_t KEY_COLOR_TRANSFER_REQUEST[];
static const char16_t KEY_COMPLEXITY[];
static const char16_t KEY_CREATE_INPUT_SURFACE_SUSPENDED[];
static const char16_t KEY_CROP_BOTTOM[];
static const char16_t KEY_CROP_LEFT[];
static const char16_t KEY_CROP_RIGHT[];
static const char16_t KEY_CROP_TOP[];
static const char16_t KEY_DURATION[];
static const char16_t KEY_ENCODER_DELAY[];
static const char16_t KEY_ENCODER_PADDING[];
static const char16_t KEY_FLAC_COMPRESSION_LEVEL[];
static const char16_t KEY_FRAME_RATE[];
static const char16_t KEY_GRID_COLUMNS[];
static const char16_t KEY_GRID_ROWS[];
static const char16_t KEY_HAPTIC_CHANNEL_COUNT[];
static const char16_t KEY_HARDWARE_AV_SYNC_ID[];
static const char16_t KEY_HDR10_PLUS_INFO[];
static const char16_t KEY_HDR_STATIC_INFO[];
static const char16_t KEY_HEIGHT[];
static const char16_t KEY_IMPORTANCE[];
static const char16_t KEY_INTRA_REFRESH_PERIOD[];
static const char16_t KEY_IS_ADTS[];
static const char16_t KEY_IS_AUTOSELECT[];
static const char16_t KEY_IS_DEFAULT[];
static const char16_t KEY_IS_FORCED_SUBTITLE[];
static const char16_t KEY_I_FRAME_INTERVAL[];
static const char16_t KEY_LANGUAGE[];
static const char16_t KEY_LATENCY[];
static const char16_t KEY_LEVEL[];
static const char16_t KEY_LOW_LATENCY[];
static const char16_t KEY_MAX_B_FRAMES[];
static const char16_t KEY_MAX_FPS_TO_ENCODER[];
static const char16_t KEY_MAX_HEIGHT[];
static const char16_t KEY_MAX_INPUT_SIZE[];
static const char16_t KEY_MAX_OUTPUT_CHANNEL_COUNT[];
static const char16_t KEY_MAX_PTS_GAP_TO_ENCODER[];
static const char16_t KEY_MAX_WIDTH[];
static const char16_t KEY_MIME[];
static const char16_t KEY_MPEGH_COMPATIBLE_SETS[];
static const char16_t KEY_MPEGH_PROFILE_LEVEL_INDICATION[];
static const char16_t KEY_MPEGH_REFERENCE_CHANNEL_LAYOUT[];
static const char16_t KEY_OPERATING_RATE[];
static const char16_t KEY_OUTPUT_REORDER_DEPTH[];
static const char16_t KEY_PCM_ENCODING[];
static const char16_t KEY_PICTURE_TYPE[];
static const char16_t KEY_PIXEL_ASPECT_RATIO_HEIGHT[];
static const char16_t KEY_PIXEL_ASPECT_RATIO_WIDTH[];
static const char16_t KEY_PREPEND_HEADER_TO_SYNC_FRAMES[];
static const char16_t KEY_PRIORITY[];
static const char16_t KEY_PROFILE[];
static const char16_t KEY_PUSH_BLANK_BUFFERS_ON_STOP[];
static const char16_t KEY_QUALITY[];
static const char16_t KEY_REPEAT_PREVIOUS_FRAME_AFTER[];
static const char16_t KEY_ROTATION[];
static const char16_t KEY_SAMPLE_RATE[];
static const char16_t KEY_SLICE_HEIGHT[];
static const char16_t KEY_SLOW_MOTION_MARKERS[];
static const char16_t KEY_STRIDE[];
static const char16_t KEY_TEMPORAL_LAYERING[];
static const char16_t KEY_TILE_HEIGHT[];
static const char16_t KEY_TILE_WIDTH[];
static const char16_t KEY_TRACK_ID[];
static const char16_t KEY_VIDEO_ENCODING_STATISTICS_LEVEL[];
static const char16_t KEY_VIDEO_QP_AVERAGE[];
static const char16_t KEY_VIDEO_QP_B_MAX[];
static const char16_t KEY_VIDEO_QP_B_MIN[];
static const char16_t KEY_VIDEO_QP_I_MAX[];
static const char16_t KEY_VIDEO_QP_I_MIN[];
static const char16_t KEY_VIDEO_QP_MAX[];
static const char16_t KEY_VIDEO_QP_MIN[];
static const char16_t KEY_VIDEO_QP_P_MAX[];
static const char16_t KEY_VIDEO_QP_P_MIN[];
static const char16_t KEY_WIDTH[];
static const char16_t LOG_SESSION_ID[];
static const char16_t MIMETYPE_AUDIO_AAC[];
static const char16_t MIMETYPE_AUDIO_AAC_ELD[];
static const char16_t MIMETYPE_AUDIO_AAC_HE_V1[];
static const char16_t MIMETYPE_AUDIO_AAC_HE_V2[];
static const char16_t MIMETYPE_AUDIO_AAC_LC[];
static const char16_t MIMETYPE_AUDIO_AAC_XHE[];
static const char16_t MIMETYPE_AUDIO_AC3[];
static const char16_t MIMETYPE_AUDIO_AC4[];
static const char16_t MIMETYPE_AUDIO_AMR_NB[];
static const char16_t MIMETYPE_AUDIO_AMR_WB[];
static const char16_t MIMETYPE_AUDIO_DOLBY_MAT[];
static const char16_t MIMETYPE_AUDIO_DOLBY_TRUEHD[];
static const char16_t MIMETYPE_AUDIO_DRA[];
static const char16_t MIMETYPE_AUDIO_DTS[];
static const char16_t MIMETYPE_AUDIO_DTS_HD[];
static const char16_t MIMETYPE_AUDIO_DTS_UHD[];
static const char16_t MIMETYPE_AUDIO_EAC3[];
static const char16_t MIMETYPE_AUDIO_EAC3_JOC[];
static const char16_t MIMETYPE_AUDIO_FLAC[];
static const char16_t MIMETYPE_AUDIO_G711_ALAW[];
static const char16_t MIMETYPE_AUDIO_G711_MLAW[];
static const char16_t MIMETYPE_AUDIO_IEC61937[];
static const char16_t MIMETYPE_AUDIO_MPEG[];
static const char16_t MIMETYPE_AUDIO_MPEGH_BL_L3[];
static const char16_t MIMETYPE_AUDIO_MPEGH_BL_L4[];
static const char16_t MIMETYPE_AUDIO_MPEGH_LC_L3[];
static const char16_t MIMETYPE_AUDIO_MPEGH_LC_L4[];
static const char16_t MIMETYPE_AUDIO_MPEGH_MHA1[];
static const char16_t MIMETYPE_AUDIO_MPEGH_MHM1[];
static const char16_t MIMETYPE_AUDIO_MSGSM[];
static const char16_t MIMETYPE_AUDIO_OPUS[];
static const char16_t MIMETYPE_AUDIO_QCELP[];
static const char16_t MIMETYPE_AUDIO_RAW[];
static const char16_t MIMETYPE_AUDIO_SCRAMBLED[];
static const char16_t MIMETYPE_AUDIO_VORBIS[];
static const char16_t MIMETYPE_IMAGE_ANDROID_HEIC[];
static const char16_t MIMETYPE_IMAGE_AVIF[];
static const char16_t MIMETYPE_TEXT_CEA_608[];
static const char16_t MIMETYPE_TEXT_CEA_708[];
static const char16_t MIMETYPE_TEXT_SUBRIP[];
static const char16_t MIMETYPE_TEXT_VTT[];
static const char16_t MIMETYPE_VIDEO_AV1[];
static const char16_t MIMETYPE_VIDEO_AVC[];
static const char16_t MIMETYPE_VIDEO_DOLBY_VISION[];
static const char16_t MIMETYPE_VIDEO_H263[];
static const char16_t MIMETYPE_VIDEO_HEVC[];
static const char16_t MIMETYPE_VIDEO_MPEG2[];
static const char16_t MIMETYPE_VIDEO_MPEG4[];
static const char16_t MIMETYPE_VIDEO_RAW[];
static const char16_t MIMETYPE_VIDEO_SCRAMBLED[];
static const char16_t MIMETYPE_VIDEO_VP8[];
static const char16_t MIMETYPE_VIDEO_VP9[];
static constexpr int32_t PICTURE_TYPE_B = 3;
static constexpr int32_t PICTURE_TYPE_I = 1;
static constexpr int32_t PICTURE_TYPE_P = 2;
static constexpr int32_t PICTURE_TYPE_UNKNOWN = 0;
static constexpr int32_t TYPE_BYTE_BUFFER = 5;
static constexpr int32_t TYPE_FLOAT = 3;
static constexpr int32_t TYPE_INTEGER = 1;
static constexpr int32_t TYPE_LONG = 2;
static constexpr int32_t TYPE_NULL = 0;
static constexpr int32_t TYPE_STRING = 4;
static constexpr int32_t VIDEO_ENCODING_STATISTICS_LEVEL_1 = 1;
static constexpr int32_t VIDEO_ENCODING_STATISTICS_LEVEL_NONE = 0;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* sdk */
} /* java */
} /* mozilla */
#endif