FFmpeg
|
#include "bit_depth_template.c"
Go to the source code of this file.
Macros | |
#define | entry int8_t |
#define | bitdepth 8 |
#define | bitdepth_max UINT8_MAX |
#define | HBD_DECL |
#define | HBD_CALL |
#define | SCALING_SIZE 256 |
#define | add_noise_y(x, y, grain) |
#define | add_noise_uv(x, y, grain) |
Functions | |
static void FUNC() | generate_grain_y_c (entry buf[][GRAIN_WIDTH], const AVFilmGrainParams *const params HBD_DECL) |
static void FUNC() | generate_grain_uv_c (entry buf[][GRAIN_WIDTH], const entry buf_y[][GRAIN_WIDTH], const AVFilmGrainParams *const params, const intptr_t uv, const int subx, const int suby HBD_DECL) |
static entry FUNC() | sample_lut (const entry grain_lut[][GRAIN_WIDTH], const int offsets[2][2], const int subx, const int suby, const int bx, const int by, const int x, const int y) |
static void FUNC() | fgy_32x32xn_c (pixel *const dst_row, const pixel *const src_row, const ptrdiff_t stride, const AVFilmGrainParams *const params, const size_t pw, const uint8_t scaling[SCALING_SIZE], const entry grain_lut[][GRAIN_WIDTH], const int bh, const int row_num HBD_DECL) |
static void FUNC() | fguv_32x32xn_c (pixel *const dst_row, const pixel *const src_row, const ptrdiff_t stride, const AVFilmGrainParams *const params, const size_t pw, const uint8_t scaling[SCALING_SIZE], const entry grain_lut[][GRAIN_WIDTH], const int bh, const int row_num, const pixel *const luma_row, const ptrdiff_t luma_stride, const int uv, const int is_id, const int sx, const int sy HBD_DECL) |
static void FUNC() | generate_scaling (const uint8_t points[][2], const int num, uint8_t scaling[SCALING_SIZE] HBD_DECL) |
static av_always_inline void FUNC() | apply_grain_row (AVFrame *out, const AVFrame *in, const int ss_x, const int ss_y, const uint8_t scaling[3][SCALING_SIZE], const entry grain_lut[3][GRAIN_HEIGHT+1][GRAIN_WIDTH], const AVFilmGrainParams *params, const int row HBD_DECL) |
static int FUNC() | apply_film_grain (AVFrame *out_frame, const AVFrame *in_frame, const AVFilmGrainParams *params HBD_DECL) |
#define entry int8_t |
Definition at line 66 of file aom_film_grain_template.c.
#define bitdepth 8 |
Definition at line 67 of file aom_film_grain_template.c.
#define bitdepth_max UINT8_MAX |
Definition at line 68 of file aom_film_grain_template.c.
#define HBD_DECL |
Definition at line 69 of file aom_film_grain_template.c.
#define HBD_CALL |
Definition at line 70 of file aom_film_grain_template.c.
#define SCALING_SIZE 256 |
Definition at line 71 of file aom_film_grain_template.c.
#define add_noise_y | ( | x, | |
y, | |||
grain | |||
) |
#define add_noise_uv | ( | x, | |
y, | |||
grain | |||
) |
|
static |
Definition at line 74 of file aom_film_grain_template.c.
Referenced by apply_film_grain().
|
static |
Definition at line 114 of file aom_film_grain_template.c.
Referenced by apply_film_grain().
|
inlinestatic |
Definition at line 175 of file aom_film_grain_template.c.
Referenced by fguv_32x32xn_c(), and fgy_32x32xn_c().
|
static |
Definition at line 188 of file aom_film_grain_template.c.
Referenced by apply_grain_row().
|
static |
Definition at line 302 of file aom_film_grain_template.c.
Referenced by apply_grain_row().
|
static |
Definition at line 433 of file aom_film_grain_template.c.
Referenced by apply_film_grain().
|
static |
Definition at line 486 of file aom_film_grain_template.c.
Referenced by apply_film_grain().
|
static |
Definition at line 545 of file aom_film_grain_template.c.