FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
vf_phase.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "config.h"
#include "mp_msg.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"

Go to the source code of this file.

Data Structures

struct  vf_priv_s
 

Macros

#define fixed_mode(p)   ((p)<=BOTTOM_FIRST)
 
#define diff(a, as, b, bs)   (t=((*a-b[bs])<<2)+a[as<<1]-b[-bs], t*t)
 

Enumerations

enum  mode {
  MODE_NONE, MODE_RO, MODE_RW, MODE_TOGGLE,
  MODE_RANDOM, NB_MODES, PROGRESSIVE, TOP_FIRST,
  BOTTOM_FIRST, TOP_FIRST_ANALYZE, BOTTOM_FIRST_ANALYZE, ANALYZE,
  FULL_ANALYZE, AUTO, AUTO_ANALYZE, MODE_HARD,
  MODE_SOFT, NB_MODES
}
 

Functions

static void do_plane (unsigned char *to, unsigned char *from, int w, int h, int ts, int fs, unsigned char **bufp, enum mode mode)
 
static enum mode analyze_plane (unsigned char *old, unsigned char *new, int w, int h, int os, int ns, enum mode mode, int verbose, int fields)
 
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
 
static void uninit (struct vf_instance *vf)
 
static int vf_open (vf_instance_t *vf, char *args)
 

Variables

const vf_info_t ff_vf_info_phase
 

Macro Definition Documentation

#define fixed_mode (   p)    ((p)<=BOTTOM_FIRST)

Definition at line 37 of file vf_phase.c.

Referenced by analyze_plane().

#define diff (   a,
  as,
  b,
  bs 
)    (t=((*a-b[bs])<<2)+a[as<<1]-b[-bs], t*t)

Definition at line 80 of file vf_phase.c.

Referenced by adpcm_ct_expand_nibble(), adpcm_decode_frame(), adpcm_ima_expand_nibble(), adpcm_ima_oki_expand_nibble(), adpcm_ima_qt_compress_sample(), adpcm_ima_qt_expand_nibble(), adpcm_ima_wav_expand_nibble(), adpcm_sbpro_expand_nibble(), analyze_plane(), arith2_get_consumed_bytes(), asf_read_frame_header(), av_malloc(), av_realloc(), block_angle(), blur(), build_diff_map(), codebook_sanity_check_for_rate_quarter(), compute_target_delay(), copy_region_enc(), decode_dc(), decode_frame(), decode_line(), dering_TMPL(), diff_y(), dnxhd_calc_bits_thread(), dpcm_decode_frame(), dpcm_predict(), encode_block(), encode_high(), encode_line(), encode_low(), encode_picture_lossless(), encode_scale_factors(), enqueue_packet(), est_alpha_diff(), eval_sse(), ff_mpeg1_encode_init(), ff_mpeg4_encode_mb(), ff_rate_estimate_qscale(), fft(), find_block_motion(), find_missing_packets(), fixed_gain_smooth(), fold(), get_closest_codebook(), glyph_cmp(), h263_decode_block(), index_mb(), init_quantized_coeffs_elem0(), licomb_y(), lsf_decode(), mdec_decode_block_intra(), motion_search(), mpeg1_decode_block_intra(), mpeg1_encode_block(), mpeg2_decode_block_intra(), mpeg2_fast_decode_block_intra(), pixel_color7_slow(), process_subpacket_9(), put_alpha_diff(), put_image(), pxr24_uncompress(), rtp_parse_one_packet(), rv30_weak_loop_filter(), rv40_weak_loop_filter(), svq1_decode_motion_vector(), swap_samplerates_on_filter(), sws_subVec(), synchronize_audio(), tm2_null_res_block(), validate_options(), vp8_handle_packet(), and wmv2_pred_motion().

Enumeration Type Documentation

enum mode
Enumerator:
MODE_NONE 
MODE_RO 
MODE_RW 
MODE_TOGGLE 
MODE_RANDOM 
NB_MODES 
PROGRESSIVE 
TOP_FIRST 
BOTTOM_FIRST 
TOP_FIRST_ANALYZE 
BOTTOM_FIRST_ANALYZE 
ANALYZE 
FULL_ANALYZE 
AUTO 
AUTO_ANALYZE 
MODE_HARD 
MODE_SOFT 
NB_MODES 

Definition at line 33 of file vf_phase.c.

Function Documentation

static void do_plane ( unsigned char *  to,
unsigned char *  from,
int  w,
int  h,
int  ts,
int  fs,
unsigned char **  bufp,
enum mode  mode 
)
static

Definition at line 51 of file vf_phase.c.

Referenced by put_image().

static enum mode analyze_plane ( unsigned char *  old,
unsigned char *  new,
int  w,
int  h,
int  os,
int  ns,
enum mode  mode,
int  verbose,
int  fields 
)
static

Definition at line 87 of file vf_phase.c.

Referenced by put_image().

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

Definition at line 199 of file vf_phase.c.

Referenced by vf_open().

static void uninit ( struct vf_instance *  vf)
static

Definition at line 243 of file vf_phase.c.

Referenced by vf_open().

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

Definition at line 253 of file vf_phase.c.

Variable Documentation

const vf_info_t ff_vf_info_phase
Initial value:
=
{
"phase shift fields",
"phase",
"Ville Saari",
"",
NULL
}

Definition at line 295 of file vf_phase.c.