Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestVideoCodecPictureFormat.cpp File Reference

Functions

 TEST (TestVideoCodecPictureFormat, SquarePixelsAreDisplayedAtThePicturesOwnSize)
 A renderer scales a picture whose display size differs from its own, so neither may be rounded.
 
 TEST (TestVideoCodecPictureFormat, WidePixelsKeepTheWidthAndReduceTheHeight)
 Pixels twice as wide as they are high: the width is kept and the height halved.
 
 TEST (TestVideoCodecPictureFormat, AV1ReportsItsPixelFormatAndBitDepth)
 AV1 decodes through libdav1d, which allocates its own frames and so never has sw_pix_fmt set.
 
 TEST (TestVideoCodecPictureFormat, H264ReportsItsPixelFormatAndBitDepth)
 The get_format() path, which the fallback above must leave alone.
 
 TEST (TestVideoCodecPictureFormat, RangeNotGivenIsFullForRGBOnly)
 FFmpeg takes RGB to be full range, and a decoder handing RGB over often gives no range.
 

Function Documentation

◆ TEST() [1/5]

TEST ( TestVideoCodecPictureFormat ,
AV1ReportsItsPixelFormatAndBitDepth  )

AV1 decodes through libdav1d, which allocates its own frames and so never has sw_pix_fmt set.

◆ TEST() [2/5]

TEST ( TestVideoCodecPictureFormat ,
H264ReportsItsPixelFormatAndBitDepth  )

The get_format() path, which the fallback above must leave alone.

◆ TEST() [3/5]

TEST ( TestVideoCodecPictureFormat ,
RangeNotGivenIsFullForRGBOnly  )

FFmpeg takes RGB to be full range, and a decoder handing RGB over often gives no range.

◆ TEST() [4/5]

TEST ( TestVideoCodecPictureFormat ,
SquarePixelsAreDisplayedAtThePicturesOwnSize  )

A renderer scales a picture whose display size differs from its own, so neither may be rounded.

◆ TEST() [5/5]

TEST ( TestVideoCodecPictureFormat ,
WidePixelsKeepTheWidthAndReduceTheHeight  )

Pixels twice as wide as they are high: the width is kept and the height halved.