FFmpeg
|
#include <inttypes.h>
#include "libavutil/intfloat.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "mss12.h"
Go to the source code of this file.
Enumerations | |
enum | SplitMode { SPLIT_VERT = 0, SPLIT_HOR, SPLIT_NONE } |
enum | ContextDirection { TOP_LEFT = 0, TOP, TOP_RIGHT, LEFT } |
Functions | |
static int | model_calc_threshold (Model *m) |
static void | model_reset (Model *m) |
static av_cold void | model_init (Model *m, int num_syms, int thr_weight) |
static void | model_rescale_weights (Model *m) |
void | ff_mss12_model_update (Model *m, int val) |
static void | pixctx_reset (PixContext *ctx) |
static av_cold void | pixctx_init (PixContext *ctx, int cache_size, int full_model_syms, int special_initial_cache) |
static av_always_inline int | decode_pixel (ArithCoder *acoder, PixContext *pctx, uint8_t *ngb, int num_ngb, int any_ngb) |
static int | decode_pixel_in_context (ArithCoder *acoder, PixContext *pctx, uint8_t *src, ptrdiff_t stride, int x, int y, int has_right) |
static int | decode_region (ArithCoder *acoder, uint8_t *dst, uint8_t *rgb_dst, int x, int y, int width, int height, ptrdiff_t stride, ptrdiff_t rgb_stride, PixContext *pctx, const uint32_t *pal) |
static void | copy_rectangles (MSS12Context const *c, int x, int y, int width, int height) |
static int | motion_compensation (MSS12Context const *c, int x, int y, int width, int height) |
static int | decode_region_masked (MSS12Context const *c, ArithCoder *acoder, uint8_t *dst, ptrdiff_t stride, uint8_t *mask, ptrdiff_t mask_stride, int x, int y, int width, int height, PixContext *pctx) |
static av_cold void | slicecontext_init (SliceContext *sc, int version, int full_model_syms) |
void | ff_mss12_slicecontext_reset (SliceContext *sc) |
static int | decode_pivot (SliceContext *sc, ArithCoder *acoder, int base) |
static int | decode_region_intra (SliceContext *sc, ArithCoder *acoder, int x, int y, int width, int height) |
static int | decode_region_inter (SliceContext *sc, ArithCoder *acoder, int x, int y, int width, int height) |
int | ff_mss12_decode_rect (SliceContext *sc, ArithCoder *acoder, int x, int y, int width, int height) |
av_cold int | ff_mss12_decode_init (MSS12Context *c, int version, SliceContext *sc1, SliceContext *sc2) |
av_cold int | ff_mss12_decode_end (MSS12Context *c) |
Variables | |
static const int | sec_order_sizes [4] = { 1, 7, 6, 1 } |
enum ContextDirection |
|
static |
Definition at line 49 of file mss12.c.
Referenced by model_rescale_weights().
|
static |
Definition at line 59 of file mss12.c.
Referenced by ff_mss12_slicecontext_reset().
Definition at line 72 of file mss12.c.
Referenced by pixctx_init(), and slicecontext_init().
|
static |
Definition at line 79 of file mss12.c.
Referenced by ff_mss12_model_update().
|
static |
Definition at line 120 of file mss12.c.
Referenced by ff_mss12_slicecontext_reset().
|
static |
Definition at line 141 of file mss12.c.
Referenced by slicecontext_init().
|
static |
Definition at line 160 of file mss12.c.
Referenced by decode_pixel_in_context(), decode_region(), decode_region_inter(), decode_region_intra(), and decode_region_masked().
|
static |
Definition at line 202 of file mss12.c.
Referenced by decode_region(), and decode_region_masked().
|
static |
Definition at line 295 of file mss12.c.
Referenced by decode_region_inter(), and decode_region_intra().
|
static |
Definition at line 327 of file mss12.c.
Referenced by decode_region_inter(), and decode_region_masked().
|
static |
Definition at line 343 of file mss12.c.
Referenced by decode_region_inter(), and decode_region_masked().
|
static |
Definition at line 377 of file mss12.c.
Referenced by decode_region_inter().
|
static |
Definition at line 422 of file mss12.c.
Referenced by ff_mss12_decode_init().
void ff_mss12_slicecontext_reset | ( | SliceContext * | sc | ) |
Definition at line 437 of file mss12.c.
Referenced by mss1_decode_frame(), and mss2_decode_frame().
|
static |
Definition at line 448 of file mss12.c.
Referenced by ff_mss12_decode_rect().
|
static |
Definition at line 468 of file mss12.c.
Referenced by decode_region_inter(), and ff_mss12_decode_rect().
|
static |
Definition at line 504 of file mss12.c.
Referenced by ff_mss12_decode_rect().
int ff_mss12_decode_rect | ( | SliceContext * | sc, |
ArithCoder * | acoder, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 543 of file mss12.c.
Referenced by ff_mss12_decode_rect(), mss1_decode_frame(), and mss2_decode_frame().
av_cold int ff_mss12_decode_init | ( | MSS12Context * | c, |
int | version, | ||
SliceContext * | sc1, | ||
SliceContext * | sc2 | ||
) |
Definition at line 581 of file mss12.c.
Referenced by mss1_decode_init(), and mss2_decode_init().
av_cold int ff_mss12_decode_end | ( | MSS12Context * | c | ) |
Definition at line 693 of file mss12.c.
Referenced by mss1_decode_end(), and mss2_decode_end().
|
static |
Definition at line 40 of file mss12.c.
Referenced by pixctx_init().