Codota Logo
HeaderPartition.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.netflix.imflibrary.st0377.HeaderPartition
constructor

Best Java code snippets using com.netflix.imflibrary.st0377.HeaderPartition.<init> (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: Netflix/photon

/**
 * A method that returns an object model of the HeaderPartition in the Essence
 * @return Header partition in the essence
 * @throws IOException - any I/O related error will be exposed through an IOException
 */
public HeaderPartition getHeaderPartition() throws IOException{
  RandomIndexPack randomIndexPack = this.getRandomIndexPack();
  List<Long> allPartitionByteOffsets = randomIndexPack.getAllPartitionByteOffsets();
  long inclusiveRangeStart = allPartitionByteOffsets.get(0);
  long inclusiveRangeEnd = allPartitionByteOffsets.get(1) - 1;
  File fileWithHeaderPartition = this.resourceByteRangeProvider.getByteRange(inclusiveRangeStart, inclusiveRangeEnd, this.workingDirectory);
  ByteProvider byteProvider = this.getByteProvider(fileWithHeaderPartition);
  HeaderPartition headerPartition = new HeaderPartition(byteProvider, inclusiveRangeStart, inclusiveRangeEnd - inclusiveRangeStart + 1, this.imfErrorLogger);
  return headerPartition;
}
origin: Netflix/photon

private static Map<UUID, PayloadRecord> getTrackFileIdToHeaderPartitionPayLoadMap(List<PayloadRecord>
                                      headerPartitionPayloadRecords) throws
    IOException {
  IMFErrorLogger imfErrorLogger = new IMFErrorLoggerImpl();
  Map<UUID, PayloadRecord> trackFileIDMap = new HashMap<>();
  for (PayloadRecord payloadRecord : headerPartitionPayloadRecords) {
    if (payloadRecord.getPayloadAssetType() != PayloadRecord.PayloadAssetType.EssencePartition) {
      imfErrorLogger.addError(IMFErrorLogger.IMFErrors.ErrorCodes.IMP_VALIDATOR_PAYLOAD_ERROR,
          IMFErrorLogger.IMFErrors.ErrorLevels.FATAL,
          String.format("Payload asset type is %s, expected asset type %s", payloadRecord.getPayloadAssetType(),
              PayloadRecord.PayloadAssetType.EssencePartition.toString()));
      continue;
    }
    HeaderPartition headerPartition = new HeaderPartition(new ByteArrayDataProvider(payloadRecord.getPayload()),
      0L,
      (long) payloadRecord.getPayload().length,
      imfErrorLogger);
    Preface preface = headerPartition.getPreface();
    GenericPackage genericPackage = preface.getContentStorage().getEssenceContainerDataList().get(0).getLinkedPackage();
    SourcePackage filePackage = (SourcePackage) genericPackage;
    UUID packageUUID = filePackage.getPackageMaterialNumberasUUID();
    trackFileIDMap.put(packageUUID, payloadRecord);
  }
  return Collections.unmodifiableMap(trackFileIDMap);
}
origin: Netflix/photon

ResourceByteRangeProvider resourceByteRangeProvider = new ByteArrayByteRangeProvider(imfTrackFileMetadata.getHeaderPartition());
HeaderPartition headerPartition = new HeaderPartition(byteProvider, 0L, (long) imfTrackFileMetadata.getHeaderPartition().length, imfErrorLogger);
origin: Netflix/photon

          ()), imfErrorLogger);
HeaderPartition headerPartition = new HeaderPartition(new ByteArrayDataProvider(payloadRecord.getPayload()),
  0L,
  (long) payloadRecord.getPayload().length,
origin: Netflix/photon

          ()), imfErrorLogger);
HeaderPartition headerPartition = new HeaderPartition(new ByteArrayDataProvider(payloadRecord.getPayload()),
    0L,
    (long) payloadRecord.getPayload().length,
origin: Netflix/photon

HeaderPartition headerPartition = null;
try {
  headerPartition = new HeaderPartition(byteProvider, inclusiveRangeStart, inclusiveRangeEnd - inclusiveRangeStart + 1, imfErrorLogger);
origin: DSRCorporation/imf-conversion

private List<ErrorObject> validateMxf(File mxf) {
  return doValidate(ErrorCodes.IMF_ESSENCE_COMPONENT_ERROR,
      imfErrorLogger -> {
        PayloadRecord headerPartitionPayloadRecord = getHeaderPartition(mxf, imfErrorLogger);
        if (!imfErrorLogger.getErrors().isEmpty() || (headerPartitionPayloadRecord == null)) {
          return imfErrorLogger.getErrors();
        }
        HeaderPartition headerPartition = new HeaderPartition(
            new ByteArrayDataProvider(headerPartitionPayloadRecord.getPayload()),
            0L,
            (long) headerPartitionPayloadRecord.getPayload().length,
            imfErrorLogger);
        MXFOperationalPattern1A.HeaderPartitionOP1A headerPartitionOP1A =
            MXFOperationalPattern1A.checkOperationalPattern1ACompliance(headerPartition);
        IMFConstraints.checkIMFCompliance(headerPartitionOP1A);
        return imfErrorLogger.getErrors();
      });
}
origin: Netflix/photon

HeaderPartition headerPartition = new HeaderPartition(new ByteArrayDataProvider(payloadRecord.getPayload()),
    0L,
    (long) payloadRecord.getPayload().length,
origin: Netflix/photon

  continue;
headerPartitionTuples.add(new Composition.HeaderPartitionTuple(new HeaderPartition(new ByteArrayDataProvider(payloadRecord.getPayload()),
    0L,
    (long) payloadRecord.getPayload().length,
origin: Netflix/photon

headerPartition = new HeaderPartition(new ByteArrayDataProvider(payloadRecord.getPayload()),
  0L,
  (long)payloadRecord.getPayload().length,
origin: Netflix/photon

HeaderPartition headerPartition = new HeaderPartition(new ByteArrayDataProvider(headerPartitionPayloadRecord.getPayload()),
    0L,
    (long) headerPartitionPayloadRecord.getPayload().length,
com.netflix.imflibrary.st0377HeaderPartition<init>

Javadoc

Instantiates a new MXF Header partition.

Popular methods of HeaderPartition

  • cacheInterchangeObject
    A helper method to cache an InterchangeObject
  • constructInterchangeObject
    A factory method to reflectively construct InterchangeObject types by classname
  • constructInterchangeObjectBO
    A factory method to reflectively construct InterchangeObjectBO types by classname and argument list
  • getAudioChannelIDToMCASubDescriptorMap
    A method that returns the Channel ID to AudioChannelLabelSubDescriptor
  • getAudioChannelLabelSubDescriptors
    Gets all the audio channel label sub descriptors associated with this HeaderPartition object
  • getAudioEssenceSpokenLanguage
    A method that returns the spoken language within this essence provided it is an Audio Essence
  • getContentStorageList
    Gets all of the ContentStorage objects corresponding to this HeaderPartition object
  • getEssenceContainerDataList
    Gets all of the EssenceContainerData objects corresponding to this HeaderPartition object
  • getEssenceDescriptors
    Gets all of the EssenceDescriptor objects corresponding to this HeaderPartition object that are refe
  • getEssenceDuration
    Returns the largest duration of all the TimelineTracks within the first (in parsing order) Material
  • getEssenceTypes
    A method that retrieves all the EssenceTypes present in the MXF file
  • getImagePixelBitDepth
    A method that returns the pixel bit depth of the underlying image essence
  • getEssenceTypes,
  • getImagePixelBitDepth,
  • getInterchangeObjectBOs,
  • getInterchangeObjects,
  • getMaterialPackages,
  • getPartitionPack,
  • getPreface,
  • getPrimerPack,
  • getSoundFieldGroupLabelSubDescriptors

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JList (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now