Mercurial > mplayer.hg
annotate libmpdemux/aviprint.h @ 36441:b75ebb89d803
Workaround VDPAU decode errors on aspect change on NVidia.
The NVidia driver seems to expect a decoder reinit on aspect
change, otherwise giving a nonsense VDP_STATUS_INVALID_SIZE
error.
Since decode and display can run out of sync, we do not in fact
know when an aspect change will happen during decode but only when
we want to display that decoded frame, and with threaded decoding
these will differ significantly.
So just catch the error and retry decoding instead, this also has
the advantage of not affecting (and possibly costing performance)
drivers without this issue.
author | reimar |
---|---|
date | Sun, 08 Dec 2013 15:07:00 +0000 |
parents | a2dddda6eb2f |
children |
rev | line source |
---|---|
30589
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
1 /* |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
2 * This file is part of MPlayer. |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
3 * |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
4 * MPlayer is free software; you can redistribute it and/or modify |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
5 * it under the terms of the GNU General Public License as published by |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
6 * the Free Software Foundation; either version 2 of the License, or |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
7 * (at your option) any later version. |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
8 * |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
9 * MPlayer is distributed in the hope that it will be useful, |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
12 * GNU General Public License for more details. |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
13 * |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
14 * You should have received a copy of the GNU General Public License along |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
17 */ |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
18 |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
19 #ifndef MPLAYER_AVIPRINT_H |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
20 #define MPLAYER_AVIPRINT_H |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
21 |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
22 #include "ms_hdr.h" |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
23 #include "aviheader.h" |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
24 |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
25 void print_avih_flags(MainAVIHeader *h, int verbose_level); |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
26 void print_avih(MainAVIHeader *h, int verbose_level); |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
27 void print_strh(AVIStreamHeader *h, int verbose_level); |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
28 void print_wave_header(WAVEFORMATEX *h, int verbose_level); |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
29 void print_video_header(BITMAPINFOHEADER *h, int verbose_level); |
30652
a2dddda6eb2f
Declare public function print_vprp() in aviprint.h.
diego
parents:
30589
diff
changeset
|
30 void print_vprp(VideoPropHeader *vprp, int verbose_level); |
30589
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
31 void print_index(AVIINDEXENTRY *idx, int idx_size, int verbose_level); |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
32 void print_avistdindex_chunk(avistdindex_chunk *h, int verbose_level); |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
33 void print_avisuperindex_chunk(avisuperindex_chunk *h, int verbose_level); |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
34 |
df6c41f16b40
Add header for AVI print functions; avoids many forward declarations.
diego
parents:
diff
changeset
|
35 #endif /* MPLAYER_AVIPRINT_H */ |