webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Static Public Member Functions | List of all members
org.webrtc.RendererCommon Class Reference

Classes

interface  GlDrawer
 
interface  RendererEvents
 
enum  ScalingType
 
class  VideoLayoutMeasure
 
class  YuvUploader
 

Static Public Member Functions

static final float [] identityMatrix ()
 
static final float [] verticalFlipMatrix ()
 
static final float [] horizontalFlipMatrix ()
 
static float [] rotateTextureMatrix (float[] textureMatrix, float rotationDegree)
 
static float [] multiplyMatrices (float[] a, float[] b)
 
static float [] getLayoutMatrix (boolean mirror, float videoAspectRatio, float displayAspectRatio)
 
static Point getDisplaySize (ScalingType scalingType, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight)
 

Detailed Description

Static helper functions for renderer implementations.

Member Function Documentation

◆ getDisplaySize()

static Point org.webrtc.RendererCommon.getDisplaySize ( ScalingType  scalingType,
float  videoAspectRatio,
int  maxDisplayWidth,
int  maxDisplayHeight 
)
inlinestatic

Calculate display size based on scaling type, video aspect ratio, and maximum display size.

◆ getLayoutMatrix()

static float [] org.webrtc.RendererCommon.getLayoutMatrix ( boolean  mirror,
float  videoAspectRatio,
float  displayAspectRatio 
)
inlinestatic

Returns layout transformation matrix that applies an optional mirror effect and compensates for video vs display aspect ratio.

◆ horizontalFlipMatrix()

static final float [] org.webrtc.RendererCommon.horizontalFlipMatrix ( )
inlinestatic

◆ identityMatrix()

static final float [] org.webrtc.RendererCommon.identityMatrix ( )
inlinestatic

◆ multiplyMatrices()

static float [] org.webrtc.RendererCommon.multiplyMatrices ( float []  a,
float []  b 
)
inlinestatic

Returns new matrix with the result of a * b.

◆ rotateTextureMatrix()

static float [] org.webrtc.RendererCommon.rotateTextureMatrix ( float []  textureMatrix,
float  rotationDegree 
)
inlinestatic

Returns texture matrix that will have the effect of rotating the frame |rotationDegree| clockwise when rendered.

◆ verticalFlipMatrix()

static final float [] org.webrtc.RendererCommon.verticalFlipMatrix ( )
inlinestatic

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