Mercurial > libavcodec.hg
comparison avcodec.h @ 8522:f8c091bb5779 libavcodec
Add VDPAU hardware accelerated decoding for H264 which can be used by
video players.
Original patch by NVIDIA corporation.
author | cehoyos |
---|---|
date | Sun, 04 Jan 2009 23:55:27 +0000 |
parents | 42179b2cfd09 |
children | 3586e03586a0 |
comparison
equal
deleted
inserted
replaced
8521:42179b2cfd09 | 8522:f8c091bb5779 |
---|---|
189 CODEC_ID_CMV, | 189 CODEC_ID_CMV, |
190 CODEC_ID_MOTIONPIXELS, | 190 CODEC_ID_MOTIONPIXELS, |
191 CODEC_ID_TGV, | 191 CODEC_ID_TGV, |
192 CODEC_ID_TGQ, | 192 CODEC_ID_TGQ, |
193 | 193 |
194 /* "codecs" for HW decoding with VDPAU */ | |
195 CODEC_ID_H264_VDPAU= 0x9000, | |
196 | |
194 /* various PCM "codecs" */ | 197 /* various PCM "codecs" */ |
195 CODEC_ID_PCM_S16LE= 0x10000, | 198 CODEC_ID_PCM_S16LE= 0x10000, |
196 CODEC_ID_PCM_S16BE, | 199 CODEC_ID_PCM_S16BE, |
197 CODEC_ID_PCM_U16LE, | 200 CODEC_ID_PCM_U16LE, |
198 CODEC_ID_PCM_U16BE, | 201 CODEC_ID_PCM_U16BE, |
525 /** | 528 /** |
526 * Codec can be fed a final frame with a smaller size. | 529 * Codec can be fed a final frame with a smaller size. |
527 * This can be used to prevent truncation of the last audio samples. | 530 * This can be used to prevent truncation of the last audio samples. |
528 */ | 531 */ |
529 #define CODEC_CAP_SMALL_LAST_FRAME 0x0040 | 532 #define CODEC_CAP_SMALL_LAST_FRAME 0x0040 |
533 /** | |
534 * Codec can export data for HW decoding (VDPAU). | |
535 */ | |
536 #define CODEC_CAP_HWACCEL_VDPAU 0x0080 | |
530 | 537 |
531 //The following defines may change, don't expect compatibility if you use them. | 538 //The following defines may change, don't expect compatibility if you use them. |
532 #define MB_TYPE_INTRA4x4 0x0001 | 539 #define MB_TYPE_INTRA4x4 0x0001 |
533 #define MB_TYPE_INTRA16x16 0x0002 //FIXME H.264-specific | 540 #define MB_TYPE_INTRA16x16 0x0002 //FIXME H.264-specific |
534 #define MB_TYPE_INTRA_PCM 0x0004 //FIXME H.264-specific | 541 #define MB_TYPE_INTRA_PCM 0x0004 //FIXME H.264-specific |