#include <stdio.h>#include <stdlib.h>#include <string.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 | metrics |
| struct | vf_priv_s |
| Stores persistant variables. More... | |
Defines | |
| #define | COMPE(a, b, e) (abs((a)-(b)) < (((a)+(b))>>(e))) |
| #define | COMPARABLE(a, b) COMPE((a),(b),2) |
| #define | VERYCLOSE(a, b) COMPE((a),(b),3) |
| #define | OUTER_TC_NBHD(s) |
| #define | INNER_TC_NBHD(s, l, h) |
| #define | STARTVARS if (0) |
| #define | GETVAR(str, name, out, func) |
Enumerations | |
| enum | { TC_DROP, TC_PROG, TC_IL1, TC_IL2 } |
Functions | |
| static void | block_diffs (struct metrics *m, unsigned char *old, unsigned char *new, int os, int ns) |
| static void | diff_planes (struct metrics *m, unsigned char *old, unsigned char *new, int w, int h, int os, int ns) |
| static void | diff_fields (struct metrics *metr, mp_image_t *old, mp_image_t *new) |
| static void | status (int f, struct metrics *m) |
| static int | analyze_fixed_pattern (struct vf_priv_s *p, mp_image_t *new, mp_image_t *old) |
| static int | analyze_aggressive (struct vf_priv_s *p, mp_image_t *new, mp_image_t *old) |
| static void | copy_image (mp_image_t *dmpi, mp_image_t *mpi, int field) |
| static int | do_put_image (struct vf_instance *vf, mp_image_t *dmpi) |
| 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 | config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) |
| static void | uninit (struct vf_instance *vf) |
| static void | parse_var (struct vf_priv_s *p, char *var) |
| static void | parse_args (struct vf_priv_s *p, char *args) |
| static int | vf_open (vf_instance_t *vf, char *args) |
Variables | |
| struct { | |
| const char * name | |
| int(* func )(struct vf_priv_s *p, mp_image_t *new, mp_image_t *old) | |
| int needread | |
| } | anal_funcs [] |
| const vf_info_t | vf_info_detc |
| #define COMPARABLE | ( | a, | ||
| b | ||||
| ) | COMPE((a),(b),2) |
Definition at line 51 of file vf_detc.c.
Referenced by analyze_aggressive().
| #define COMPE | ( | a, | ||
| b, | ||||
| e | ||||
| ) | (abs((a)-(b)) < (((a)+(b))>>(e))) |
| #define INNER_TC_NBHD | ( | s, | ||
| l, | ||||
| h | ||||
| ) |
( \ COMPARABLE((s)[0].m.even,(l)) && \ COMPARABLE((s)[2].m.odd,(l)) && ( \ COMPARABLE((s)[0].m.noise,(h)) || \ COMPARABLE((s)[1].m.noise,(h)) ) )
| #define OUTER_TC_NBHD | ( | s | ) |
( \ COMPARABLE((s)[-1].m.even,(s)[-1].m.odd) && \ COMPARABLE((s)[1].m.even,(s)[0].m.odd) && \ COMPARABLE((s)[2].m.even,(s)[1].m.odd) && \ COMPARABLE((s)[-1].m.noise,(s)[0].m.temp) && \ COMPARABLE((s)[2].m.noise,(s)[2].m.temp) )
| #define VERYCLOSE | ( | a, | ||
| b | ||||
| ) | COMPE((a),(b),3) |
Definition at line 52 of file vf_detc.c.
Referenced by analyze_aggressive().
| static int analyze_aggressive | ( | struct vf_priv_s * | p, | |
| mp_image_t * | new, | |||
| mp_image_t * | old | |||
| ) | [static] |
| static int analyze_fixed_pattern | ( | struct vf_priv_s * | p, | |
| mp_image_t * | new, | |||
| mp_image_t * | old | |||
| ) | [static] |
| static void block_diffs | ( | struct metrics * | m, | |
| unsigned char * | old, | |||
| unsigned char * | new, | |||
| int | os, | |||
| int | ns | |||
| ) | [static] |
Definition at line 74 of file vf_detc.c.
Referenced by diff_planes().
| static int config | ( | struct vf_instance * | vf, | |
| int | width, | |||
| int | height, | |||
| int | d_width, | |||
| int | d_height, | |||
| unsigned int | flags, | |||
| unsigned int | outfmt | |||
| ) | [static] |
| static void copy_image | ( | mp_image_t * | dmpi, | |
| mp_image_t * | mpi, | |||
| int | field | |||
| ) | [static] |
Definition at line 243 of file vf_detc.c.
Referenced by put_image().
| static void diff_fields | ( | struct metrics * | metr, | |
| mp_image_t * | old, | |||
| mp_image_t * | new | |||
| ) | [static] |
Definition at line 117 of file vf_detc.c.
Referenced by analyze_aggressive().
| static void diff_planes | ( | struct metrics * | m, | |
| unsigned char * | old, | |||
| unsigned char * | new, | |||
| int | w, | |||
| int | h, | |||
| int | os, | |||
| int | ns | |||
| ) | [static] |
Definition at line 98 of file vf_detc.c.
Referenced by diff_fields().
| static int do_put_image | ( | struct vf_instance * | vf, | |
| mp_image_t * | dmpi | |||
| ) | [static] |
Definition at line 288 of file vf_detc.c.
Referenced by put_image().
| static void parse_args | ( | struct vf_priv_s * | p, | |
| char * | args | |||
| ) | [static] |
| static void parse_var | ( | struct vf_priv_s * | p, | |
| char * | var | |||
| ) | [static] |
Definition at line 399 of file vf_detc.c.
Referenced by parse_args().
| static int put_image | ( | struct vf_instance * | vf, | |
| mp_image_t * | mpi, | |||
| double | pts | |||
| ) | [static] |
| static int query_format | ( | struct vf_instance * | vf, | |
| unsigned int | fmt | |||
| ) | [static] |
| static void status | ( | int | f, | |
| struct metrics * | m | |||
| ) | [static] |
Definition at line 141 of file vf_detc.c.
Referenced by analyze_aggressive(), ff_er_frame_end(), and ff_h264_check_intra4x4_pred_mode().
| static void uninit | ( | struct vf_instance * | vf | ) | [static] |
| static int vf_open | ( | vf_instance_t * | vf, | |
| char * | args | |||
| ) | [static] |
struct { ... } anal_funcs[] [static] |
Referenced by vf_open().
| int(* func)(struct vf_priv_s *p, mp_image_t *new, mp_image_t *old) |
Definition at line 386 of file vf_detc.c.
Referenced by av_fifo_generic_read(), av_fifo_generic_write(), avcodec_default_execute(), avcodec_default_execute2(), avcodec_thread_execute(), avcodec_thread_execute2(), compute_metric(), and main().
| const char* name |
Definition at line 385 of file vf_detc.c.
Referenced by asf_read_ext_content_desc(), asf_read_marker(), asf_read_metadata(), av_get_channel_layout_string(), av_next_option(), avi_read_nikon(), color_table_compare(), decode_info_header(), doTest(), ff_alsa_open(), ff_metadata_mux_compat(), init(), main(), matroska_convert_tag(), oggvorbis_init_encoder(), opt_formats(), opt_loglevel(), parse_device_name(), parse_filter(), parse_inputs(), parse_link_name(), parse_outputs(), sdt_cb(), selfTest(), and wtvfile_open2().
| const vf_info_t vf_info_detc |
1.7.1