Mercurial > libavcodec.hg
comparison vdpauvideo.c @ 8554:13d14e77e91a libavcodec
Rename ff_VDPAU as ff_vdpau.
author | cehoyos |
---|---|
date | Wed, 07 Jan 2009 23:48:32 +0000 |
parents | 6ce9f5616a57 |
children | a5a04d73a570 |
comparison
equal
deleted
inserted
replaced
8553:6ce9f5616a57 | 8554:13d14e77e91a |
---|---|
35 * \addtogroup VDPAU_Decoding | 35 * \addtogroup VDPAU_Decoding |
36 * | 36 * |
37 * @{ | 37 * @{ |
38 */ | 38 */ |
39 | 39 |
40 static void VDPAU_h264_set_reference_frames(H264Context *h) | 40 static void vdpau_h264_set_reference_frames(H264Context *h) |
41 { | 41 { |
42 MpegEncContext * s = &h->s; | 42 MpegEncContext * s = &h->s; |
43 struct vdpau_render_state * render, * render_ref; | 43 struct vdpau_render_state * render, * render_ref; |
44 VdpReferenceFrameH264 * rf, * rf2; | 44 VdpReferenceFrameH264 * rf, * rf2; |
45 Picture * pic; | 45 Picture * pic; |
104 rf->field_order_cnt[1] = 0; | 104 rf->field_order_cnt[1] = 0; |
105 rf->frame_idx = 0; | 105 rf->frame_idx = 0; |
106 } | 106 } |
107 } | 107 } |
108 | 108 |
109 void ff_VDPAU_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_size) | 109 void ff_vdpau_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_size) |
110 { | 110 { |
111 MpegEncContext * s = &h->s; | 111 MpegEncContext * s = &h->s; |
112 struct vdpau_render_state * render; | 112 struct vdpau_render_state * render; |
113 | 113 |
114 render = (struct vdpau_render_state*)s->current_picture_ptr->data[0]; | 114 render = (struct vdpau_render_state*)s->current_picture_ptr->data[0]; |
115 assert(render); | 115 assert(render); |
116 | 116 |
117 if (!render->bitstream_buffers_used) | 117 if (!render->bitstream_buffers_used) |
118 VDPAU_h264_set_reference_frames(h); | 118 vdpau_h264_set_reference_frames(h); |
119 | 119 |
120 render->bitstream_buffers= av_fast_realloc( | 120 render->bitstream_buffers= av_fast_realloc( |
121 render->bitstream_buffers, | 121 render->bitstream_buffers, |
122 &render->bitstream_buffers_allocated, | 122 &render->bitstream_buffers_allocated, |
123 sizeof(*render->bitstream_buffers)*(render->bitstream_buffers_used + 1) | 123 sizeof(*render->bitstream_buffers)*(render->bitstream_buffers_used + 1) |
127 render->bitstream_buffers[render->bitstream_buffers_used].bitstream = buf; | 127 render->bitstream_buffers[render->bitstream_buffers_used].bitstream = buf; |
128 render->bitstream_buffers[render->bitstream_buffers_used].bitstream_bytes = buf_size; | 128 render->bitstream_buffers[render->bitstream_buffers_used].bitstream_bytes = buf_size; |
129 render->bitstream_buffers_used++; | 129 render->bitstream_buffers_used++; |
130 } | 130 } |
131 | 131 |
132 void ff_VDPAU_h264_picture_complete(H264Context *h) | 132 void ff_vdpau_h264_picture_complete(H264Context *h) |
133 { | 133 { |
134 MpegEncContext * s = &h->s; | 134 MpegEncContext * s = &h->s; |
135 struct vdpau_render_state * render; | 135 struct vdpau_render_state * render; |
136 | 136 |
137 render = (struct vdpau_render_state*)s->current_picture_ptr->data[0]; | 137 render = (struct vdpau_render_state*)s->current_picture_ptr->data[0]; |