/// <summary> /// Write instruction operands into bytecode stream. /// </summary> /// <param name="writer">Bytecode writer.</param> public override void WriteOperands(WordWriter writer) { SkipBlockPartitionType.Write(writer); SkipMotionVectorMask.Write(writer); MotionVectors.Write(writer); BidirectionalWeight.Write(writer); SadAdjustment.Write(writer); Payload.Write(writer); }
/// <summary> /// Write instruction operands into bytecode stream. /// </summary> /// <param name="writer">Bytecode writer.</param> public override void WriteOperands(WordWriter writer) { LumaIntraPartitionMask.Write(writer); IntraNeighbourAvailabilty.Write(writer); LeftEdgeLumaPixels.Write(writer); UpperLeftCornerLumaPixel.Write(writer); UpperEdgeLumaPixels.Write(writer); UpperRightEdgeLumaPixels.Write(writer); SadAdjustment.Write(writer); Payload.Write(writer); }
/// <summary> /// Calculate number of words to fit complete instruction bytecode. /// </summary> /// <returns>Number of words in instruction bytecode.</returns> public override uint GetWordCount() { uint wordCount = 0; wordCount += IdResultType.GetWordCount(); wordCount += IdResult.GetWordCount(); wordCount += SkipBlockPartitionType.GetWordCount(); wordCount += SkipMotionVectorMask.GetWordCount(); wordCount += MotionVectors.GetWordCount(); wordCount += BidirectionalWeight.GetWordCount(); wordCount += SadAdjustment.GetWordCount(); wordCount += Payload.GetWordCount(); return(wordCount); }
/// <summary> /// Calculate number of words to fit complete instruction bytecode. /// </summary> /// <returns>Number of words in instruction bytecode.</returns> public override uint GetWordCount() { uint wordCount = 0; wordCount += IdResultType.GetWordCount(); wordCount += IdResult.GetWordCount(); wordCount += LumaIntraPartitionMask.GetWordCount(); wordCount += IntraNeighbourAvailabilty.GetWordCount(); wordCount += LeftEdgeLumaPixels.GetWordCount(); wordCount += UpperLeftCornerLumaPixel.GetWordCount(); wordCount += UpperEdgeLumaPixels.GetWordCount(); wordCount += UpperRightEdgeLumaPixels.GetWordCount(); wordCount += SadAdjustment.GetWordCount(); wordCount += Payload.GetWordCount(); return(wordCount); }