#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 (Slice *currSlice, Bitstream *bitstream) |
static int | pred_weight_table (Slice *currSlice, Bitstream *bitstream) |
static int | get_picture_type (Slice *currSlice) |
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 (Slice *currSlice, int PartNo) |
Variables | |
const int * | assignSE2partition [2] |
const int | assignSE2partition_NoDP [SE_MAX_ELEMENTS] |
const 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 | |||
) |
static int get_picture_type | ( | Slice * | currSlice | ) | [static] |
Selects picture type and codes it to symbol.
Definition at line 473 of file header.c.
References error(), and slice::slice_type.
Referenced by SliceHeader().
int Partition_BC_Header | ( | Slice * | currSlice, | |
int | PartNo | |||
) |
int Partition_BC_Header () write the Partition type B, C header
Definition at line 530 of file header.c.
References syntaxelement::len, syntaxelement::type, syntaxelement::value1, syntaxelement::value2, and writeSE_UVLC().
Referenced by start_slice().
write prediction weight table
Definition at line 382 of file header.c.
References se_v(), slice::slice_type, u_1(), ue_v(), slice::wp_offset, and slice::wp_weight.
Referenced by SliceHeader().
writes the ref_pic_list_reordering syntax based on content of according fields in p_Img structure
Definition at line 247 of file header.c.
References slice::slice_type, u_1(), and ue_v().
Referenced by SliceHeader().
int SliceHeader | ( | Slice * | currSlice | ) |
Write a slice header.
p_Img->slice_group_change_cycle can be changed before calling FmoInit()
Definition at line 53 of file header.c.
References assignSE2partition, img_par::bottompoc, img_par::colour_plane_id, dec_ref_pic_marking(), slice::DFAlphaC0Offset, slice::DFBetaOffset, slice::DFDisableIdc, img_par::direct_spatial_mv_pred_flag, img_par::frame_num, get_picture_type(), img_par::number, slice::partArr, pred_weight_table(), img_par::qpsp, ref_pic_list_reordering(), se_v(), slice::slice_type, img_par::toppoc, u_1(), u_v(), ue_v(), and slice::weighted_prediction.
Referenced by start_slice().
const 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(), min_rdcost_16x16(), rdcost_for_4x4_intra_blocks(), rdcost_for_4x4_intra_blocks_444(), rdcost_for_8x8_intra_blocks(), rdcost_for_8x8_intra_blocks_444(), RDCost_for_8x8blocks(), SliceHeader(), writeCBPandDquant(), writeChromaCoeff(), writeChromaIntraPredMode(), writeCoeff16x16_CABAC(), writeCoeff4x4_CABAC(), writeCoeff4x4_CAVLC_444(), writeCoeff4x4_CAVLC_normal(), writeCoeff8x8_CABAC(), writeIntra4x4Modes(), writeIntra8x8Modes(), writeMBLayerBSlice(), writeMBLayerPSlice(), writeMotionVector8x8(), and writeReferenceFrame().
const int assignSE2partition_DP[SE_MAX_ELEMENTS] |
const int assignSE2partition_NoDP[SE_MAX_ELEMENTS] |