Lines Matching defs:in_index
276 in_index = 0,
297 for (in_index = 0, out_index = 0;
298 (in_index < in_len) && (out_index < out_len);
299 in_index++, out_index++) {
302 if (a_in[in_index] <= 0x7F) {
308 c = a_in[in_index];
311 } else if ((a_in[in_index] & 0xE0) == 0xC0) {
317 c = a_in[in_index] & 0x1F;
320 } else if ((a_in[in_index] & 0xF0) == 0xE0) {
326 c = a_in[in_index] & 0x0F;
329 } else if ((a_in[in_index] & 0xF8) == 0xF0) {
335 c = a_in[in_index] & 0x7;
338 } else if ((a_in[in_index] & 0xFC) == 0xF8) {
345 c = a_in[in_index] & 3;
348 } else if ((a_in[in_index] & 0xFE) == 0xFC) {
355 c = a_in[in_index] & 1;
369 in_index++;
372 if ((a_in[in_index] & 0xC0) != 0x80) {
376 c = (c << 6) | (a_in[in_index] & 0x3F);
412 *a_in_len = in_index + 1;
434 in_index = 0,
524 for (in_index = 1; in_index < nb_bytes_2_decode; in_index++) {
526 if ((a_in[in_index] & 0xC0) != 0x80) {
530 c = (c << 6) | (a_in[in_index] & 0x3F);
756 in_index = 0,
770 for (in_index = 0; in_index < in_len; in_index++) {
775 if (a_in[in_index] <= 0x7F) {
776 a_out[out_index] = a_in[in_index];
778 } else if (a_in[in_index] <= 0x7FF) {
779 a_out[out_index] = (0xC0 | (a_in[in_index] >> 6));
781 (0x80 | (a_in[in_index] & 0x3F));
783 } else if (a_in[in_index] <= 0xFFFF) {
784 a_out[out_index] = (0xE0 | (a_in[in_index] >> 12));
786 (0x80 | ((a_in[in_index] >> 6) & 0x3F));
788 (0x80 | (a_in[in_index] & 0x3F));
790 } else if (a_in[in_index] <= 0x1FFFFF) {
791 a_out[out_index] = (0xF0 | (a_in[in_index] >> 18));
793 = (0x80 | ((a_in[in_index] >> 12) & 0x3F));
795 = (0x80 | ((a_in[in_index] >> 6) & 0x3F));
797 = (0x80 | (a_in[in_index] & 0x3F));
799 } else if (a_in[in_index] <= 0x3FFFFFF) {
800 a_out[out_index] = (0xF8 | (a_in[in_index] >> 24));
802 (0x80 | (a_in[in_index] >> 18));
804 = (0x80 | ((a_in[in_index] >> 12) & 0x3F));
806 = (0x80 | ((a_in[in_index] >> 6) & 0x3F));
808 = (0x80 | (a_in[in_index] & 0x3F));
810 } else if (a_in[in_index] <= 0x7FFFFFFF) {
811 a_out[out_index] = (0xFC | (a_in[in_index] >> 30));
813 (0x80 | (a_in[in_index] >> 24));
815 = (0x80 | ((a_in[in_index] >> 18) & 0x3F));
817 = (0x80 | ((a_in[in_index] >> 12) & 0x3F));
819 = (0x80 | ((a_in[in_index] >> 6) & 0x3F));
821 = (0x80 | (a_in[in_index] & 0x3F));
830 *a_in_len = in_index + 1;
894 in_index = 0,
917 for (in_index = 0, out_index = 0;
918 (in_index < in_len) && (out_index < out_len); in_index++) {
923 if (a_in[in_index] <= 0x7F) {
924 a_out[out_index] = a_in[in_index];
927 a_out[out_index] = (0xC0 | (a_in[in_index] >> 6));
929 (0x80 | (a_in[in_index] & 0x3F));
935 *a_in_len = in_index;
1011 gulong in_index = 0,
1034 for (in_index = 0, out_index = 0;
1035 (in_index < in_len) && (out_index < out_len);
1036 in_index++, out_index++) {
1039 if (a_in[in_index] <= 0x7F) {
1045 c = a_in[in_index];
1048 } else if ((a_in[in_index] & 0xE0) == 0xC0) {
1054 c = a_in[in_index] & 0x1F;
1057 } else if ((a_in[in_index] & 0xF0) == 0xE0) {
1063 c = a_in[in_index] & 0x0F;
1066 } else if ((a_in[in_index] & 0xF8) == 0xF0) {
1072 c = a_in[in_index] & 0x7;
1075 } else if ((a_in[in_index] & 0xFC) == 0xF8) {
1082 c = a_in[in_index] & 3;
1085 } else if ((a_in[in_index] & 0xFE) == 0xFC) {
1092 c = a_in[in_index] & 1;
1105 if (in_index + nb_bytes_2_decode - 1 >= in_len) {
1112 in_index++;
1115 if ((a_in[in_index] & 0xC0) != 0x80) {
1120 c = (c << 6) | (a_in[in_index] & 0x3F);
1138 *a_in_len = in_index;