annotate sparc/dsputil_vis.h @ 12494:94eaea836bf4 libavcodec

Check avctx width/height more thoroughly (e.g. all values 0 except width would have been accepted before). Also do not fail if they are invalid but instead override them to 0. This allows decoding e.g. MPEG video when only the container values are corrupted. For encoding a value of 0,0 of course makes no sense, but was allowed through before and will be caught by an extra check in the encode function.
author reimar
date Wed, 15 Sep 2010 04:46:55 +0000
parents 766ca433df3b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11457
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
1 /*
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
2 * This file is part of FFmpeg.
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
3 *
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
4 * FFmpeg is free software; you can redistribute it and/or
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
5 * modify it under the terms of the GNU Lesser General Public
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
7 * version 2.1 of the License, or (at your option) any later version.
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
8 *
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
9 * FFmpeg is distributed in the hope that it will be useful,
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
12 * Lesser General Public License for more details.
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
13 *
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
14 * You should have received a copy of the GNU Lesser General Public
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
15 * License along with FFmpeg; if not, write to the Free Software
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
17 */
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
18
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
19 #ifndef AVCODEC_SPARC_DSPUTIL_VIS_H
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
20 #define AVCODEC_SPARC_DSPUTIL_VIS_H
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
21
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
22 #include <stdint.h>
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
23 #include "libavcodec/dsputil.h"
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
24
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
25 void ff_simple_idct_put_vis(uint8_t *dest, int line_size, DCTELEM *data);
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
26 void ff_simple_idct_add_vis(uint8_t *dest, int line_size, DCTELEM *data);
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
27 void ff_simple_idct_vis(DCTELEM *data);
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
28
766ca433df3b sparc: fix dsputil prototypes
mru
parents:
diff changeset
29 #endif