annotate fmt-conversion.h @ 28992:947ef23ba798

Test if create_vdp_decoder() might succeed by calling it from config() with a small value for max_reference_frames. This does not make automatic recovery by using software decoder possible, but lets MPlayer fail more graciously on - actually existing - buggy hardware that does not support certain H264 widths when using hardware accelerated decoding (784, 864, 944, 1024, 1808, 1888 pixels on NVIDIA G98) and if the user tries to hardware-decode more samples at the same time than supported. Might break playback of H264 Intra-Only samples on hardware with very little video memory.
author cehoyos
date Sat, 21 Mar 2009 20:11:05 +0000
parents 21efa4282730
children 1d39794263eb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 24416
diff changeset
1 #ifndef MPLAYER_FMT_CONVERSION_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 24416
diff changeset
2 #define MPLAYER_FMT_CONVERSION_H
24156
5e3665b6213e Add multiple inclusion guards.
diego
parents: 21778
diff changeset
3
26069
1318e956c092 FFmpeg now uses different (unified) #include paths.
diego
parents: 26029
diff changeset
4 #include "libavutil/avutil.h"
19872
8e50cba9fe03 Remove the dependency of libswscale on img_format.h
lucabe
parents:
diff changeset
5
28526
21efa4282730 Create a fmt-conversion.c file so fmt-conversion.h can be included by multiple files.
reimar
parents: 27601
diff changeset
6 enum PixelFormat imgfmt2pixfmt(int fmt);
21efa4282730 Create a fmt-conversion.c file so fmt-conversion.h can be included by multiple files.
reimar
parents: 27601
diff changeset
7 int pixfmt2imgfmt(enum PixelFormat pix_fmt);
24156
5e3665b6213e Add multiple inclusion guards.
diego
parents: 21778
diff changeset
8
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 24416
diff changeset
9 #endif /* MPLAYER_FMT_CONVERSION_H */