Java 类android.view.TextureView.SurfaceTextureListener 实例源码

项目:VideoInfoViewer    文件:ScaledTextureView.java   
public void addSurfaceTextureListener( SurfaceTextureListener listener ) {
   mListeners.add( listener );

   if ( mSurfaceAvailable ) {
      listener.onSurfaceTextureAvailable( mSurfaceTexture, mWidth, mHeight );
   }
}
项目:VideoInfoViewer    文件:ScaledTextureView.java   
@Override
public void onSurfaceTextureAvailable( SurfaceTexture surface, int width, int height ) {
   mSurfaceTexture = surface;

   mWidth = width;
   mHeight = height;

   mSurfaceAvailable = true;

   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureAvailable( surface, width, height );
   }
}
项目:VideoInfoViewer    文件:ScaledTextureView.java   
@Override
public boolean onSurfaceTextureDestroyed( SurfaceTexture surface ) {
   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureDestroyed( surface );
   }

   return true;
}
项目:VideoInfoViewer    文件:ScaledTextureView.java   
@Override
public void onSurfaceTextureSizeChanged( SurfaceTexture surface, int width, int height ) {
   mWidth = width;
   mHeight = height;

   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureSizeChanged( surface, width, height );
   }
}
项目:AndroidVideoSamples    文件:ScaledTextureView.java   
public void addSurfaceTextureListener( SurfaceTextureListener listener ) {
   mListeners.add( listener );

   if ( mSurfaceAvailable ) {
      listener.onSurfaceTextureAvailable( mSurfaceTexture, mWidth, mHeight );
   }
}
项目:AndroidVideoSamples    文件:ScaledTextureView.java   
@Override
public void onSurfaceTextureAvailable( SurfaceTexture surface, int width, int height ) {
   mSurfaceTexture = surface;

   mWidth = width;
   mHeight = height;

   mSurfaceAvailable = true;

   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureAvailable( surface, width, height );
   }
}
项目:AndroidVideoSamples    文件:ScaledTextureView.java   
@Override
public boolean onSurfaceTextureDestroyed( SurfaceTexture surface ) {
   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureDestroyed( surface );
   }

   return true;
}
项目:AndroidVideoSamples    文件:ScaledTextureView.java   
@Override
public void onSurfaceTextureSizeChanged( SurfaceTexture surface, int width, int height ) {
   mWidth = width;
   mHeight = height;

   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureSizeChanged( surface, width, height );
   }
}
项目:VideoInfoViewer    文件:ScaledTextureView.java   
@Override
public void onSurfaceTextureUpdated( SurfaceTexture surface ) {
   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureUpdated( surface );
   }
}
项目:AndroidVideoSamples    文件:ScaledTextureView.java   
@Override
public void onSurfaceTextureUpdated( SurfaceTexture surface ) {
   for ( SurfaceTextureListener listener : mListeners ) {
      listener.onSurfaceTextureUpdated( surface );
   }
}