/third_party/ffmpeg/libavcodec/ |
D | avpacket.c | 50 pkt->side_data = NULL; in av_init_packet() 215 pkt->side_data = NULL; in copy_packet_data() 227 pkt->side_data = src->side_data; in copy_packet_data() 244 DUP_DATA(pkt->side_data, src->side_data, in av_copy_packet_side_data() 245 src->side_data_elems * sizeof(*src->side_data), 0, ALLOC_MALLOC); in av_copy_packet_side_data() 247 memset(pkt->side_data, 0, in av_copy_packet_side_data() 248 src->side_data_elems * sizeof(*src->side_data)); in av_copy_packet_side_data() 251 DUP_DATA(pkt->side_data[i].data, src->side_data[i].data, in av_copy_packet_side_data() 252 src->side_data[i].size, 1, ALLOC_MALLOC); in av_copy_packet_side_data() 253 pkt->side_data[i].size = src->side_data[i].size; in av_copy_packet_side_data() [all …]
|
D | v210enc.c | 123 AVFrameSideData *side_data; in encode_frame() local 139 side_data = av_frame_get_side_data(pic, AV_FRAME_DATA_A53_CC); in encode_frame() 140 if (side_data && side_data->size) { in encode_frame() 141 uint8_t *buf = av_packet_new_side_data(pkt, AV_PKT_DATA_A53_CC, side_data->size); in encode_frame() 144 memcpy(buf, side_data->data, side_data->size); in encode_frame() 147 side_data = av_frame_get_side_data(pic, AV_FRAME_DATA_AFD); in encode_frame() 148 if (side_data && side_data->size) { in encode_frame() 149 uint8_t *buf = av_packet_new_side_data(pkt, AV_PKT_DATA_AFD, side_data->size); in encode_frame() 152 memcpy(buf, side_data->data, side_data->size); in encode_frame()
|
D | atsc_a53.c | 28 AVFrameSideData *side_data = NULL; in ff_alloc_a53_sei() local 32 side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_A53_CC); in ff_alloc_a53_sei() 34 if (!side_data) { in ff_alloc_a53_sei() 39 *sei_size = side_data->size + 11; in ff_alloc_a53_sei() 58 sei_data[8] = ((side_data->size/3) & 0x1f) | 0x40; in ff_alloc_a53_sei() 61 memcpy(sei_data + 10, side_data->data, side_data->size); in ff_alloc_a53_sei() 63 sei_data[side_data->size+10] = 255; in ff_alloc_a53_sei()
|
D | cbs_bsf.c | 26 uint8_t *side_data; in cbs_bsf_update_side_data() local 30 side_data = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, in cbs_bsf_update_side_data() 35 err = ff_cbs_read(ctx->input, frag, side_data, side_data_size); in cbs_bsf_update_side_data() 53 side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, in cbs_bsf_update_side_data() 55 if (!side_data) in cbs_bsf_update_side_data() 57 memcpy(side_data, frag->data, frag->data_size); in cbs_bsf_update_side_data()
|
D | mpeg12enc.c | 320 AVFrameSideData *side_data; in mpeg1_encode_sequence_header() local 344 side_data = av_frame_get_side_data(s->current_picture_ptr->f, AV_FRAME_DATA_PANSCAN); in mpeg1_encode_sequence_header() 345 if (side_data) { in mpeg1_encode_sequence_header() 346 AVPanScan *pan_scan = (AVPanScan *)side_data->data; in mpeg1_encode_sequence_header() 430 AVFrameSideData *side_data; in ff_mpeg1_encode_picture_header() local 514 side_data = av_frame_get_side_data(s->current_picture_ptr->f, in ff_mpeg1_encode_picture_header() 516 if (side_data) { in ff_mpeg1_encode_picture_header() 517 AVStereo3D *stereo = (AVStereo3D *)side_data->data; in ff_mpeg1_encode_picture_header() 554 side_data = av_frame_get_side_data(s->current_picture_ptr->f, in ff_mpeg1_encode_picture_header() 556 if (side_data) { in ff_mpeg1_encode_picture_header() [all …]
|
D | bethsoftvideo.c | 87 avpkt->side_data[0].type == AV_PKT_DATA_PALETTE) { in bethsoftvid_decode_frame() 88 bytestream2_init(&vid->g, avpkt->side_data[0].data, in bethsoftvid_decode_frame() 89 avpkt->side_data[0].size); in bethsoftvid_decode_frame()
|
D | libvpxdec.c | 223 uint8_t *side_data = NULL; in vpx_decode() local 230 side_data = av_packet_get_side_data(avpkt, in vpx_decode() 234 const uint64_t additional_id = AV_RB64(side_data); in vpx_decode() 235 side_data += 8; in vpx_decode() 254 ret = decode_frame(avctx, &ctx->decoder_alpha, side_data, in vpx_decode()
|
D | libmp3lame.c | 285 uint8_t* side_data = av_packet_new_side_data(avpkt, in mp3lame_encode_frame() local 288 if(!side_data) { in mp3lame_encode_frame() 293 AV_WL32(side_data, avctx->initial_padding); in mp3lame_encode_frame() 296 AV_WL32(side_data + 4, discard_padding); in mp3lame_encode_frame()
|
/third_party/ffmpeg/libavutil/ |
D | mastering_display_metadata.c | 34 AVFrameSideData *side_data = av_frame_new_side_data(frame, in av_mastering_display_metadata_create_side_data() local 37 if (!side_data) in av_mastering_display_metadata_create_side_data() 40 memset(side_data->data, 0, sizeof(AVMasteringDisplayMetadata)); in av_mastering_display_metadata_create_side_data() 42 return (AVMasteringDisplayMetadata *)side_data->data; in av_mastering_display_metadata_create_side_data() 57 AVFrameSideData *side_data = av_frame_new_side_data(frame, in av_content_light_metadata_create_side_data() local 60 if (!side_data) in av_content_light_metadata_create_side_data() 63 memset(side_data->data, 0, sizeof(AVContentLightMetadata)); in av_content_light_metadata_create_side_data() 65 return (AVContentLightMetadata *)side_data->data; in av_content_light_metadata_create_side_data()
|
D | downmix_info.c | 26 AVFrameSideData *side_data; in av_downmix_info_update_side_data() local 28 side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_DOWNMIX_INFO); in av_downmix_info_update_side_data() 30 if (!side_data) in av_downmix_info_update_side_data() 31 side_data = av_frame_new_side_data(frame, AV_FRAME_DATA_DOWNMIX_INFO, in av_downmix_info_update_side_data() 34 if (!side_data) in av_downmix_info_update_side_data() 37 return (AVDownmixInfo*)side_data->data; in av_downmix_info_update_side_data()
|
D | encryption_info.c | 230 const uint8_t *side_data, size_t side_data_size) in av_encryption_init_info_get_side_data() argument 237 if (!side_data || side_data_size < 4) in av_encryption_init_info_get_side_data() 240 init_info_count = AV_RB32(side_data); in av_encryption_init_info_get_side_data() 241 side_data += 4; in av_encryption_init_info_get_side_data() 249 system_id_size = AV_RB32(side_data); in av_encryption_init_info_get_side_data() 250 num_key_ids = AV_RB32(side_data + 4); in av_encryption_init_info_get_side_data() 251 key_id_size = AV_RB32(side_data + 8); in av_encryption_init_info_get_side_data() 252 data_size = AV_RB32(side_data + 12); in av_encryption_init_info_get_side_data() 259 side_data += FF_ENCRYPTION_INIT_INFO_EXTRA; in av_encryption_init_info_get_side_data() 274 memcpy(info->system_id, side_data, system_id_size); in av_encryption_init_info_get_side_data() [all …]
|
D | film_grain_params.c | 33 AVFrameSideData *side_data = av_frame_new_side_data(frame, in av_film_grain_params_create_side_data() local 36 if (!side_data) in av_film_grain_params_create_side_data() 39 memset(side_data->data, 0, sizeof(AVFilmGrainParams)); in av_film_grain_params_create_side_data() 41 return (AVFilmGrainParams *)side_data->data; in av_film_grain_params_create_side_data()
|
D | hdr_dynamic_metadata.c | 38 AVFrameSideData *side_data = av_frame_new_side_data(frame, in av_dynamic_hdr_plus_create_side_data() local 41 if (!side_data) in av_dynamic_hdr_plus_create_side_data() 44 memset(side_data->data, 0, sizeof(AVDynamicHDRPlus)); in av_dynamic_hdr_plus_create_side_data() 46 return (AVDynamicHDRPlus *)side_data->data; in av_dynamic_hdr_plus_create_side_data()
|
D | stereo3d.c | 35 AVFrameSideData *side_data = av_frame_new_side_data(frame, in av_stereo3d_create_side_data() local 38 if (!side_data) in av_stereo3d_create_side_data() 41 memset(side_data->data, 0, sizeof(AVStereo3D)); in av_stereo3d_create_side_data() 43 return (AVStereo3D *)side_data->data; in av_stereo3d_create_side_data()
|
D | frame.c | 183 free_side_data(&frame->side_data[i]); in wipe_side_data() 187 av_freep(&frame->side_data); in wipe_side_data() 399 const AVFrameSideData *sd_src = src->side_data[i]; in frame_copy_props() 703 if (frame->nb_side_data > INT_MAX / sizeof(*frame->side_data) - 1) in av_frame_new_side_data_from_buf() 706 tmp = av_realloc(frame->side_data, in av_frame_new_side_data_from_buf() 707 (frame->nb_side_data + 1) * sizeof(*frame->side_data)); in av_frame_new_side_data_from_buf() 710 frame->side_data = tmp; in av_frame_new_side_data_from_buf() 721 frame->side_data[frame->nb_side_data++] = ret; in av_frame_new_side_data_from_buf() 744 if (frame->side_data[i]->type == type) in av_frame_get_side_data() 745 return frame->side_data[i]; in av_frame_get_side_data() [all …]
|
D | encryption_info.h | 157 AVEncryptionInfo *av_encryption_info_get_side_data(const uint8_t *side_data, size_t side_data_size); 193 const uint8_t* side_data, size_t side_data_size);
|
/third_party/ffmpeg/libavutil/tests/ |
D | encryption_info.c | 76 uint8_t *side_data; in run_encryption_info_test() local 101 side_data = av_encryption_info_add_side_data(info, &side_data_size); in run_encryption_info_test() 102 av_assert0(side_data); in run_encryption_info_test() 105 copy = av_encryption_info_get_side_data(side_data, side_data_size); in run_encryption_info_test() 110 av_free(side_data); in run_encryption_info_test() 143 uint8_t *side_data; in run_encryption_init_info_test() local 148 side_data = av_encryption_init_info_add_side_data(info, &side_data_size); in run_encryption_init_info_test() 149 av_assert0(side_data); in run_encryption_init_info_test() 151 copy = av_encryption_init_info_get_side_data(side_data, side_data_size); in run_encryption_init_info_test() 155 av_free(side_data); in run_encryption_init_info_test() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | hashenc.c | 305 if (HAVE_BIGENDIAN && pkt->side_data[i].type == AV_PKT_DATA_PALETTE) { in framehash_write_packet() 306 for (j = 0; j < pkt->side_data[i].size; j += sizeof(uint32_t)) { in framehash_write_packet() 307 uint32_t data = AV_RL32(pkt->side_data[i].data + j); in framehash_write_packet() 311 av_hash_update(c->hashes[0], pkt->side_data[i].data, pkt->side_data[i].size); in framehash_write_packet() 312 … snprintf(buf, sizeof(buf) - (AV_HASH_MAX_SIZE * 2 + 1), ", %8d, ", pkt->side_data[i].size); in framehash_write_packet()
|
D | adtsenc.c | 174 uint8_t *side_data; in adts_write_packet() local 178 side_data = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, in adts_write_packet() 181 ret = adts_decode_extradata(s, adts, side_data, side_data_size); in adts_write_packet() 187 memcpy(par->extradata, side_data, side_data_size); in adts_write_packet()
|
D | latmenc.c | 178 uint8_t *side_data; in latm_write_packet() local 182 side_data = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, in latm_write_packet() 185 if (latm_decode_extradata(s, side_data, side_data_size) < 0) in latm_write_packet() 190 memcpy(par->extradata, side_data, side_data_size); in latm_write_packet()
|
D | matroskaenc.c | 842 const void *side_data; in mkv_write_video_color() local 872 side_data = av_stream_get_side_data(st, AV_PKT_DATA_CONTENT_LIGHT_LEVEL, in mkv_write_video_color() 874 if (side_data) { in mkv_write_video_color() 875 const AVContentLightMetadata *metadata = side_data; in mkv_write_video_color() 880 side_data = av_stream_get_side_data(st, AV_PKT_DATA_MASTERING_DISPLAY_METADATA, in mkv_write_video_color() 882 if (side_data) { in mkv_write_video_color() 885 const AVMasteringDisplayMetadata *metadata = side_data; in mkv_write_video_color() 2034 uint8_t *data = NULL, *side_data = NULL; in mkv_write_block() local 2081 side_data = av_packet_get_side_data(pkt, in mkv_write_block() 2084 if (side_data && side_data_size >= 10) { in mkv_write_block() [all …]
|
D | framecrcenc.c | 73 const AVPacketSideData *const sd = &pkt->side_data[i]; in framecrc_write_packet() 122 … av_strlcatf(buf, sizeof(buf), ", %8d, 0x%08"PRIx32, pkt->side_data[i].size, side_data_crc); in framecrc_write_packet()
|
D | nutenc.c | 844 const uint8_t *data = pkt->side_data[i].data; in write_sm_data() 845 int size = pkt->side_data[i].size; in write_sm_data() 849 if ( pkt->side_data[i].type == AV_PKT_DATA_METADATA_UPDATE in write_sm_data() 850 || pkt->side_data[i].type == AV_PKT_DATA_STRINGS_METADATA) { in write_sm_data() 871 switch (pkt->side_data[i].type) { in write_sm_data() 876 if (pkt->side_data[i].type == AV_PKT_DATA_PALETTE) { in write_sm_data() 878 } else if(pkt->side_data[i].type == AV_PKT_DATA_NEW_EXTRADATA) { in write_sm_data() 880 } else if(pkt->side_data[i].type == AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL) { in write_sm_data() 886 pkt->side_data[i].type); in write_sm_data() 891 put_v(dyn_bc, pkt->side_data[i].size); in write_sm_data() [all …]
|
D | mp3enc.c | 357 uint8_t *side_data = NULL; in mp3_write_audio_packet() local 365 side_data = av_packet_get_side_data(pkt, in mp3_write_audio_packet() 368 if (side_data && side_data_size >= 10) { in mp3_write_audio_packet() 369 mp3->padding = FFMAX(AV_RL32(side_data + 4) + 528 + 1, 0); in mp3_write_audio_packet() 371 mp3->delay = FFMAX(AV_RL32(side_data) - 528 - 1, 0); in mp3_write_audio_packet()
|
D | apngenc.c | 121 uint8_t *side_data = NULL; in flush_packet() local 126 …side_data = av_packet_get_side_data(apng->prev_packet, AV_PKT_DATA_NEW_EXTRADATA, &side_data_size); in flush_packet() 134 memcpy(apng->extra_data, side_data, apng->extra_data_size); in flush_packet()
|