Showing 218 of 386 total issues
Function TransformClosure
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Transform = (function TransformClosure() {
function Transform() {}
Transform.prototype.calculate =
function transformCalculate(subbands, u0, v0) {
Function getSliceIterator
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getSliceIterator(
image, position, isRescaled, viewOrientation) {
const size = image.getGeometry().getSize();
// zero-ify non direction index
let dirMax2Index = 2;
Function 7
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./component-spec.js":1,"./data-stream.js":2,"./decoder.js":3,"./frame-header.js":4,"./huffman-table.js":5,"./quantization-table.js":7,"./scan-component.js":8,"./scan-header.js":9,"./utils.js":10}],7:[function(require,module,exports){
/*
* Copyright (C) 2015 Michael Martinez
* Changes: Added support for selection values 2-7, fixed minor bugs &
* warnings, split into multiple class files, and general clean up.
Function copyCoefficients
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
delta, mb, reversible, segmentationSymbolUsed) {
var x0 = subband.tbx0;
var y0 = subband.tby0;
var width = subband.tbx1 - subband.tbx0;
Function getScoordFromShape
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getScoordFromShape(shape) {
const scoord = new SpatialCoordinate();
if (shape instanceof Point2D) {
scoord.graphicData = [
Function BitModel_runCleanupPass
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
runCleanupPass: function BitModel_runCleanupPass() {
var decoder = this.decoder;
var width = this.width, height = this.height;
var neighborsSignificance = this.neighborsSignificance;
var coefficentsMagnitude = this.coefficentsMagnitude;
Function decode
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dwvdecoder.RleDecoder.prototype.decode = function (buffer,
bitsAllocated, isSigned, sliceSize, samplesPerPixel, planarConfiguration) {
// bytes per element
var bpe = bitsAllocated / 8;
Function IrreversibleTransformClosure
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var IrreversibleTransform = (function IrreversibleTransformClosure() {
function IrreversibleTransform() {
Transform.call(this);
}
Function JpxImage_parse
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function JpxImage_parse(data) {
var head = readUint16(data, 0);
// No box header, immediate start of codestream (SOC)
if (head === 0xFF4F) {
Function PageViewportClosure
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
/**
* @constructor
* @private
* @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
Function Transform_iterate
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
u0, v0) {
var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
var width = hl_lh_hh.width;
var height = hl_lh_hh.height;
Function InclusionTreeClosure
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var InclusionTree = (function InclusionTreeClosure() {
function InclusionTree(width, height, defaultValue) {
var levelsLength = log2(Math.max(width, height)) + 1;
this.levels = [];
for (var i = 0; i < levelsLength; i++) {
Function getSegmentFrameInfo
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getSegmentFrameInfo(dataElements) {
// Derivation Image Sequence
const derivationImages = [];
if (typeof dataElements[TagKeys.DerivationImageSequence] !== 'undefined') {
const derivationImageSq =
Function buildCodeblocks
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildCodeblocks(context, subband, dimensions) {
// Section B.7 Division sub-band into code-blocks
var xcb_ = dimensions.xcb_;
var ycb_ = dimensions.ycb_;
var codeblockWidth = 1 << xcb_;
Function getShapeFromScoord
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getShapeFromScoord(scoord) {
// extract points
const dataLength = scoord.graphicData.length;
if (dataLength % 2 !== 0) {
throw new Error('Expecting even number of coordinates in scroord data');
Function getElementValueAsString
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getElementValueAsString(tag, dicomElement, pretty) {
let str = '';
const strLenLimit = 65;
// dafault to pretty output
Function irreversibleTransformFilter
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function irreversibleTransformFilter(x, offset, length) {
var len = length >> 1;
offset = offset | 0;
var j, n, current, next;
Function parseMultipart
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function parseMultipart(arr) {
const u8Array = new Uint8Array(arr);
const parts = [];
// check input
Function getViewFromDOMVideo
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getViewFromDOMVideo(
video, onloaditem, onload, onprogress, onloadend,
origin, dataIndex) {
// video size
const width = video.videoWidth;
Function getn
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jpeg.lossless.Decoder.prototype.getn = function (PRED, n, temp, index) {
/*jslint bitwise: true */
var result, one, n_one, mask, input;
one = 1;