FFmpeg
|
#include "libavcodec/avcodec.h"
#include "libavcodec/dsputil.h"
#include "dsputil_sh4.h"
#include "qpel.c"
Go to the source code of this file.
Macros | |
#define | LP(p) *(uint32_t*)(p) |
#define | LPC(p) *(const uint32_t*)(p) |
#define | UNPACK(ph, pl, tt0, tt1) |
#define | rnd_PACK(ph, pl, nph, npl) ph + nph + (((pl + npl + BYTE_VEC32(0x02))>>2) & BYTE_VEC32(0x03)) |
#define | no_rnd_PACK(ph, pl, nph, npl) ph + nph + (((pl + npl + BYTE_VEC32(0x01))>>2) & BYTE_VEC32(0x03)) |
#define | MERGE1(a, b, ofs) (ofs==0)?a:( ((a)>>(8*ofs))|((b)<<(32-8*ofs)) ) |
#define | MERGE2(a, b, ofs) (ofs==3)?b:( ((a)>>(8*(ofs+1)))|((b)<<(32-8*(ofs+1))) ) |
#define | put(d, s) d = s |
#define | avg(d, s) d = rnd_avg32(s,d) |
#define | OP_C4(ofs) |
#define | OP_C40() |
#define | OP put |
#define | OP avg |
#define | OP_C(ofs, sz, avg2) |
#define | OP_C0(sz, avg2) |
#define | OP_X(ofs, sz, avg2) |
#define | OP_Y0(sz, avg2) |
#define | OP_Y(ofs, sz, avg2) |
#define | OP_X0(sz, avg2) OP_X(0,sz,avg2) |
#define | OP_XY0(sz, PACK) OP_XY(0,sz,PACK) |
#define | OP_XY(ofs, sz, PACK) |
#define | DEFFUNC(op, rnd, xy, sz, OP_N, avgfunc) |
#define | OP put |
#define | OP avg |
#define | put_no_rnd_pixels8_o put_rnd_pixels8_o |
#define | put_no_rnd_pixels16_o put_rnd_pixels16_o |
#define | avg_no_rnd_pixels8_o avg_rnd_pixels8_o |
#define | avg_no_rnd_pixels16_o avg_rnd_pixels16_o |
#define | put_pixels8_c put_rnd_pixels8_o |
#define | put_pixels16_c put_rnd_pixels16_o |
#define | avg_pixels8_c avg_rnd_pixels8_o |
#define | avg_pixels16_c avg_rnd_pixels16_o |
#define | put_no_rnd_pixels8_c put_rnd_pixels8_o |
#define | put_no_rnd_pixels16_c put_rnd_pixels16_o |
#define | avg_no_rnd_pixels8_c avg_rnd_pixels8_o |
#define | avg_no_rnd_pixels16_c avg_rnd_pixels16_o |
#define | QPEL |
#define | dspfunc(PFX, IDX, NUM) |
Functions | |
static void | put_pixels4_c (uint8_t *dest, const uint8_t *ref, const int stride, int height) |
static void | avg_pixels4_c (uint8_t *dest, const uint8_t *ref, const int stride, int height) |
void | ff_dsputil_init_align (DSPContext *c, AVCodecContext *avctx) |
#define LP | ( | p | ) | *(uint32_t*)(p) |
Definition at line 29 of file dsputil_align.c.
#define LPC | ( | p | ) | *(const uint32_t*)(p) |
Definition at line 30 of file dsputil_align.c.
#define UNPACK | ( | ph, | |
pl, | |||
tt0, | |||
tt1 | |||
) |
Definition at line 33 of file dsputil_align.c.
#define rnd_PACK | ( | ph, | |
pl, | |||
nph, | |||
npl | |||
) | ph + nph + (((pl + npl + BYTE_VEC32(0x02))>>2) & BYTE_VEC32(0x03)) |
Definition at line 38 of file dsputil_align.c.
#define no_rnd_PACK | ( | ph, | |
pl, | |||
nph, | |||
npl | |||
) | ph + nph + (((pl + npl + BYTE_VEC32(0x01))>>2) & BYTE_VEC32(0x03)) |
Definition at line 39 of file dsputil_align.c.
Definition at line 42 of file dsputil_align.c.
Definition at line 43 of file dsputil_align.c.
#define put | ( | d, | |
s | |||
) | d = s |
Definition at line 50 of file dsputil_align.c.
Referenced by decode_init(), ff_diracdsp_init_mmx(), id3v2_encode_string(), pixels16_xy2(), and pixels16_y2().
#define avg | ( | d, | |
s | |||
) | d = rnd_avg32(s,d) |
Definition at line 51 of file dsputil_align.c.
Referenced by dering_TMPL(), do_apply_filter(), ff_diracdsp_init_mmx(), rearrange_lsp(), and x8_setup_spatial_compensation().
#define OP_C4 | ( | ofs | ) |
Definition at line 53 of file dsputil_align.c.
Referenced by avg_pixels4_c(), and put_pixels4_c().
#define OP_C40 | ( | ) |
Definition at line 61 of file dsputil_align.c.
Referenced by avg_pixels4_c(), and put_pixels4_c().
#define OP put |
Definition at line 293 of file dsputil_align.c.
#define OP avg |
Definition at line 293 of file dsputil_align.c.
#define OP_C | ( | ofs, | |
sz, | |||
avg2 | |||
) |
#define OP_C0 | ( | sz, | |
avg2 | |||
) |
#define OP_X | ( | ofs, | |
sz, | |||
avg2 | |||
) |
#define OP_Y0 | ( | sz, | |
avg2 | |||
) |
Definition at line 154 of file dsputil_align.c.
#define OP_Y | ( | ofs, | |
sz, | |||
avg2 | |||
) |
Definition at line 181 of file dsputil_align.c.
Definition at line 219 of file dsputil_align.c.
#define OP_XY0 | ( | sz, | |
PACK | |||
) | OP_XY(0,sz,PACK) |
Definition at line 220 of file dsputil_align.c.
#define OP_XY | ( | ofs, | |
sz, | |||
PACK | |||
) |
Definition at line 221 of file dsputil_align.c.
#define DEFFUNC | ( | op, | |
rnd, | |||
xy, | |||
sz, | |||
OP_N, | |||
avgfunc | |||
) |
Definition at line 263 of file dsputil_align.c.
#define OP put |
Definition at line 293 of file dsputil_align.c.
#define OP avg |
Definition at line 293 of file dsputil_align.c.
#define put_no_rnd_pixels8_o put_rnd_pixels8_o |
Definition at line 312 of file dsputil_align.c.
Referenced by ff_dsputil_init_align().
#define put_no_rnd_pixels16_o put_rnd_pixels16_o |
Definition at line 313 of file dsputil_align.c.
Referenced by ff_dsputil_init_align().
#define avg_no_rnd_pixels8_o avg_rnd_pixels8_o |
Definition at line 314 of file dsputil_align.c.
Referenced by ff_dsputil_init_align().
#define avg_no_rnd_pixels16_o avg_rnd_pixels16_o |
Definition at line 315 of file dsputil_align.c.
Referenced by ff_dsputil_init_align().
#define put_pixels8_c put_rnd_pixels8_o |
Definition at line 317 of file dsputil_align.c.
Referenced by put_mspel8_mc00_sh4().
#define put_pixels16_c put_rnd_pixels16_o |
Definition at line 318 of file dsputil_align.c.
#define avg_pixels8_c avg_rnd_pixels8_o |
Definition at line 319 of file dsputil_align.c.
#define avg_pixels16_c avg_rnd_pixels16_o |
Definition at line 320 of file dsputil_align.c.
#define put_no_rnd_pixels8_c put_rnd_pixels8_o |
Definition at line 321 of file dsputil_align.c.
#define put_no_rnd_pixels16_c put_rnd_pixels16_o |
Definition at line 322 of file dsputil_align.c.
#define avg_no_rnd_pixels8_c avg_rnd_pixels8_o |
Definition at line 323 of file dsputil_align.c.
#define avg_no_rnd_pixels16_c avg_rnd_pixels16_o |
Definition at line 324 of file dsputil_align.c.
#define QPEL |
Definition at line 326 of file dsputil_align.c.
#define dspfunc | ( | PFX, | |
IDX, | |||
NUM | |||
) |
|
static |
Definition at line 71 of file dsputil_align.c.
|
static |
Definition at line 84 of file dsputil_align.c.
void ff_dsputil_init_align | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 334 of file dsputil_align.c.
Referenced by ff_dsputil_init_sh4().