1/*
2Copyright (c) 2011 Stanislav Vitvitskiy
3
4Permission is hereby granted, free of charge, to any person obtaining a copy of this
5software and associated documentation files (the "Software"), to deal in the Software
6without restriction, including without limitation the rights to use, copy, modify,
7merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
8permit persons to whom the Software is furnished to do so, subject to the following
9conditions:
10
11The above copyright notice and this permission notice shall be included in all copies or
12substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
17FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
18TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
19OR OTHER DEALINGS IN THE SOFTWARE.
20*/
21package com.googlecode.mp4parser.h264.model;
22
23import java.util.Arrays;
24
25public class HRDParameters {
26
27    public int cpb_cnt_minus1;
28    public int bit_rate_scale;
29    public int cpb_size_scale;
30    public int[] bit_rate_value_minus1;
31    public int[] cpb_size_value_minus1;
32    public boolean[] cbr_flag;
33    public int initial_cpb_removal_delay_length_minus1;
34    public int cpb_removal_delay_length_minus1;
35    public int dpb_output_delay_length_minus1;
36    public int time_offset_length;
37
38    @Override
39    public String toString() {
40        return "HRDParameters{" +
41                "cpb_cnt_minus1=" + cpb_cnt_minus1 +
42                ", bit_rate_scale=" + bit_rate_scale +
43                ", cpb_size_scale=" + cpb_size_scale +
44                ", bit_rate_value_minus1=" + Arrays.toString(bit_rate_value_minus1) +
45                ", cpb_size_value_minus1=" + Arrays.toString(cpb_size_value_minus1) +
46                ", cbr_flag=" + Arrays.toString(cbr_flag) +
47                ", initial_cpb_removal_delay_length_minus1=" + initial_cpb_removal_delay_length_minus1 +
48                ", cpb_removal_delay_length_minus1=" + cpb_removal_delay_length_minus1 +
49                ", dpb_output_delay_length_minus1=" + dpb_output_delay_length_minus1 +
50                ", time_offset_length=" + time_offset_length +
51                '}';
52    }
53}
54