Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
jni::CJNIXBMCVideoView Class Reference

#include <JNIXBMCVideoView.h>

Inheritance diagram for jni::CJNIXBMCVideoView:

Public Member Functions

 CJNIXBMCVideoView (const jni::jhobject &object)
 
 ~CJNIXBMCVideoView () override=default
 
void surfaceChanged (CJNISurfaceHolder holder, int format, int width, int height) override
 
void surfaceCreated (CJNISurfaceHolder holder) override
 
void surfaceDestroyed (CJNISurfaceHolder holder) override
 
bool waitForSurface (unsigned int millis)
 
bool isActive ()
 
CJNISurface getSurface ()
 
const CRectgetSurfaceRect ()
 
void setSurfaceRect (const CRect &rect)
 
void add ()
 
void release ()
 
int ID () const
 
bool isCreated () const
 

Static Public Member Functions

static void RegisterNatives (JNIEnv *env)
 
static CJNIXBMCVideoViewcreateVideoView (CJNISurfaceHolderCallback *callback)
 
static void _surfaceChanged (JNIEnv *env, jobject thiz, jobject holder, jint format, jint width, jint height)
 
static void _surfaceCreated (JNIEnv *env, jobject thiz, jobject holder)
 
static void _surfaceDestroyed (JNIEnv *env, jobject thiz, jobject holder)
 

Protected Attributes

CJNISurfaceHolderCallback * m_callback = nullptr
 
CEvent m_surfaceCreated
 
CRect m_surfaceRect
 

Constructor & Destructor Documentation

◆ CJNIXBMCVideoView()

CJNIXBMCVideoView::CJNIXBMCVideoView ( const jni::jhobject & object)

◆ ~CJNIXBMCVideoView()

jni::CJNIXBMCVideoView::~CJNIXBMCVideoView ( )
overridedefault

Member Function Documentation

◆ _surfaceChanged()

void CJNIXBMCVideoView::_surfaceChanged ( JNIEnv * env,
jobject thiz,
jobject holder,
jint format,
jint width,
jint height )
static

◆ _surfaceCreated()

void CJNIXBMCVideoView::_surfaceCreated ( JNIEnv * env,
jobject thiz,
jobject holder )
static

◆ _surfaceDestroyed()

void CJNIXBMCVideoView::_surfaceDestroyed ( JNIEnv * env,
jobject thiz,
jobject holder )
static

◆ add()

void CJNIXBMCVideoView::add ( )

◆ createVideoView()

CJNIXBMCVideoView * CJNIXBMCVideoView::createVideoView ( CJNISurfaceHolderCallback * callback)
static

◆ getSurface()

CJNISurface CJNIXBMCVideoView::getSurface ( )

◆ getSurfaceRect()

const CRect & CJNIXBMCVideoView::getSurfaceRect ( )

◆ ID()

int jni::CJNIXBMCVideoView::ID ( ) const

◆ isActive()

bool jni::CJNIXBMCVideoView::isActive ( )
inline

◆ isCreated()

bool CJNIXBMCVideoView::isCreated ( ) const

◆ RegisterNatives()

void CJNIXBMCVideoView::RegisterNatives ( JNIEnv * env)
static

◆ release()

void CJNIXBMCVideoView::release ( )

◆ setSurfaceRect()

void CJNIXBMCVideoView::setSurfaceRect ( const CRect & rect)

◆ surfaceChanged()

void CJNIXBMCVideoView::surfaceChanged ( CJNISurfaceHolder holder,
int format,
int width,
int height )
override

◆ surfaceCreated()

void CJNIXBMCVideoView::surfaceCreated ( CJNISurfaceHolder holder)
override

◆ surfaceDestroyed()

void CJNIXBMCVideoView::surfaceDestroyed ( CJNISurfaceHolder holder)
override

◆ waitForSurface()

bool CJNIXBMCVideoView::waitForSurface ( unsigned int millis)

Member Data Documentation

◆ m_callback

CJNISurfaceHolderCallback* jni::CJNIXBMCVideoView::m_callback = nullptr
protected

◆ m_surfaceCreated

CEvent jni::CJNIXBMCVideoView::m_surfaceCreated
protected

◆ m_surfaceRect

CRect jni::CJNIXBMCVideoView::m_surfaceRect
protected

The documentation for this class was generated from the following files: