Shaka Player Embedded
Classes | Namespaces | Enumerations | Functions
utils.h File Reference
#include <assert.h>
#include <iostream>
#include <limits>
#include <string>
#include <type_traits>
#include "macros.h"

Go to the source code of this file.

Classes

struct  shaka::ShakaRect< T >
 
struct  shaka::Rational< T >
 

Namespaces

 shaka
 

Enumerations

enum  shaka::VideoFillMode : uint8_t { shaka::VideoFillMode::MaintainRatio, shaka::VideoFillMode::Stretch, shaka::VideoFillMode::Zoom }
 

Functions

template<typename T >
std::ostream & shaka::operator<< (std::ostream &os, const ShakaRect< T > &rect)
 
template<typename T >
std::ostream & shaka::operator<< (std::ostream &os, const Rational< T > &bar)
 
template<typename T , typename U , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
Rational< typename std::common_type< T, U >::typeshaka::operator* (T a, const Rational< U > &b)
 
template<typename T , typename U , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
Rational< typename std::common_type< T, U >::typeshaka::operator/ (T a, const Rational< U > &b)
 
void shaka::FitVideoToRegion (ShakaRect< uint32_t > frame, ShakaRect< uint32_t > bounds, Rational< uint32_t > sample_aspect_ratio, VideoFillMode mode, ShakaRect< uint32_t > *src, ShakaRect< uint32_t > *dest)
 
std::string shaka::EscapeKeySystem (const std::string &key_system)
 
std::string shaka::LicenseServerConfig (const std::string &key_system)
 
std::string shaka::AdvancedDrmConfig (const std::string &key_system, const std::string &property)