Lines Matching defs:in_index
275 in_index = 0,
296 for (in_index = 0, out_index = 0;
297 (in_index < in_len) && (out_index < out_len);
298 in_index++, out_index++) {
301 if (a_in[in_index] <= 0x7F) {
307 c = a_in[in_index];
310 } else if ((a_in[in_index] & 0xE0) == 0xC0) {
316 c = a_in[in_index] & 0x1F;
319 } else if ((a_in[in_index] & 0xF0) == 0xE0) {
325 c = a_in[in_index] & 0x0F;
328 } else if ((a_in[in_index] & 0xF8) == 0xF0) {
334 c = a_in[in_index] & 0x7;
337 } else if ((a_in[in_index] & 0xFC) == 0xF8) {
344 c = a_in[in_index] & 3;
347 } else if ((a_in[in_index] & 0xFE) == 0xFC) {
354 c = a_in[in_index] & 1;
368 in_index++;
371 if ((a_in[in_index] & 0xC0) != 0x80) {
375 c = (c << 6) | (a_in[in_index] & 0x3F);
411 *a_in_len = in_index + 1;
432 gulong in_index = 0,
520 for (in_index = 1; in_index < nb_bytes_2_decode; in_index++) {
522 if ((a_in[in_index] & 0xC0) != 0x80) {
526 c = (c << 6) | (a_in[in_index] & 0x3F);
752 in_index = 0,
766 for (in_index = 0; in_index < in_len; in_index++) {
771 if (a_in[in_index] <= 0x7F) {
772 a_out[out_index] = a_in[in_index];
774 } else if (a_in[in_index] <= 0x7FF) {
775 a_out[out_index] = (0xC0 | (a_in[in_index] >> 6));
777 (0x80 | (a_in[in_index] & 0x3F));
779 } else if (a_in[in_index] <= 0xFFFF) {
780 a_out[out_index] = (0xE0 | (a_in[in_index] >> 12));
782 (0x80 | ((a_in[in_index] >> 6) & 0x3F));
784 (0x80 | (a_in[in_index] & 0x3F));
786 } else if (a_in[in_index] <= 0x1FFFFF) {
787 a_out[out_index] = (0xF0 | (a_in[in_index] >> 18));
789 = (0x80 | ((a_in[in_index] >> 12) & 0x3F));
791 = (0x80 | ((a_in[in_index] >> 6) & 0x3F));
793 = (0x80 | (a_in[in_index] & 0x3F));
795 } else if (a_in[in_index] <= 0x3FFFFFF) {
796 a_out[out_index] = (0xF8 | (a_in[in_index] >> 24));
798 (0x80 | (a_in[in_index] >> 18));
800 = (0x80 | ((a_in[in_index] >> 12) & 0x3F));
802 = (0x80 | ((a_in[in_index] >> 6) & 0x3F));
804 = (0x80 | (a_in[in_index] & 0x3F));
806 } else if (a_in[in_index] <= 0x7FFFFFFF) {
807 a_out[out_index] = (0xFC | (a_in[in_index] >> 30));
809 (0x80 | (a_in[in_index] >> 24));
811 = (0x80 | ((a_in[in_index] >> 18) & 0x3F));
813 = (0x80 | ((a_in[in_index] >> 12) & 0x3F));
815 = (0x80 | ((a_in[in_index] >> 6) & 0x3F));
817 = (0x80 | (a_in[in_index] & 0x3F));
826 *a_in_len = in_index + 1;
890 in_index = 0,
908 for (in_index = 0, out_index = 0;
909 (in_index < in_len) && (out_index < out_len); in_index++) {
914 if (a_in[in_index] <= 0x7F) {
915 a_out[out_index] = a_in[in_index];
918 a_out[out_index] = (0xC0 | (a_in[in_index] >> 6));
920 (0x80 | (a_in[in_index] & 0x3F));
925 *a_in_len = in_index;
998 gulong in_index = 0,
1020 for (in_index = 0, out_index = 0;
1021 (in_index < in_len) && (out_index < out_len);
1022 in_index++, out_index++) {
1025 if (a_in[in_index] <= 0x7F) {
1031 c = a_in[in_index];
1034 } else if ((a_in[in_index] & 0xE0) == 0xC0) {
1040 c = a_in[in_index] & 0x1F;
1043 } else if ((a_in[in_index] & 0xF0) == 0xE0) {
1049 c = a_in[in_index] & 0x0F;
1052 } else if ((a_in[in_index] & 0xF8) == 0xF0) {
1058 c = a_in[in_index] & 0x7;
1061 } else if ((a_in[in_index] & 0xFC) == 0xF8) {
1068 c = a_in[in_index] & 3;
1071 } else if ((a_in[in_index] & 0xFE) == 0xFC) {
1078 c = a_in[in_index] & 1;
1091 if (in_index + nb_bytes_2_decode - 1 >= in_len) {
1097 in_index++;
1100 if ((a_in[in_index] & 0xC0) != 0x80) {
1105 c = (c << 6) | (a_in[in_index] & 0x3F);
1123 *a_in_len = in_index;