HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
annexBbytecount.cpp File Reference
#include <stdint.h>
#include <cassert>
#include <fstream>
#include <sstream>
#include <iostream>
#include <string.h>
#include "TLibDecoder/AnnexBread.h"
Include dependency graph for annexBbytecount.cpp:

Go to the source code of this file.

Macros

#define VERIFY(a, b, m)
 

Functions

void selftest ()
 
int main (int argc, char *argv[])
 

Variables

struct {
   AnnexBStats   expected
 
   unsigned   data_len
 
   const char   data [10]
 
tests []
 

Macro Definition Documentation

#define VERIFY (   a,
  b,
 
)
Value:
if (a.m != b.m) { \
ok = false; \
cout << endl << " MISSMATCH " #m << ", E(" << b.m << ") != " << a.m; \
}

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 114 of file annexBbytecount.cpp.

void selftest ( )

Definition at line 70 of file annexBbytecount.cpp.

Variable Documentation

const char data[10]

Definition at line 48 of file annexBbytecount.cpp.

unsigned data_len

Definition at line 47 of file annexBbytecount.cpp.

AnnexBStats expected

Definition at line 46 of file annexBbytecount.cpp.

struct { ... } tests[]
Initial value:
= {
{{0, 0, 3, 0, 0}, 3, {0,0,1}},
{{0, 1, 3, 0, 0}, 4, {0,0,0,1}},
{{2, 1, 3, 0, 0}, 6, {0,0,0,0,0,1}},
{{0, 0, 3, 1, 0}, 4, {0,0,1,2}},
{{0, 0, 3, 2, 0}, 5, {0,0,1,2,0}},
{{0, 0, 3, 3, 0}, 6, {0,0,1,2,0,0}},
{{0, 0, 3, 1, 3}, 7, {0,0,1,2,0,0,0}},
{{0, 0, 3, 1, 0}, 8, {0,0,1,2,0,0,1,3}},
{{0, 0, 3, 1, 0}, 9, {0,0,1,2,0,0,0,1,3}},
{{0, 0, 3, 1, 1}, 10, {0,0,1,2,0,0,0,0,1,3}},
{{0, 0, 0, 0, 0}, 0, {}},
{{1, 0, 0, 0, 0}, 1, {0}},
{{2, 0, 0, 0, 0}, 2, {0,0}},
{{3, 0, 0, 0, 0}, 3, {0,0,0}},
}