#include "mbuffer.h"


Go to the source code of this file.
Functions | |
| int | encode_one_frame (ImageParameters *img) |
| Boolean | dummy_slice_too_big (int bits_slice) |
| void | copy_rdopt_data (Macroblock *currMB, int field_type) |
| void | UnifiedOneForthPix (StorablePicture *s) |
| void | UnifiedOneForthPix_JV (int nplane, StorablePicture *s) |
| void | frame_picture (Picture *frame, ImageData *imgData, int rd_pass) |
| int | get_idr_flag (void) |
| void | write_non_vcl_nalu (void) |
Variables | |
| StorablePicture * | enc_picture |
| StorablePicture ** | enc_frame_picture |
| StorablePicture ** | enc_field_picture |
| StorablePicture * | enc_frame_picture_JV [MAX_PLANE] |
Definition in file image.h.
| void copy_rdopt_data | ( | Macroblock * | currMB, | |
| int | bot_block | |||
| ) |
For MB level field/frame coding
Definition at line 1633 of file image.c.
References RD_DATA::all_mv, RD_DATA::b8mode, macroblock::b8mode, RD_DATA::b8pdir, macroblock::b8pdir, macroblock::bipred_me, ImageParameters::block_x, ImageParameters::block_y, RD_DATA::c_ipred_mode, macroblock::c_ipred_mode, RD_DATA::cbp, macroblock::cbp, RD_DATA::cbp_blk, macroblock::cbp_blk, RD_DATA::cofAC, ImageParameters::cofAC, RD_DATA::cofDC, ImageParameters::cofDC, RD_DATA::delta_qp, macroblock::delta_qp, RD_DATA::i16offset, ImageParameters::i16offset, storable_picture::imgUV, storable_picture::imgY, RD_DATA::intra_pred_modes, macroblock::intra_pred_modes, RD_DATA::intra_pred_modes8x8, macroblock::intra_pred_modes8x8, RD_DATA::ipredmode, ImageParameters::ipredmode, macroblock::list_offset, RD_DATA::luma_transform_size_8x8_flag, macroblock::luma_transform_size_8x8_flag, ImageParameters::mb_cr_size_x, ImageParameters::mb_cr_size_y, RD_DATA::mb_type, macroblock::mb_type, ImageParameters::MbaffFrameFlag, RD_DATA::mode, storable_picture::motion, pic_motion_params::mv, ImageParameters::num_blk8x8_uv, ImageParameters::pix_c_x, ImageParameters::pix_c_y, ImageParameters::pix_x, ImageParameters::pix_y, RD_DATA::prev_cbp, macroblock::prev_cbp, RD_DATA::prev_dqp, macroblock::prev_dqp, RD_DATA::prev_qp, macroblock::prev_qp, RD_DATA::qp, macroblock::qp, InputParameters::RDOQ_QP_Num, RD_DATA::rec_mb_cr, RD_DATA::rec_mbY, pic_motion_params::ref_idx, pic_motion_params::ref_pic_id, storable_picture::ref_pic_num, RD_DATA::refar, ImageParameters::type, update_qp(), InputParameters::UseRDOQuant, YUV400, and ImageParameters::yuv_format.
Referenced by encode_one_slice_MBAFF().

| Boolean dummy_slice_too_big | ( | int | bits_slice | ) |
| int encode_one_frame | ( | ImageParameters * | img | ) |
Encodes one frame.
Definition at line 361 of file image.c.
References InputParameters::AdaptiveRounding, ImageParameters::AdaptiveRounding, ImageParameters::AverageFrameQP, ImageParameters::b_frame_to_code, InputParameters::basicunit, ImageParameters::bot_MB, ImageParameters::currentPicture, InputParameters::DFAlpha, ImageParameters::DFAlphaC0Offset, InputParameters::DFBeta, ImageParameters::DFBetaOffset, InputParameters::DFDisableIdc, ImageParameters::DFDisableIdc, InputParameters::direct_spatial_mv_pred_flag, ImageParameters::direct_spatial_mv_pred_flag, error(), field_mode_buffer(), field_picture(), ImageParameters::field_picture, ImageParameters::fld_flag, frame_mode_buffer(), ImageParameters::frame_no, frame_picture(), ImageParameters::frameOffsetAvail, ImageParameters::FrameSizeInMbs, free_pictures(), free_slice_list(), free_storable_picture(), ImageParameters::frm_iter, ImageParameters::frm_no_in_file, ImageParameters::frm_number, InputParameters::GenerateMultiplePPS, ImageParameters::gop_number, ImageParameters::height, ImageParameters::height_cr, InputParameters::infile_header, init_frame(), InputParameters::input_file1, ImageParameters::lastIDRnumber, ImageParameters::lastINTRA, ImageParameters::lastIntraNumber, InputParameters::MbInterlace, ImageParameters::nal_reference_idc, InputParameters::output, output_SP_coefficients(), PaddAutoCropBorders(), ImageParameters::pic_order_cnt_type, InputParameters::PicInterlace, picture_structure_decision(), put_buffer_frame(), rc_init_frame(), InputParameters::RCEnable, InputParameters::RCUpdateMode, ImageParameters::rd_pass, InputParameters::rdopt, rdPictureCoding(), InputParameters::RDPictureDecision, InputParameters::RDPictureIntra, read_SP_coefficients(), ReadOneFrame(), InputParameters::redundant_pic_flag, replace_top_pic_with_frame(), ReportNALNonVLCBits(), InputParameters::RestrictRef, InputParameters::si_frame_indicator, InputParameters::source, InputParameters::sp2_frame_indicator, InputParameters::sp_output_indicator, storable_picture::stats, store_picture_in_dpb(), ImageParameters::SumFrameQP, ImageParameters::type, update_global_stats(), UpdateDecoders(), UpdatePixelMap(), InputParameters::Verbose, ImageParameters::width, ImageParameters::width_cr, InputParameters::WPIterMC, InputParameters::WPMCPrecision, wpxInitWPXPasses(), ImageParameters::write_macroblock, write_non_vcl_nalu(), and writeout_picture().
Referenced by encode_one_redundant_frame(), and encode_sequence().

| void frame_picture | ( | Picture * | frame, | |
| ImageData * | imgData, | |||
| int | rd_pass | |||
| ) |
Encodes a frame picture.
Definition at line 930 of file image.c.
References code_a_picture(), find_distortion(), ImageParameters::fld_flag, ImageParameters::FrameSizeInMbs, make_frame_picture_JV(), ImageParameters::PicSizeInMbs, prepare_enc_frame_picture(), ImageParameters::structure, ImageParameters::SumFrameQP, and update_mv_limits().
Referenced by encode_one_frame(), and rdPictureCoding().

| int get_idr_flag | ( | void | ) |
Determine whether picture is coded as IDR.
Definition at line 269 of file image.c.
References InputParameters::adaptive_idr_period, ImageParameters::frm_number, ImageParameters::gop_number, InputParameters::idr_period, ImageParameters::lastIDRnumber, ImageParameters::lastIntraNumber, ImageParameters::structure, and ImageParameters::type.
Referenced by code_a_picture(), is_gop_first_unit(), and write_non_vcl_nalu().
| void UnifiedOneForthPix | ( | StorablePicture * | s | ) |
Upsample 4 times, store them in out4x. Color is simply copied.
Definition at line 1482 of file image.c.
References InputParameters::ChromaMCBuffer, get_mem4Dpel(), get_mem5Dpel(), getSubImagesChroma(), getSubImagesLuma(), storable_picture::imgUV_sub, storable_picture::imgY, storable_picture::imgY_sub, InputParameters::intra_period, no_mem_exit(), ImageParameters::P444_joined, storable_picture::p_curr_img, storable_picture::p_curr_img_sub, storable_picture::p_img_sub, select_plane(), storable_picture::size_x_padded, storable_picture::size_y_padded, YUV400, YUV420, YUV422, and ImageParameters::yuv_format.
Referenced by dpb_combine_field(), dpb_split_field(), insert_picture_in_dpb(), and replace_top_pic_with_frame().

| void UnifiedOneForthPix_JV | ( | int | nplane, | |
| StorablePicture * | s | |||
| ) |
Upsample 4 times, store them in out4x. Color is simply copied for 4:4:4 Independent mode.
Definition at line 1568 of file image.c.
References storable_picture::colour_plane_id, get_mem4Dpel(), get_mem5Dpel(), getSubImagesLuma(), storable_picture::imgUV, storable_picture::imgUV_sub, storable_picture::imgY, storable_picture::imgY_sub, no_mem_exit(), storable_picture::p_curr_img, storable_picture::p_curr_img_sub, storable_picture::p_img, storable_picture::p_img_sub, storable_picture::size_x_padded, and storable_picture::size_y_padded.
Referenced by dpb_combine_field(), dpb_split_field(), insert_picture_in_dpb(), and replace_top_pic_with_frame().

| void write_non_vcl_nalu | ( | void | ) |
Brief AUD, SPS, PPS, and SEI messages
Commented out by StW, needs fixing in SEI.h to keep the trace file clean
Definition at line 2528 of file image.c.
References ImageParameters::frm_number, get_idr_flag(), is_gop_first_unit(), ImageParameters::layer, ImageParameters::number, PrepareAggregationSEIMessage(), InputParameters::ResendPPS, InputParameters::ResendSPS, rewrite_paramsets(), InputParameters::SendAUD, InputParameters::ToneMappingSEIPresentFlag, ImageParameters::type, UpdateSubseqInfo(), Write_AUD_NALU(), and write_PPS().
Referenced by encode_one_frame().

| StorablePicture* enc_frame_picture_JV[MAX_PLANE] |
enc_frame to be used during 4:4:4 independent mode encoding
Definition at line 93 of file image.c.
Referenced by change_plane_JV(), and make_frame_picture_JV().