History

hwaccel: Rename priv_data_size to frame_priv_data_size

This describes more accurately what this field is for.

Anton Khirnov committed 12 years ago

Commit a871ef01 parent 08bb25610 files · +17 −17Browse files

Unified · Split

10 files
  1. libavcodec/avcodec.h +2 −2
  2. libavcodec/dxva2_h264.c +1 −1
  3. libavcodec/dxva2_mpeg2.c +1 −1
  4. libavcodec/dxva2_vc1.c +2 −2
  5. libavcodec/h264_slice.c +2 −2
  6. libavcodec/mpegvideo.c +2 −2
  7. libavcodec/vdpau_h264.c +1 −1
  8. libavcodec/vdpau_mpeg12.c +2 −2
  9. libavcodec/vdpau_mpeg4.c +2 −2
  10. libavcodec/vdpau_vc1.c +2 −2
libavcodec/avcodec.h+2−2
@@ -2987,13 +2987,13 @@ typedef struct AVHWAccel { · 2986 unmodified lines
29872987 int (*end_frame)(AVCodecContext *avctx);
29882988
29892989 /**
2990− * Size of HW accelerator private data.
2990+ * Size of per-frame hardware accelerator private data.
29912991 *
29922992 * Private data is allocated with av_mallocz() before
29932993 * AVCodecContext.get_buffer() and deallocated after
29942994 * AVCodecContext.release_buffer().
29952995 */
2996− int priv_data_size;
2996+ int frame_priv_data_size;
29972997 } AVHWAccel;
29982998
29992999 /**
libavcodec/dxva2_h264.c+1−1
@@ -465,5 +465,5 @@ AVHWAccel ff_h264_dxva2_hwaccel = { · 464 unmodified lines
465465 .start_frame = dxva2_h264_start_frame,
466466 .decode_slice = dxva2_h264_decode_slice,
467467 .end_frame = dxva2_h264_end_frame,
468− .priv_data_size = sizeof(struct dxva2_picture_context),
468+ .frame_priv_data_size = sizeof(struct dxva2_picture_context),
469469 };
libavcodec/dxva2_mpeg2.c+1−1
@@ -276,5 +276,5 @@ AVHWAccel ff_mpeg2_dxva2_hwaccel = { · 275 unmodified lines
276276 .start_frame = dxva2_mpeg2_start_frame,
277277 .decode_slice = dxva2_mpeg2_decode_slice,
278278 .end_frame = dxva2_mpeg2_end_frame,
279− .priv_data_size = sizeof(struct dxva2_picture_context),
279+ .frame_priv_data_size = sizeof(struct dxva2_picture_context),
280280 };
libavcodec/dxva2_vc1.c+2−2
@@ -279,7 +279,7 @@ AVHWAccel ff_wmv3_dxva2_hwaccel = { · 278 unmodified lines
279279 .start_frame = dxva2_vc1_start_frame,
280280 .decode_slice = dxva2_vc1_decode_slice,
281281 .end_frame = dxva2_vc1_end_frame,
282− .priv_data_size = sizeof(struct dxva2_picture_context),
282+ .frame_priv_data_size = sizeof(struct dxva2_picture_context),
283283 };
284284 #endif
285285
@@ -291,5 +291,5 @@ AVHWAccel ff_vc1_dxva2_hwaccel = { · 5 unmodified lines
291291 .start_frame = dxva2_vc1_start_frame,
292292 .decode_slice = dxva2_vc1_decode_slice,
293293 .end_frame = dxva2_vc1_end_frame,
294− .priv_data_size = sizeof(struct dxva2_picture_context),
294+ .frame_priv_data_size = sizeof(struct dxva2_picture_context),
295295 };
libavcodec/h264_slice.c+2−2
@@ -258,8 +258,8 @@ static int alloc_picture(H264Context *h, H264Picture *pic) · 257 unmodified lines
258258 if (h->avctx->hwaccel) {
259259 const AVHWAccel *hwaccel = h->avctx->hwaccel;
260260 av_assert0(!pic->hwaccel_picture_private);
261− if (hwaccel->priv_data_size) {
262− pic->hwaccel_priv_buf = av_buffer_allocz(hwaccel->priv_data_size);
261+ if (hwaccel->frame_priv_data_size) {
262+ pic->hwaccel_priv_buf = av_buffer_allocz(hwaccel->frame_priv_data_size);
263263 if (!pic->hwaccel_priv_buf)
264264 return AVERROR(ENOMEM);
265265 pic->hwaccel_picture_private = pic->hwaccel_priv_buf->data;
libavcodec/mpegvideo.c+2−2
@@ -460,8 +460,8 @@ static int alloc_frame_buffer(MpegEncContext *s, Picture *pic) · 459 unmodified lines
460460
461461 if (s->avctx->hwaccel) {
462462 assert(!pic->hwaccel_picture_private);
463− if (s->avctx->hwaccel->priv_data_size) {
464− pic->hwaccel_priv_buf = av_buffer_allocz(s->avctx->hwaccel->priv_data_size);
463+ if (s->avctx->hwaccel->frame_priv_data_size) {
464+ pic->hwaccel_priv_buf = av_buffer_allocz(s->avctx->hwaccel->frame_priv_data_size);
465465 if (!pic->hwaccel_priv_buf) {
466466 av_log(s->avctx, AV_LOG_ERROR, "alloc_frame_buffer() failed (hwaccel private data allocation)\n");
467467 return -1;
libavcodec/vdpau_h264.c+1−1
@@ -212,5 +212,5 @@ AVHWAccel ff_h264_vdpau_hwaccel = { · 211 unmodified lines
212212 .start_frame = vdpau_h264_start_frame,
213213 .end_frame = vdpau_h264_end_frame,
214214 .decode_slice = vdpau_h264_decode_slice,
215− .priv_data_size = sizeof(struct vdpau_picture_context),
215+ .frame_priv_data_size = sizeof(struct vdpau_picture_context),
216216 };
libavcodec/vdpau_mpeg12.c+2−2
@@ -103,7 +103,7 @@ AVHWAccel ff_mpeg1_vdpau_hwaccel = { · 102 unmodified lines
103103 .start_frame = vdpau_mpeg_start_frame,
104104 .end_frame = ff_vdpau_mpeg_end_frame,
105105 .decode_slice = vdpau_mpeg_decode_slice,
106− .priv_data_size = sizeof(struct vdpau_picture_context),
106+ .frame_priv_data_size = sizeof(struct vdpau_picture_context),
107107 };
108108 #endif
109109
@@ -116,6 +116,6 @@ AVHWAccel ff_mpeg2_vdpau_hwaccel = { · 6 unmodified lines
116116 .start_frame = vdpau_mpeg_start_frame,
117117 .end_frame = ff_vdpau_mpeg_end_frame,
118118 .decode_slice = vdpau_mpeg_decode_slice,
119− .priv_data_size = sizeof(struct vdpau_picture_context),
119+ .frame_priv_data_size = sizeof(struct vdpau_picture_context),
120120 };
121121 #endif
libavcodec/vdpau_mpeg4.c+2−2
@@ -97,7 +97,7 @@ AVHWAccel ff_h263_vdpau_hwaccel = { · 96 unmodified lines
9797 .start_frame = vdpau_mpeg4_start_frame,
9898 .end_frame = ff_vdpau_mpeg_end_frame,
9999 .decode_slice = vdpau_mpeg4_decode_slice,
100− .priv_data_size = sizeof(struct vdpau_picture_context),
100+ .frame_priv_data_size = sizeof(struct vdpau_picture_context),
101101 };
102102 #endif
103103
@@ -110,6 +110,6 @@ AVHWAccel ff_mpeg4_vdpau_hwaccel = { · 6 unmodified lines
110110 .start_frame = vdpau_mpeg4_start_frame,
111111 .end_frame = ff_vdpau_mpeg_end_frame,
112112 .decode_slice = vdpau_mpeg4_decode_slice,
113− .priv_data_size = sizeof(struct vdpau_picture_context),
113+ .frame_priv_data_size = sizeof(struct vdpau_picture_context),
114114 };
115115 #endif
libavcodec/vdpau_vc1.c+2−2
@@ -118,7 +118,7 @@ AVHWAccel ff_wmv3_vdpau_hwaccel = { · 117 unmodified lines
118118 .start_frame = vdpau_vc1_start_frame,
119119 .end_frame = ff_vdpau_mpeg_end_frame,
120120 .decode_slice = vdpau_vc1_decode_slice,
121− .priv_data_size = sizeof(struct vdpau_picture_context),
121+ .frame_priv_data_size = sizeof(struct vdpau_picture_context),
122122 };
123123 #endif
124124
@@ -130,5 +130,5 @@ AVHWAccel ff_vc1_vdpau_hwaccel = { · 5 unmodified lines
130130 .start_frame = vdpau_vc1_start_frame,
131131 .end_frame = ff_vdpau_mpeg_end_frame,
132132 .decode_slice = vdpau_vc1_decode_slice,
133− .priv_data_size = sizeof(struct vdpau_picture_context),
133+ .frame_priv_data_size = sizeof(struct vdpau_picture_context),
134134 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t