libavfilter/libmpcodecs/vf_test.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "config.h"
#include "mp_msg.h"
#include "help_mp.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include <math.h>

Go to the source code of this file.

Data Structures

struct  vf_priv_s
 Stores persistant variables. More...

Defines

#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define ABS(a, b)   ((a) > 0 ? (a) : -(a))
#define WIDTH   512
#define HEIGHT   512

Functions

static int config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
static void initIdct (void)
static void idct (uint8_t *dst, int dstStride, int src[64])
static void drawDc (uint8_t *dst, int stride, int color, int w, int h)
static void drawBasis (uint8_t *dst, int stride, int amp, int freq, int dc)
static void drawCbp (uint8_t *dst[3], int stride[3], int cbp, int amp, int dc)
static void dc1Test (uint8_t *dst, int stride, int w, int h, int off)
static void freq1Test (uint8_t *dst, int stride, int off)
static void amp1Test (uint8_t *dst, int stride, int off)
static void cbp1Test (uint8_t *dst[3], int stride[3], int off)
static void mv1Test (uint8_t *dst, int stride, int off)
static void ring1Test (uint8_t *dst, int stride, int off)
static void ring2Test (uint8_t *dst, int stride, int off)
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
static int query_format (struct vf_instance *vf, unsigned int fmt)
static int vf_open (vf_instance_t *vf, char *args)

Variables

static double c [64]
const vf_info_t vf_info_test


Define Documentation

#define ABS ( a,
 )     ((a) > 0 ? (a) : -(a))

Definition at line 41 of file vf_test.c.

#define HEIGHT   512

Definition at line 44 of file vf_test.c.

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

Definition at line 39 of file vf_test.c.

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

Definition at line 40 of file vf_test.c.

#define WIDTH   512

Definition at line 43 of file vf_test.c.


Function Documentation

static void amp1Test ( uint8_t *  dst,
int  stride,
int  off 
) [static]

Definition at line 184 of file vf_test.c.

Referenced by put_image().

static void cbp1Test ( uint8_t *  dst[3],
int  stride[3],
int  off 
) [static]

Definition at line 199 of file vf_test.c.

Referenced by put_image().

static int config ( struct vf_instance vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
) [static]

Definition at line 50 of file vf_test.c.

static void dc1Test ( uint8_t *  dst,
int  stride,
int  w,
int  h,
int  off 
) [static]

Definition at line 153 of file vf_test.c.

Referenced by put_image().

static void drawBasis ( uint8_t *  dst,
int  stride,
int  amp,
int  freq,
int  dc 
) [static]

Definition at line 133 of file vf_test.c.

Referenced by amp1Test(), drawCbp(), and freq1Test().

static void drawCbp ( uint8_t *  dst[3],
int  stride[3],
int  cbp,
int  amp,
int  dc 
) [static]

Definition at line 143 of file vf_test.c.

Referenced by cbp1Test().

static void drawDc ( uint8_t *  dst,
int  stride,
int  color,
int  w,
int  h 
) [static]

Definition at line 120 of file vf_test.c.

Referenced by dc1Test(), and ring1Test().

static void freq1Test ( uint8_t *  dst,
int  stride,
int  off 
) [static]

Definition at line 169 of file vf_test.c.

Referenced by put_image().

static void idct ( uint8_t *  dst,
int  dstStride,
int  src[64] 
) [static]

Definition at line 83 of file vf_test.c.

static void initIdct ( void   )  [static]

Definition at line 68 of file vf_test.c.

Referenced by vf_open().

static void mv1Test ( uint8_t *  dst,
int  stride,
int  off 
) [static]

Definition at line 219 of file vf_test.c.

Referenced by put_image().

static int put_image ( struct vf_instance vf,
mp_image_t mpi,
double  pts 
) [static]

Definition at line 272 of file vf_test.c.

static int query_format ( struct vf_instance vf,
unsigned int  fmt 
) [static]

Definition at line 310 of file vf_test.c.

static void ring1Test ( uint8_t *  dst,
int  stride,
int  off 
) [static]

Definition at line 233 of file vf_test.c.

Referenced by put_image().

static void ring2Test ( uint8_t *  dst,
int  stride,
int  off 
) [static]

Definition at line 249 of file vf_test.c.

Referenced by put_image().

static int vf_open ( vf_instance_t vf,
char *  args 
) [static]

Definition at line 314 of file vf_test.c.


Variable Documentation

double c[64] [static]

Definition at line 66 of file vf_test.c.

Referenced by a64_write_header(), a64_write_packet(), a64_write_trailer(), a64multi_close_encoder(), a64multi_encode_frame(), a64multi_init_encoder(), add_audio_stream(), add_paeth_prediction_c(), add_video_stream(), adx_decode_frame(), adx_encode_frame(), ape_tag_read_field(), applehttp_close(), applehttp_read_header(), applehttp_read_packet(), applehttp_read_seek(), apply_channel_coupling(), apply_intensity_stereo(), ass_split(), audio_decode_example(), audio_encode_example(), av_compare_mod(), av_crc_init(), av_get_bits_per_pixel(), av_get_frame_filename(), av_get_token(), av_lzo1x_decode(), av_opt_find(), av_resample_init(), av_rescale_q(), av_vsrc_buffer_add_video_buffer_ref(), avcodec_thread_execute(), avcodec_thread_execute2(), bidir_refine(), bktr_init(), blur_power(), bmp_decode_end(), body(), bs_get_v(), check_bidir_mv(), check_input_motion(), cmp_direct_inline(), cmp_inline(), codec_reinit(), config_props(), convert_timestamp(), create_vorbis_context(), crypto_close(), crypto_open(), crypto_read(), date_get_num(), dca_downmix(), dca_init_vlcs(), decode_bytes(), decode_cce(), decode_end(), decode_frame(), decode_frame_header(), decode_hybrid(), decode_init(), decode_mb_mode(), decode_mvs(), decode_scale_factors(), decode_slice_header(), decode_spectrum_and_dequant(), decode_subframe(), decode_subframe_fixed(), decode_subframe_lpc(), decode_tilehdr(), deInterlaceBlendLinear_TMPL(), deInterlaceMedian_TMPL(), dering_TMPL(), diamond_search(), diff_pixels_mvi(), diff_to_drop_plane(), direct_search(), do_a_deblock_TMPL(), doVertDefFilter_TMPL(), doVertLowPass_TMPL(), draw_glyph_rgb(), draw_glyph_yuv(), draw_slice(), dv_init_demux(), dv_init_dynamic_tables(), dv_init_mux(), dv_read_close(), dv_read_header(), dv_read_packet(), dv_read_seek(), dxa_read_header(), dxa_read_packet(), encode_close(), encode_end(), encode_frame(), encode_init(), encode_init_ls(), encode_residual_fixed(), encode_residual_lpc(), epzs_motion_search2(), epzs_motion_search4(), epzs_motion_search_internal(), estimate_best_b_count(), ff_asf_get_packet(), ff_ass_split_override_codes(), ff_celp_lp_synthesis_filterf(), ff_dct_calc_I_c(), ff_dct_calc_II_c(), ff_dct_calc_III_c(), ff_epzs_motion_search(), ff_estimate_b_frame_motion(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_fix_long_mvs(), ff_fix_long_p_mvs(), ff_float_interleave_c(), ff_get_cpu_flags_x86(), ff_get_line(), ff_get_mb_score(), ff_h264_chroma_dc_dequant_idct(), ff_h264_decode_mb_cabac(), ff_hex_to_data(), ff_iir_filter_init_coeffs(), ff_init_me(), ff_init_smtpe_timecode(), ff_lzw_decode(), ff_lzw_encode(), ff_mov_iso639_to_lang(), ff_mp4_read_descr_len(), ff_mpeg4_pred_dc(), ff_msmpeg4_coded_block_pred(), ff_pca(), ff_pre_estimate_p_frame_motion(), ff_print_debug_info(), ff_printGUID(), ff_sqrt(), ff_thread_free(), ff_thread_init(), fft_ref(), filter_init(), find_rtp_session(), float_interleave(), float_interleave_noscale(), float_to_int16_interleave_altivec(), float_to_int16_interleave_c(), floor_encode(), free_section(), full_search(), funny_diamond_search(), g722_close(), g722_init(), g726_init(), gen_image(), get16(), get8(), get_exponent_dynamic(), get_limits(), get_line(), get_match_score(), get_pts(), get_quants(), get_string(), get_token(), getutime(), grab_read_close(), gxf_parse_mpeg_frame(), h263_get_modb(), h263_mv4_search(), h263_pred_acdc(), h263_pred_dc(), h_block_filter(), hex_dump_internal(), hex_search(), horizX1Filter(), hpel_motion_search(), http_server(), idct(), init(), init_interlaced_ref(), init_pullup(), initFilter(), initialize_masks(), initIdct(), initMMX2HScaler(), initPv(), interlaced_search(), interpolate_isp(), ir2_decode_plane(), ir2_decode_plane_inter(), l2s_dia_search(), ljpeg_decode_yuv_scan(), load_pgm_skip(), loco_predict(), lpc_apply_welch_window_c(), lpc_apply_welch_window_sse2(), lzw_get_code(), main(), microdvd_probe(), microdvd_read_header(), mjpeg_decode_scan(), mjpeg_decode_scan_progressive_ac(), mkv_write_chapters(), mov_create_chapter_track(), mov_parse_mpeg2_frame(), mov_write_chpl_tag(), mp3_parse_vbr_tags(), mpc7_decode_flush(), mpc7_decode_frame(), mpc7_decode_init(), mpc8_decode_frame(), mpc8_decode_init(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), mpc8_read_seek(), mpc_read_close(), mpc_read_header(), mpc_read_packet(), mpc_read_seek(), mpegps_read_pes_header(), mpegts_resync(), msmpeg4_pred_dc(), mul_poly(), multiswap_dec(), multiswap_enc(), mxf_parse_mpeg2_frame(), mxf_write_essence_container_refs(), new_connection(), nsse16_c(), nsse16_mmx(), nsse8_c(), nsse8_mmx(), ogg_read_page(), oggvorbis_encode_frame(), open_audio(), open_video(), opt_find(), opt_help(), opt_map_chapters(), opt_target(), parse_segment_info(), parse_term(), parse_timecode(), pcm_decode_frame(), pnm_decode_frame(), pnm_encode_frame(), pnm_get(), poll_frame(), postProcess(), postProcess_TMPL(), pred16x16_vertical(), process_C(), process_subpacket_11(), ps_tableinit(), qcp_read_header(), qcp_read_packet(), qdm2_fft_generate_tone(), qdm2_fft_tone_synthesizer(), qmf_init(), qpel_motion_search(), quantize_and_encode_band_cost_template(), quantize_mantissas_blk_ch(), query_formats(), read_data(), read_frame_data(), read_time(), read_ts(), read_var_block_data(), read_yesno(), recheck_discard_flags(), ref_to_update(), render_charset(), request_frame(), resampleCubic(), rtmp_open(), rtp_new_connection(), sab_diamond_search(), sad_hpel_motion_search(), seqvideo_decode(), sha1_transform(), sha256_transform(), siff_read_header(), siff_read_packet(), small_diamond_search(), small_strptime(), source_init(), srt_style_apply(), srt_to_ass(), sub_png_paeth_prediction(), surround_to_stereo(), sws_alloc_context(), sws_getContext(), synth_filter_float(), thread_free(), thread_func(), thread_init(), tiff_unpack_strip(), tmv_decode_frame(), truespeech_decode_frame(), tta_read_header(), tta_read_packet(), tta_read_seek(), umh_search(), update_lf_deltas(), update_refs(), url_fgets(), v_block_filter(), var_diamond_search(), vc1_coded_block_pred(), vc1_h_overlap_c(), vc1_h_s_overlap_c(), vc1_i_pred_dc(), vc1_pred_dc(), vc1_v_overlap_c(), vc1_v_s_overlap_c(), vertClassify_TMPL(), vertX1Filter_TMPL(), video_audio_display(), video_decode_example(), video_encode_example(), vp56_parse_mb_type(), vp56_parse_mb_type_models(), vp5_parse_coeff(), vp5_parse_coeff_models(), vp5_parse_header(), vp5_parse_vector_adjustment(), vp5_parse_vector_models(), vp6_parse_coeff(), vp6_parse_coeff_models(), vp6_parse_header(), vp6_parse_vector_adjustment(), vp6_parse_vector_models(), vp8_decode_frame(), vqf_read_header(), vqf_read_packet(), vqf_read_seek(), wmapro_window(), worker(), write_audio_frame(), write_video_frame(), wv_get_value(), x8_get_dc_rlf(), x8_get_prediction(), x8_setup_spatial_compensation(), yuv2bgr24_1_TMPL(), yuv2bgr24_2_TMPL(), yuv2bgr24_X_ar_TMPL(), yuv2bgr24_X_TMPL(), yuv2rgb32_1_TMPL(), yuv2rgb32_2_TMPL(), yuv2rgb32_X_ar_TMPL(), yuv2rgb32_X_TMPL(), yuv2rgb555_1_TMPL(), yuv2rgb555_2_TMPL(), yuv2rgb555_X_ar_TMPL(), yuv2rgb555_X_TMPL(), yuv2rgb565_1_TMPL(), yuv2rgb565_2_TMPL(), yuv2rgb565_X_ar_TMPL(), yuv2rgb565_X_TMPL(), yuv2yuv1_ar_TMPL(), yuv2yuvX_ar_TMPL(), yuv2yuvX_TMPL(), yuv2yuyv422_1_TMPL(), yuv2yuyv422_2_TMPL(), yuv2yuyv422_X_ar_TMPL(), yuv2yuyv422_X_TMPL(), yuv420_rgb15_TMPL(), and yuv420_rgb16_TMPL().

Initial value:

 {
    "test pattern generator",
    "test",
    "Michael Niedermayer",
    "",
    vf_open,
    NULL
}

Definition at line 324 of file vf_test.c.


Generated on Wed Aug 10 19:22:06 2011 for FFmpeg by  doxygen 1.5.8