#include <DVDVideoCodecAndroidMediaCodec.h>
◆ CDVDVideoCodecAndroidMediaCodec()
CDVDVideoCodecAndroidMediaCodec::CDVDVideoCodecAndroidMediaCodec |
( |
CProcessInfo & | processInfo, |
|
|
bool | surface_render = false ) |
◆ ~CDVDVideoCodecAndroidMediaCodec()
CDVDVideoCodecAndroidMediaCodec::~CDVDVideoCodecAndroidMediaCodec |
( |
| ) |
|
|
override |
◆ AddData()
bool CDVDVideoCodecAndroidMediaCodec::AddData |
( |
const DemuxPacket & | packet | ) |
|
|
overridevirtual |
add data, decoder has to consume the entire packet returns true if the packet was consumed or if resubmitting it is useless
Implements CDVDVideoCodec.
◆ CallbackInitSurfaceTexture()
void CDVDVideoCodecAndroidMediaCodec::CallbackInitSurfaceTexture |
( |
void * | userdata | ) |
|
|
staticprotected |
◆ ConfigureMediaCodec()
bool CDVDVideoCodecAndroidMediaCodec::ConfigureMediaCodec |
( |
void | | ) |
|
|
protected |
◆ ConfigureOutputFormat()
void CDVDVideoCodecAndroidMediaCodec::ConfigureOutputFormat |
( |
CJNIMediaFormat & | mediaformat | ) |
|
|
protected |
◆ Create()
◆ Dispose()
void CDVDVideoCodecAndroidMediaCodec::Dispose |
( |
| ) |
|
|
protected |
◆ FlushInternal()
void CDVDVideoCodecAndroidMediaCodec::FlushInternal |
( |
void | | ) |
|
|
protected |
◆ GetAllowedReferences()
unsigned CDVDVideoCodecAndroidMediaCodec::GetAllowedReferences |
( |
| ) |
|
|
overridevirtual |
Number of references to old pictures that are allowed to be retained when calling decode on the next demux packet
Reimplemented from CDVDVideoCodec.
◆ GetHDRStaticMetadata()
std::vector< uint8_t > CDVDVideoCodecAndroidMediaCodec::GetHDRStaticMetadata |
( |
| ) |
|
|
protected |
◆ GetName()
const char * CDVDVideoCodecAndroidMediaCodec::GetName |
( |
| ) |
|
|
inlineoverridevirtual |
◆ GetOutputPicture()
int CDVDVideoCodecAndroidMediaCodec::GetOutputPicture |
( |
void | | ) |
|
|
protected |
◆ GetPicture()
GetPicture controls decoding. Player calls it on every cycle it can signal a picture, request a buffer, or return none, if nothing applies the data is valid until the next GetPicture return VC_PICTURE
Implements CDVDVideoCodec.
◆ InitSurfaceTexture()
void CDVDVideoCodecAndroidMediaCodec::InitSurfaceTexture |
( |
void | | ) |
|
|
protected |
◆ InjectExtraData()
void CDVDVideoCodecAndroidMediaCodec::InjectExtraData |
( |
CJNIMediaFormat & | mediaformat | ) |
|
|
protected |
◆ Open()
Open the decoder, returns true on success Decoders not capable of running multiple instances should return false in case there is already a instance open
Implements CDVDVideoCodec.
◆ Reconfigure()
Reconfigure the decoder, returns true on success Decoders not capable of running multiple instances may be capable of reconfiguring the running instance. If Reconfigure returns false, player will close / open the decoder
Reimplemented from CDVDVideoCodec.
◆ Register()
bool CDVDVideoCodecAndroidMediaCodec::Register |
( |
| ) |
|
|
static |
◆ ReleaseSurfaceTexture()
void CDVDVideoCodecAndroidMediaCodec::ReleaseSurfaceTexture |
( |
void | | ) |
|
|
protected |
◆ Reset()
void CDVDVideoCodecAndroidMediaCodec::Reset |
( |
| ) |
|
|
overridevirtual |
Reset the decoder. Should be the same as calling Dispose and Open after each other
Implements CDVDVideoCodec.
◆ SetCodecControl()
void CDVDVideoCodecAndroidMediaCodec::SetCodecControl |
( |
int | flags | ) |
|
|
overridevirtual |
Codec can be informed by player with the following flags:
DVD_CODEC_CTRL_NO_POSTPROC : if speed is not normal the codec can switch off postprocessing and de-interlacing
DVD_CODEC_CTRL_HURRY : codecs may do postprocessing and de-interlacing. If video buffers in RenderManager are about to run dry, this is signaled to codec. Codec can wait for post-proc to be finished instead of returning empty and getting another packet.
DVD_CODEC_CTRL_DRAIN : instruct decoder to deliver last pictures without requesting new packets
DVD_CODEC_CTRL_DROP : this packet is going to be dropped. decoder is free to use it for decoding
Reimplemented from CDVDVideoCodec.
◆ SignalEndOfStream()
void CDVDVideoCodecAndroidMediaCodec::SignalEndOfStream |
( |
| ) |
|
|
protected |
◆ surfaceChanged()
void CDVDVideoCodecAndroidMediaCodec::surfaceChanged |
( |
CJNISurfaceHolder | holder, |
|
|
int | format, |
|
|
int | width, |
|
|
int | height ) |
|
override |
◆ surfaceCreated()
void CDVDVideoCodecAndroidMediaCodec::surfaceCreated |
( |
CJNISurfaceHolder | holder | ) |
|
|
override |
◆ surfaceDestroyed()
void CDVDVideoCodecAndroidMediaCodec::surfaceDestroyed |
( |
CJNISurfaceHolder | holder | ) |
|
|
override |
◆ UpdateFpsDuration()
void CDVDVideoCodecAndroidMediaCodec::UpdateFpsDuration |
( |
| ) |
|
|
protected |
◆ m_bitstream
◆ m_codec
std::shared_ptr<CJNIMediaCodec> CDVDVideoCodecAndroidMediaCodec::m_codec |
|
protected |
◆ m_codecControlFlags
int CDVDVideoCodecAndroidMediaCodec::m_codecControlFlags |
|
protected |
◆ m_codecname
std::string CDVDVideoCodecAndroidMediaCodec::m_codecname |
|
protected |
◆ m_crypto
CJNIMediaCrypto* CDVDVideoCodecAndroidMediaCodec::m_crypto = nullptr |
|
protected |
◆ m_demux_pkt
amc_demux CDVDVideoCodecAndroidMediaCodec::m_demux_pkt |
|
protected |
◆ m_dtsShift
◆ m_formatname
std::string CDVDVideoCodecAndroidMediaCodec::m_formatname |
|
protected |
◆ m_fpsDuration
uint32_t CDVDVideoCodecAndroidMediaCodec::m_fpsDuration = 0 |
|
protected |
◆ m_frameAvailable
◆ m_hints
◆ m_indexInputBuffer
int CDVDVideoCodecAndroidMediaCodec::m_indexInputBuffer |
|
protected |
◆ m_InstanceGuard
std::atomic< bool > CDVDVideoCodecAndroidMediaCodec::m_InstanceGuard |
|
staticprotected |
◆ m_invalidPTSValue
int64_t CDVDVideoCodecAndroidMediaCodec::m_invalidPTSValue = 0 |
|
protected |
◆ m_jnivideosurface
CJNISurface CDVDVideoCodecAndroidMediaCodec::m_jnivideosurface |
|
protected |
◆ m_jnivideoview
◆ m_lastPTS
int64_t CDVDVideoCodecAndroidMediaCodec::m_lastPTS = -1 |
|
protected |
◆ m_mime
std::string CDVDVideoCodecAndroidMediaCodec::m_mime |
|
protected |
◆ m_mpeg2_sequence
mpeg2_sequence* CDVDVideoCodecAndroidMediaCodec::m_mpeg2_sequence = nullptr |
|
protected |
◆ m_needSecureDecoder
bool CDVDVideoCodecAndroidMediaCodec::m_needSecureDecoder = false |
|
protected |
◆ m_opened
bool CDVDVideoCodecAndroidMediaCodec::m_opened = false |
|
protected |
◆ m_OutputDuration
uint32_t CDVDVideoCodecAndroidMediaCodec::m_OutputDuration = 0 |
|
protected |
◆ m_render_surface
bool CDVDVideoCodecAndroidMediaCodec::m_render_surface |
|
protected |
◆ m_src_offset
int CDVDVideoCodecAndroidMediaCodec::m_src_offset[4] |
|
protected |
◆ m_src_stride
int CDVDVideoCodecAndroidMediaCodec::m_src_stride[4] |
|
protected |
◆ m_state
int CDVDVideoCodecAndroidMediaCodec::m_state |
|
protected |
◆ m_surfaceTexture
std::shared_ptr<CJNISurfaceTexture> CDVDVideoCodecAndroidMediaCodec::m_surfaceTexture |
|
protected |
◆ m_textureId
unsigned int CDVDVideoCodecAndroidMediaCodec::m_textureId = 0 |
|
protected |
◆ m_useDTSforPTS
bool CDVDVideoCodecAndroidMediaCodec::m_useDTSforPTS = false |
|
protected |
◆ m_videobuffer
◆ m_videoBufferPool
The documentation for this class was generated from the following files: