22 #ifndef AVFORMAT_MOVENCCENC_H 23 #define AVFORMAT_MOVENCCENC_H 29 #define CENC_KID_SIZE (16)
int ff_mov_cenc_init(MOVMuxCencContext *ctx, uint8_t *encryption_key, int use_subsamples, int bitexact)
Initialize a CENC context.
size_t auxiliary_info_size
struct AVAESCTR * aes_ctr
uint32_t auxiliary_info_entries
void ff_mov_cenc_free(MOVMuxCencContext *ctx)
Free a CENC context.
int ff_mov_cenc_write_sinf_tag(struct MOVTrack *track, AVIOContext *pb, uint8_t *kid)
Write the sinf atom, contained inside stsd.
size_t auxiliary_info_sizes_alloc_size
int ff_mov_cenc_write_packet(MOVMuxCencContext *ctx, AVIOContext *pb, const uint8_t *buf_in, int size)
Write a fully encrypted packet.
void ff_mov_cenc_write_stbl_atoms(MOVMuxCencContext *ctx, AVIOContext *pb)
Write the cenc atoms that should reside inside stbl.
int ff_mov_cenc_avc_parse_nal_units(MOVMuxCencContext *ctx, AVIOContext *pb, const uint8_t *buf_in, int size)
Parse AVC NAL units from annex B format, the nal size and type are written in the clear while the bod...
uint8_t * auxiliary_info_sizes
size_t auxiliary_info_alloc_size
size_t auxiliary_info_subsample_start
int ff_mov_cenc_avc_write_nal_units(AVFormatContext *s, MOVMuxCencContext *ctx, int nal_length_size, AVIOContext *pb, const uint8_t *buf_in, int size)
Write AVC NAL units that are in MP4 format, the nal size and type are written in the clear while the ...