hvirtual/quicktime/encore50/momusys.h File Reference

#include "non_unix.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <strings.h>
#include "mom_structs.h"

Include dependency graph for momusys.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _MOMUSYS_H_
#define strchr(s1, c)   index(s1, c)
#define strrchr(s1, c)   rindex(s1, c)
#define memcpy(s1, s2, length)   bcopy(s1, s2, length)
#define memzero(s1, length)   bzero(s1, length)
#define memcmp(s1, s2, length)   bcmp(s1, s2, length)
#define FALSE   0
#define TRUE   1
#define NULL   0
#define Const   const
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define CLIP(a, i, s)   (((a) > (s)) ? (s) : MAX(a,i))
#define INT(a)   ((Int) (floor((Double) a)))
#define MNINT(a)   ((a) < 0 ? (Int)(a - 0.5) : (Int)(a + 0.5))
#define MAX3(x, y, z)   MAX(MAX(x,y),z)
#define MIN3(x, y, z)   MIN(MIN(x,y),z)
#define MEDIAN(x, y, z)   ((x)+(y)+(z)-MAX3(x,y,z)-MIN3(x,y,z))
#define POW2(a)   ((a)*(a))
#define SQUARE(a)   ((a)*(a))
#define POW3(a)   ((a)*(a)*(a))
#define CUBE(a)   ((a)*(a)*(a))
#define ABS(x)   (((x) < 0) ? -(x) : (x))
#define SIGN(x)   (((x) < 0) ? -1 : 1)
#define EVEN(a)   ((a) % 2) == 0)
#define ODD(a)   ((a) % 2) == 1)
#define STRLEN(P_string)   ((P_string==NULL) ? strlen(P_string) : -1)
#define TYPE_MALLOC(type, nb)   ((type *) malloc(sizeof(type)*nb))
#define NEW(type)   ((type *) malloc(sizeof(type) ))
#define MOMCHECK(a)   if ((a) == 0) fprintf(stdout, "MOMCHECK failed in file %s, line %i\n", __FILE__, __LINE__)
#define _ANSI_ARGS_(argv)   ()
#define _P_(argv)   ()

Typedefs

typedef void Void
typedef char Char
typedef const char C_Char
typedef unsigned char Byte
typedef Const Byte C_Byte
typedef unsigned char UChar
typedef Const UChar C_UChar
typedef short int Short
typedef short int SInt
typedef unsigned short UShort
typedef unsigned short USInt
typedef Const short C_Short
typedef Const short C_SInt
typedef Const UShort C_UShort
typedef Const UShort C_USInt
typedef int Int
typedef long int LInt
typedef Const int C_Int
typedef unsigned int U_Int
typedef unsigned int UInt
typedef unsigned long int ULInt
typedef Const UInt C_UInt
typedef float Float
typedef Const float C_Float
typedef double Double
typedef Const double C_Double
typedef FILE File


Define Documentation

#define _ANSI_ARGS_ ( argv   )     ()

Definition at line 160 of file momusys.h.

#define _MOMUSYS_H_

Definition at line 6 of file momusys.h.

#define _P_ ( argv   )     ()

Definition at line 161 of file momusys.h.

#define ABS (  )     (((x) < 0) ? -(x) : (x))

Definition at line 141 of file momusys.h.

#define CLIP ( a,
i,
s   )     (((a) > (s)) ? (s) : MAX(a,i))

Definition at line 129 of file momusys.h.

#define Const   const

Definition at line 55 of file momusys.h.

#define CUBE ( a   )     ((a)*(a)*(a))

Definition at line 139 of file momusys.h.

#define EVEN ( a   )     ((a) % 2) == 0)

Definition at line 143 of file momusys.h.

#define FALSE   0

Definition at line 42 of file momusys.h.

#define INT ( a   )     ((Int) (floor((Double) a)))

Definition at line 130 of file momusys.h.

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

Definition at line 122 of file momusys.h.

#define MAX3 ( x,
y,
 )     MAX(MAX(x,y),z)

Definition at line 132 of file momusys.h.

#define MEDIAN ( x,
y,
 )     ((x)+(y)+(z)-MAX3(x,y,z)-MIN3(x,y,z))

Definition at line 134 of file momusys.h.

Referenced by decode_frame(), decode_init(), deInterlaceMedian(), and encode_frame().

#define memcmp ( s1,
s2,
length   )     bcmp(s1, s2, length)

#define memcpy ( s1,
s2,
length   )     bcopy(s1, s2, length)

Definition at line 34 of file momusys.h.

Referenced by a52_decode_frame(), a52_downmix(), a52_upmix(), ac3_decode_frame(), AC3_encode_frame(), FileAVI::acodec_to_fourcc(), add_av_stream1(), add_codec(), adx_decode_frame(), alloc_tables(), BRender::allocate_map(), allocate_output(), append_buffer(), append_cell(), append_table(), SetFormatThread::apply_changes(), FieldFrame::apply_field(), audio_resample(), av_parser_change(), av_resample_init(), av_strdup(), avpicture_layout(), BC_Pan::BC_Pan(), blockCopy(), HistogramMain::calculate_histogram(), cinepak_decode(), cinepak_decode_frame(), component_resample(), compute_bit_allocation(), convert_to_rgb(), AffineMatrix::copy_from(), VFrame::copy_from(), PanAuto::copy_from(), copy_picture_attributes(), copy_subtitles(), New::create_new_project(), SetChannelsCanvas::cursor_motion_event(), decode(), decode_format80(), decode_frame(), decode_frame_adu(), decode_frame_mp3on4(), decode_ref_pic_list_reordering(), decode_slice_header(), decode_wrapper(), deinterlace_bottom_field(), deinterlace_bottom_field_inplace(), do_audio_out(), do_output_subblock(), do_video_out(), draw_edges_c(), dts_decode_frame(), duplicate(), dvbsub_display_end_segment(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvdsub_parse(), dvvideo_init(), encode(), encode_q_branch(), extend_cell_table(), extract_mpeg4_header(), faac_decode_frame(), ff_combine_frame(), ff_h263_decode_frame(), ff_mpa_synth_filter(), ff_print_debug_info(), ff_update_duplicate_context(), SharpenEngine::filter(), final(), find_smallest_bouding_rectangle(), flac_decode_frame(), flic_decode_frame(), VFrame::flip_vert(), FileOGG::flush_ogg(), FileAVI::fourcc_to_acodec(), FileAVI::fourcc_to_vcodec(), foveon_fixed(), foveon_interpolate(), VDeviceV4L::frame_to_vframe(), get_column(), BC_FileBox::get_delete_title(), FileMPEG::get_index(), BC_FileBox::get_newfolder_title(), PackageDispatcher::get_package(), get_transport_payload(), get_unknown_data(), SetChannelsTextBox::handle_event(), APanPatch::handle_event(), handle_subtitle(), horizontal_composeX(), horizontal_decomposeX(), http_parse_request(), http_receive_data(), idcin_decode_frame(), img_copy_plane(), indeo3_decode_frame(), MWindow::init_plugins(), init_rl(), ipvideo_decode_opcodes(), iv_Decode_Chunk(), jpeg_load_dht(), kodak_radc_load_raw(), linecpy(), ThreadStruct::load_output(), main(), VFrame::make_shader(), memcpy_fast(), modified_levinson_durbin(), MP3lame_encode_frame(), mpeg3_append_subtitle(), mpeg3_append_subtitle_offset(), mpeg3_cache_put_frame(), mpeg3_copy_strack(), mpeg3_decode_subtitle(), mpeg3_read_toc(), mpeg3audio_decode_audio(), mpeg3audio_dolayer3(), mpeg3demux_append_data(), mpeg3demux_read_data(), mpeg3io_read_data(), mpeg3video_match_refframes(), mpeg3video_present_frame(), mpegaudio_parse(), MPV_common_init(), MPV_motion(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_8bit(), FileOGG::ogg_get_last_page(), FileOGG::ogg_get_prev_page(), oggvorbis_encode_frame(), oggvorbis_encode_init(), FileOGG::open_file(), pam_encode_frame(), parse_external_jpeg(), parse_tiff_ifd(), PngReadFunction::png_read_function(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), pp_get_mode_by_name_and_quality(), pp_postprocess(), predictor_decompress_fir_adapt(), TimeStretchEngine::process(), LiveAudio::process_buffer(), CrossfadeFFT::process_buffer(), FrameField::process_buffer(), CompressorEffect::process_buffer(), CrossfadeFFT::process_buffer_oversample(), UnsharpUnit::process_package(), InterpolatePixelsUnit::process_package(), ScaleTranslateUnit::process_package(), IVTCMain::process_realtime(), DenoiseEffect::process_realtime(), DelayAudio::process_realtime(), put_column(), qpeg_decode_inter(), qtrle_decode_frame(), quant_matrix_rebuild(), quant_psnr8x8_c(), quicktime_fastjpg_decode_111111(), quicktime_fastjpg_init_limittable(), quicktime_id_to_codec(), quicktime_init_indx(), quicktime_new_ix(), quicktime_put_frame(), quicktime_read_strl(), quicktime_read_stsd_video(), quicktime_set_avcc_header(), quicktime_set_mpeg4_header(), quicktime_update_idx1table(), quicktime_update_indx(), quicktime_update_ixtable(), quicktime_write_data(), ra144_decode_init(), raw_decode(), EXRIStream::read(), VDeviceLML::read_buffer(), VDeviceBUZ::read_buffer(), AudioDevice::read_buffer(), read_buffers(), read_data(), DVBTune::read_data(), read_ffserver_streams(), read_frame(), BC_Bitmap::read_frame(), FileThread::read_frame(), FileDV::read_frame(), read_function(), read_old_huffman_tables(), TimeStretchEngine::read_output(), Resample_float::read_output(), Resample::read_output(), read_preload(), PitchEngine::read_samples(), DelayAudio::reconfigure(), VDeviceLML::refill_input(), AAttachmentPoint::render(), GammaMain::render_gui(), reorder_block(), rle_unpack(), rtp_new_av_stream(), rtsp_parse_request(), VDeviceBUZInput::run(), DVBTuneThread::run(), BC_Hash::save_string(), scale_colors(), sdl_audio_callback(), seek_to_maindata(), select_delta_tables(), shorten_decode_frame(), slice_putc(), smc_decode_stream(), sp5x_decode_frame(), svq1_skip_block(), svq3_decode_mb(), svq3_decode_slice_header(), synchronize_audio(), tiff_read(), tiff_write(), BC_Clipboard::to_clipboard(), toolame_buffer_read(), toolame_send_buffer(), truemotion1_decode_frame(), update_sample_display(), FileAVI::vcodec_to_fourcc(), VFrame::VFrame(), vmd_decode(), vmdvideo_decode_frame(), vng_interpolate(), vp3_decode_frame(), vqa_decode_chunk(), vqa_decode_frame(), wma_decode_superframe(), EXROStream::write(), VDeviceBUZ::write_buffer(), VDeviceLML::write_byte(), RecordMonitorThread::write_frame(), FileJPEG::write_frame(), FileMOV::write_frames(), FileDV::write_frames(), write_function(), write_psd(), FileDV::write_samples(), FileAC3::write_samples(), RenderFarmServerThread::write_string(), xan_wc3_build_palette(), xan_wc3_decode_frame(), and xvid_strip_vol_header().

#define memzero ( s1,
length   )     bzero(s1, length)

Definition at line 35 of file momusys.h.

#define MIN ( a,
b   )     (((a) < (b)) ? (a) : (b))

Definition at line 126 of file momusys.h.

#define MIN3 ( x,
y,
 )     MIN(MIN(x,y),z)

Definition at line 133 of file momusys.h.

#define MNINT ( a   )     ((a) < 0 ? (Int)(a - 0.5) : (Int)(a + 0.5))

Definition at line 131 of file momusys.h.

#define MOMCHECK ( a   )     if ((a) == 0) fprintf(stdout, "MOMCHECK failed in file %s, line %i\n", __FILE__, __LINE__)

#define NEW ( type   )     ((type *) malloc(sizeof(type) ))

Definition at line 148 of file momusys.h.

#define NULL   0

Definition at line 49 of file momusys.h.

Referenced by a52_frame(), a52_init(), a52_resample_C(), a52_resample_init(), a52_resample_MMX(), aasc_decode_init(), add_av_stream1(), add_frame_hooker(), MainMenu::add_load(), add_yblock_buffered(), alac_decode_frame(), alloc_picture(), alloc_tables(), BC_Capture::allocate_data(), BC_Bitmap::allocate_data(), audio_decode_example(), audio_encode_example(), audio_resample_init(), av_encode(), av_freep(), av_log_default_callback(), av_malloc(), av_mallocz(), av_mallocz_static(), av_parser_init(), av_realloc(), av_realloc_static(), av_resample(), av_strdup(), avcodec_alloc_context(), avcodec_alloc_frame(), avcodec_close(), avcodec_default_free_buffers(), avcodec_default_get_buffer(), avcodec_default_reget_buffer(), avcodec_default_release_buffer(), avcodec_find_decoder(), avcodec_find_decoder_by_name(), avcodec_find_encoder(), avcodec_find_encoder_by_name(), avcodec_get_context_defaults(), avcodec_open(), avcodec_thread_execute(), avcodec_thread_free(), avcodec_thread_init(), avpicture_fill(), avpicture_get_size(), bad_pixels(), BC_FullScreen::BC_FullScreen(), bc_ipc_termination(), BC_Popup::BC_Popup(), BC_RecentList::BC_RecentList(), bcast_jpeg_buffer_dest(), bit_alloc(), bits2qp(), Bits_CountMB_combined(), Bits_CountMB_Motion(), BitstreamPutVopHeader(), bufalloc(), build_feed_streams(), build_file_streams(), build_table(), cam_to_cielab(), check_diff(), check_marker(), FileVorbis::check_sig(), cinepak_decode_init(), close_connection(), FileYUV::close_file(), CodeMB(), compute_bandwidth(), compute_bit_allocation(), compute_exp_strategy(), compute_real_filename(), compute_stats(), Condition::Condition(), FFMPEG::convert_cmodel(), ctime1(), DB::DB(), dcraw_main(), decode(), decode_dc(), decode_dvd_subtitles(), decode_format80(), decode_frame_mp3on4(), decode_init(), decode_init_mp3on4(), decode_nal_units(), decode_ref_pic_list_reordering(), decode_seq_parameter_set(), decode_thread(), decompress_field(), DeInterlaceThreshold::DeInterlaceThreshold(), Timer::delay(), delete_codec(), delete_region_display_list(), delete_state(), Thread::disable_cancel(), do_audio_out(), do_exit(), Playback3D::do_mask_sync(), do_subtitle_out(), do_video_out(), do_video_stats(), TrackCanvas::drag_stop(), TrackCanvas::draw_paste_destination(), draw_slice(), dts_decode_frame(), dts_decode_init(), dv_codec_profile(), dv_decode_video_segment(), dvbsub_close_decoder(), dvbsub_display_end_segment(), dvbsub_init_decoder(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), dvdsub_decode(), dvdsub_parse(), dvvideo_decode_frame(), dvvideo_encode_frame(), Thread::enable_cancel(), encode(), encode_dvb_subtitles(), encode_exp(), encode_frame(), encode_init(), encode_q_branch(), encore(), Thread::entrypoint(), evalPrimary(), faac_decode_frame(), ff_build_rac_states(), ff_er_frame_end(), ff_estimate_p_frame_motion(), ff_fft_init(), ff_find_unused_picture(), ff_fix_long_mvs(), ff_h263_decode_frame(), ff_pre_estimate_p_frame_motion(), ff_set_cmp(), ff_spatial_idwt_buffered_init(), ff_vp3_idct_c(), ff_xvid_encode_close(), ff_xvid_encode_frame(), ff_xvid_encode_init(), fill_default_ref_list(), find_rtp_session(), find_rtp_session_with_url(), find_smallest_bouding_rectangle(), find_transport(), flic_decode_init(), flush_dpb(), foveon_camf_matrix(), foveon_camf_param(), free_duplicate_context(), free_picture(), free_tables(), FreeImage(), FreeVop(), generate_bits_table(), get_clut(), get_level_prefix(), get_object(), get_qscale(), get_region(), GetImageData(), gettime(), gettime_ms(), GLOBAL(), h261_decode_frame(), h261_parse(), h263_parse(), h264_parse(), has_altivec(), help(), hl_decode_mb(), horizX1Filter(), http_parse_request(), http_prepare_data(), http_receive_data(), http_server(), huffman_decode(), idcin_decode_init(), identify(), idr(), ifo_open(), img_resample_full_init(), FFMPEG::init(), init_block_mapping(), init_codec_common(), BC_WindowBase::init_display(), BC_WindowBase::init_fonts(), init_frame(), BC_Resources::init_shm(), init_vlc(), BC_DisplayInfo::init_window(), BC_Capture::init_window(), BC_SubWindow::initialize(), ipvideo_decode_frame(), ipvideo_decode_init(), is_intra_more_likely(), iv_alloc_frames(), iv_Decode_Chunk(), iv_decode_frame(), iv_free_func(), jpeg_buffer_dest(), jpeg_buffer_src(), jpeg_load_dht(), jpeg_parse(), libgsm_close(), main(), VFrame::make_shader(), MaskEngine::MaskEngine(), mem_alloc(), mem_free(), mjpeg_decode_init(), mm_support(), MP3lame_encode_frame(), MP3lame_encode_init(), mpeg3audio_doac3(), mpeg4video_parse(), mpeg_decode_frame(), mpegaudio_parse(), mpegvideo_parse(), MPV_common_end(), MPV_frame_start(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), msrle_decode_init(), msvideo1_decode_init(), my_memmem(), new_audio_stream(), new_connection(), new_video_stream(), FileOGG::ogg_decode_more_samples(), FileOGG::ogg_seek_to_keyframe(), FileOGG::ogg_seek_to_sample(), oggvorbis_encode_frame(), oggvorbis_init_encoder(), Pipe::open(), open_bit_stream_w(), RenderFarmServerThread::open_client(), FileYUV::open_file(), FileVorbis::open_file(), FileOGG::open_file(), open_video(), opt_audio_codec(), opt_codec(), opt_format(), opt_image_format(), opt_input_file(), opt_new_subtitle_stream(), opt_output_file(), opt_pad_color(), opt_video_channel(), opt_video_codec(), output_audio_block(), output_packet(), PackagingEngineOGG::packages_are_done(), packet_queue_flush(), packet_queue_get(), packet_queue_put(), parse_args(), parse_ffconfig(), parse_options(), Pipe::Pipe(), pnm_decode_header(), pnm_parse(), pp_get_mode_by_name_and_quality(), pp_postprocess(), pre_process_video_frame(), SvgMain::process_realtime(), qp2bits(), qtrle_decode_init(), rd8x8_c(), read_cmov(), read_ffserver_streams(), FileOGG::read_frame(), FilePNG::read_frame_header(), read_key(), VFrame::read_png(), register_avcodec(), remove_long(), remove_short(), remove_stream(), Condition::reset(), ShapeWipeMain::reset_pattern_image(), reverse_dc_prediction(), rpza_decode_init(), rtp_new_av_stream(), rtp_new_connection(), rtsp_cmd_describe(), rtsp_cmd_setup(), rtsp_cmd_teardown(), rtsp_parse_request(), rtsp_reply_header(), AVC1394TransportThread::run(), rv10_decode_packet(), rv20_decode_picture_header(), ShapeWipeMain::ShapeWipeMain(), show_formats(), show_help_options(), slice_buffer_release(), slice_end(), smc_decode_init(), start_multicast(), stream_close(), stream_component_close(), stream_open(), Pipe::substitute(), svq1_decode_frame(), svq3_decode_frame(), theora_decode_tables(), toolame(), truemotion1_decode_init(), unpack_coeffs(), unpack_token(), unpack_vlcs(), vc9_decode_frame(), vc9_init_common(), video_decode_example(), video_encode_example(), vmdvideo_decode_init(), VopCode(), VopCodeShapeTextIntraCom(), VopShapeMotText(), vp3_decode_frame(), vp3_decode_init(), vqa_decode_init(), wma_decode_init(), wmv2_decode_mb(), worker(), FileOGG::write_samples_vorbis(), xan_decode_init(), xvid_ff_2pass_after(), xvid_ff_2pass_create(), xvid_ff_2pass_destroy(), xvid_strip_vol_header(), and Messages::~Messages().

#define ODD ( a   )     ((a) % 2) == 1)

Definition at line 144 of file momusys.h.

#define POW2 ( a   )     ((a)*(a))

Definition at line 136 of file momusys.h.

#define POW3 ( a   )     ((a)*(a)*(a))

Definition at line 138 of file momusys.h.

#define SIGN (  )     (((x) < 0) ? -1 : 1)

#define SQUARE ( a   )     ((a)*(a))

Definition at line 137 of file momusys.h.

#define strchr ( s1,
c   )     index(s1, c)

#define STRLEN ( P_string   )     ((P_string==NULL) ? strlen(P_string) : -1)

Definition at line 146 of file momusys.h.

#define strrchr ( s1,
c   )     rindex(s1, c)

#define TRUE   1

Definition at line 45 of file momusys.h.

#define TYPE_MALLOC ( type,
nb   )     ((type *) malloc(sizeof(type)*nb))

Definition at line 147 of file momusys.h.


Typedef Documentation

typedef unsigned char Byte

Definition at line 62 of file momusys.h.

typedef Const Byte C_Byte

Definition at line 63 of file momusys.h.

typedef const char C_Char

Definition at line 60 of file momusys.h.

typedef Const double C_Double

Definition at line 89 of file momusys.h.

typedef Const float C_Float

Definition at line 86 of file momusys.h.

typedef Const int C_Int

Definition at line 78 of file momusys.h.

typedef Const short C_Short

Definition at line 71 of file momusys.h.

typedef Const short C_SInt

Definition at line 72 of file momusys.h.

typedef Const UChar C_UChar

Definition at line 65 of file momusys.h.

typedef Const UInt C_UInt

Definition at line 83 of file momusys.h.

typedef Const UShort C_UShort

Definition at line 73 of file momusys.h.

typedef Const UShort C_USInt

Definition at line 74 of file momusys.h.

typedef char Char

Definition at line 59 of file momusys.h.

typedef double Double

Definition at line 88 of file momusys.h.

typedef FILE File

Definition at line 91 of file momusys.h.

typedef float Float

Definition at line 85 of file momusys.h.

typedef int Int

Definition at line 76 of file momusys.h.

typedef long int LInt

Definition at line 77 of file momusys.h.

typedef short int Short

Definition at line 67 of file momusys.h.

typedef short int SInt

Definition at line 68 of file momusys.h.

typedef unsigned int U_Int

Definition at line 79 of file momusys.h.

typedef unsigned char UChar

Definition at line 64 of file momusys.h.

typedef unsigned int UInt

Definition at line 81 of file momusys.h.

typedef unsigned long int ULInt

Definition at line 82 of file momusys.h.

typedef unsigned short UShort

Definition at line 69 of file momusys.h.

typedef unsigned short USInt

Definition at line 70 of file momusys.h.

typedef void Void

Definition at line 57 of file momusys.h.


Generated on Mon Apr 28 14:02:35 2008 for Cinelerra by  doxygen 1.5.5