MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_vaapi_decode_destroy_buffers

Function ff_vaapi_decode_destroy_buffers

libavcodec/vaapi_decode.c:138–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static void ff_vaapi_decode_destroy_buffers(AVCodecContext *avctx,
139 VAAPIDecodePicture *pic)
140{
141 VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
142 VAStatus vas;
143 int i;
144
145 for (i = 0; i < pic->nb_param_buffers; i++) {
146 vas = vaDestroyBuffer(ctx->hwctx->display,
147 pic->param_buffers[i]);
148 if (vas != VA_STATUS_SUCCESS) {
149 av_log(avctx, AV_LOG_ERROR, "Failed to destroy "
150 "parameter buffer %#x: %d (%s).\n",
151 pic->param_buffers[i], vas, vaErrorStr(vas));
152 }
153 }
154
155 for (i = 0; i < 2 * pic->nb_slices; i++) {
156 vas = vaDestroyBuffer(ctx->hwctx->display,
157 pic->slice_buffers[i]);
158 if (vas != VA_STATUS_SUCCESS) {
159 av_log(avctx, AV_LOG_ERROR, "Failed to destroy slice "
160 "slice buffer %#x: %d (%s).\n",
161 pic->slice_buffers[i], vas, vaErrorStr(vas));
162 }
163 }
164}
165
166int ff_vaapi_decode_issue(AVCodecContext *avctx,
167 VAAPIDecodePicture *pic)

Callers 2

ff_vaapi_decode_issueFunction · 0.85
ff_vaapi_decode_cancelFunction · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected