History

avfilter/vf_super2xsai: constify src pointer

Paul B Mahol committed 5 years ago

Commit c2ee42e1 parent b51eae11 file · +2 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_super2xsai.c+2−2
@@ -54,14 +54,14 @@ typedef struct Super2xSaIContext { · 53 unmodified lines
54 + ((((A & q_lo_pixel_mask) + (B & q_lo_pixel_mask) + (C & q_lo_pixel_mask) + (D & q_lo_pixel_mask)) >> 2) & q_lo_pixel_mask)54 + ((((A & q_lo_pixel_mask) + (B & q_lo_pixel_mask) + (C & q_lo_pixel_mask) + (D & q_lo_pixel_mask)) >> 2) & q_lo_pixel_mask)
55 55
56static void super2xsai(AVFilterContext *ctx,56static void super2xsai(AVFilterContext *ctx,
57 uint8_t *src, int src_linesize,57 const uint8_t *src, int src_linesize,
58 uint8_t *dst, int dst_linesize,58 uint8_t *dst, int dst_linesize,
59 int width, int height)59 int width, int height)
60{60{
61 Super2xSaIContext *s = ctx->priv;61 Super2xSaIContext *s = ctx->priv;
62 unsigned int x, y;62 unsigned int x, y;
63 uint32_t color[4][4];63 uint32_t color[4][4];
64 unsigned char *src_line[4];64 const uint8_t *src_line[4];
65 const int bpp = s->bpp;65 const int bpp = s->bpp;
66 const uint32_t hi_pixel_mask = s->hi_pixel_mask;66 const uint32_t hi_pixel_mask = s->hi_pixel_mask;
67 const uint32_t lo_pixel_mask = s->lo_pixel_mask;67 const uint32_t lo_pixel_mask = s->lo_pixel_mask;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t