Lines Matching refs:cs
380 ChunkStream cs = new ChunkStream(PNGImageReader.IHDR_TYPE, stream);
381 cs.writeInt(metadata.IHDR_width);
382 cs.writeInt(metadata.IHDR_height);
383 cs.writeByte(metadata.IHDR_bitDepth);
384 cs.writeByte(metadata.IHDR_colorType);
389 cs.writeByte(metadata.IHDR_compressionMethod);
394 cs.writeByte(metadata.IHDR_filterMethod);
400 cs.writeByte(metadata.IHDR_interlaceMethod);
401 cs.finish();
406 ChunkStream cs = new ChunkStream(PNGImageReader.cHRM_TYPE, stream);
407 cs.writeInt(metadata.cHRM_whitePointX);
408 cs.writeInt(metadata.cHRM_whitePointY);
409 cs.writeInt(metadata.cHRM_redX);
410 cs.writeInt(metadata.cHRM_redY);
411 cs.writeInt(metadata.cHRM_greenX);
412 cs.writeInt(metadata.cHRM_greenY);
413 cs.writeInt(metadata.cHRM_blueX);
414 cs.writeInt(metadata.cHRM_blueY);
415 cs.finish();
421 ChunkStream cs = new ChunkStream(PNGImageReader.gAMA_TYPE, stream);
422 cs.writeInt(metadata.gAMA_gamma);
423 cs.finish();
429 ChunkStream cs = new ChunkStream(PNGImageReader.iCCP_TYPE, stream);
430 cs.writeBytes(metadata.iCCP_profileName);
431 cs.writeByte(0); // null terminator
433 cs.writeByte(metadata.iCCP_compressionMethod);
434 cs.write(metadata.iCCP_compressedProfile);
435 cs.finish();
441 ChunkStream cs = new ChunkStream(PNGImageReader.sBIT_TYPE, stream);
452 cs.writeByte(metadata.sBIT_grayBits);
456 cs.writeByte(metadata.sBIT_redBits);
457 cs.writeByte(metadata.sBIT_greenBits);
458 cs.writeByte(metadata.sBIT_blueBits);
463 cs.writeByte(metadata.sBIT_alphaBits);
465 cs.finish();
471 ChunkStream cs = new ChunkStream(PNGImageReader.sRGB_TYPE, stream);
472 cs.writeByte(metadata.sRGB_renderingIntent);
473 cs.finish();
489 ChunkStream cs = new ChunkStream(PNGImageReader.PLTE_TYPE, stream);
500 cs.write(palette);
501 cs.finish();
507 ChunkStream cs = new ChunkStream(PNGImageReader.hIST_TYPE, stream);
513 cs.writeChars(metadata.hIST_histogram,
515 cs.finish();
521 ChunkStream cs = new ChunkStream(PNGImageReader.tRNS_TYPE, stream);
548 cs.write(metadata.tRNS_alpha);
550 cs.writeShort(metadata.tRNS_gray);
552 cs.writeShort(chunkRed);
553 cs.writeShort(chunkGreen);
554 cs.writeShort(chunkBlue);
558 cs.finish();
564 ChunkStream cs = new ChunkStream(PNGImageReader.bKGD_TYPE, stream);
590 cs.writeByte(metadata.bKGD_index);
593 cs.writeShort(metadata.bKGD_gray);
596 cs.writeShort(chunkRed);
597 cs.writeShort(chunkGreen);
598 cs.writeShort(chunkBlue);
600 cs.finish();
606 ChunkStream cs = new ChunkStream(PNGImageReader.pHYs_TYPE, stream);
607 cs.writeInt(metadata.pHYs_pixelsPerUnitXAxis);
608 cs.writeInt(metadata.pHYs_pixelsPerUnitYAxis);
609 cs.writeByte(metadata.pHYs_unitSpecifier);
610 cs.finish();
616 ChunkStream cs = new ChunkStream(PNGImageReader.sPLT_TYPE, stream);
618 cs.writeBytes(metadata.sPLT_paletteName);
619 cs.writeByte(0); // null terminator
621 cs.writeByte(metadata.sPLT_sampleDepth);
626 cs.writeByte(metadata.sPLT_red[i]);
627 cs.writeByte(metadata.sPLT_green[i]);
628 cs.writeByte(metadata.sPLT_blue[i]);
629 cs.writeByte(metadata.sPLT_alpha[i]);
630 cs.writeShort(metadata.sPLT_frequency[i]);
634 cs.writeShort(metadata.sPLT_red[i]);
635 cs.writeShort(metadata.sPLT_green[i]);
636 cs.writeShort(metadata.sPLT_blue[i]);
637 cs.writeShort(metadata.sPLT_alpha[i]);
638 cs.writeShort(metadata.sPLT_frequency[i]);
641 cs.finish();
647 ChunkStream cs = new ChunkStream(PNGImageReader.tIME_TYPE, stream);
648 cs.writeShort(metadata.tIME_year);
649 cs.writeByte(metadata.tIME_month);
650 cs.writeByte(metadata.tIME_day);
651 cs.writeByte(metadata.tIME_hour);
652 cs.writeByte(metadata.tIME_minute);
653 cs.writeByte(metadata.tIME_second);
654 cs.finish();
663 ChunkStream cs = new ChunkStream(PNGImageReader.tEXt_TYPE, stream);
665 cs.writeBytes(keyword);
666 cs.writeByte(0);
669 cs.writeBytes(text);
670 cs.finish();
692 ChunkStream cs = new ChunkStream(PNGImageReader.iTXt_TYPE, stream);
694 cs.writeBytes(keywordIter.next());
695 cs.writeByte(0);
698 cs.writeByte(compressed ? 1 : 0);
700 cs.writeByte(methodIter.next().intValue());
702 cs.writeBytes(languageIter.next());
703 cs.writeByte(0);
706 cs.write(translatedKeywordIter.next().getBytes("UTF8"));
707 cs.writeByte(0);
711 cs.write(deflate(text.getBytes("UTF8")));
713 cs.write(text.getBytes("UTF8"));
715 cs.finish();
725 ChunkStream cs = new ChunkStream(PNGImageReader.zTXt_TYPE, stream);
727 cs.writeBytes(keyword);
728 cs.writeByte(0);
731 cs.writeByte(compressionMethod);
734 cs.write(deflate(text.getBytes("ISO-8859-1")));
735 cs.finish();
745 ChunkStream cs = new ChunkStream(chunkType(type), stream);
747 cs.write(data);
748 cs.finish();
950 ChunkStream cs = new ChunkStream(PNGImageReader.IEND_TYPE, stream);
951 cs.finish();