Lines Matching refs:openh264dec
93 GST_ELEMENT_REGISTER_DEFINE_CUSTOM (openh264dec, openh264dec_element_init);
123 gst_openh264dec_init (GstOpenh264Dec * openh264dec) in gst_openh264dec_init() argument
125 openh264dec->decoder = NULL; in gst_openh264dec_init()
127 gst_video_decoder_set_packetized (GST_VIDEO_DECODER (openh264dec), TRUE); in gst_openh264dec_init()
128 gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (openh264dec), TRUE); in gst_openh264dec_init()
156 GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder); in gst_openh264dec_start() local
160 if (openh264dec->decoder != NULL) { in gst_openh264dec_start()
161 openh264dec->decoder->Uninitialize (); in gst_openh264dec_start()
162 WelsDestroyDecoder (openh264dec->decoder); in gst_openh264dec_start()
163 openh264dec->decoder = NULL; in gst_openh264dec_start()
165 WelsCreateDecoder (&(openh264dec->decoder)); in gst_openh264dec_start()
172 openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_LEVEL, &log_level); in gst_openh264dec_start()
173 openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_CALLBACK, in gst_openh264dec_start()
175 openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_CALLBACK_CONTEXT, in gst_openh264dec_start()
187 ret = openh264dec->decoder->Initialize (&dec_param); in gst_openh264dec_start()
189 GST_DEBUG_OBJECT (openh264dec, in gst_openh264dec_start()
199 GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder); in gst_openh264dec_stop() local
201 if (openh264dec->decoder) { in gst_openh264dec_stop()
202 openh264dec->decoder->Uninitialize (); in gst_openh264dec_stop()
203 WelsDestroyDecoder (openh264dec->decoder); in gst_openh264dec_stop()
204 openh264dec->decoder = NULL; in gst_openh264dec_stop()
207 if (openh264dec->input_state) { in gst_openh264dec_stop()
208 gst_video_codec_state_unref (openh264dec->input_state); in gst_openh264dec_stop()
209 openh264dec->input_state = NULL; in gst_openh264dec_stop()
211 openh264dec->width = openh264dec->height = 0; in gst_openh264dec_stop()
220 GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder); in gst_openh264dec_set_format() local
222 GST_DEBUG_OBJECT (openh264dec, "input caps: %" GST_PTR_FORMAT, state->caps); in gst_openh264dec_set_format()
224 if (openh264dec->input_state) { in gst_openh264dec_set_format()
225 gst_video_codec_state_unref (openh264dec->input_state); in gst_openh264dec_set_format()
226 openh264dec->input_state = NULL; in gst_openh264dec_set_format()
228 openh264dec->input_state = gst_video_codec_state_ref (state); in gst_openh264dec_set_format()
236 GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder); in gst_openh264dec_reset() local
238 GST_DEBUG_OBJECT (openh264dec, "reset"); in gst_openh264dec_reset()
247 GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder); in gst_openh264dec_handle_frame() local
266 openh264dec->decoder->SetOption (DECODER_OPTION_END_OF_STREAM, in gst_openh264dec_handle_frame()
268 ret = openh264dec->decoder->FlushFrame (yuvdata, &dst_buf_info); in gst_openh264dec_handle_frame()
279 GST_ERROR_OBJECT (openh264dec, "Cannot map input buffer!"); in gst_openh264dec_handle_frame()
284 GST_LOG_OBJECT (openh264dec, "handle frame, 1st NAL type %d", in gst_openh264dec_handle_frame()
297 openh264dec->decoder->DecodeFrameNoDelay (map_info.data, map_info.size, in gst_openh264dec_handle_frame()
303 GST_DEBUG_OBJECT (openh264dec, "Requesting a key unit"); in gst_openh264dec_handle_frame()
308 GST_LOG_OBJECT (openh264dec, "error decoding nal, return code: %d", ret); in gst_openh264dec_handle_frame()
350 if (!gst_pad_has_current_caps (GST_VIDEO_DECODER_SRC_PAD (openh264dec)) in gst_openh264dec_handle_frame()
351 || actual_width != openh264dec->width in gst_openh264dec_handle_frame()
352 || actual_height != openh264dec->height) { in gst_openh264dec_handle_frame()
355 actual_width, actual_height, openh264dec->input_state); in gst_openh264dec_handle_frame()
356 openh264dec->width = actual_width; in gst_openh264dec_handle_frame()
357 openh264dec->height = actual_height; in gst_openh264dec_handle_frame()
360 GST_ERROR_OBJECT (openh264dec, in gst_openh264dec_handle_frame()
379 GST_ERROR_OBJECT (openh264dec, "Cannot map output buffer!"); in gst_openh264dec_handle_frame()
409 GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder); in gst_openh264dec_finish() local
411 GST_DEBUG_OBJECT (openh264dec, "finish"); in gst_openh264dec_finish()
414 if (openh264dec->width == 0) in gst_openh264dec_finish()