libavfilter/libmpcodecs/vf_mcdeint.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include "mp_msg.h"
#include "cpudetect.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/dsputil.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "vd_ffmpeg.h"

Go to the source code of this file.

Data Structures

struct  vf_priv_s
 Stores persistant variables. More...

Defines

#define MIN(a, b)   ((a) > (b) ? (b) : (a))
#define MAX(a, b)   ((a) < (b) ? (b) : (a))
#define ABS(a)   ((a) > 0 ? (a) : (-(a)))
#define CHECK(j)

Functions

static void filter (struct vf_priv_s *p, uint8_t *dst[3], uint8_t *src[3], int dst_stride[3], int src_stride[3], int width, int height)
 if (diff0+diff1 > 0) temp-
 for (y=0;y< h;y++)
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 get_image (struct vf_instance *vf, mp_image_t *mpi)
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
static void uninit (struct vf_instance *vf)
static int query_format (struct vf_instance *vf, unsigned int fmt)
static int vf_open (vf_instance_t *vf, char *args)

Variables

else temp = (diff0 + diff1 + ABS( ABS(diff0) - ABS(diff1) )/2)/2
 filp [0]
else dst [i][x+y *dst_stride[i]] = p->frame_dec->data[i][x + y*fils]
parity = 1
const vf_info_t vf_info_mcdeint


Define Documentation

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

Definition at line 73 of file vf_mcdeint.c.

#define CHECK (  ) 

Value:

{   int score= ABS(srcp[-srcs-1+j] - srcp[+srcs-1-j])\
                 + ABS(srcp[-srcs  +j] - srcp[+srcs  -j])\
                 + ABS(srcp[-srcs+1+j] - srcp[+srcs+1-j]);\
        if(score < spatial_score){\
            spatial_score= score;\
            diff0= filp[-fils+j] - srcp[-srcs+j];\
            diff1= filp[+fils-j] - srcp[+srcs-j];

Referenced by block_metrics_mmx2(), and filter().

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

Definition at line 72 of file vf_mcdeint.c.

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

Definition at line 71 of file vf_mcdeint.c.


Function Documentation

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 182 of file vf_mcdeint.c.

static void filter ( struct vf_priv_s p,
uint8_t *  dst[3],
uint8_t *  src[3],
int  dst_stride[3],
int  src_stride[3],
int  width,
int  height 
) [static]

Definition at line 93 of file vf_mcdeint.c.

for (  ) 

static void get_image ( struct vf_instance vf,
mp_image_t mpi 
) [static]

Definition at line 239 of file vf_mcdeint.c.

if ( diff0+  diff1,
 
)

Referenced by aac_decode_frame_int(), aac_encode_frame(), adpcm_decode_frame(), ape_decode_value(), ape_read_header(), asf_read_pts(), av_ext2dbl(), avcodec_default_reget_buffer(), average_quantized_coeffs(), avs_decode_frame(), binkb_read_bundle(), blend_subrect(), cavs_decode_frame(), cavsvideo_probe(), check_header_mismatch(), cmv_decode_inter(), commit_bitstream_and_slice_buffer(), compute_coupling_strategy(), compute_pkt_fields(), construct_perm_table(), cook_decode_frame(), dca_decode_init(), decode_end(), decode_exp_vlc(), decode_frame(), decode_init(), draw_slice(), dv_extract_audio(), dv_inject_audio(), dvvideo_init(), ebml_parse_elem(), encode_frame(), ff_mjpeg_decode_sos(), ff_vdpau_mpeg_picture_complete(), ff_vdpau_vc1_decode_picture(), ff_xvmc_decode_mb(), ff_xvmc_field_start(), FfmpegFindNextSchroParseUnit(), fill_picture_parameters(), flashsv_decode_frame(), free_section(), g726_init(), get_block_sizes(), h263_probe(), h264_probe(), hyscale(), iff_read_header(), imc_decode_frame(), init(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_frame(), ir2_decode_frame(), j2kenc_init(), libdirac_encode_init(), libspeex_encode_frame(), libspeex_encode_init(), main(), matroska_probe(), mct_decode(), mlp_parse(), mm_decode_inter(), mmsh_close(), motion_search(), mov_parse_mpeg2_frame(), mpeg1_encode_sequence_header(), mpeg4_encode_mb(), mpeg4video_probe(), mpeg_mux_init(), mpegps_probe(), mpegvideo_probe(), MPV_common_init(), MPV_frame_end(), msrle_decode_8_16_24_32(), mxf_interleave_get_packet(), mxf_parse_mpeg2_frame(), nut_probe(), nut_read_seek(), ogg_read_page(), optimum_use15_7(), pam_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), put_image(), qdm2_decode(), qdm2_fft_tone_synthesizer(), qtrle_decode_1bpp(), read_header(), read_major_sync(), read_thread(), read_var_block_data(), rpza_decode_stream(), rtsp_read_packet(), sbr_hf_calc_npatches(), sbr_make_f_master(), seqvideo_decode(), set_channel_info(), shorten_decode_frame(), smc_decode_stream(), store_packet(), svq3_decode_frame(), svq3_decode_init(), svq3_mc_dir(), synth_block_fcb_acb(), synth_superframe(), tgv_decode_inter(), tiff_decode_tag(), tm2_decode_blocks(), transcode(), unpack_superblocks(), unpack_vlcs(), vaapi_mpeg4_start_frame(), vc1_decode_b_mb(), vorbis_parse_setup_hdr_codebooks(), vp8_decode_frame(), vqa_decode_init(), wiener_denoise(), wsvqa_read_header(), XAVS_init(), yuv2yuvX_ar_TMPL(), and yuv2yuvX_TMPL().

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

Definition at line 257 of file vf_mcdeint.c.

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

Definition at line 298 of file vf_mcdeint.c.

static void uninit ( struct vf_instance vf  )  [static]

Definition at line 276 of file vf_mcdeint.c.

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

Definition at line 310 of file vf_mcdeint.c.


Variable Documentation

else dst[i][x+y *dst_stride[i]] = p->frame_dec->data[i][x + y*fils]

Definition at line 160 of file vf_mcdeint.c.

Referenced by add_frame_default(), adx_encode_frame(), av_aes_crypt(), av_base64_decode(), av_base64_encode(), av_get_number(), av_get_string(), av_set_number2(), av_set_string3(), avfilter_draw_slice(), avfilter_filter_samples(), avfilter_start_frame(), avg_pixels16_l2_TMPL(), avg_pixels4_l2_TMPL(), avg_pixels8_l2_TMPL(), bethsoftvid_decode_frame(), bfi_decode_frame(), bink_decode_plane(), binkb_decode_plane(), binkb_read_bundle(), blockCopy_TMPL(), bmp_decode_frame(), bmp_encode_frame(), cmp_direct_inline(), cmv_decode_inter(), cmv_decode_intra(), copy(), copy_backptr(), copy_block16(), copy_block2(), copy_block4(), copy_block8(), copy_frame(), copy_frame_default(), decode(), decode_const_block_data(), decode_frame(), decode_i2_frame(), decode_i_frame(), decode_p_frame(), decode_tile(), deNoise(), dfa_decode_frame(), doTest(), draw_slice(), eightsvx_decode_frame(), encode_frame(), ff_h264_decode_nal(), ff_h264_idct8_add(), ff_h264_idct8_add4(), ff_h264_idct8_dc_add(), ff_h264_idct_add(), ff_h264_idct_add16(), ff_h264_idct_add16intra(), ff_h264_idct_dc_add(), ff_h264_lowres_idct_add(), ff_h264_lowres_idct_put(), ff_ivi_inverse_slant_4x4(), ff_ivi_inverse_slant_8x8(), ff_ivi_process_empty_tile(), ff_metadata_conv(), ff_mjpeg_find_marker(), ff_snow_horizontal_compose97i_mmx(), ff_snow_horizontal_compose97i_sse2(), ff_snow_inner_add_yblock(), fill_buffer(), filter(), filter_mb_row(), filter_mb_row_simple(), for(), h264_handle_packet(), idct_internal(), idct_put(), insert_mb_into_sb(), load_input_picture(), main(), mimic_decode_update_thread_context(), mv_pred_sym(), parse_h264_sdp_line(), pcm_encode_frame(), pixels16_l2(), pixels8_l2(), planarToNv12Wrapper(), planarToUyvyWrapper(), planarToYuy2Wrapper(), postProcess_TMPL(), put_image(), put_no_rnd_pixels16_l2_TMPL(), put_no_rnd_pixels8_l2_TMPL(), put_pixels16_l2_TMPL(), put_pixels4_l2_TMPL(), put_pixels8_l2_TMPL(), raw_decode(), read_dcs(), read_header(), read_ttag(), reorder_block(), rgb15to16_TMPL(), rgb15to32_TMPL(), rgb15tobgr24_TMPL(), rgb16to15_TMPL(), rgb16to32_TMPL(), rgb16tobgr24_TMPL(), rgb24to15_TMPL(), rgb24to16_TMPL(), rgb24tobgr15_TMPL(), rgb24tobgr16_TMPL(), rgb24tobgr24_TMPL(), rgb24tobgr32_TMPL(), rgb32to15_TMPL(), rgb32to16_TMPL(), rgb32tobgr15_TMPL(), rgb32tobgr16_TMPL(), rgb32tobgr24_TMPL(), scale_image(), sdp_parse_fmtp_config_h264(), seqvideo_decode(), shuffle_bytes_2103_TMPL(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_motion_inter_4v_block(), svq1_motion_inter_block(), svq1_skip_block(), tm2_decode_blocks(), tmv_decode_frame(), transpose2_TMPL(), vc1_apply_p_h_loop_filter(), vc1_apply_p_v_loop_filter(), vc1_decode_i_blocks(), vc1_inv_trans_4x4_c(), vc1_inv_trans_4x8_c(), vc1_inv_trans_8x4_c(), vc1_inv_trans_8x8_c(), vf_mpi_clear(), vp56_mc(), vp8_decode_frame(), wavpack_decode_block(), yuv2yuv1_ar_TMPL(), yuv2yuv1_TMPL(), yuv422ptouyvy_TMPL(), yuv422pToUyvyWrapper(), yuv422ptoyuy2_TMPL(), yuv422pToYuy2Wrapper(), yuvPlanartouyvy_TMPL(), yuvPlanartoyuy2_TMPL(), yv12touyvy_TMPL(), yv12touyvy_unscaled_altivec(), yv12toyuy2_TMPL(), and yv12toyuy2_unscaled_altivec().

filp[0]

Initial value:

                        dst[i][x + y*dst_stride[i]]= temp > 255U ? ~(temp>>31) : temp

Definition at line 153 of file vf_mcdeint.c.

Referenced by filter().

p parity = 1

Definition at line 178 of file vf_mcdeint.c.

Referenced by ff_yadif_filter_line_TMPL(), and read_access_unit().

else temp = (diff0 + diff1 + ABS( ABS(diff0) - ABS(diff1) )/2)/2

Definition at line 148 of file vf_mcdeint.c.

Referenced by a64_compress_colram(), at1_subband_synthesis(), backward_filter(), bit8x8_c(), biweight_h264_WxH_altivec(), block_diffs(), blur2(), config(), dct_max8x8_c(), dct_sad8x8_c(), decode_8_pulses_31bits(), decode_frame(), decode_plane(), decode_rgb_frame(), ff_bink_idct_c(), ff_bink_idct_put_c(), ff_block_permute(), ff_ea_idct_put_c(), ff_faandct(), ff_faandct248(), ff_faanidct(), ff_faanidct_add(), ff_faanidct_put(), ff_h264_luma_dc_dequant_idct(), ff_simple_idct_vis(), ff_snow_horizontal_compose97i(), ff_snow_horizontal_compose97i_mmx(), ff_snow_horizontal_compose97i_sse2(), ff_svq3_luma_dc_dequant_idct_c(), ffurl_register_protocol(), filter(), find_new_headers(), flac_parse(), flac_parse_close(), h261_loop_filter_c(), h263_h_loop_filter_mmx(), h264_deblock_q1(), hadamard8_diff8x8_c(), hadamard8_intra8x8_c(), horizontal_compose53i(), horizontal_decompose53i(), horizontal_decompose97i(), http_write(), hybrid6_cx(), idct(), idct_put(), idctRowCondDC(), imdct_and_windowing(), ls_encode_runterm(), ls_get_code_runterm(), matroska_parse_block(), pp_get_mode_by_name_and_quality(), quant_psnr8x8_c(), rd8x8_c(), read32(), read_time(), render_slice(), rv34_inv_transform(), rv34_inv_transform_noround(), sbr_gain_calc(), sbr_make_f_derived(), sbr_make_f_master(), store_slice_c(), sub_left_prediction(), svq1_encode_frame(), svq1_encode_plane(), vc1_inv_trans_8x8_c(), vorbis_inverse_coupling(), vorbis_residue_decode_internal(), and weight_h264_WxH_altivec().

Initial value:

 {
    "motion compensating deinterlacer",
    "mcdeint",
    "Michael Niedermayer",
    "",
    vf_open,
    NULL
}

Definition at line 331 of file vf_mcdeint.c.


Generated on Fri Oct 26 02:39:48 2012 for FFmpeg by  doxygen 1.5.8