annotate ffmpeg/libavcodec/vdpau_internal.h @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents 6840f77b83aa
children
rev   line source
yading@10 1 /*
yading@10 2 * Video Decode and Presentation API for UNIX (VDPAU) is used for
yading@10 3 * HW decode acceleration for MPEG-1/2, H.264 and VC-1.
yading@10 4 *
yading@10 5 * Copyright (C) 2008 NVIDIA
yading@10 6 *
yading@10 7 * This file is part of FFmpeg.
yading@10 8 *
yading@10 9 * FFmpeg is free software; you can redistribute it and/or
yading@10 10 * modify it under the terms of the GNU Lesser General Public
yading@10 11 * License as published by the Free Software Foundation; either
yading@10 12 * version 2.1 of the License, or (at your option) any later version.
yading@10 13 *
yading@10 14 * FFmpeg is distributed in the hope that it will be useful,
yading@10 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
yading@10 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
yading@10 17 * Lesser General Public License for more details.
yading@10 18 *
yading@10 19 * You should have received a copy of the GNU Lesser General Public
yading@10 20 * License along with FFmpeg; if not, write to the Free Software
yading@10 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
yading@10 22 */
yading@10 23
yading@10 24 #ifndef AVCODEC_VDPAU_INTERNAL_H
yading@10 25 #define AVCODEC_VDPAU_INTERNAL_H
yading@10 26
yading@10 27 #include <stdint.h>
yading@10 28 #include "h264.h"
yading@10 29 #include "mpegvideo.h"
yading@10 30
yading@10 31 /** Extract VdpVideoSurface from a Picture */
yading@10 32 static inline uintptr_t ff_vdpau_get_surface_id(Picture *pic)
yading@10 33 {
yading@10 34 return (uintptr_t)pic->f.data[3];
yading@10 35 }
yading@10 36
yading@10 37 int ff_vdpau_common_start_frame(AVCodecContext *avctx,
yading@10 38 const uint8_t *buffer, uint32_t size);
yading@10 39 int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx);
yading@10 40 int ff_vdpau_add_buffer(AVCodecContext *avctx,
yading@10 41 const uint8_t *buf, uint32_t buf_size);
yading@10 42
yading@10 43
yading@10 44 void ff_vdpau_add_data_chunk(uint8_t *data, const uint8_t *buf,
yading@10 45 int buf_size);
yading@10 46
yading@10 47 void ff_vdpau_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf,
yading@10 48 int buf_size, int slice_count);
yading@10 49
yading@10 50 void ff_vdpau_h264_picture_start(H264Context *h);
yading@10 51 void ff_vdpau_h264_set_reference_frames(H264Context *h);
yading@10 52 void ff_vdpau_h264_picture_complete(H264Context *h);
yading@10 53
yading@10 54 void ff_vdpau_vc1_decode_picture(MpegEncContext *s, const uint8_t *buf,
yading@10 55 int buf_size);
yading@10 56
yading@10 57 void ff_vdpau_mpeg4_decode_picture(MpegEncContext *s, const uint8_t *buf,
yading@10 58 int buf_size);
yading@10 59
yading@10 60 #endif /* AVCODEC_VDPAU_INTERNAL_H */