History

pixblockdsp, avdct: Add get_pixels_unaligned

Use this in vf_spp.c, where the get_pixels operation is done on unaligned source addresses. Hook up the x86 (mmx and sse) versions of get_pixels to this function pointer, as those implementations seem to support unaligned use. This fixes fate-filter-spp on armv7.

Martin Storsjö committed 6 years ago

Commit 353aecb1 parent b12b0536 files · +17 −3Browse files

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

Unified · Split

libavfilter/vf_spp.c+1−1
@@ -283,7 +283,7 @@ static void filter(SPPContext *p, uint8_t *dst, uint8_t *src, · 282 unmodified lines
283 const int x1 = x + offset[i + count - 1][0];283 const int x1 = x + offset[i + count - 1][0];
284 const int y1 = y + offset[i + count - 1][1];284 const int y1 = y + offset[i + count - 1][1];
285 const int index = x1 + y1*linesize;285 const int index = x1 + y1*linesize;
286 p->dct->get_pixels(block, p->src + sample_bytes*index, sample_bytes*linesize);286 p->dct->get_pixels_unaligned(block, p->src + sample_bytes*index, sample_bytes*linesize);
287 p->dct->fdct(block);287 p->dct->fdct(block);
288 p->requantize(block2, block, qp, p->dct->idct_permutation);288 p->requantize(block2, block, qp, p->dct->idct_permutation);
289 p->dct->idct(block2);289 p->dct->idct(block2);

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