webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions | Variables
internal Namespace Reference

Classes

class  BigInteger
 
struct  DiyFp
 
class  Double
 
struct  FrameDecodeParams
 
struct  FrameEncodeParams
 
struct  IsGenericValue
 
struct  IsGenericValueImpl
 
struct  IsGenericValueImpl< T, typename Void< typename T::EncodingType >::Type, typename Void< typename T::AllocatorType >::Type >
 
class  Stack
 A type-unsafe stack for storing different types of data. More...
 
class  StreamLocalCopy
 
class  StreamLocalCopy< Stream, 0 >
 Keep reference. More...
 
class  StreamLocalCopy< Stream, 1 >
 Do copy optimization. More...
 

Functions

DiyFp GetCachedPowerByIndex (size_t index)
 
DiyFp GetCachedPower (int e, int *K)
 
DiyFp GetCachedPower10 (int exp, int *outExp)
 
void GrisuRound (char *buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, uint64_t wp_w)
 
unsigned CountDecimalDigit32 (uint32_t n)
 
void DigitGen (const DiyFp &W, const DiyFp &Mp, uint64_t delta, char *buffer, int *len, int *K)
 
void Grisu2 (double value, char *buffer, int *length, int *K)
 
char * WriteExponent (int K, char *buffer)
 
char * Prettify (char *buffer, int length, int k)
 
char * dtoa (double value, char *buffer)
 
const char * GetDigitsLut ()
 
char * u32toa (uint32_t value, char *buffer)
 
char * i32toa (int32_t value, char *buffer)
 
char * u64toa (uint64_t value, char *buffer)
 
char * i64toa (int64_t value, char *buffer)
 
double Pow10 (int n)
 Computes integer powers of 10 in double (10.0^n). More...
 
template<typename Ch >
SizeType StrLen (const Ch *s)
 Custom strlen() which works on different character types. More...
 
double FastPath (double significand, int exp)
 
double StrtodNormalPrecision (double d, int p)
 
template<typename T >
T Min3 (T a, T b, T c)
 
int CheckWithinHalfULP (double b, const BigInteger &d, int dExp, bool *adjustToNegative)
 
bool StrtodFast (double d, int p, double *result)
 
bool StrtodDiyFp (const char *decimals, size_t length, size_t decimalPosition, int exp, double *result)
 
double StrtodBigInteger (double approx, const char *decimals, size_t length, size_t decimalPosition, int exp)
 
double StrtodFullPrecision (double d, int p, const char *decimals, size_t length, size_t decimalPosition, int exp)
 
CFDictionaryRef CreateCFDictionary (CFTypeRef *keys, CFTypeRef *values, size_t size)
 
void VTDecompressionOutputCallback (void *decoder, void *params, OSStatus status, VTDecodeInfoFlags info_flags, CVImageBufferRef image_buffer, CMTime timestamp, CMTime duration)
 
std::string CFStringToString (const CFStringRef cf_string)
 
void SetVTSessionProperty (VTSessionRef session, CFStringRef key, int32_t value)
 
void SetVTSessionProperty (VTSessionRef session, CFStringRef key, uint32_t value)
 
void SetVTSessionProperty (VTSessionRef session, CFStringRef key, bool value)
 
void SetVTSessionProperty (VTSessionRef session, CFStringRef key, CFStringRef value)
 
bool CopyVideoFrameToPixelBuffer (const rtc::scoped_refptr< webrtc::VideoFrameBuffer > &frame, CVPixelBufferRef pixel_buffer)
 
CVPixelBufferRef CreatePixelBuffer (CVPixelBufferPoolRef pixel_buffer_pool)
 
void VTCompressionOutputCallback (void *encoder, void *params, OSStatus status, VTEncodeInfoFlags info_flags, CMSampleBufferRef sample_buffer)
 
CFStringRef ExtractProfile (const cricket::VideoCodec &codec)
 

Variables

const float kLimitToAverageBitRateFactor = 1.5f
 
const int kLowH264QpThreshold = 28
 
const int kHighH264QpThreshold = 39
 

Function Documentation

◆ CFStringToString()

std::string internal::CFStringToString ( const CFStringRef  cf_string)

◆ CheckWithinHalfULP()

int internal::CheckWithinHalfULP ( double  b,
const BigInteger d,
int  dExp,
bool *  adjustToNegative 
)
inline

◆ CopyVideoFrameToPixelBuffer()

bool internal::CopyVideoFrameToPixelBuffer ( const rtc::scoped_refptr< webrtc::VideoFrameBuffer > &  frame,
CVPixelBufferRef  pixel_buffer 
)

◆ CountDecimalDigit32()

unsigned internal::CountDecimalDigit32 ( uint32_t  n)
inline

◆ CreateCFDictionary()

CFDictionaryRef internal::CreateCFDictionary ( CFTypeRef keys,
CFTypeRef values,
size_t  size 
)
inline

◆ CreatePixelBuffer()

CVPixelBufferRef internal::CreatePixelBuffer ( CVPixelBufferPoolRef  pixel_buffer_pool)

◆ DigitGen()

void internal::DigitGen ( const DiyFp W,
const DiyFp Mp,
uint64_t  delta,
char *  buffer,
int *  len,
int *  K 
)
inline

◆ dtoa()

char* internal::dtoa ( double  value,
char *  buffer 
)
inline

◆ ExtractProfile()

CFStringRef internal::ExtractProfile ( const cricket::VideoCodec codec)

◆ FastPath()

double internal::FastPath ( double  significand,
int  exp 
)
inline

◆ GetCachedPower()

DiyFp internal::GetCachedPower ( int  e,
int *  K 
)
inline

◆ GetCachedPower10()

DiyFp internal::GetCachedPower10 ( int  exp,
int *  outExp 
)
inline

◆ GetCachedPowerByIndex()

DiyFp internal::GetCachedPowerByIndex ( size_t  index)
inline

◆ GetDigitsLut()

const char* internal::GetDigitsLut ( )
inline

◆ Grisu2()

void internal::Grisu2 ( double  value,
char *  buffer,
int *  length,
int *  K 
)
inline

◆ GrisuRound()

void internal::GrisuRound ( char *  buffer,
int  len,
uint64_t  delta,
uint64_t  rest,
uint64_t  ten_kappa,
uint64_t  wp_w 
)
inline

closer

◆ i32toa()

char* internal::i32toa ( int32_t  value,
char *  buffer 
)
inline

◆ i64toa()

char* internal::i64toa ( int64_t  value,
char *  buffer 
)
inline

◆ Min3()

template<typename T >
T internal::Min3 ( T  a,
T  b,
T  c 
)
inline

◆ Pow10()

double internal::Pow10 ( int  n)
inline

Computes integer powers of 10 in double (10.0^n).

This function uses lookup table for fast and accurate results.

Parameters
nnon-negative exponent. Must <= 308.
Returns
10.0^n

◆ Prettify()

char* internal::Prettify ( char *  buffer,
int  length,
int  k 
)
inline

◆ SetVTSessionProperty() [1/4]

void internal::SetVTSessionProperty ( VTSessionRef  session,
CFStringRef  key,
int32_t  value 
)

◆ SetVTSessionProperty() [2/4]

void internal::SetVTSessionProperty ( VTSessionRef  session,
CFStringRef  key,
uint32_t  value 
)

◆ SetVTSessionProperty() [3/4]

void internal::SetVTSessionProperty ( VTSessionRef  session,
CFStringRef  key,
bool  value 
)

◆ SetVTSessionProperty() [4/4]

void internal::SetVTSessionProperty ( VTSessionRef  session,
CFStringRef  key,
CFStringRef  value 
)

◆ StrLen()

template<typename Ch >
SizeType internal::StrLen ( const Ch s)
inline

Custom strlen() which works on different character types.

Template Parameters
ChCharacter type (e.g. char, wchar_t, short)
Parameters
sNull-terminated input string.
Returns
Number of characters in the string.
Note
This has the same semantics as strlen(), the return value is not number of Unicode codepoints.

◆ StrtodBigInteger()

double internal::StrtodBigInteger ( double  approx,
const char *  decimals,
size_t  length,
size_t  decimalPosition,
int  exp 
)
inline

◆ StrtodDiyFp()

bool internal::StrtodDiyFp ( const char *  decimals,
size_t  length,
size_t  decimalPosition,
int  exp,
double *  result 
)
inline

◆ StrtodFast()

bool internal::StrtodFast ( double  d,
int  p,
double *  result 
)
inline

◆ StrtodFullPrecision()

double internal::StrtodFullPrecision ( double  d,
int  p,
const char *  decimals,
size_t  length,
size_t  decimalPosition,
int  exp 
)
inline

◆ StrtodNormalPrecision()

double internal::StrtodNormalPrecision ( double  d,
int  p 
)
inline

◆ u32toa()

char* internal::u32toa ( uint32_t  value,
char *  buffer 
)
inline

◆ u64toa()

char* internal::u64toa ( uint64_t  value,
char *  buffer 
)
inline

◆ VTCompressionOutputCallback()

void internal::VTCompressionOutputCallback ( void encoder,
void params,
OSStatus  status,
VTEncodeInfoFlags  info_flags,
CMSampleBufferRef  sample_buffer 
)

◆ VTDecompressionOutputCallback()

void internal::VTDecompressionOutputCallback ( void decoder,
void params,
OSStatus  status,
VTDecodeInfoFlags  info_flags,
CVImageBufferRef  image_buffer,
CMTime  timestamp,
CMTime  duration 
)

◆ WriteExponent()

char* internal::WriteExponent ( int  K,
char *  buffer 
)
inline

Variable Documentation

◆ kHighH264QpThreshold

const int internal::kHighH264QpThreshold = 39

◆ kLimitToAverageBitRateFactor

const float internal::kLimitToAverageBitRateFactor = 1.5f

◆ kLowH264QpThreshold

const int internal::kLowH264QpThreshold = 28