#include "media/muxers/mp4_muxer_delegate_fragment.h"
#include "base/notreached.h"
#include "media/muxers/mp4_muxer_context.h"
namespace media {
namespace {
FragmentSampleFlags;
TrackFragmentHeaderFlags;
TrackFragmentRunFlags;
}
Mp4MuxerDelegateFragment::Mp4MuxerDelegateFragment(Mp4MuxerContext& context,
int video_track_id,
int audio_track_id,
uint32_t sequence_number)
: … { … }
bool Mp4MuxerDelegateFragment::HasSamples() const { … }
void Mp4MuxerDelegateFragment::AddVideoData(std::string_view encoded_data,
base::TimeTicks timestamp) { … }
void Mp4MuxerDelegateFragment::AddAudioData(std::string_view encoded_data,
base::TimeTicks timestamp) { … }
void Mp4MuxerDelegateFragment::AddVideoLastTimestamp(
base::TimeDelta timestamp) { … }
void Mp4MuxerDelegateFragment::AddAudioLastTimestamp(
base::TimeDelta timestamp) { … }
base::TimeTicks Mp4MuxerDelegateFragment::GetVideoStartTimestamp() const { … }
const mp4::writable_boxes::MovieFragment&
Mp4MuxerDelegateFragment::GetMovieFragment() const { … }
const mp4::writable_boxes::MediaData& Mp4MuxerDelegateFragment::GetMediaData()
const { … }
size_t Mp4MuxerDelegateFragment::GetVideoSampleSize() const { … }
size_t Mp4MuxerDelegateFragment::GetAudioSampleSize() const { … }
void Mp4MuxerDelegateFragment::Finalize(base::TimeTicks start_audio_time,
base::TimeTicks start_video_time) { … }
void Mp4MuxerDelegateFragment::AddNewTrack(uint32_t track_index) { … }
void Mp4MuxerDelegateFragment::AddDataToRun(
mp4::writable_boxes::TrackFragmentRun& trun,
std::string_view encoded_data,
base::TimeTicks timestamp) { … }
void Mp4MuxerDelegateFragment::AddDataToMdat(std::vector<uint8_t>& track_data,
std::string_view encoded_data) { … }
void Mp4MuxerDelegateFragment::AddLastTimestamp(
mp4::writable_boxes::TrackFragmentRun& trun,
base::TimeDelta timestamp) { … }
void Mp4MuxerDelegateFragment::SetBaseDecodeTime(
base::TimeTicks start_audio_time,
base::TimeTicks start_video_time) { … }
}