#include <math.h>
#include "global.h"
#include "elements.h"
#include "header.h"
#include "rtp.h"
#include "mbuffer.h"
#include "vlc.h"
#include "parset.h"

Go to the source code of this file.
Defines | |
| #define | SYMTRACESTRING(s) |
Functions | |
| static int | ref_pic_list_reordering (Bitstream *bitstream) |
| static int | pred_weight_table (Bitstream *bitstream) |
| static int | get_picture_type () |
| int | SliceHeader (Slice *currSlice) |
| int | dec_ref_pic_marking (Bitstream *bitstream, DecRefPicMarking_t *p_drpm, int idr_flag, int no_output_of_prior_pics_flag, int long_term_reference_flag) |
| int | Partition_BC_Header (int PartNo) |
Variables | |
| int * | assignSE2partition [2] |
| int | assignSE2partition_NoDP [SE_MAX_ELEMENTS] |
| int | assignSE2partition_DP [SE_MAX_ELEMENTS] |
Definition in file header.c.
| int dec_ref_pic_marking | ( | Bitstream * | bitstream, | |
| DecRefPicMarking_t * | p_drpm, | |||
| int | idr_flag, | |||
| int | no_output_of_prior_pics_flag, | |||
| int | long_term_reference_flag | |||
| ) |
write the memory management control operations
Definition at line 330 of file header.c.
References DecRefPicMarking_s::difference_of_pic_nums_minus1, error(), DecRefPicMarking_s::long_term_frame_idx, DecRefPicMarking_s::long_term_pic_num, DecRefPicMarking_s::max_long_term_frame_idx_plus1, DecRefPicMarking_s::memory_management_control_operation, DecRefPicMarking_s::Next, u_1(), and ue_v().
Referenced by SliceHeader().

| static int get_picture_type | ( | ) | [static] |
Selects picture type and codes it to symbol.
Definition at line 486 of file header.c.
References error(), and ImageParameters::type.
Referenced by SliceHeader().

| int Partition_BC_Header | ( | int | PartNo | ) |
int Partition_BC_Header () write the Partition type B, C header
Definition at line 543 of file header.c.
References ImageParameters::current_slice_nr, ImageParameters::currentSlice, syntaxelement::len, syntaxelement::type, syntaxelement::value1, syntaxelement::value2, and writeSE_UVLC().
Referenced by start_slice().

| static int pred_weight_table | ( | Bitstream * | bitstream | ) | [static] |
write prediction weight table
Definition at line 395 of file header.c.
References ImageParameters::bitdepth_chroma, ImageParameters::bitdepth_luma, ImageParameters::num_ref_idx_l0_active, ImageParameters::num_ref_idx_l1_active, se_v(), ImageParameters::type, u_1(), and ue_v().
Referenced by SliceHeader().

| static int ref_pic_list_reordering | ( | Bitstream * | bitstream | ) | [static] |
writes the ref_pic_list_reordering syntax based on content of according fields in img structure
Definition at line 243 of file header.c.
References Slice::abs_diff_pic_num_minus1_l0, Slice::abs_diff_pic_num_minus1_l1, ImageParameters::currentSlice, Slice::long_term_pic_idx_l0, Slice::long_term_pic_idx_l1, ImageParameters::num_ref_idx_l0_active, InputParameters::redundant_pic_flag, Slice::ref_pic_list_reordering_flag_l0, Slice::ref_pic_list_reordering_flag_l1, reorder_ref_pic_list(), Slice::reordering_of_pic_nums_idc_l0, Slice::reordering_of_pic_nums_idc_l1, ImageParameters::type, u_1(), and ue_v().
Referenced by SliceHeader().

| int SliceHeader | ( | Slice * | currSlice | ) |
Write a slice header.
img->slice_group_change_cycle can be changed before calling FmoInit()
Definition at line 53 of file header.c.
References ImageParameters::adaptive_ref_pic_buffering_flag, assignSE2partition, datapartition::bitstream, ImageParameters::bottompoc, ImageParameters::colour_plane_id, ImageParameters::current_mb_nr, ImageParameters::current_slice_nr, ImageParameters::currentPicture, dec_ref_pic_marking(), ImageParameters::dec_ref_pic_marking_buffer, ImageParameters::delta_pic_order_always_zero_flag, ImageParameters::delta_pic_order_cnt, ImageParameters::delta_pic_order_cnt_bottom, ImageParameters::DFAlphaC0Offset, ImageParameters::DFBetaOffset, ImageParameters::DFDisableIdc, ImageParameters::direct_spatial_mv_pred_flag, ImageParameters::fld_flag, ImageParameters::frame_num, get_picture_type(), ImageParameters::long_term_reference_flag, ImageParameters::MbaffFrameFlag, ImageParameters::model_number, ImageParameters::nal_reference_idc, ImageParameters::no_output_of_prior_pics_flag, ImageParameters::num_ref_idx_l0_active, ImageParameters::num_ref_idx_l1_active, ImageParameters::number, Slice::partArr, InputParameters::partition_mode, ImageParameters::pic_order_cnt_lsb, ImageParameters::pic_order_cnt_type, ImageParameters::pic_order_present_flag, ImageParameters::PicHeightInMapUnits, ImageParameters::PicWidthInMbs, pred_weight_table(), Slice::qp, ImageParameters::qpsp, ImageParameters::redundant_pic_cnt, ref_pic_list_reordering(), se_v(), ImageParameters::slice_group_change_cycle, ImageParameters::structure, Slice::symbol_mode, ImageParameters::toppoc, ImageParameters::type, u_1(), u_v(), and ue_v().
Referenced by start_slice().

| int* assignSE2partition[2] |
lookup-table to assign different elements to partition
Definition at line 34 of file header.c.
Referenced by end_macroblock(), malloc_slice(), RDCost_for_4x4IntraBlocks(), RDCost_for_8x8blocks(), RDCost_for_8x8IntraBlocks(), SliceHeader(), writeCBPandDquant(), writeChromaCoeff(), writeChromaIntraPredMode(), writeCoeff16x16(), writeCoeff4x4_CABAC(), writeCoeff4x4_CAVLC(), writeCoeff8x8_CABAC(), writeIntra4x4Modes(), writeIntra8x8Modes(), writeMBLayer(), writeMotionVector8x8(), and writeReferenceFrame().
| int assignSE2partition_DP[SE_MAX_ELEMENTS] |
| int assignSE2partition_NoDP[SE_MAX_ELEMENTS] |