Lines Matching refs:inner
87 GstD3D11Mpeg2DecInner *inner; member
195 self->inner = new GstD3D11Mpeg2DecInner (); in gst_d3d11_mpeg2_dec_init()
213 delete self->inner; in gst_d3d11_mpeg2_dec_finalize()
222 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_set_context() local
227 context, cdata->adapter_luid, &inner->device); in gst_d3d11_mpeg2_dec_set_context()
236 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_open() local
241 cdata, &inner->device, &inner->d3d11_decoder)) { in gst_d3d11_mpeg2_dec_open()
253 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_close() local
255 gst_clear_object (&inner->d3d11_decoder); in gst_d3d11_mpeg2_dec_close()
256 gst_clear_object (&inner->device); in gst_d3d11_mpeg2_dec_close()
265 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_negotiate() local
267 if (!gst_d3d11_decoder_negotiate (inner->d3d11_decoder, decoder)) in gst_d3d11_mpeg2_dec_negotiate()
278 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_decide_allocation() local
280 if (!gst_d3d11_decoder_decide_allocation (inner->d3d11_decoder, in gst_d3d11_mpeg2_dec_decide_allocation()
293 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_src_query() local
298 query, inner->device)) { in gst_d3d11_mpeg2_dec_src_query()
313 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_sink_event() local
317 if (inner->d3d11_decoder) in gst_d3d11_mpeg2_dec_sink_event()
318 gst_d3d11_decoder_set_flushing (inner->d3d11_decoder, decoder, TRUE); in gst_d3d11_mpeg2_dec_sink_event()
321 if (inner->d3d11_decoder) in gst_d3d11_mpeg2_dec_sink_event()
322 gst_d3d11_decoder_set_flushing (inner->d3d11_decoder, decoder, FALSE); in gst_d3d11_mpeg2_dec_sink_event()
338 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_new_sequence() local
347 if (inner->interlaced != interlaced) { in gst_d3d11_mpeg2_dec_new_sequence()
349 inner->interlaced = interlaced; in gst_d3d11_mpeg2_dec_new_sequence()
360 if (inner->width != width || inner->height != height) { in gst_d3d11_mpeg2_dec_new_sequence()
362 inner->width, inner->height, width, height); in gst_d3d11_mpeg2_dec_new_sequence()
363 inner->width = width; in gst_d3d11_mpeg2_dec_new_sequence()
364 inner->height = height; in gst_d3d11_mpeg2_dec_new_sequence()
365 inner->width_in_mb = GST_ROUND_UP_16 (width) >> 4; in gst_d3d11_mpeg2_dec_new_sequence()
366 inner->height_in_mb = GST_ROUND_UP_16 (height) >> 4; in gst_d3d11_mpeg2_dec_new_sequence()
380 if (inner->profile != mpeg_profile) { in gst_d3d11_mpeg2_dec_new_sequence()
382 inner->profile, mpeg_profile); in gst_d3d11_mpeg2_dec_new_sequence()
383 inner->profile = mpeg_profile; in gst_d3d11_mpeg2_dec_new_sequence()
387 if (modified || !gst_d3d11_decoder_is_configured (inner->d3d11_decoder)) { in gst_d3d11_mpeg2_dec_new_sequence()
391 inner->out_format = GST_VIDEO_FORMAT_NV12; in gst_d3d11_mpeg2_dec_new_sequence()
394 inner->out_format, inner->width, inner->height); in gst_d3d11_mpeg2_dec_new_sequence()
395 if (inner->interlaced) in gst_d3d11_mpeg2_dec_new_sequence()
398 if (!gst_d3d11_decoder_configure (inner->d3d11_decoder, in gst_d3d11_mpeg2_dec_new_sequence()
400 inner->width, inner->height, NUM_OUTPUT_VIEW)) { in gst_d3d11_mpeg2_dec_new_sequence()
419 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_new_picture() local
422 view_buffer = gst_d3d11_decoder_get_output_view_buffer (inner->d3d11_decoder, in gst_d3d11_mpeg2_dec_new_picture()
467 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_get_output_view_from_picture() local
481 gst_d3d11_decoder_get_output_view_from_buffer (inner->d3d11_decoder, in gst_d3d11_mpeg2_dec_get_output_view_from_picture()
522 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_start_picture() local
523 DXVA_PictureParameters *pic_params = &inner->pic_params; in gst_d3d11_mpeg2_dec_start_picture()
524 DXVA_QmatrixData *iq_matrix = &inner->iq_matrix; in gst_d3d11_mpeg2_dec_start_picture()
571 pic_params->wPicWidthInMBminus1 = inner->width_in_mb - 1; in gst_d3d11_mpeg2_dec_start_picture()
572 pic_params->wPicHeightInMBminus1 = (inner->height_in_mb >> is_field) - 1; in gst_d3d11_mpeg2_dec_start_picture()
631 inner->submit_iq_data = TRUE; in gst_d3d11_mpeg2_dec_start_picture()
633 inner->submit_iq_data = FALSE; in gst_d3d11_mpeg2_dec_start_picture()
636 inner->slice_list.resize (0); in gst_d3d11_mpeg2_dec_start_picture()
637 inner->bitstream_buffer.resize (0); in gst_d3d11_mpeg2_dec_start_picture()
647 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_decode_slice() local
658 slice_info.dwSliceDataLocation = inner->bitstream_buffer.size (); in gst_d3d11_mpeg2_dec_decode_slice()
662 (header->mb_row * inner->width_in_mb) + header->mb_column; in gst_d3d11_mpeg2_dec_decode_slice()
666 inner->slice_list.push_back (slice_info); in gst_d3d11_mpeg2_dec_decode_slice()
668 size_t pos = inner->bitstream_buffer.size (); in gst_d3d11_mpeg2_dec_decode_slice()
669 inner->bitstream_buffer.resize (pos + packet->size + 4); in gst_d3d11_mpeg2_dec_decode_slice()
670 memcpy (&inner->bitstream_buffer[0] + pos, packet->data + packet->offset - 4, in gst_d3d11_mpeg2_dec_decode_slice()
681 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_end_picture() local
687 guint mb_count = inner->width_in_mb * (inner->height_in_mb >> is_field); in gst_d3d11_mpeg2_dec_end_picture()
689 if (inner->bitstream_buffer.empty ()) { in gst_d3d11_mpeg2_dec_end_picture()
703 DXVA_SliceInfo *first = &inner->slice_list[0]; in gst_d3d11_mpeg2_dec_end_picture()
704 for (size_t i = 0; i < inner->slice_list.size (); i++) { in gst_d3d11_mpeg2_dec_end_picture()
708 if (i == inner->slice_list.size () - 1) { in gst_d3d11_mpeg2_dec_end_picture()
717 input_args.picture_params = &inner->pic_params; in gst_d3d11_mpeg2_dec_end_picture()
719 input_args.slice_control = &inner->slice_list[0]; in gst_d3d11_mpeg2_dec_end_picture()
721 sizeof (DXVA_SliceInfo) * inner->slice_list.size (); in gst_d3d11_mpeg2_dec_end_picture()
722 input_args.bitstream = &inner->bitstream_buffer[0]; in gst_d3d11_mpeg2_dec_end_picture()
723 input_args.bitstream_size = inner->bitstream_buffer.size (); in gst_d3d11_mpeg2_dec_end_picture()
724 if (inner->submit_iq_data) { in gst_d3d11_mpeg2_dec_end_picture()
725 input_args.inverse_quantization_matrix = &inner->iq_matrix; in gst_d3d11_mpeg2_dec_end_picture()
729 if (!gst_d3d11_decoder_decode_frame (inner->d3d11_decoder, view, &input_args)) in gst_d3d11_mpeg2_dec_end_picture()
740 GstD3D11Mpeg2DecInner *inner = self->inner; in gst_d3d11_mpeg2_dec_output_picture() local
753 if (!gst_d3d11_decoder_process_output (inner->d3d11_decoder, vdec, in gst_d3d11_mpeg2_dec_output_picture()
754 inner->width, inner->height, view_buffer, &frame->output_buffer)) { in gst_d3d11_mpeg2_dec_output_picture()