• Home
  • Raw
  • Download

Lines Matching refs:seqhdr

144 set_par_from_asr_mpeg1 (GstMpegVideoSequenceHdr * seqhdr, guint8 asr_code)  in set_par_from_asr_mpeg1()  argument
166 seqhdr->par_w = ratios[asr_code][0]; in set_par_from_asr_mpeg1()
167 seqhdr->par_h = ratios[asr_code][1]; in set_par_from_asr_mpeg1()
171 set_fps_from_code (GstMpegVideoSequenceHdr * seqhdr, guint8 fps_code) in set_fps_from_code() argument
180 seqhdr->fps_n = framerates[fps_code][0]; in set_fps_from_code()
181 seqhdr->fps_d = framerates[fps_code][1]; in set_fps_from_code()
186 seqhdr->fps_n = 30000; in set_fps_from_code()
187 seqhdr->fps_d = 1001; in set_fps_from_code()
303 GstMpegVideoSequenceHdr * seqhdr) in gst_mpeg_video_packet_parse_sequence_header() argument
308 g_return_val_if_fail (seqhdr != NULL, FALSE); in gst_mpeg_video_packet_parse_sequence_header()
316 READ_UINT16 (&br, seqhdr->width, 12); in gst_mpeg_video_packet_parse_sequence_header()
317 READ_UINT16 (&br, seqhdr->height, 12); in gst_mpeg_video_packet_parse_sequence_header()
319 READ_UINT8 (&br, seqhdr->aspect_ratio_info, 4); in gst_mpeg_video_packet_parse_sequence_header()
322 set_par_from_asr_mpeg1 (seqhdr, seqhdr->aspect_ratio_info); in gst_mpeg_video_packet_parse_sequence_header()
324 READ_UINT8 (&br, seqhdr->frame_rate_code, 4); in gst_mpeg_video_packet_parse_sequence_header()
325 set_fps_from_code (seqhdr, seqhdr->frame_rate_code); in gst_mpeg_video_packet_parse_sequence_header()
327 READ_UINT32 (&br, seqhdr->bitrate_value, 18); in gst_mpeg_video_packet_parse_sequence_header()
328 if (seqhdr->bitrate_value == 0x3ffff) { in gst_mpeg_video_packet_parse_sequence_header()
330 seqhdr->bitrate = 0; in gst_mpeg_video_packet_parse_sequence_header()
333 seqhdr->bitrate = seqhdr->bitrate_value * 400; in gst_mpeg_video_packet_parse_sequence_header()
341 READ_UINT16 (&br, seqhdr->vbv_buffer_size_value, 10); in gst_mpeg_video_packet_parse_sequence_header()
344 READ_UINT8 (&br, seqhdr->constrained_parameters_flag, 1); in gst_mpeg_video_packet_parse_sequence_header()
347 READ_UINT8 (&br, seqhdr->load_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_sequence_header()
348 if (seqhdr->load_intra_quantiser_matrix) { in gst_mpeg_video_packet_parse_sequence_header()
351 READ_UINT8 (&br, seqhdr->intra_quantizer_matrix[i], 8); in gst_mpeg_video_packet_parse_sequence_header()
353 memcpy (seqhdr->intra_quantizer_matrix, default_intra_quantizer_matrix, 64); in gst_mpeg_video_packet_parse_sequence_header()
356 READ_UINT8 (&br, seqhdr->load_non_intra_quantiser_matrix, 1); in gst_mpeg_video_packet_parse_sequence_header()
357 if (seqhdr->load_non_intra_quantiser_matrix) { in gst_mpeg_video_packet_parse_sequence_header()
360 READ_UINT8 (&br, seqhdr->non_intra_quantizer_matrix[i], 8); in gst_mpeg_video_packet_parse_sequence_header()
362 memset (seqhdr->non_intra_quantizer_matrix, 16, 64); in gst_mpeg_video_packet_parse_sequence_header()
365 GST_LOG ("width x height: %d x %d", seqhdr->width, seqhdr->height); in gst_mpeg_video_packet_parse_sequence_header()
366 GST_LOG ("fps: %d/%d", seqhdr->fps_n, seqhdr->fps_d); in gst_mpeg_video_packet_parse_sequence_header()
367 GST_LOG ("par: %d/%d", seqhdr->par_w, seqhdr->par_h); in gst_mpeg_video_packet_parse_sequence_header()
368 GST_LOG ("bitrate: %d", seqhdr->bitrate); in gst_mpeg_video_packet_parse_sequence_header()
377 memset (seqhdr, 0, sizeof (*seqhdr)); in gst_mpeg_video_packet_parse_sequence_header()
576 gst_mpeg_video_finalise_mpeg2_sequence_header (GstMpegVideoSequenceHdr * seqhdr, in gst_mpeg_video_finalise_mpeg2_sequence_header() argument
584 seqhdr->fps_n = seqhdr->fps_n * (seqext->fps_n_ext + 1); in gst_mpeg_video_finalise_mpeg2_sequence_header()
585 seqhdr->fps_d = seqhdr->fps_d * (seqext->fps_d_ext + 1); in gst_mpeg_video_finalise_mpeg2_sequence_header()
587 seqhdr->width |= (seqext->horiz_size_ext << 12); in gst_mpeg_video_finalise_mpeg2_sequence_header()
588 seqhdr->height |= (seqext->vert_size_ext << 12); in gst_mpeg_video_finalise_mpeg2_sequence_header()
589 seqhdr->bitrate += (seqext->bitrate_ext << 18) * 400; in gst_mpeg_video_finalise_mpeg2_sequence_header()
592 w = seqhdr->width; in gst_mpeg_video_finalise_mpeg2_sequence_header()
593 h = seqhdr->height; in gst_mpeg_video_finalise_mpeg2_sequence_header()
607 switch (seqhdr->aspect_ratio_info) { in gst_mpeg_video_finalise_mpeg2_sequence_header()
609 seqhdr->par_w = seqhdr->par_h = 1; in gst_mpeg_video_finalise_mpeg2_sequence_header()
612 seqhdr->par_w = 4 * h; in gst_mpeg_video_finalise_mpeg2_sequence_header()
613 seqhdr->par_h = 3 * w; in gst_mpeg_video_finalise_mpeg2_sequence_header()
616 seqhdr->par_w = 16 * h; in gst_mpeg_video_finalise_mpeg2_sequence_header()
617 seqhdr->par_h = 9 * w; in gst_mpeg_video_finalise_mpeg2_sequence_header()
620 seqhdr->par_w = 221 * h; in gst_mpeg_video_finalise_mpeg2_sequence_header()
621 seqhdr->par_h = 100 * w; in gst_mpeg_video_finalise_mpeg2_sequence_header()
625 seqhdr->aspect_ratio_info); in gst_mpeg_video_finalise_mpeg2_sequence_header()
945 GstMpegVideoSliceHdr * slice_hdr, GstMpegVideoSequenceHdr * seqhdr, in gst_mpeg_video_packet_parse_slice_header() argument
954 g_return_val_if_fail (seqhdr != NULL, FALSE); in gst_mpeg_video_packet_parse_slice_header()
968 height = seqhdr->height; in gst_mpeg_video_packet_parse_slice_header()