Home
last modified time | relevance | path

Searched refs:ctx_pic (Results 1 - 6 of 6) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Ddxva2_h264.c307 struct dxva2_picture_context *ctx_pic = current_picture->hwaccel_picture_private; in commit_bitstream_and_slice_buffer() local
343 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer()
354 slice = &ctx_pic->slice_short[i]; in commit_bitstream_and_slice_buffer()
356 slice = (DXVA_Slice_H264_Short*)&ctx_pic->slice_long[i]; in commit_bitstream_and_slice_buffer()
370 if (i < ctx_pic->slice_count - 1) in commit_bitstream_and_slice_buffer()
380 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer()
400 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer()
431 slice_data = ctx_pic->slice_short; in commit_bitstream_and_slice_buffer()
432 slice_size = ctx_pic->slice_count * sizeof(*ctx_pic in commit_bitstream_and_slice_buffer()
449 struct dxva2_picture_context *ctx_pic = h->cur_pic_ptr->hwaccel_picture_private; dxva2_h264_start_frame() local
475 struct dxva2_picture_context *ctx_pic = current_picture->hwaccel_picture_private; dxva2_h264_decode_slice() local
503 struct dxva2_picture_context *ctx_pic = dxva2_h264_end_frame() local
[all...]
H A Ddxva2_hevc.c246 struct hevc_dxva2_picture_context *ctx_pic = current_picture->hwaccel_picture_private; in commit_bitstream_and_slice_buffer() local
282 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer()
287 slice = &ctx_pic->slice_short[i]; in commit_bitstream_and_slice_buffer()
302 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer()
322 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer()
348 slice_data = ctx_pic->slice_short; in commit_bitstream_and_slice_buffer()
349 slice_size = ctx_pic->slice_count * sizeof(*ctx_pic->slice_short); in commit_bitstream_and_slice_buffer()
364 struct hevc_dxva2_picture_context *ctx_pic = h->ref->hwaccel_picture_private; in dxva2_hevc_start_frame() local
368 av_assert0(ctx_pic); in dxva2_hevc_start_frame()
388 struct hevc_dxva2_picture_context *ctx_pic = current_picture->hwaccel_picture_private; dxva2_hevc_decode_slice() local
408 struct hevc_dxva2_picture_context *ctx_pic = h->ref->hwaccel_picture_private; dxva2_hevc_end_frame() local
[all...]
H A Ddxva2_mpeg2.c158 struct dxva2_picture_context *ctx_pic = in commit_bitstream_and_slice_buffer() local
192 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer()
193 DXVA_SliceInfo *slice = &ctx_pic->slice[i]; in commit_bitstream_and_slice_buffer()
202 if (i < ctx_pic->slice_count - 1) in commit_bitstream_and_slice_buffer()
209 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer()
222 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer()
250 ctx_pic->slice, in commit_bitstream_and_slice_buffer()
251 ctx_pic->slice_count * sizeof(*ctx_pic->slice), in commit_bitstream_and_slice_buffer()
261 struct dxva2_picture_context *ctx_pic in dxva2_mpeg2_start_frame() local
281 struct dxva2_picture_context *ctx_pic = dxva2_mpeg2_decode_slice() local
303 struct dxva2_picture_context *ctx_pic = dxva2_mpeg2_end_frame() local
[all...]
H A Ddxva2_vc1.c192 struct dxva2_picture_context *ctx_pic = s->current_picture_ptr->hwaccel_picture_private; in commit_bitstream_and_slice_buffer() local
229 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer()
231 slice = &ctx_pic->slice[i]; in commit_bitstream_and_slice_buffer()
240 if (i < ctx_pic->slice_count - 1) in commit_bitstream_and_slice_buffer()
259 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer()
279 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer()
307 ctx_pic->slice, in commit_bitstream_and_slice_buffer()
308 ctx_pic->slice_count * sizeof(*ctx_pic->slice), in commit_bitstream_and_slice_buffer()
318 struct dxva2_picture_context *ctx_pic in dxva2_vc1_start_frame() local
338 struct dxva2_picture_context *ctx_pic = current_picture->hwaccel_picture_private; dxva2_vc1_decode_slice() local
365 struct dxva2_picture_context *ctx_pic = v->s.current_picture_ptr->hwaccel_picture_private; dxva2_vc1_end_frame() local
[all...]
H A Ddxva2_av1.c276 struct av1_dxva2_picture_context *ctx_pic = h->cur_frame.hwaccel_picture_private; in dxva2_av1_start_frame() local
280 av_assert0(ctx_pic); in dxva2_av1_start_frame()
283 if (fill_picture_parameters(avctx, ctx, h, &ctx_pic->pp) < 0) in dxva2_av1_start_frame()
286 ctx_pic->bitstream_size = 0; in dxva2_av1_start_frame()
287 ctx_pic->bitstream = NULL; in dxva2_av1_start_frame()
297 struct av1_dxva2_picture_context *ctx_pic = h->cur_frame.hwaccel_picture_private; in dxva2_av1_decode_slice() local
301 ctx_pic->tile_count = frame_header->tile_cols * frame_header->tile_rows; in dxva2_av1_decode_slice()
304 if (ctx_pic->tile_count > MAX_TILES) in dxva2_av1_decode_slice()
308 if (ctx_pic->tile_count == h->tg_end - h->tg_start + 1) { in dxva2_av1_decode_slice()
309 ctx_pic in dxva2_av1_decode_slice()
352 struct av1_dxva2_picture_context *ctx_pic = h->cur_frame.hwaccel_picture_private; commit_bitstream_and_slice_buffer() local
435 struct av1_dxva2_picture_context *ctx_pic = h->cur_frame.hwaccel_picture_private; dxva2_av1_end_frame() local
[all...]
H A Ddxva2_vp9.c172 struct vp9_dxva2_picture_context *ctx_pic = h->frames[CUR_FRAME].hwaccel_picture_private; in commit_bitstream_and_slice_buffer() local
201 if (ctx_pic->slice.SliceBytesInBuffer > dxva_size) { in commit_bitstream_and_slice_buffer()
206 memcpy(dxva_data, ctx_pic->bitstream, ctx_pic->slice.SliceBytesInBuffer); in commit_bitstream_and_slice_buffer()
208 padding = FFMIN(128 - ((ctx_pic->slice.SliceBytesInBuffer) & 127), dxva_size - ctx_pic->slice.SliceBytesInBuffer); in commit_bitstream_and_slice_buffer()
210 memset(dxva_data + ctx_pic->slice.SliceBytesInBuffer, 0, padding); in commit_bitstream_and_slice_buffer()
211 ctx_pic->slice.SliceBytesInBuffer += padding; in commit_bitstream_and_slice_buffer()
230 dsc11->DataSize = ctx_pic->slice.SliceBytesInBuffer; in commit_bitstream_and_slice_buffer()
241 dsc2->DataSize = ctx_pic in commit_bitstream_and_slice_buffer()
260 struct vp9_dxva2_picture_context *ctx_pic = h->frames[CUR_FRAME].hwaccel_picture_private; dxva2_vp9_start_frame() local
280 struct vp9_dxva2_picture_context *ctx_pic = h->frames[CUR_FRAME].hwaccel_picture_private; dxva2_vp9_decode_slice() local
296 struct vp9_dxva2_picture_context *ctx_pic = h->frames[CUR_FRAME].hwaccel_picture_private; dxva2_vp9_end_frame() local
[all...]

Completed in 5 milliseconds