#include "mbuffer.h"
Go to the source code of this file.
Functions | |
int | encode_one_frame (ImageParameters *p_Img, InputParameters *p_Inp) |
Boolean | dummy_slice_too_big (int bits_slice) |
void | copy_rdopt_data (Macroblock *currMB) |
void | UnifiedOneForthPix (ImageParameters *p_Img, InputParameters *p_Inp, StorablePicture *s) |
void | UnifiedOneForthPix_JV (ImageParameters *p_Img, InputParameters *p_Inp, int nplane, StorablePicture *s) |
void | frame_picture (ImageParameters *p_Img, InputParameters *p_Inp, Picture *frame, ImageData *imgData, int rd_pass) |
byte | get_idr_flag (ImageParameters *p_Img, InputParameters *p_Inp) |
void | write_non_vcl_nalu (ImageParameters *p_Img, InputParameters *p_Inp) |
Definition in file image.h.
void copy_rdopt_data | ( | Macroblock * | currMB | ) |
For MB level field/frame coding
Definition at line 3572 of file rdopt.c.
References rd_data::all_mv, macroblock::block_x, macroblock::block_y, macroblock::c_ipred_mode, macroblock::cbp_blk, slice::cofAC, slice::cofDC, copy_image_data(), copy_image_data_16x16(), storable_picture::imgUV, storable_picture::imgY, macroblock::intra_pred_modes8x8, img_par::ipredmode, macroblock::mb_type, storable_picture::motion, pic_motion_params::mv, macroblock::p_Img, macroblock::p_slice, macroblock::pix_c_x, macroblock::pix_c_y, macroblock::pix_x, macroblock::pix_y, macroblock::qp, rd_data::rec_mb, pic_motion_params::ref_idx, pic_motion_params::ref_pic_id, rd_data::refar, slice::slice_type, update_qp(), and YUV400.
Referenced by encode_one_slice_MBAFF().
Boolean dummy_slice_too_big | ( | int | bits_slice | ) |
int encode_one_frame | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp | |||
) |
Encodes one frame.
Definition at line 394 of file image.c.
References img_par::currentPicture, img_par::enc_frame_picture_JV, error(), field_mode_buffer(), field_picture(), frame_mode_buffer(), frame_picture(), free_pictures(), free_slice_list(), free_storable_picture(), img_par::frm_iter, img_par::gop_number, img_par::height, img_par::height_cr, img_par::imgData, img_par::imgData0, inp_par_enc::infile_header, init_frame(), inp_par_enc::input_file1, inp_par_enc::MbInterlace, inp_par_enc::output, output_SP_coefficients(), PaddAutoCropBorders(), inp_par_enc::PicInterlace, picture_structure_decision(), put_buffer_frame(), rc_init_frame(), inp_par_enc::RCEnable, rd_picture_coding(), inp_par_enc::RDPictureDecision, inp_par_enc::RDPictureIntra, read_SP_coefficients(), ReadOneFrame(), replace_top_pic_with_frame(), ReportNALNonVLCBits(), inp_par_enc::si_frame_indicator, inp_par_enc::source, inp_par_enc::sp2_frame_indicator, inp_par_enc::sp_output_indicator, store_picture_in_dpb(), update_global_stats(), UpdateDecoders(), UpdatePixelMap(), img_par::width, img_par::width_cr, inp_par_enc::WPIterMC, wpxInitWPXPasses(), write_non_vcl_nalu(), and writeout_picture().
Referenced by encode_one_redundant_frame(), and encode_sequence().
void frame_picture | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
Picture * | frame, | |||
ImageData * | imgData, | |||
int | rd_pass | |||
) |
Encodes a frame picture.
Definition at line 943 of file image.c.
References code_a_picture(), img_par::enc_frame_picture_JV, find_distortion(), make_frame_picture_JV(), prepare_enc_frame_picture(), img_par::structure, and update_mv_limits().
Referenced by encode_one_frame(), and rd_picture_coding().
byte get_idr_flag | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp | |||
) |
Determine whether picture is coded as IDR.
Definition at line 268 of file image.c.
References img_par::gop_number, inp_par_enc::idr_period, and img_par::structure.
Referenced by code_a_picture(), is_gop_first_unit(), and write_non_vcl_nalu().
void UnifiedOneForthPix | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
StorablePicture * | s | |||
) |
Upsample 4 times, store them in out4x. Color is simply copied.
Definition at line 1502 of file image.c.
References get_mem4Dpel(), get_mem5Dpel(), getSubImagesChroma(), getSubImagesLuma(), 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_sub, select_plane(), YUV400, YUV420, and YUV422.
Referenced by dpb_combine_field(), dpb_split_field(), insert_picture_in_dpb(), and replace_top_pic_with_frame().
void UnifiedOneForthPix_JV | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
int | nplane, | |||
StorablePicture * | s | |||
) |
Upsample 4 times, store them in out4x. Color is simply copied for 4:4:4 Independent mode.
Definition at line 1586 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, and storable_picture::p_img_sub.
Referenced by dpb_combine_field(), dpb_split_field(), insert_picture_in_dpb(), and replace_top_pic_with_frame().
void write_non_vcl_nalu | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp | |||
) |
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 2162 of file image.c.
References get_idr_flag(), is_gop_first_unit(), img_par::layer, img_par::number, PrepareAggregationSEIMessage(), rewrite_paramsets(), inp_par_enc::SendAUD, UpdateSubseqInfo(), Write_AUD_NALU(), and write_PPS().
Referenced by encode_one_frame().