Shaka Packager SDK
Public Member Functions | List of all members
shaka::MockAdaptationSet Class Reference
Inheritance diagram for shaka::MockAdaptationSet:
shaka::AdaptationSet

Public Member Functions

 MOCK_METHOD1 (AddRepresentation, Representation *(const MediaInfo &media_info))
 
 MOCK_METHOD1 (CopyRepresentation, Representation *(const Representation &representation))
 
 MOCK_METHOD1 (AddContentProtectionElement, void(const ContentProtectionElement &element))
 
 MOCK_METHOD2 (UpdateContentProtectionPssh, void(const std::string &drm_uuid, const std::string &pssh))
 
 MOCK_METHOD1 (AddRole, void(AdaptationSet::Role role))
 
 MOCK_METHOD1 (ForceSetSegmentAlignment, void(bool segment_alignment))
 
 MOCK_METHOD1 (AddAdaptationSetSwitching, void(const AdaptationSet *adaptation_set))
 
 MOCK_METHOD1 (AddTrickPlayReference, void(const AdaptationSet *adaptation_set))
 
- Public Member Functions inherited from shaka::AdaptationSet
virtual RepresentationAddRepresentation (const MediaInfo &media_info)
 
virtual RepresentationCopyRepresentation (const Representation &representation)
 
virtual void AddContentProtectionElement (const ContentProtectionElement &element)
 
virtual void UpdateContentProtectionPssh (const std::string &drm_uuid, const std::string &pssh)
 
virtual void AddAccessibility (const std::string &scheme, const std::string &value)
 
virtual void AddRole (Role role)
 
std::optional< xml::XmlNodeGetXml ()
 
virtual void ForceSetSegmentAlignment (bool segment_alignment)
 
virtual void ForceSubsegmentStartswithSAP (uint32_t sap_value)
 
virtual void ForceStartwithSAP (uint32_t sap_value)
 
virtual void AddAdaptationSetSwitching (const AdaptationSet *adaptation_set)
 
bool has_id () const
 
std::optional< uint32_t > SortIndex () const
 
uint32_t id () const
 
void set_id (uint32_t id)
 
void OnNewSegmentForRepresentation (uint32_t representation_id, int64_t start_time, int64_t duration)
 
void OnSetFrameRateForRepresentation (uint32_t representation_id, int32_t frame_duration, int32_t timescale)
 
virtual void AddTrickPlayReference (const AdaptationSet *adaptation_set)
 
const std::list< Representation * > GetRepresentations () const
 
bool IsVideo () const
 
const std::string & codec () const
 
void set_codec (const std::string &codec)
 
uint32_t matrix_coefficients () const
 
void set_matrix_coefficients (const uint32_t &matrix_coefficients)
 
uint32_t color_primaries () const
 
void set_color_primaries (const uint32_t &color_primaries)
 
uint32_t transfer_characteristics () const
 
void set_transfer_characteristics (const uint32_t &transfer_characteristics)
 
const MediaInfo::ProtectedContent * protected_content () const
 Return ProtectedContent.
 
void set_protected_content (const MediaInfo &media_info)
 
bool MatchAdaptationSet (const MediaInfo &media_info, bool content_protection_in_adaptation_set)
 
bool SwitchableAdaptationSet (const AdaptationSet &adaptation_set)
 

Additional Inherited Members

- Public Types inherited from shaka::AdaptationSet
enum  Role {
  kRoleUnknown , kRoleCaption , kRoleSubtitle , kRoleMain ,
  kRoleAlternate , kRoleSupplementary , kRoleCommentary , kRoleDub ,
  kRoleDescription , kRoleSign , kRoleMetadata , kRoleEnhancedAudioIntelligibility ,
  kRoleEmergency , kRoleForcedSubtitle , kRoleEasyreader , kRoleKaraoke
}
 
- Protected Member Functions inherited from shaka::AdaptationSet
 AdaptationSet (const std::string &language, const MpdOptions &mpd_options, uint32_t *representation_counter)
 

Detailed Description

Definition at line 44 of file mock_mpd_builder.h.


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