#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "bs.h"
#include "h264_stream.h"
Include dependency graph for h264_stream.c:
Go to the source code of this file.
|
Value: printf("line %d:", __LINE__ ); \ debug_bs(b); \ b2->p = b2->start; b2->bits_left = 8; \ /* read_slice_header(h2, b2); */\ /* if (h2->sh->drpm.adaptive_ref_pic_marking_mode_flag) { printf(" X"); }; */ \ printf("\n"); \ Definition at line 959 of file h264_stream.c. |
|
Value: free(h2); \ free(b2); \ Definition at line 955 of file h264_stream.c. |
|
Value: bs_t* b2 = (bs_t*)malloc(sizeof(bs_t)); \ bs_init(b2, b->p, b->end - b->p); \ h264_stream_t* h2 = (h264_stream_t*)malloc(sizeof(h264_stream_t));\ h2->sps=h->sps; h2->pps=h->pps; h2->nal=h->nal; h2->sh=h->sh; \ Definition at line 949 of file h264_stream.c. |
|
Definition at line 31 of file h264_stream.c. Referenced by read_pic_parameter_set_rbsp(), read_slice_header(), write_pic_parameter_set_rbsp(), and write_slice_header(). |
|
Definition at line 2027 of file h264_stream.c. References bs_t::bits_left, bs_init(), bs_read_u1(), bs_t::end, bs_t::p, and bs_t::start. Here is the call graph for this function: |
|
Definition at line 2016 of file h264_stream.c. |
|
Print the contents of a NAL unit to standard output. The NAL which is printed out has a type determined by nal and data which comes from other fields within h depending on its type.
Definition at line 2000 of file h264_stream.c. References debug_pps(), debug_slice_header(), debug_sps(), nal_t::forbidden_zero_bit, nal_t::nal_ref_idc, nal_t::nal_unit_type, h264_stream_t::pps, h264_stream_t::sh, and h264_stream_t::sps. Referenced by main(). Here is the call graph for this function: |
|
|
|
|
Find the beginning and end of a NAL (Network Abstraction Layer) unit in a byte buffer containing H264 bitstream data.
Definition at line 73 of file h264_stream.c. Referenced by main(). |
|
Free an existing H264 stream object. Frees all contained structures.
Definition at line 55 of file h264_stream.c. References h264_stream_t::nal, h264_stream_t::pps, h264_stream_t::sh, and h264_stream_t::sps. |
|
Create a new H264 stream object. Allocates all structures contained within it.
Definition at line 40 of file h264_stream.c. References h264_stream_t::nal, h264_stream_t::pps, h264_stream_t::sh, and h264_stream_t::sps. |
|
Definition at line 114 of file h264_stream.c. References bs_eof(). Referenced by read_pic_parameter_set_rbsp(), and write_pic_parameter_set_rbsp(). Here is the call graph for this function: |
|
Definition at line 618 of file h264_stream.c. References bs_eof(). Referenced by read_rbsp_slice_trailing_bits(), and write_rbsp_slice_trailing_bits(). Here is the call graph for this function: |
|
Definition at line 116 of file h264_stream.c. Referenced by read_filler_data_rbsp(), and write_filler_data_rbsp(). |
|
Definition at line 546 of file h264_stream.c. References bs_read_u(), and read_rbsp_trailing_bits(). Referenced by read_nal_unit(). Here is the call graph for this function: |
|
Definition at line 860 of file h264_stream.c. References bs_eof(), bs_read_u1(), bs_read_ue(), slice_header_t::drpm, h264_stream_t::nal, nal_t::nal_unit_type, and h264_stream_t::sh. Referenced by read_slice_header(). Here is the call graph for this function: |
|
Definition at line 553 of file h264_stream.c. Referenced by read_nal_unit(). |
|
Definition at line 558 of file h264_stream.c. Referenced by read_nal_unit(). |
|
Definition at line 563 of file h264_stream.c. References bs_read_f(), next_bits(), and read_rbsp_trailing_bits(). Here is the call graph for this function: |
|
Definition at line 391 of file h264_stream.c. References bs_read_u(), bs_read_u1(), bs_read_ue(), sps_t::hrd, and h264_stream_t::sps. Referenced by read_vui_parameters(). Here is the call graph for this function: |
|
Read a NAL unit from a byte buffer. The buffer must start exactly at the beginning of the nal (after the start prefix). The NAL is read into h->nal and into other fields within h depending on its type (check h->nal->nal_unit_type after reading).
Definition at line 129 of file h264_stream.c. References bs_init(), bs_read_f(), bs_read_u(), nal_t::forbidden_zero_bit, h264_stream_t::nal, nal_t::nal_ref_idc, nal_t::nal_unit_type, read_access_unit_delimiter_rbsp(), read_end_of_seq_rbsp(), read_end_of_stream_rbsp(), read_pic_parameter_set_rbsp(), read_seq_parameter_set_rbsp(), and read_slice_layer_rbsp(). Referenced by main(). Here is the call graph for this function: |
|
|
Definition at line 799 of file h264_stream.c. References bs_read_se(), bs_read_u1(), bs_read_ue(), sps_t::chroma_format_idc, pps_t::num_ref_idx_l0_active_minus1, pps_t::num_ref_idx_l1_active_minus1, h264_stream_t::pps, slice_header_t::pwt, h264_stream_t::sh, SH_SLICE_TYPE_B, slice_header_t::slice_type, and h264_stream_t::sps. Referenced by read_slice_header(). Here is the call graph for this function: |
|
Definition at line 621 of file h264_stream.c. References bs_read_f(), pps_t::entropy_coding_mode_flag, more_rbsp_trailing_data(), h264_stream_t::pps, and read_rbsp_trailing_bits(). Here is the call graph for this function: |
|
Definition at line 635 of file h264_stream.c. References bs_byte_aligned(), and bs_read_f(). Referenced by read_access_unit_delimiter_rbsp(), read_filler_data_rbsp(), read_pic_parameter_set_rbsp(), read_rbsp_slice_trailing_bits(), and read_seq_parameter_set_rbsp(). Here is the call graph for this function: |
|
Definition at line 752 of file h264_stream.c. References bs_eof(), bs_read_u1(), bs_read_ue(), slice_header_t::rplr, h264_stream_t::sh, SH_SLICE_TYPE_B, SH_SLICE_TYPE_I, SH_SLICE_TYPE_SI, and slice_header_t::slice_type. Referenced by read_slice_header(). Here is the call graph for this function: |
|
Definition at line 296 of file h264_stream.c. References bs_read_se(). Referenced by read_pic_parameter_set_rbsp(), and read_seq_parameter_set_rbsp(). Here is the call graph for this function: |
|
|
|
Definition at line 574 of file h264_stream.c. References read_slice_header(). Referenced by read_nal_unit(). Here is the call graph for this function: |
|
Definition at line 316 of file h264_stream.c. References bs_read_u(), bs_read_u1(), bs_read_u8(), bs_read_ue(), read_hrd_parameters(), SAR_Extended, h264_stream_t::sps, and sps_t::vui. Referenced by read_seq_parameter_set_rbsp(). Here is the call graph for this function: |
|
Definition at line 1399 of file h264_stream.c. References bs_write_u(), and write_rbsp_trailing_bits(). Referenced by write_nal_unit(). Here is the call graph for this function: |
|
Definition at line 1708 of file h264_stream.c. References bs_write_u1(), bs_write_ue(), slice_header_t::drpm, h264_stream_t::nal, nal_t::nal_unit_type, and h264_stream_t::sh. Referenced by write_slice_header(). Here is the call graph for this function: |
|
Definition at line 1407 of file h264_stream.c. Referenced by write_nal_unit(). |
|
Definition at line 1412 of file h264_stream.c. Referenced by write_nal_unit(). |
|
Definition at line 1417 of file h264_stream.c. References bs_write_f(), next_bits(), and write_rbsp_trailing_bits(). Here is the call graph for this function: |
|
Definition at line 1246 of file h264_stream.c. References bs_write_u(), bs_write_u1(), bs_write_ue(), sps_t::hrd, and h264_stream_t::sps. Referenced by write_vui_parameters(). Here is the call graph for this function: |
|
Write a NAL unit to a byte buffer. The NAL which is written out has a type determined by h->nal and data which comes from other fields within h depending on its type.
Definition at line 976 of file h264_stream.c. References bs_init(), bs_pos(), bs_write_f(), bs_write_u(), nal_t::forbidden_zero_bit, h264_stream_t::nal, nal_t::nal_ref_idc, nal_t::nal_unit_type, write_access_unit_delimiter_rbsp(), write_end_of_seq_rbsp(), write_end_of_stream_rbsp(), write_pic_parameter_set_rbsp(), write_seq_parameter_set_rbsp(), and write_slice_layer_rbsp(). Here is the call graph for this function: |
|
|
Definition at line 1647 of file h264_stream.c. References bs_write_se(), bs_write_u1(), bs_write_ue(), sps_t::chroma_format_idc, pps_t::num_ref_idx_l0_active_minus1, pps_t::num_ref_idx_l1_active_minus1, h264_stream_t::pps, slice_header_t::pwt, h264_stream_t::sh, SH_SLICE_TYPE_B, slice_header_t::slice_type, and h264_stream_t::sps. Referenced by write_slice_header(). Here is the call graph for this function: |
|
Definition at line 1468 of file h264_stream.c. References bs_write_f(), pps_t::entropy_coding_mode_flag, more_rbsp_trailing_data(), h264_stream_t::pps, and write_rbsp_trailing_bits(). Referenced by write_slice_layer_rbsp(). Here is the call graph for this function: |
|
Definition at line 1482 of file h264_stream.c. References bs_byte_aligned(), and bs_write_f(). Referenced by write_access_unit_delimiter_rbsp(), write_filler_data_rbsp(), write_pic_parameter_set_rbsp(), write_rbsp_slice_trailing_bits(), and write_seq_parameter_set_rbsp(). Here is the call graph for this function: |
|
Definition at line 1604 of file h264_stream.c. References bs_write_u1(), bs_write_ue(), slice_header_t::rplr, h264_stream_t::sh, SH_SLICE_TYPE_B, SH_SLICE_TYPE_I, SH_SLICE_TYPE_SI, and slice_header_t::slice_type. Referenced by write_slice_header(). Here is the call graph for this function: |
|
Definition at line 1146 of file h264_stream.c. References bs_write_se(). Referenced by write_pic_parameter_set_rbsp(), and write_seq_parameter_set_rbsp(). Here is the call graph for this function: |
|
|
|
Definition at line 1428 of file h264_stream.c. References write_rbsp_slice_trailing_bits(), and write_slice_header(). Referenced by write_nal_unit(). Here is the call graph for this function: |
|
Definition at line 1171 of file h264_stream.c. References bs_write_u(), bs_write_u1(), bs_write_u8(), bs_write_ue(), SAR_Extended, h264_stream_t::sps, sps_t::vui, and write_hrd_parameters(). Referenced by write_seq_parameter_set_rbsp(). Here is the call graph for this function: |