#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/timestamp.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (readeia608) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static int | config_input (AVFilterLink *inlink) |
|
static void | build_histogram (ReadEIA608Context *s, const LineItem *line, int len) |
|
static void | find_black_and_white (ReadEIA608Context *s) |
|
static float | meanf (const LineItem *line, int len) |
|
static float | stddevf (const LineItem *line, int len) |
|
static void | thresholding (ReadEIA608Context *s, LineItem *line, int lag, float threshold, float influence, int len) |
|
static int | periods (const LineItem *line, CodeItem *code, int len) |
|
static void | dump_code (AVFilterContext *ctx, int len, int item) |
|
static void | extract_line (AVFilterContext *ctx, AVFrame *in, int w, int nb_line) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
Filter for reading closed captioning data (EIA-608). See also https://en.wikipedia.org/wiki/EIA-608
Definition in file vf_readeia608.c.
◆ LAG
◆ CLOCK_BITSIZE_MIN
#define CLOCK_BITSIZE_MIN 0.2f |
◆ CLOCK_BITSIZE_MAX
#define CLOCK_BITSIZE_MAX 1.5f |
◆ SYNC_BITSIZE_MIN
#define SYNC_BITSIZE_MIN 12.f |
◆ SYNC_BITSIZE_MAX
#define SYNC_BITSIZE_MAX 15.f |
◆ OFFSET
◆ FLAGS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
readeia608 |
| ) |
|
◆ query_formats()
◆ config_input()
◆ build_histogram()
◆ find_black_and_white()
◆ meanf()
◆ stddevf()
static float stddevf |
( |
const LineItem * |
line, |
|
|
int |
len |
|
) |
| |
|
static |
◆ thresholding()
◆ periods()
◆ dump_code()
◆ extract_line()
◆ filter_frame()
◆ uninit()
◆ readeia608_options
◆ readeia608_inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 415 of file vf_readeia608.c.
◆ readeia608_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 425 of file vf_readeia608.c.
◆ ff_vf_readeia608
Initial value:= {
.name = "readeia608",
.description =
NULL_IF_CONFIG_SMALL(
"Read EIA-608 Closed Caption codes from input video and write them to frame metadata."),
.priv_class = &readeia608_class,
}
Definition at line 433 of file vf_readeia608.c.