#include "contributors.h"
#include <ctype.h>
#include <limits.h>
#include "global.h"
#include "explicit_gop.h"
#include "image.h"
#include "nalucommon.h"
#include "report.h"

Go to the source code of this file.
Functions | |
| void | create_hierarchy (InputParameters *pparams) |
| void | init_gop_structure (InputParameters *pparams) |
| void | clear_gop_structure (void) |
| void | interpret_gop_structure () |
| void | poc_based_ref_management_frame_pic (int current_pic_num) |
| void | poc_based_ref_management_field_pic (int current_pic_num) |
Definition in file explicit_gop.c.
| void clear_gop_structure | ( | void | ) |
Clear GOP structure.
Definition at line 142 of file explicit_gop.c.
Referenced by free_encoder_memory(), and prepare_first_layer().
| void create_hierarchy | ( | InputParameters * | pparams | ) |
Generation of hierarchical GOP.
Definition at line 31 of file explicit_gop.c.
References GOP_DATA::display_no, ImageParameters::GopLevels, InputParameters::HierarchicalCoding, GOP_DATA::hierarchy_layer, InputParameters::HierarchyLevelQPEnable, no_mem_exit(), InputParameters::NumberBFrames, InputParameters::PReplaceBSlice, InputParameters::qp, InputParameters::qpBRSOffset, GOP_DATA::reference_idc, GOP_DATA::slice_qp, and GOP_DATA::slice_type.
Referenced by init_encoder(), and prepare_first_layer().

| void init_gop_structure | ( | InputParameters * | pparams | ) |
Initialization of GOP structure.
Definition at line 126 of file explicit_gop.c.
References no_mem_exit(), and InputParameters::NumberBFrames.
Referenced by init_encoder(), and prepare_first_layer().

| void interpret_gop_structure | ( | void | ) |
Interpret GOP struct from input parameters.
First lets read slice type
Next is Display Order
Definition at line 155 of file explicit_gop.c.
References ImageParameters::bitdepth_luma_qp_scale, GOP_DATA::display_no, error(), errortext, ET_SIZE, InputParameters::ExplicitHierarchyFormat, ImageParameters::GopLevels, GOP_DATA::hierarchy_layer, InputParameters::NumberBFrames, InputParameters::qp, GOP_DATA::reference_idc, GOP_DATA::slice_qp, and GOP_DATA::slice_type.
Referenced by init_encoder().

| void poc_based_ref_management_field_pic | ( | int | current_pic_num | ) |
POC-based reference management (FIELD).
Definition at line 339 of file explicit_gop.c.
References frame_store::bottom_field, ImageParameters::dec_ref_pic_marking_buffer, DecRefPicMarking_s::difference_of_pic_nums_minus1, decoded_picture_buffer::fs, frame_store::is_long_term, frame_store::is_reference, decoded_picture_buffer::ltref_frames_in_buffer, DecRefPicMarking_s::memory_management_control_operation, DecRefPicMarking_s::Next, no_mem_exit(), storable_picture::pic_num, frame_store::poc, decoded_picture_buffer::ref_frames_in_buffer, ImageParameters::structure, frame_store::top_field, and decoded_picture_buffer::used_size.
Referenced by init_slice().

| void poc_based_ref_management_frame_pic | ( | int | current_pic_num | ) |
POC-based reference management (FRAME).
Definition at line 295 of file explicit_gop.c.
References ImageParameters::dec_ref_pic_marking_buffer, DecRefPicMarking_s::difference_of_pic_nums_minus1, frame_store::frame, decoded_picture_buffer::fs, frame_store::is_long_term, frame_store::is_reference, decoded_picture_buffer::ltref_frames_in_buffer, DecRefPicMarking_s::memory_management_control_operation, DecRefPicMarking_s::Next, no_mem_exit(), storable_picture::pic_num, storable_picture::poc, frame_store::poc, decoded_picture_buffer::ref_frames_in_buffer, and decoded_picture_buffer::used_size.
Referenced by init_slice().
