#include "mbuffer.h"


Go to the source code of this file.
Functions | |
| void | calculate_frame_no (StorablePicture *p) |
| void | find_snr (struct snr_par *snr, StorablePicture *p, int *p_ref) |
| int | picture_order (ImageParameters *img) |
| void | decode_one_slice (ImageParameters *img, Slice *currSlice, struct inp_par *inp) |
| int | read_new_slice (Slice *currSlice) |
| void | exit_picture (StorablePicture **dec_picture) |
| int | decode_one_frame (ImageParameters *img, struct inp_par *inp, struct snr_par *snr) |
| int | is_new_picture (StorablePicture *dec_picture, Slice *currSlice, OldSliceParams *p_old_slice) |
| void | init_old_slice (OldSliceParams *p_old_slice) |
| void | copy_dec_picture_JV (StorablePicture *dst, StorablePicture *src) |
| void | frame_postprocessing (ImageParameters *img) |
| void | field_postprocessing (ImageParameters *img) |
Variables | |
| StorablePicture * | dec_picture |
| StorablePicture * | dec_picture_JV [MAX_PLANE] |
Definition in file image.h.
| void calculate_frame_no | ( | StorablePicture * | p | ) |
Calculate the value of frame_no.
Definition at line 725 of file image.c.
References params, and storable_picture::poc.
Referenced by direct_output(), and insert_picture_in_dpb().
| void copy_dec_picture_JV | ( | StorablePicture * | dst, | |
| StorablePicture * | src | |||
| ) |
copy StorablePicture *src -> StorablePicture *dst for 4:4:4 Independent mode
Definition at line 1718 of file image.c.
References storable_picture::adaptive_ref_pic_buffering_flag, storable_picture::bottom_poc, storable_picture::chroma_format_idc, storable_picture::chroma_qp_offset, storable_picture::coded_frame, storable_picture::dec_ref_pic_marking_buffer, storable_picture::frame_cropping_flag, storable_picture::frame_cropping_rect_bottom_offset, storable_picture::frame_cropping_rect_left_offset, storable_picture::frame_cropping_rect_right_offset, storable_picture::frame_cropping_rect_top_offset, storable_picture::frame_mbs_only_flag, storable_picture::frame_num, storable_picture::frame_poc, storable_picture::idr_flag, storable_picture::long_term_reference_flag, storable_picture::MbaffFrameFlag, no_mem_exit(), storable_picture::no_output_of_prior_pics_flag, storable_picture::pic_num, storable_picture::PicWidthInMbs, storable_picture::poc, storable_picture::qp, storable_picture::recovery_frame, storable_picture::seiHasTone_mapping, storable_picture::slice_qp_delta, storable_picture::slice_type, storable_picture::tone_mapping_lut, storable_picture::tone_mapping_model_id, storable_picture::tonemapped_bit_depth, storable_picture::top_poc, and storable_picture::used_for_reference.
Referenced by init_picture().

| int decode_one_frame | ( | ImageParameters * | img, | |
| struct inp_par * | inp, | |||
| struct snr_par * | snr | |||
| ) |
decodes one I- or P-frame
Definition at line 551 of file image.c.
References EOS, Error_tracking(), exit_picture(), Is_primary_correct, Is_redundant_correct, Slice::next_header, previous_frame_num, read_new_slice(), ref_flag, and SOP.
Referenced by main().

| void decode_one_slice | ( | ImageParameters * | img, | |
| Slice * | currSlice, | |||
| struct inp_par * | inp | |||
| ) |
decodes one slice
Definition at line 1782 of file image.c.
References change_plane_JV(), compute_colocated(), compute_colocated_JV(), decode_one_macroblock(), ercWriteMBMODEandMV(), exit_macroblock(), exit_slice(), pic_motion_params::mb_field, storable_picture::motion, read_one_macroblock(), set_interpret_mb_mode(), set_ref_pic_num(), and start_macroblock().

| void exit_picture | ( | StorablePicture ** | dec_picture | ) |
finish decoding of a picture, conceal errors and store it into the DPB
this is always true at the beginning of a picture
mark the start of the first segment
generate the segments according to the macroblock map
stop current segment
mark current segment as lost or OK
next segment
start new segment
save start MB for this segment
mark end of the last segment
call the right error concealment function depending on the frame type.
Definition at line 1281 of file image.c.
References change_plane_JV(), DeblockPicture(), ercConcealInterFrame(), ercConcealIntraFrame(), ercMarkCurrSegmentLost(), ercMarkCurrSegmentOK(), ercStartSegment(), ercStopSegment(), field_postprocessing(), frame_postprocessing(), make_frame_picture_JV(), p_ref, params, snr, store_picture_in_dpb(), frame::uptr, frame::vptr, frame::yptr, and YUV400.
Referenced by decode_one_frame(), and init_picture().

| void field_postprocessing | ( | ImageParameters * | img | ) |
Prepare field and frame buffer after field decoding.
Definition at line 1704 of file image.c.
Referenced by exit_picture().
| void find_snr | ( | struct snr_par * | snr, | |
| StorablePicture * | p, | |||
| int * | p_ref | |||
| ) |
Find PSNR for all three components.Compare decoded frame with the original sequence. Read inp->jumpd frames to reflect frame skipping.
| snr | pointer to snr parameters |
| p | picture to be compared |
| p_ref | open reference YUV file |
Definition at line 746 of file image.c.
References buf2img(), storable_picture::chroma_format_idc, storable_picture::concealed_pic, storable_picture::frame_cropping_flag, storable_picture::frame_cropping_rect_bottom_offset, storable_picture::frame_cropping_rect_left_offset, storable_picture::frame_cropping_rect_right_offset, storable_picture::frame_cropping_rect_top_offset, storable_picture::frame_mbs_only_flag, storable_picture::frame_poc, storable_picture::imgUV, storable_picture::imgY, imgY_ref, no_mem_exit(), params, storable_picture::pic_num, storable_picture::qp, storable_picture::size_x, storable_picture::size_x_cr, storable_picture::size_y, storable_picture::size_y_cr, and YUV400.
Referenced by direct_output(), and insert_picture_in_dpb().

| void frame_postprocessing | ( | ImageParameters * | img | ) |
Prepare field and frame buffer after frame decoding.
Definition at line 1694 of file image.c.
Referenced by exit_picture().
| void init_old_slice | ( | OldSliceParams * | p_old_slice | ) |
| int is_new_picture | ( | StorablePicture * | dec_picture, | |
| Slice * | currSlice, | |||
| OldSliceParams * | p_old_slice | |||
| ) |
detect if current slice is "first VCL NAL unit of a picture"
Definition at line 1645 of file image.c.
References Slice::pic_parameter_set_id.
Referenced by read_new_slice().
| int picture_order | ( | ImageParameters * | img | ) |
| int read_new_slice | ( | Slice * | currSlice | ) |
Reads new slice from bit_stream.
Definition at line 988 of file image.c.
References AllocNALU(), arideco_start_decoding(), AssignQuantParam(), datapartition::bitstream, Bitstream::bitstream_length, Bitstream::code_len, datapartition::de_cabac, Slice::dp_mode, Slice::dpB_NotPresent, Slice::dpC_NotPresent, Bitstream::ei_flag, Slice::ei_flag, EOS, error(), FirstPartOfSliceHeader(), FmoInit(), Bitstream::frame_bitoffset, FreeNALU(), init_lists(), init_mbaff_lists(), init_picture(), InterpretSEIMessage(), is_new_picture(), Is_primary_correct, Is_redundant_correct, MAX_CODED_FRAME_SIZE, Slice::max_part_nr, PAR_DP_1, PAR_DP_3, params, Slice::partArr, Slice::pic_parameter_set_id, RBSPtoSODB(), Bitstream::read_len, read_next_nalu(), RestOfSliceHeader(), storable_picture::slice_type, SOP, SOS, Slice::start_mb_nr, Bitstream::streamBuffer, and ue_v().
Referenced by decode_one_frame().

| StorablePicture* dec_picture_JV[MAX_PLANE] |
dec_picture to be used during 4:4:4 independent mode decoding
Definition at line 72 of file image.c.
Referenced by change_plane_JV(), and make_frame_picture_JV().