Native Player  1.0
common.h File Reference
#include <limits>
#include <sstream>
#include <string>
#include "nacl_player/common.h"
#include "dash/media_stream.h"
#include "logger.h"

Go to the source code of this file.

Macros

#define LOG_STATS   __LINE__, __func__, __FILE__
 
#define LOG(msg, ...)   Logger::Log(LOG_STATS, msg, ##__VA_ARGS__)
 
#define LOG_ERROR(msg, ...)   Logger::Error(LOG_STATS, msg, ##__VA_ARGS__)
 
#define LOG_DEBUG(msg, ...)   Logger::Debug(LOG_STATS, msg, ##__VA_ARGS__)
 

Enumerations

enum  StreamType : int32_t { StreamType::Video = static_cast<int32_t>(MediaStreamType::Video), StreamType::Audio = static_cast<int32_t>(MediaStreamType::Audio), StreamType::MaxStreamTypes = static_cast<int32_t>(MediaStreamType::MaxTypes) }
 

Functions

template<typename T , class... Args>
std::unique_ptr< T > MakeUnique (Args &&...args)
 
template<typename T >
std::unique_ptr< T > AdoptUnique (T *ptr)
 
std::string ToHexString (uint32_t size, const uint8_t *data)
 

Variables

const Samsung::NaClPlayer::TimeTicks kEndOfStream
 

Macro Definition Documentation

#define LOG (   msg,
  ... 
)    Logger::Log(LOG_STATS, msg, ##__VA_ARGS__)

Definition at line 41 of file common.h.

#define LOG_DEBUG (   msg,
  ... 
)    Logger::Debug(LOG_STATS, msg, ##__VA_ARGS__)

Definition at line 43 of file common.h.

#define LOG_ERROR (   msg,
  ... 
)    Logger::Error(LOG_STATS, msg, ##__VA_ARGS__)

Definition at line 42 of file common.h.

#define LOG_STATS   __LINE__, __func__, __FILE__

Definition at line 40 of file common.h.

Enumeration Type Documentation

enum StreamType : int32_t
strong
Enumerator
Video 
Audio 
MaxStreamTypes 

Definition at line 55 of file common.h.

Function Documentation

template<typename T >
std::unique_ptr<T> AdoptUnique ( T *  ptr)

Definition at line 51 of file common.h.

template<typename T , class... Args>
std::unique_ptr<T> MakeUnique ( Args &&...  args)

Definition at line 46 of file common.h.

std::string ToHexString ( uint32_t  size,
const uint8_t *  data 
)
inline

Definition at line 64 of file common.h.

Variable Documentation

const Samsung::NaClPlayer::TimeTicks kEndOfStream
Initial value:
=
std::numeric_limits<Samsung::NaClPlayer::TimeTicks>::infinity()

Definition at line 61 of file common.h.