C++ (Cpp) track_statistics_c Example

Introduction

The c++ (cpp) track_statistics_c example is extracted from the most popular open source projects, you can refer to the following example for usage.

Programming language: C++ (Cpp)

Class/type: track_statistics_c

Example#1
File: packet.cppProject: Rodeo314/mkvtoolnix

void
packet_t::account(track_statistics_c &statistics,
                  int64_t timestamp_offset) {
  statistics.account(assigned_timestamp - timestamp_offset, get_duration(), calculate_uncompressed_size());
}

Example#2
File: packet.cppProject: CharlesLio/mkvtoolnix

void
packet_t::account(track_statistics_c &statistics)
  const {
  statistics.account(assigned_timecode, get_duration(), data->get_size());
}