Home | History | Annotate | Download | only in model
      1 /*
      2 Copyright (c) 2011 Stanislav Vitvitskiy
      3 
      4 Permission is hereby granted, free of charge, to any person obtaining a copy of this
      5 software and associated documentation files (the "Software"), to deal in the Software
      6 without restriction, including without limitation the rights to use, copy, modify,
      7 merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
      8 permit persons to whom the Software is furnished to do so, subject to the following
      9 conditions:
     10 
     11 The above copyright notice and this permission notice shall be included in all copies or
     12 substantial portions of the Software.
     13 
     14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
     15 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
     16 PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
     17 FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
     18 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
     19 OR OTHER DEALINGS IN THE SOFTWARE.
     20 */
     21 package com.googlecode.mp4parser.h264.model;
     22 
     23 public class VUIParameters {
     24 
     25     public static class BitstreamRestriction {
     26 
     27         public boolean motion_vectors_over_pic_boundaries_flag;
     28         public int max_bytes_per_pic_denom;
     29         public int max_bits_per_mb_denom;
     30         public int log2_max_mv_length_horizontal;
     31         public int log2_max_mv_length_vertical;
     32         public int num_reorder_frames;
     33         public int max_dec_frame_buffering;
     34 
     35     }
     36 
     37     public boolean aspect_ratio_info_present_flag;
     38     public int sar_width;
     39     public int sar_height;
     40     public boolean overscan_info_present_flag;
     41     public boolean overscan_appropriate_flag;
     42     public boolean video_signal_type_present_flag;
     43     public int video_format;
     44     public boolean video_full_range_flag;
     45     public boolean colour_description_present_flag;
     46     public int colour_primaries;
     47     public int transfer_characteristics;
     48     public int matrix_coefficients;
     49     public boolean chroma_loc_info_present_flag;
     50     public int chroma_sample_loc_type_top_field;
     51     public int chroma_sample_loc_type_bottom_field;
     52     public boolean timing_info_present_flag;
     53     public int num_units_in_tick;
     54     public int time_scale;
     55     public boolean fixed_frame_rate_flag;
     56     public boolean low_delay_hrd_flag;
     57     public boolean pic_struct_present_flag;
     58     public HRDParameters nalHRDParams;
     59     public HRDParameters vclHRDParams;
     60 
     61     public BitstreamRestriction bitstreamRestriction;
     62     public AspectRatio aspect_ratio;
     63 
     64     @Override
     65     public String toString() {
     66         return "VUIParameters{" + "\n" +
     67                 "aspect_ratio_info_present_flag=" + aspect_ratio_info_present_flag + "\n" +
     68                 ", sar_width=" + sar_width + "\n" +
     69                 ", sar_height=" + sar_height + "\n" +
     70                 ", overscan_info_present_flag=" + overscan_info_present_flag + "\n" +
     71                 ", overscan_appropriate_flag=" + overscan_appropriate_flag + "\n" +
     72                 ", video_signal_type_present_flag=" + video_signal_type_present_flag + "\n" +
     73                 ", video_format=" + video_format + "\n" +
     74                 ", video_full_range_flag=" + video_full_range_flag + "\n" +
     75                 ", colour_description_present_flag=" + colour_description_present_flag + "\n" +
     76                 ", colour_primaries=" + colour_primaries + "\n" +
     77                 ", transfer_characteristics=" + transfer_characteristics + "\n" +
     78                 ", matrix_coefficients=" + matrix_coefficients + "\n" +
     79                 ", chroma_loc_info_present_flag=" + chroma_loc_info_present_flag + "\n" +
     80                 ", chroma_sample_loc_type_top_field=" + chroma_sample_loc_type_top_field + "\n" +
     81                 ", chroma_sample_loc_type_bottom_field=" + chroma_sample_loc_type_bottom_field + "\n" +
     82                 ", timing_info_present_flag=" + timing_info_present_flag + "\n" +
     83                 ", num_units_in_tick=" + num_units_in_tick + "\n" +
     84                 ", time_scale=" + time_scale + "\n" +
     85                 ", fixed_frame_rate_flag=" + fixed_frame_rate_flag + "\n" +
     86                 ", low_delay_hrd_flag=" + low_delay_hrd_flag + "\n" +
     87                 ", pic_struct_present_flag=" + pic_struct_present_flag + "\n" +
     88                 ", nalHRDParams=" + nalHRDParams + "\n" +
     89                 ", vclHRDParams=" + vclHRDParams + "\n" +
     90                 ", bitstreamRestriction=" + bitstreamRestriction + "\n" +
     91                 ", aspect_ratio=" + aspect_ratio + "\n" +
     92                 '}';
     93     }
     94 }
     95