]> git.sesse.net Git - ffmpeg/blob - libavcodec/dsputilenc_template.c
hevc: parse display orientation SEI message
[ffmpeg] / libavcodec / dsputilenc_template.c
1 /*
2  * DSP utils
3  * Copyright (c) 2000, 2001 Fabrice Bellard
4  * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
5  *
6  * gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at>
7  *
8  * This file is part of Libav.
9  *
10  * Libav is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * Libav is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with Libav; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  */
24
25 /**
26  * @file
27  * DSP utils
28  */
29
30 #include "bit_depth_template.c"
31
32 static void FUNCC(get_pixels)(int16_t *restrict block, const uint8_t *_pixels,
33                               int line_size)
34 {
35     const pixel *pixels = (const pixel *) _pixels;
36     int i;
37
38     /* read the pixels */
39     for (i = 0; i < 8; i++) {
40         block[0] = pixels[0];
41         block[1] = pixels[1];
42         block[2] = pixels[2];
43         block[3] = pixels[3];
44         block[4] = pixels[4];
45         block[5] = pixels[5];
46         block[6] = pixels[6];
47         block[7] = pixels[7];
48         pixels  += line_size / sizeof(pixel);
49         block   += 8;
50     }
51 }