Lines Matching defs:cei_start_pos

472 static int mpegts_drm_find_avs_cei_nal_unit(uint8_t *data, uint32_t data_size, uint32_t *cei_start_pos,
490 *cei_start_pos = i;
491 av_log(NULL, AV_LOG_DEBUG, "cei found, packet start pos:%d\n", *cei_start_pos);
499 static int mpegts_drm_find_hevc_cei_nal_unit(uint8_t *data, uint32_t data_size, uint32_t *cei_start_pos,
511 *cei_start_pos = i;
514 if (*cei_start_pos != DRM_INVALID_START_POS) {
517 *cei_start_pos = DRM_INVALID_START_POS;
522 *cei_start_pos = i;
523 av_log(NULL, AV_LOG_DEBUG, "cei found, packet start pos:%d\n", *cei_start_pos);
531 static int mpegts_drm_find_h264_cei_nal_unit(uint8_t *data, uint32_t data_size, uint32_t *cei_start_pos,
544 *cei_start_pos = i;
547 if (*cei_start_pos != DRM_INVALID_START_POS) {
550 *cei_start_pos = DRM_INVALID_START_POS;
555 *cei_start_pos = i;
556 av_log(NULL, AV_LOG_DEBUG, "cei found, packet start pos:%d\n", *cei_start_pos);
565 uint32_t *cei_start_pos, uint32_t index)
569 ret = mpegts_drm_find_avs_cei_nal_unit(data, data_size, cei_start_pos, index);
571 ret = mpegts_drm_find_hevc_cei_nal_unit(data, data_size, cei_start_pos, index);
573 ret = mpegts_drm_find_h264_cei_nal_unit(data, data_size, cei_start_pos, index);
579 uint32_t *cei_start_pos, uint32_t *cei_end_pos)
588 if (*cei_start_pos != (uint32_t)DRM_INVALID_START_POS) {
590 av_log(NULL, AV_LOG_DEBUG, "cei found, start pos:%x end pos:%x\n", *cei_start_pos, *cei_end_pos);
597 *cei_start_pos = start_pos;
603 if ((*cei_start_pos != (uint32_t)DRM_INVALID_START_POS) && (*cei_end_pos != (uint32_t)DRM_INVALID_START_POS) &&
604 (*cei_start_pos < *cei_end_pos) && (*cei_end_pos <= data_size)) {
714 static int mpegts_drm_set_key_info(AVStream *avstream, uint8_t *data, uint32_t data_size, uint32_t cei_start_pos,
718 uint32_t pos = cei_start_pos;
810 uint32_t cei_start_pos = (uint32_t)DRM_INVALID_START_POS;
826 ret = mpegts_drm_find_cei_pos(codec_id, data, data_size, &cei_start_pos, &cei_end_pos);
828 (void)mpegts_drm_set_key_info(avstream, data, cei_end_pos, cei_start_pos, cenc_info);