Lines Matching refs:track_number
212 track_number_ = frame.track_number(); in CopyFrom()
1823 Track* Tracks::GetTrackByNumber(uint64_t track_number) const { in GetTrackByNumber()
1826 if (track_entries_[i]->number() == track_number) in GetTrackByNumber()
1833 bool Tracks::TrackIsAudio(uint64_t track_number) const { in TrackIsAudio()
1834 const Track* const track = GetTrackByNumber(track_number); in TrackIsAudio()
1842 bool Tracks::TrackIsVideo(uint64_t track_number) const { in TrackIsVideo()
1843 const Track* const track = GetTrackByNumber(track_number); in TrackIsVideo()
2497 uint64_t track_number, uint64_t abs_timecode, in AddFrame() argument
2502 frame.set_track_number(track_number); in AddFrame()
2511 uint64_t add_id, uint64_t track_number, in AddFrameWithAdditional() argument
2521 frame.set_track_number(track_number); in AddFrameWithAdditional()
2529 uint64_t track_number, in AddFrameWithDiscardPadding() argument
2535 frame.set_track_number(track_number); in AddFrameWithDiscardPadding()
2542 uint64_t track_number, uint64_t abs_timecode, in AddMetadata() argument
2547 frame.set_track_number(track_number); in AddMetadata()
2581 stored_frames_[frame->track_number()].size() == 1 && in Finalize()
2586 last_block_timestamp_[frame->track_number()]); in Finalize()
2592 stored_frames_[frame->track_number()].pop_front(); in Finalize()
2593 if (stored_frames_[frame->track_number()].empty()) { in Finalize()
2594 stored_frames_.erase(frame->track_number()); in Finalize()
2670 last_block_timestamp_[frame->track_number()] = frame->timestamp(); in DoWriteFrame()
2685 uint64_t track_number = frame->track_number(); in QueueOrWriteFrame() local
2688 stored_frames_[track_number].push_back(frame_to_store); in QueueOrWriteFrame()
2695 current_track_iterator = stored_frames_[track_number].begin(), in QueueOrWriteFrame()
2696 end = --stored_frames_[track_number].end(); in QueueOrWriteFrame()
2702 if (track_iterator->first == track_number) { in QueueOrWriteFrame()
2724 stored_frames_[track_number].erase(*iterator); in QueueOrWriteFrame()
3449 uint64_t track_number, uint64_t timestamp, bool is_key) { in AddFrame() argument
3456 frame.set_track_number(track_number); in AddFrame()
3465 uint64_t add_id, uint64_t track_number, in AddFrameWithAdditional() argument
3475 frame.set_track_number(track_number); in AddFrameWithAdditional()
3483 uint64_t track_number, in AddFrameWithDiscardPadding() argument
3492 frame.set_track_number(track_number); in AddFrameWithDiscardPadding()
3499 uint64_t track_number, uint64_t timestamp_ns, in AddMetadata() argument
3507 frame.set_track_number(track_number); in AddMetadata()
3526 if (!tracks_.GetTrackByNumber(frame->track_number())) in AddGenericFrame()
3548 if (has_video_ && tracks_.TrackIsAudio(frame->track_number()) && in AddGenericFrame()
3559 track_frames_written_[frame->track_number() - 1]++; in AddGenericFrame()
3563 if (!DoNewClusterProcessing(frame->track_number(), frame->timestamp(), in AddGenericFrame()
3586 last_track_timestamp_[frame->track_number() - 1]); in AddGenericFrame()
3594 if (new_cuepoint_ && cues_track_ == frame->track_number()) { in AddGenericFrame()
3600 last_track_timestamp_[frame->track_number() - 1] = frame->timestamp(); in AddGenericFrame()
3602 track_frames_written_[frame->track_number() - 1]++; in AddGenericFrame()
3698 bool Segment::CuesTrack(uint64_t track_number) { in CuesTrack() argument
3699 const Track* const track = GetTrackByNumber(track_number); in CuesTrack()
3703 cues_track_ = track_number; in CuesTrack()
3709 Track* Segment::GetTrackByNumber(uint64_t track_number) const { in GetTrackByNumber()
3710 return tracks_.GetTrackByNumber(track_number); in GetTrackByNumber()
3788 int Segment::TestFrame(uint64_t track_number, uint64_t frame_timestamp_ns, in TestFrame() argument
3834 if (is_key && tracks_.TrackIsVideo(track_number)) in TestFrame()
3935 bool Segment::DoNewClusterProcessing(uint64_t track_number, in DoNewClusterProcessing() argument
3940 const int result = TestFrame(track_number, frame_timestamp_ns, is_key); in DoNewClusterProcessing()
4114 if (new_cuepoint_ && cues_track_ == frame->track_number()) { in WriteFramesAll()
4123 last_track_timestamp_[frame->track_number() - 1] = frame->timestamp(); in WriteFramesAll()
4166 if (new_cuepoint_ && cues_track_ == frame_prev->track_number()) { in WriteFramesLessThan()
4176 last_track_timestamp_[frame_prev->track_number() - 1] = in WriteFramesLessThan()