hvirtual/mpeg2enc/mpeg2enc.c File Reference

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

Include dependency graph for mpeg2enc.c:

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 Documentation

#define GLOBAL_

Definition at line 36 of file mpeg2enc.c.

#define INTTOYES (  )     ((x) ? "Yes" : "No")

Referenced by readcmdline().

#define MAX ( a,
b   )     ( (a)>(b) ? (a) : (b) )

Definition at line 30 of file mpeg2enc.c.

#define STRINGLEN   254

Definition at line 348 of file mpeg2enc.c.

Referenced by readcmdline().


Function Documentation

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().

Here is the call graph for this function:

int calculate_smp (  ) 

Definition at line 350 of file mpeg2enc.c.

References fclose(), fgets(), fopen(), and strchr.

Referenced by readcmdline().

Here is the call graph for this function:

void error ( char *  text  ) 

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  ) 

Definition at line 154 of file mpeg2enc.c.

References constrparms, and level.

static void init (  )  [static]

int mpeg2enc ( int  argc,
char *  argv[] 
)

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 
)

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().

Here is the call graph for this function:

static void readquantmat (  )  [static]

int VertMotionCode ( int  i  ) 

Definition at line 177 of file mpeg2enc.c.

References constrparms, and level.


Generated on Mon Apr 28 14:00:16 2008 for Cinelerra by  doxygen 1.5.5