MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifRWStreamWriteHandlerBox

Function avifRWStreamWriteHandlerBox

src/write.c:842–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

840}
841
842static 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.

Callers 2

avifEncoderFinishFunction · 0.85

Calls 5

avifRWStreamWriteFullBoxFunction · 0.85
avifRWStreamWriteU32Function · 0.85
avifRWStreamWriteCharsFunction · 0.85
avifRWStreamWriteZerosFunction · 0.85
avifRWStreamFinishBoxFunction · 0.85

Tested by

no test coverage detected