| 122 | // avifCodecEncodeOutput |
| 123 | |
| 124 | avifCodecEncodeOutput * avifCodecEncodeOutputCreate(void) |
| 125 | { |
| 126 | avifCodecEncodeOutput * encodeOutput = (avifCodecEncodeOutput *)avifAlloc(sizeof(avifCodecEncodeOutput)); |
| 127 | if (encodeOutput == NULL) { |
| 128 | return NULL; |
| 129 | } |
| 130 | memset(encodeOutput, 0, sizeof(avifCodecEncodeOutput)); |
| 131 | if (!avifArrayCreate(&encodeOutput->samples, sizeof(avifEncodeSample), 1)) { |
| 132 | avifCodecEncodeOutputDestroy(encodeOutput); |
| 133 | return NULL; |
| 134 | } |
| 135 | return encodeOutput; |
| 136 | } |
| 137 | |
| 138 | avifResult avifCodecEncodeOutputAddSample(avifCodecEncodeOutput * encodeOutput, const uint8_t * data, size_t len, avifBool sync) |
| 139 | { |
no test coverage detected