Home
last modified time | relevance | path

Searched refs:subsample_count (Results 1 – 6 of 6) sorted by relevance

/third_party/ffmpeg/libavutil/
Dencryption_info.c39 AVEncryptionInfo *av_encryption_info_alloc(uint32_t subsample_count, uint32_t key_id_size, uint32_t… in av_encryption_info_alloc() argument
51 info->subsamples = av_calloc(subsample_count, sizeof(*info->subsamples)); in av_encryption_info_alloc()
52 info->subsample_count = subsample_count; in av_encryption_info_alloc()
55 if (!info->key_id || !info->iv || (!info->subsamples && subsample_count)) { in av_encryption_info_alloc()
67 ret = av_encryption_info_alloc(info->subsample_count, info->key_id_size, info->iv_size); in av_encryption_info_clone()
76 memcpy(ret->subsamples, info->subsamples, sizeof(*info->subsamples) * info->subsample_count); in av_encryption_info_clone()
93 uint64_t key_id_size, iv_size, subsample_count, i; in av_encryption_info_get_side_data() local
100 subsample_count = AV_RB32(buffer + 20); in av_encryption_info_get_side_data()
102 if (size < FF_ENCRYPTION_INFO_EXTRA + key_id_size + iv_size + subsample_count * 8) in av_encryption_info_get_side_data()
105 info = av_encryption_info_alloc(subsample_count, key_id_size, iv_size); in av_encryption_info_get_side_data()
[all …]
Dencryption_info.h134 uint32_t subsample_count; member
190 AVEncryptionInfo *av_encryption_info_alloc(uint32_t subsample_count, uint32_t key_id_size, uint32_t…
/third_party/ffmpeg/libavutil/tests/
Dencryption_info.c38 a->iv_size != b->iv_size || a->subsample_count != b->subsample_count) in compare_encryption_info()
43 memcmp(a->subsamples, b->subsamples, a->subsample_count * sizeof(a->subsamples[0]))) in compare_encryption_info()
87 av_assert0(info->subsample_count == test_subsample_count); in run_encryption_info_test()
/third_party/ffmpeg/libavformat/
Dmovenccenc.c81 ctx->subsample_count++; in auxiliary_info_add_subsample()
125 ctx->subsample_count = 0; in mov_cenc_start_packet()
126 ret = auxiliary_info_write(ctx, (uint8_t*)&ctx->subsample_count, sizeof(ctx->subsample_count)); in mov_cenc_start_packet()
162 AV_WB16(ctx->auxiliary_info + ctx->auxiliary_info_subsample_start, ctx->subsample_count); in mov_cenc_end_packet()
Dmovenccenc.h42 uint16_t subsample_count; member
Dmov.c6280 unsigned int subsample_count; in mov_read_sample_encryption_info() local
6302 subsample_count = avio_rb16(pb); in mov_read_sample_encryption_info()
6304 (*sample)->subsamples = av_calloc(subsample_count, sizeof(*subsamples)); in mov_read_sample_encryption_info()
6311 for (i = 0; i < subsample_count && !pb->eof_reached; i++) { in mov_read_sample_encryption_info()
6322 (*sample)->subsample_count = subsample_count; in mov_read_sample_encryption_info()
7012 if (!sample->subsample_count) { in cenc_scheme_decrypt()
7018 for (i = 0; i < sample->subsample_count; i++) { in cenc_scheme_decrypt()
7067 if (!sample->subsample_count) { in cbc1_scheme_decrypt()
7073 for (i = 0; i < sample->subsample_count; i++) { in cbc1_scheme_decrypt()
7126 if (!sample->subsample_count) { in cens_scheme_decrypt()
[all …]