Lines Matching refs:run_length
650 guint run_length = 0, clut_index = 0; in _dvb_sub_read_2bit_string() local
655 run_length = 1; in _dvb_sub_read_2bit_string()
660 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 3); in _dvb_sub_read_2bit_string()
661 run_length += 3; in _dvb_sub_read_2bit_string()
666 run_length = 1; /* 1x pseudo-colour '00' */ in _dvb_sub_read_2bit_string()
674 run_length = 2; in _dvb_sub_read_2bit_string()
677 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 4); in _dvb_sub_read_2bit_string()
678 run_length += 12; in _dvb_sub_read_2bit_string()
682 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 8); in _dvb_sub_read_2bit_string()
683 run_length += 29; in _dvb_sub_read_2bit_string()
693 if (run_length == 0) in _dvb_sub_read_2bit_string()
698 run_length = MIN (run_length, dbuf_len); in _dvb_sub_read_2bit_string()
699 dbuf_len -= run_length; in _dvb_sub_read_2bit_string()
709 "dbuf_len left is %d pixels", run_length, clut_index, dbuf_len); in _dvb_sub_read_2bit_string()
712 memset (destbuf, clut_index, run_length); in _dvb_sub_read_2bit_string()
714 destbuf += run_length; in _dvb_sub_read_2bit_string()
715 pixels_read += run_length; in _dvb_sub_read_2bit_string()
744 guint run_length = 0, clut_index = 0; in _dvb_sub_read_4bit_string() local
749 run_length = 1; in _dvb_sub_read_4bit_string()
754 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 3); in _dvb_sub_read_4bit_string()
755 if (!run_length) { in _dvb_sub_read_4bit_string()
758 run_length += 2; in _dvb_sub_read_4bit_string()
763 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 2); in _dvb_sub_read_4bit_string()
764 run_length += 4; in _dvb_sub_read_4bit_string()
770 run_length = 1; /* 1 pixel of pseudo-color 0 */ in _dvb_sub_read_4bit_string()
773 run_length = 2; /* 2 pixels of pseudo-color 0 */ in _dvb_sub_read_4bit_string()
776 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 4); in _dvb_sub_read_4bit_string()
777 run_length += 9; in _dvb_sub_read_4bit_string()
781 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 8); in _dvb_sub_read_4bit_string()
782 run_length += 25; in _dvb_sub_read_4bit_string()
792 if (run_length == 0) in _dvb_sub_read_4bit_string()
797 run_length = MIN (run_length, dbuf_len); in _dvb_sub_read_4bit_string()
798 dbuf_len -= run_length; in _dvb_sub_read_4bit_string()
808 "dbuf_len left is %d pixels", run_length, clut_index, dbuf_len); in _dvb_sub_read_4bit_string()
811 memset (destbuf, clut_index, run_length); in _dvb_sub_read_4bit_string()
813 destbuf += run_length; in _dvb_sub_read_4bit_string()
814 pixels_read += run_length; in _dvb_sub_read_4bit_string()
848 guint run_length = 0, clut_index = 0; in _dvb_sub_read_8bit_string() local
852 run_length = 1; in _dvb_sub_read_8bit_string()
858 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 7); in _dvb_sub_read_8bit_string()
859 if (run_length == 0) { /* end_of_string_signal */ in _dvb_sub_read_8bit_string()
864 run_length = gst_bit_reader_get_bits_uint32_unchecked (&gb, 7); in _dvb_sub_read_8bit_string()
867 if (run_length < 3) { in _dvb_sub_read_8bit_string()
869 "must be >=3", run_length); in _dvb_sub_read_8bit_string()
876 if (run_length == 0) in _dvb_sub_read_8bit_string()
881 run_length = MIN (run_length, dbuf_len); in _dvb_sub_read_8bit_string()
882 dbuf_len -= run_length; in _dvb_sub_read_8bit_string()
892 "dbuf_len left is %d pixels", run_length, clut_index, dbuf_len); in _dvb_sub_read_8bit_string()
895 memset (destbuf, clut_index, run_length); in _dvb_sub_read_8bit_string()
897 destbuf += run_length; in _dvb_sub_read_8bit_string()
898 pixels_read += run_length; in _dvb_sub_read_8bit_string()