#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "config.h"#include "global.h"

Go to the source code of this file.
Defines | |
| #define | MAX(a, b) ( (a)>(b) ? (a) : (b) ) |
| #define | GLOBAL_ |
| #define | STRINGLEN 254 |
| #define | INTTOYES(x) ((x) ? "Yes" : "No") |
Functions | |
| static void init | _ANSI_ARGS_ ((void)) |
| static void readcmdline | _ANSI_ARGS_ ((int argc, char *argv[])) |
| void | g_log (const char *log_domain, int log_level, const char *format,...) |
| void | g_logv (const char *log_domain, int log_level, const char *format,...) |
| void | mpeg2enc_set_w (int width) |
| void | mpeg2enc_set_h (int height) |
| void | mpeg2enc_set_rate (double rate) |
| void | mpeg2enc_set_input_buffers (int eof, char *y, char *u, char *v) |
| void | mpeg2enc_init_buffers () |
| int | mpeg2enc (int argc, char *argv[]) |
| int | HorzMotionCode (int i) |
| int | VertMotionCode (int i) |
| static uint8_t * | bufalloc (size_t size) |
| static void | init () |
| void | error (char *text) |
| int | calculate_smp () |
| static void | readcmdline (int argc, char *argv[]) |
| static int | quant_hfnoise_filt (int orgquant, int qmat_pos) |
| static void | readquantmat () |
| #define GLOBAL_ |
Definition at line 36 of file mpeg2enc.c.
| #define INTTOYES | ( | x | ) | ((x) ? "Yes" : "No") |
Referenced by readcmdline().
| #define STRINGLEN 254 |
| static void readcmdline _ANSI_ARGS_ | ( | (int argc, char *argv[]) | ) | [static] |
| static void init _ANSI_ARGS_ | ( | (void) | ) | [static] |
| static uint8_t* bufalloc | ( | size_t | size | ) | [static] |
Definition at line 196 of file mpeg2enc.c.
References buf, BUFFER_ALIGN, error(), and NULL.
Referenced by init().

| int calculate_smp | ( | ) |
Definition at line 350 of file mpeg2enc.c.
References fclose(), fgets(), fopen(), and strchr.
Referenced by readcmdline().

| void error | ( | char * | text | ) |
Definition at line 340 of file mpeg2enc.c.
References fprintf, and putc().
Referenced by bufalloc(), calculate_vissual_weight(), FileAVI::check_sig_avifile(), FileMPEG::create_index(), PackageRenderer::create_output(), dering(), dts_decode_frame(), encode_frame(), ff_er_frame_end(), RenderFarmClientThread::get_command(), FileMPEG::get_info(), get_length(), guess_dc(), guess_mv(), Save::handle_event(), init(), is_intra_more_likely(), main(), TunerServer::main_loop(), VFrame::make_shader(), mpeg2enc(), new_video_stream(), next_code(), Obtain_Range(), FileAVI::open_avifile_in(), FileAVI::open_avifile_out(), FileMPEG::open_file(), prev_code(), print_report(), putAC(), putDC(), read_quicktime(), readcmdline(), readquantmat(), SaveAs::run(), Quit::run(), MenuEffectThread::run(), DV1394Input::run(), ClipEdit::run(), PackageRenderer::stop_output(), DeviceDVBInput::try_tuner(), and vorbis_parse_setup_hdr_codebooks().

| void g_log | ( | const char * | log_domain, | |
| int | log_level, | |||
| const char * | format, | |||
| ... | ||||
| ) |
Definition at line 49 of file mpeg2enc.c.
| void g_logv | ( | const char * | log_domain, | |
| int | log_level, | |||
| const char * | format, | |||
| ... | ||||
| ) |
Definition at line 57 of file mpeg2enc.c.
| int HorzMotionCode | ( | int | i | ) |
| static void init | ( | ) | [static] |
Definition at line 211 of file mpeg2enc.c.
References auxframe, block_count, pict_data::blocks, bufalloc(), chrom_height, chrom_width, chrom_width2, CHROMA420, CHROMA444, chroma_format, clp, colsums_offset, cur_picture, error(), errortext, fieldpic, fopen(), frame_buffers, fsubsample_offset, height, height2, horizontal_size, init_fdct(), init_idct(), init_motion(), init_predict_hv(), init_quantizer_hv(), init_transform_hv(), mb_height, mb_height2, mb_per_pict, mb_width, pict_data::mbinfo, mpeg2_initbits(), newrefframe, oldrefframe, predframe, processors, prog_seq, pict_data::qblocks, qsubsample_offset, ratectl, READ_LOOK_AHEAD, rowsums_offset, start_itransform_engines(), start_motion_engines(), start_slice_engines(), start_transform_engines(), statfile, statname, test_lock, vertical_size, width, and width2.

| int mpeg2enc | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 102 of file mpeg2enc.c.
References do_stdin, error(), errortext, fclose(), fopen(), fprintf, init, input_lock, mpeg3_close(), mpeg_file, nframes, out_path, outfile, output_lock, putseq(), qt_file, qt_output, quicktime_close(), readcmdline(), readquantmat(), statfile, stdin_fd, stop_itransform_engines(), stop_motion_engines(), stop_slice_engines(), stop_transform_engines(), and verbose.
Referenced by FileMPEGVideo::run().

| void mpeg2enc_init_buffers | ( | ) |
Definition at line 92 of file mpeg2enc.c.
References copy_lock, input_buffer_end, input_lock, and output_lock.
Referenced by FileMPEGVideo::FileMPEGVideo().
| void mpeg2enc_set_h | ( | int | height | ) |
Definition at line 70 of file mpeg2enc.c.
References vertical_size.
Referenced by FileMPEGVideo::FileMPEGVideo().
| void mpeg2enc_set_input_buffers | ( | int | eof, | |
| char * | y, | |||
| char * | u, | |||
| char * | v | |||
| ) |
Definition at line 80 of file mpeg2enc.c.
References copy_lock, input_buffer_end, input_buffer_u, input_buffer_v, input_buffer_y, input_lock, and output_lock.
Referenced by FileMPEG::close_file(), and FileMPEG::write_frames().
| void mpeg2enc_set_rate | ( | double | rate | ) |
Definition at line 75 of file mpeg2enc.c.
References input_frame_rate.
Referenced by FileMPEGVideo::FileMPEGVideo().
| void mpeg2enc_set_w | ( | int | width | ) |
Definition at line 65 of file mpeg2enc.c.
References horizontal_size.
Referenced by FileMPEGVideo::FileMPEGVideo().
| static int quant_hfnoise_filt | ( | int | orgquant, | |
| int | qmat_pos | |||
| ) | [static] |
Definition at line 1138 of file mpeg2enc.c.
References use_denoise_quant.
Referenced by readquantmat().
| static void readcmdline | ( | int | argc, | |
| char * | argv[] | |||
| ) | [static] |
Definition at line 386 of file mpeg2enc.c.
References act_boost, altscan_tab, aspectratio, motion_data::back_hor_f_code, motion_data::back_vert_f_code, bit_rate, c, calculate_smp(), CHROMA420, chroma_format, color_primaries, conceal_tab, constrparms, cur_picture, pict_data::dc_prec, dctsatlim, display_horizontal_size, display_vertical_size, do_buffers, do_stdin, end_frame, error(), fast_mc_frac, fgets(), fieldpic, fixed_mquant, motion_data::forw_hor_f_code, motion_data::forw_vert_f_code, fprintf, frame0, frame_buffer, frame_pred_dct_tab, frame_rate, frame_rate_code, horizontal_size, input_frame_rate, inputtype, intravlc_tab, INTTOYES, iqname, level, line, low_delay, M, matrix_coefficients, MAX, mc_22_red, mc_44_red, mpeg1, mpeg3_check_sig(), mpeg3_frame_rate(), mpeg3_open(), mpeg3_video_height(), mpeg3_video_width(), mpeg_file, N, nframes, niqname, opt_dc_prec, opt_prog_frame, opt_repeatfirst, opt_topfirst, out_path, processors, profile, profile_and_level_checks(), pict_data::prog_frame, prog_seq, qscale_tab, qt_file, qt_output, quant_floor, quicktime_check_sig(), quicktime_frame_rate(), quicktime_open(), quicktime_supported_video(), quicktime_video_height(), quicktime_video_length(), quicktime_video_tracks(), quicktime_video_width(), quiet, range_checks(), pict_data::repeatfirst, row_pointers, s, seq_header_every_gop, start_frame, statname, stdin_fd, STRINGLEN, motion_data::sxb, motion_data::sxf, motion_data::syb, motion_data::syf, T_BUFFERS, T_MPEG, T_QUICKTIME, T_STDIN, tc0, pict_data::topfirst, tplorg, tplref, transfer_characteristics, use_denoise_quant, use_hires_quant, vbv_buffer_size, verbose, vertical_size, video_buffer_size, and video_format.
Referenced by mpeg2enc().

| static void readquantmat | ( | ) | [static] |
Definition at line 1158 of file mpeg2enc.c.
References default_intra_quantizer_matrix_hv, default_nonintra_quantizer_matrix_hv, error(), hires_intra_quantizer_matrix_hv, hires_nonintra_quantizer_matrix_hv, i_inter_q, i_inter_q_tbl, i_inter_q_tblf, i_intra_q, i_intra_q_tbl, i_intra_q_tblf, inter_q, inter_q_tbl, inter_q_tblf, intra_q, intra_q_tbl, intra_q_tblf, iqname, IQUANT_SCALE, load_iquant, load_niquant, niqname, quant_hfnoise_filt(), use_denoise_quant, and use_hires_quant.
Referenced by mpeg2enc().

| int VertMotionCode | ( | int | i | ) |
1.5.5