Changeset 1313 in 3DVCSoftware for trunk/source/App/utils/annexBbytecount.cpp
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/utils/annexBbytecount.cpp
r872 r1313 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 5 * 6 * Copyright (c) 2010-201 4, ITU/ISO/IEC4 * granted under this license. 5 * 6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 43 43 using namespace std; 44 44 45 static struct {45 static const struct { 46 46 AnnexBStats expected; 47 47 unsigned data_len; … … 86 86 cout << hex << (unsigned int)tests[i].data[j] << dec; 87 87 if (j < tests[i].data_len-1) 88 { 88 89 cout << ","; 90 } 89 91 } 90 92 cout << "} "; … … 103 105 #undef VERIFY 104 106 if (ok) 107 { 105 108 cout << "OK"; 109 } 106 110 cout << endl; 107 111 } … … 113 117 114 118 if (argc != 2) 119 { 115 120 return 0; 121 } 116 122 117 123 ifstream in(argv[1], ifstream::in | ifstream::binary); … … 150 156 151 157 if (!annexBStatsSingle.m_numBytesInNALUnit) 158 { 152 159 continue; 160 } 153 161 154 162 /* identify the NAL unit type and add stats to the correct
Note: See TracChangeset for help on using the changeset viewer.