Go to the documentation of this file.
22 #ifndef AVFILTER_HFLIP_INIT_H
23 #define AVFILTER_HFLIP_INIT_H
34 for (
int j = 0; j <
w; j++)
40 const uint16_t *
src = (
const uint16_t *)ssrc;
41 uint16_t *dst = (uint16_t *)ddst;
43 for (
int j = 0; j <
w; j++)
49 const uint32_t *
src = (
const uint32_t *)ssrc;
50 uint32_t *dst = (uint32_t *)ddst;
52 for (
int j = 0; j <
w; j++)
58 const uint8_t *in =
src;
61 for (
int j = 0; j <
w; j++,
out += 3, in -= 3) {
70 const uint8_t *in =
src;
73 for (
int j = 0; j <
w; j++,
out += 6, in -= 6) {
82 const uint64_t *
src = (
const uint64_t *)ssrc;
83 uint64_t *dst = (uint64_t *)ddst;
85 for (
int j = 0; j <
w; j++)
91 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)
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)