Lines Matching refs:vobsub
63 state->vobsub.n_line_ctrl_i = 0; in gst_dvd_spu_parse_chg_colcon()
64 if (state->vobsub.line_ctrl_i != NULL) { in gst_dvd_spu_parse_chg_colcon()
65 g_free (state->vobsub.line_ctrl_i); in gst_dvd_spu_parse_chg_colcon()
66 state->vobsub.line_ctrl_i = NULL; in gst_dvd_spu_parse_chg_colcon()
93 state->vobsub.n_line_ctrl_i = n_entries; in gst_dvd_spu_parse_chg_colcon()
94 state->vobsub.line_ctrl_i = g_new (SpuVobsubLineCtrlI, n_entries); in gst_dvd_spu_parse_chg_colcon()
98 SpuVobsubLineCtrlI *cur_line_ctrl = state->vobsub.line_ctrl_i + i; in gst_dvd_spu_parse_chg_colcon()
152 state->vobsub.main_idx[3] = data[1] >> 4; in gst_dvd_spu_exec_cmd_blk()
153 state->vobsub.main_idx[2] = data[1] & 0x0f; in gst_dvd_spu_exec_cmd_blk()
154 state->vobsub.main_idx[1] = data[2] >> 4; in gst_dvd_spu_exec_cmd_blk()
155 state->vobsub.main_idx[0] = data[2] & 0x0f; in gst_dvd_spu_exec_cmd_blk()
157 state->vobsub.main_pal_dirty = TRUE; in gst_dvd_spu_exec_cmd_blk()
161 state->vobsub.main_idx[0], state->vobsub.main_idx[1], in gst_dvd_spu_exec_cmd_blk()
162 state->vobsub.main_idx[2], state->vobsub.main_idx[3]); in gst_dvd_spu_exec_cmd_blk()
170 state->vobsub.main_alpha[3] = data[1] >> 4; in gst_dvd_spu_exec_cmd_blk()
171 state->vobsub.main_alpha[2] = data[1] & 0x0f; in gst_dvd_spu_exec_cmd_blk()
172 state->vobsub.main_alpha[1] = data[2] >> 4; in gst_dvd_spu_exec_cmd_blk()
173 state->vobsub.main_alpha[0] = data[2] & 0x0f; in gst_dvd_spu_exec_cmd_blk()
175 state->vobsub.main_pal_dirty = TRUE; in gst_dvd_spu_exec_cmd_blk()
179 state->vobsub.main_alpha[0], state->vobsub.main_alpha[1], in gst_dvd_spu_exec_cmd_blk()
180 state->vobsub.main_alpha[2], state->vobsub.main_alpha[3]); in gst_dvd_spu_exec_cmd_blk()
185 SpuRect *r = &state->vobsub.disp_rect; in gst_dvd_spu_exec_cmd_blk()
206 state->vobsub.pix_data[0] = GST_READ_UINT16_BE (data + 1); in gst_dvd_spu_exec_cmd_blk()
207 state->vobsub.pix_data[1] = GST_READ_UINT16_BE (data + 3); in gst_dvd_spu_exec_cmd_blk()
210 gst_buffer_replace (&state->vobsub.pix_buf, state->vobsub.buf); in gst_dvd_spu_exec_cmd_blk()
213 state->vobsub.pix_data[0], state->vobsub.pix_data[1]); in gst_dvd_spu_exec_cmd_blk()
232 state->vobsub.line_ctrl_i_pal_dirty = TRUE; in gst_dvd_spu_exec_cmd_blk()
250 state->next_ts = state->vobsub.base_ts = GST_CLOCK_TIME_NONE; in gst_dvd_spu_finish_spu_buf()
251 gst_buffer_replace (&state->vobsub.buf, NULL); in gst_dvd_spu_finish_spu_buf()
270 state->next_ts = state->vobsub.base_ts + STM_TO_GST (delay); in gst_dvd_spu_setup_cmd_blk()
271 state->vobsub.cur_cmd_blk = cmd_blk_offset; in gst_dvd_spu_setup_cmd_blk()
274 state->vobsub.cur_cmd_blk, GST_TIME_ARGS (state->next_ts)); in gst_dvd_spu_setup_cmd_blk()
338 if (state->vobsub.buf != NULL) { in gstspu_vobsub_handle_new_buf()
339 gst_buffer_unref (state->vobsub.buf); in gstspu_vobsub_handle_new_buf()
340 state->vobsub.buf = NULL; in gstspu_vobsub_handle_new_buf()
342 state->vobsub.buf = buf; in gstspu_vobsub_handle_new_buf()
343 state->vobsub.base_ts = event_ts; in gstspu_vobsub_handle_new_buf()
345 gst_buffer_map (state->vobsub.buf, &map, GST_MAP_READ); in gstspu_vobsub_handle_new_buf()
350 state->vobsub.cur_cmd_blk = GST_READ_UINT16_BE (start + 2); in gstspu_vobsub_handle_new_buf()
351 gst_dvd_spu_setup_cmd_blk (dvdspu, state->vobsub.cur_cmd_blk, start, end); in gstspu_vobsub_handle_new_buf()
353 state->vobsub.n_line_ctrl_i = 0; in gstspu_vobsub_handle_new_buf()
354 if (state->vobsub.line_ctrl_i != NULL) { in gstspu_vobsub_handle_new_buf()
355 g_free (state->vobsub.line_ctrl_i); in gstspu_vobsub_handle_new_buf()
356 state->vobsub.line_ctrl_i = NULL; in gstspu_vobsub_handle_new_buf()
358 gst_buffer_unmap (state->vobsub.buf, &map); in gstspu_vobsub_handle_new_buf()
375 if (state->vobsub.buf == NULL) in gstspu_vobsub_execute_event()
380 state->vobsub.cur_cmd_blk); in gstspu_vobsub_execute_event()
382 gst_buffer_map (state->vobsub.buf, &map, GST_MAP_READ); in gstspu_vobsub_execute_event()
386 cmd_blk = start + state->vobsub.cur_cmd_blk; in gstspu_vobsub_execute_event()
389 gst_buffer_unmap (state->vobsub.buf, &map); in gstspu_vobsub_execute_event()
398 if (next_blk != state->vobsub.cur_cmd_blk) { in gstspu_vobsub_execute_event()
401 gst_buffer_unmap (state->vobsub.buf, &map); in gstspu_vobsub_execute_event()
405 gst_buffer_unmap (state->vobsub.buf, &map); in gstspu_vobsub_execute_event()
432 state->vobsub.current_clut[i] = (guint32) entry; in gstspu_vobsub_handle_dvd_event()
435 state->vobsub.main_pal_dirty = TRUE; in gstspu_vobsub_handle_dvd_event()
436 state->vobsub.hl_pal_dirty = TRUE; in gstspu_vobsub_handle_dvd_event()
437 state->vobsub.line_ctrl_i_pal_dirty = TRUE; in gstspu_vobsub_handle_dvd_event()
443 state->vobsub.hl_idx[3] = ((guint32) (val) >> 28) & 0x0f; in gstspu_vobsub_handle_dvd_event()
444 state->vobsub.hl_idx[2] = ((guint32) (val) >> 24) & 0x0f; in gstspu_vobsub_handle_dvd_event()
445 state->vobsub.hl_idx[1] = ((guint32) (val) >> 20) & 0x0f; in gstspu_vobsub_handle_dvd_event()
446 state->vobsub.hl_idx[0] = ((guint32) (val) >> 16) & 0x0f; in gstspu_vobsub_handle_dvd_event()
448 state->vobsub.hl_alpha[3] = ((guint32) (val) >> 12) & 0x0f; in gstspu_vobsub_handle_dvd_event()
449 state->vobsub.hl_alpha[2] = ((guint32) (val) >> 8) & 0x0f; in gstspu_vobsub_handle_dvd_event()
450 state->vobsub.hl_alpha[1] = ((guint32) (val) >> 4) & 0x0f; in gstspu_vobsub_handle_dvd_event()
451 state->vobsub.hl_alpha[0] = ((guint32) (val) >> 0) & 0x0f; in gstspu_vobsub_handle_dvd_event()
453 state->vobsub.hl_pal_dirty = TRUE; in gstspu_vobsub_handle_dvd_event()
456 state->vobsub.hl_rect.left = (gint16) val; in gstspu_vobsub_handle_dvd_event()
458 state->vobsub.hl_rect.top = (gint16) val; in gstspu_vobsub_handle_dvd_event()
460 state->vobsub.hl_rect.right = (gint16) val; in gstspu_vobsub_handle_dvd_event()
462 state->vobsub.hl_rect.bottom = (gint16) val; in gstspu_vobsub_handle_dvd_event()
465 state->vobsub.hl_rect.left, state->vobsub.hl_rect.top, in gstspu_vobsub_handle_dvd_event()
466 state->vobsub.hl_rect.right, state->vobsub.hl_rect.bottom); in gstspu_vobsub_handle_dvd_event()
469 if (state->vobsub.hl_rect.top != -1 || state->vobsub.hl_rect.bottom != -1) in gstspu_vobsub_handle_dvd_event()
471 state->vobsub.hl_rect.top = -1; in gstspu_vobsub_handle_dvd_event()
472 state->vobsub.hl_rect.bottom = -1; in gstspu_vobsub_handle_dvd_event()
500 if (state->vobsub.buf) { in gstspu_vobsub_flush()
501 gst_buffer_unref (state->vobsub.buf); in gstspu_vobsub_flush()
502 state->vobsub.buf = NULL; in gstspu_vobsub_flush()
504 if (state->vobsub.pix_buf) { in gstspu_vobsub_flush()
505 gst_buffer_unref (state->vobsub.pix_buf); in gstspu_vobsub_flush()
506 state->vobsub.pix_buf = NULL; in gstspu_vobsub_flush()
509 state->vobsub.base_ts = GST_CLOCK_TIME_NONE; in gstspu_vobsub_flush()
510 state->vobsub.pix_data[0] = 0; in gstspu_vobsub_flush()
511 state->vobsub.pix_data[1] = 0; in gstspu_vobsub_flush()
513 state->vobsub.hl_rect.top = -1; in gstspu_vobsub_flush()
514 state->vobsub.hl_rect.bottom = -1; in gstspu_vobsub_flush()
516 state->vobsub.disp_rect.top = -1; in gstspu_vobsub_flush()
517 state->vobsub.disp_rect.bottom = -1; in gstspu_vobsub_flush()
519 state->vobsub.n_line_ctrl_i = 0; in gstspu_vobsub_flush()
520 if (state->vobsub.line_ctrl_i != NULL) { in gstspu_vobsub_flush()
521 g_free (state->vobsub.line_ctrl_i); in gstspu_vobsub_flush()
522 state->vobsub.line_ctrl_i = NULL; in gstspu_vobsub_flush()