| 840 | } |
| 841 | |
| 842 | static avifResult avifRWStreamWriteHandlerBox(avifRWStream * s, const char handlerType[4]) |
| 843 | { |
| 844 | avifBoxMarker hdlr; |
| 845 | AVIF_CHECKRES(avifRWStreamWriteFullBox(s, "hdlr", AVIF_BOX_SIZE_TBD, 0, 0, &hdlr)); |
| 846 | AVIF_CHECKRES(avifRWStreamWriteU32(s, 0)); // unsigned int(32) pre_defined = 0; |
| 847 | AVIF_CHECKRES(avifRWStreamWriteChars(s, handlerType, 4)); // unsigned int(32) handler_type; |
| 848 | AVIF_CHECKRES(avifRWStreamWriteZeros(s, 12)); // const unsigned int(32)[3] reserved = 0; |
| 849 | AVIF_CHECKRES(avifRWStreamWriteChars(s, "", 1)); // string name; (writing null terminator) |
| 850 | AVIF_CHECKRES(avifRWStreamFinishBox(s, hdlr)); |
| 851 | return AVIF_RESULT_OK; |
| 852 | } |
| 853 | |
| 854 | // Write unassociated metadata items (EXIF, XMP) to a small meta box inside of a trak box. |
| 855 | // These items are implicitly associated with the track they are contained within. |
no test coverage detected