Go to the documentation of this file.
22 #ifndef AVFILTER_HFLIP_INIT_H
23 #define AVFILTER_HFLIP_INIT_H
35 for (
int j = 0; j <
w; j++)
41 const uint16_t *
src = (
const uint16_t *)ssrc;
42 uint16_t *
dst = (uint16_t *)ddst;
44 for (
int j = 0; j <
w; j++)
50 const uint32_t *
src = (
const uint32_t *)ssrc;
51 uint32_t *
dst = (uint32_t *)ddst;
53 for (
int j = 0; j <
w; j++)
59 const uint8_t *in =
src;
62 for (
int j = 0; j <
w; j++,
out += 3, in -= 3) {
71 const uint8_t *in =
src;
74 for (
int j = 0; j <
w; j++,
out += 6, in -= 6) {
83 const uint64_t *
src = (
const uint64_t *)ssrc;
84 uint64_t *
dst = (uint64_t *)ddst;
86 for (
int j = 0; j <
w; j++)
92 for (
int i = 0;
i < nb_planes;
i++) {
trying all byte sequences megabyte in length and selecting the best looking sequence will yield cases to try But a word about which is also called distortion Distortion can be quantified by almost any quality measurement one chooses the sum of squared differences is used but more complex methods that consider psychovisual effects can be used as well It makes no difference in this discussion First step
void ff_hflip_init_x86(FlipContext *s, int step[4], int nb_planes)
static void hflip_short_c(const uint8_t *ssrc, uint8_t *ddst, int w)
static void hflip_byte_c(const uint8_t *src, uint8_t *dst, int w)
static void hflip_qword_c(const uint8_t *ssrc, uint8_t *ddst, int w)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
static void hflip_b24_c(const uint8_t *src, uint8_t *dst, int w)
#define i(width, name, range_min, range_max)
static void hflip_dword_c(const uint8_t *ssrc, uint8_t *ddst, int w)
#define AVERROR_BUG
Internal bug, also see AVERROR_BUG2.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_RB24
static void hflip_b48_c(const uint8_t *src, uint8_t *dst, int w)
static av_unused int ff_hflip_init(FlipContext *s, int step[4], int nb_planes)