[FFmpeg-devel] [PATCH]Rename ff_VDPAU as ff_vdpau
Carl Eugen Hoyos
cehoyos
Thu Jan 8 02:16:07 CET 2009
Hi!
Another patch proposed by Diego.
Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/vdpau_internal.h
===================================================================
--- libavcodec/vdpau_internal.h (revision 16485)
+++ libavcodec/vdpau_internal.h (working copy)
@@ -27,8 +27,8 @@
#include <stdint.h>
#include "h264.h"
-void ff_VDPAU_h264_add_data_chunk(H264Context *h, const uint8_t *buf,
+void ff_vdpau_h264_add_data_chunk(H264Context *h, const uint8_t *buf,
int buf_size);
-void ff_VDPAU_h264_picture_complete(H264Context *h);
+void ff_vdpau_h264_picture_complete(H264Context *h);
#endif /* AVCODEC_VDPAU_INTERNAL_H */
Index: libavcodec/h264.c
===================================================================
--- libavcodec/h264.c (revision 16485)
+++ libavcodec/h264.c (working copy)
@@ -7425,8 +7425,8 @@
&& avctx->skip_frame < AVDISCARD_ALL){
if(ENABLE_H264_VDPAU_DECODER && avctx->codec_id == CODEC_ID_H264_VDPAU){
static const uint8_t start_code[] = {0x00, 0x00, 0x01};
- ff_VDPAU_h264_add_data_chunk(h, start_code, sizeof(start_code));
- ff_VDPAU_h264_add_data_chunk(h, &buf[buf_index - consumed], consumed );
+ ff_vdpau_h264_add_data_chunk(h, start_code, sizeof(start_code));
+ ff_vdpau_h264_add_data_chunk(h, &buf[buf_index - consumed], consumed );
}else
context_count++;
}
@@ -8036,4 +8036,6 @@
};
#endif
+#ifdef CONFIG_SVQ3_DECODER
#include "svq3.c"
+#endif
Index: libavcodec/vdpauvideo.c
===================================================================
--- libavcodec/vdpauvideo.c (revision 16485)
+++ libavcodec/vdpauvideo.c (working copy)
@@ -37,7 +37,7 @@
* @{
*/
-static void VDPAU_h264_set_reference_frames(H264Context *h)
+static void vdpau_h264_set_reference_frames(H264Context *h)
{
MpegEncContext * s = &h->s;
struct vdpau_render_state * render, * render_ref;
@@ -106,7 +106,7 @@
}
}
-void ff_VDPAU_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_size)
+void ff_vdpau_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_size)
{
MpegEncContext * s = &h->s;
struct vdpau_render_state * render;
@@ -115,7 +115,7 @@
assert(render);
if (!render->bitstreamBuffersUsed)
- VDPAU_h264_set_reference_frames(h);
+ vdpau_h264_set_reference_frames(h);
render->bitstreamBuffers= av_fast_realloc(
render->bitstreamBuffers,
@@ -129,7 +129,7 @@
render->bitstreamBuffersUsed++;
}
-void ff_VDPAU_h264_picture_complete(H264Context *h)
+void ff_vdpau_h264_picture_complete(H264Context *h)
{
MpegEncContext * s = &h->s;
struct vdpau_render_state * render;
More information about the ffmpeg-devel
mailing list