//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private void writeHRDParameters(HRDParameters hrd, com.googlecode.mp4parser.h264.write.CAVLCWriter writer) throws java.io.IOException private void writeHRDParameters(HRDParameters hrd, CAVLCWriter writer) { writer.writeUE(hrd.cpb_cnt_minus1, "HRD: cpb_cnt_minus1"); writer.writeNBit(hrd.bit_rate_scale, 4, "HRD: bit_rate_scale"); writer.writeNBit(hrd.cpb_size_scale, 4, "HRD: cpb_size_scale"); for (int SchedSelIdx = 0; SchedSelIdx <= hrd.cpb_cnt_minus1; SchedSelIdx++) { writer.writeUE(hrd.bit_rate_value_minus1[SchedSelIdx], "HRD: "); writer.writeUE(hrd.cpb_size_value_minus1[SchedSelIdx], "HRD: "); writer.writeBool(hrd.cbr_flag[SchedSelIdx], "HRD: "); } writer.writeNBit(hrd.initial_cpb_removal_delay_length_minus1, 5, "HRD: initial_cpb_removal_delay_length_minus1"); writer.writeNBit(hrd.cpb_removal_delay_length_minus1, 5, "HRD: cpb_removal_delay_length_minus1"); writer.writeNBit(hrd.dpb_output_delay_length_minus1, 5, "HRD: dpb_output_delay_length_minus1"); writer.writeNBit(hrd.time_offset_length, 5, "HRD: time_offset_length"); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private static HRDParameters readHRDParameters(com.googlecode.mp4parser.h264.read.CAVLCReader reader) throws java.io.IOException private static HRDParameters readHRDParameters(CAVLCReader reader) { HRDParameters hrd = new HRDParameters(); hrd.cpb_cnt_minus1 = reader.readUE("SPS: cpb_cnt_minus1"); hrd.bit_rate_scale = (int)reader.readNBit(4, "HRD: bit_rate_scale"); hrd.cpb_size_scale = (int)reader.readNBit(4, "HRD: cpb_size_scale"); hrd.bit_rate_value_minus1 = new int[hrd.cpb_cnt_minus1 + 1]; hrd.cpb_size_value_minus1 = new int[hrd.cpb_cnt_minus1 + 1]; hrd.cbr_flag = new bool[hrd.cpb_cnt_minus1 + 1]; for (int SchedSelIdx = 0; SchedSelIdx <= hrd.cpb_cnt_minus1; SchedSelIdx++) { hrd.bit_rate_value_minus1[SchedSelIdx] = reader.readUE("HRD: bit_rate_value_minus1"); hrd.cpb_size_value_minus1[SchedSelIdx] = reader.readUE("HRD: cpb_size_value_minus1"); hrd.cbr_flag[SchedSelIdx] = reader.readBool("HRD: cbr_flag"); } hrd.initial_cpb_removal_delay_length_minus1 = (int)reader.readNBit(5, "HRD: initial_cpb_removal_delay_length_minus1"); hrd.cpb_removal_delay_length_minus1 = (int)reader.readNBit(5, "HRD: cpb_removal_delay_length_minus1"); hrd.dpb_output_delay_length_minus1 = (int)reader.readNBit(5, "HRD: dpb_output_delay_length_minus1"); hrd.time_offset_length = (int)reader.readNBit(5, "HRD: time_offset_length"); return(hrd); }