id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
37,501
SimpleRepoModule simpleRepoModule = new SimpleRepoModule(dataSource, dataDir, clock, ticker, configRepository, backgroundExecutor); simpleRepoModule.registerMBeans(new PlatformMBeanServerLifecycleImpl( agentModule.getLazyPlatformMBeanServer())); CollectorImpl collectorImpl = new CollectorImpl( <BUG>simpleRepoModule.get...
simpleRepoModule.getEnvironmentDao(), simpleRepoModule.getTraceDao(),
37,502
.baseDir(baseDir) .glowrootDir(glowrootDir) .ticker(ticker) .clock(clock) .liveJvmService(agentModule.getLiveJvmService()) <BUG>.configRepository(simpleRepoModule.getConfigRepository()) .agentRepository(simpleRepoModule.getAgentDao()) </BUG> .transactionTypeRepository(simpleRepoModule.getTransactionTypeRepository()) .t...
.agentRepository(new AgentRepositoryImpl()) .environmentRepository(simpleRepoModule.getEnvironmentDao())
37,503
.baseDir(baseDir) .glowrootDir(glowrootDir) .ticker(ticker) .clock(clock) .liveJvmService(null) <BUG>.configRepository(simpleRepoModule.getConfigRepository()) .agentRepository(simpleRepoModule.getAgentDao()) </BUG> .transactionTypeRepository(simpleRepoModule.getTransactionTypeRepository()) .traceAttributeNameRepository...
.liveJvmService(agentModule.getLiveJvmService()) .agentRepository(new AgentRepositoryImpl()) .environmentRepository(simpleRepoModule.getEnvironmentDao())
37,504
} @Override public void lazyRegisterMBean(Object object, String name) { lazyPlatformMBeanServer.lazyRegisterMBean(object, name); } <BUG>} } </BUG>
void initEmbeddedServer() throws Exception { if (simpleRepoModule == null) { return;
37,505
List<GaugeConfig> configs = Lists.newArrayList(configService.getGaugeConfigs()); for (GaugeConfig loopConfig : configs) { if (loopConfig.mbeanObjectName().equals(gaugeConfig.getMbeanObjectName())) { throw new DuplicateMBeanObjectNameException(); } <BUG>} String version = Versions.getVersion(gaugeConfig); for (GaugeConf...
[DELETED]
37,506
configService.updateGaugeConfigs(configs); } } @Override public void updateGaugeConfig(String agentId, AgentConfig.GaugeConfig gaugeConfig, <BUG>String priorVersion) throws Exception { synchronized (writeLock) {</BUG> List<GaugeConfig> configs = Lists.newArrayList(configService.getGaugeConfigs()); boolean found = false...
GaugeConfig config = GaugeConfig.create(gaugeConfig); synchronized (writeLock) {
37,507
boolean found = false; for (ListIterator<GaugeConfig> i = configs.listIterator(); i.hasNext();) { GaugeConfig loopConfig = i.next(); String loopVersion = Versions.getVersion(loopConfig.toProto()); if (loopVersion.equals(priorVersion)) { <BUG>i.set(GaugeConfig.create(gaugeConfig)); found = true; break;</BUG> } else if (...
i.set(config);
37,508
boolean found = false; for (ListIterator<PluginConfig> i = configs.listIterator(); i.hasNext();) { PluginConfig loopPluginConfig = i.next(); if (pluginId.equals(loopPluginConfig.id())) { String loopVersion = Versions.getVersion(loopPluginConfig.toProto()); <BUG>checkVersionsEqual(loopVersion, priorVersion); PluginDescr...
for (ListIterator<GaugeConfig> i = configs.listIterator(); i.hasNext();) { GaugeConfig loopConfig = i.next(); String loopVersion = Versions.getVersion(loopConfig.toProto()); if (loopVersion.equals(version)) { i.remove();
37,509
boolean found = false; for (ListIterator<InstrumentationConfig> i = configs.listIterator(); i.hasNext();) { InstrumentationConfig loopConfig = i.next(); String loopVersion = Versions.getVersion(loopConfig.toProto()); if (loopVersion.equals(priorVersion)) { <BUG>i.set(InstrumentationConfig.create(instrumentationConfig))...
i.set(config); } else if (loopConfig.equals(config)) { throw new IllegalStateException("This exact instrumentation already exists");
37,510
package org.glowroot.agent.embedded.init; import java.io.File; import java.util.List; import org.glowroot.agent.collector.Collector; <BUG>import org.glowroot.agent.embedded.repo.AgentDao; import org.glowroot.agent.embedded.repo.AggregateDao; import org.glowroot.agent.embedded.repo.GaugeValueDao;</BUG> import org.glowro...
import org.glowroot.agent.embedded.repo.EnvironmentDao; import org.glowroot.agent.embedded.repo.GaugeValueDao;
37,511
</BUG> private final AggregateDao aggregateDao; private final TraceDao traceDao; private final GaugeValueDao gaugeValueDao; <BUG>CollectorImpl(AgentDao agentDao, AggregateDao aggregateRepository, TraceDao traceRepository, GaugeValueDao gaugeValueRepository) { this.agentDao = agentDao;</BUG> this.aggregateDao = aggrega...
import org.glowroot.wire.api.model.CollectorServiceOuterClass.Environment; import org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValue; import org.glowroot.wire.api.model.CollectorServiceOuterClass.LogEvent; import org.glowroot.wire.api.model.TraceOuterClass.Trace; class CollectorImpl implements Collector ...
37,512
package org.apache.lens.server.scheduler; import java.util.Collection; import java.util.List; import javax.ws.rs.*; <BUG>import javax.ws.rs.core.MediaType; import org.apache.lens.api.APIResult;</BUG> import org.apache.lens.api.LensSessionHandle; import org.apache.lens.api.scheduler.*; import org.apache.lens.server.Lens...
import javax.xml.bind.JAXBElement; import org.apache.lens.api.APIResult;
37,513
import org.apache.lens.server.api.error.LensException; import org.apache.lens.server.api.scheduler.SchedulerService; import org.apache.commons.lang3.StringUtils; @Path("scheduler") @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) <BUG>public class ScheduleResource { public enum INSTANCE_ACTIONS {</BUG...
private static final ObjectFactory OBJECT_FACTORY = new ObjectFactory(); public enum INSTANCE_ACTIONS {
37,514
@Path("jobs/{jobHandle}/instances/") public List<SchedulerJobInstanceInfo> getJobInstances(@QueryParam("sessionid") LensSessionHandle sessionId, @PathParam("jobHandle") SchedulerJobHandle jobHandle, @QueryParam("numResults") Long numResults) throws LensException { validateSession(sessionId); <BUG>return getSchedulerSer...
return getSchedulerService().getJobInstances(jobHandle, numResults); }
37,515
@Path("instances/{instanceHandle}") public SchedulerJobInstanceInfo getInstanceDetails(@QueryParam("sessionid") LensSessionHandle sessionId, @PathParam("instanceHandle") SchedulerJobInstanceHandle instanceHandle) throws LensException { validateSession(sessionId); <BUG>return getSchedulerService().getInstanceDetails(ses...
return getSchedulerService().getInstanceDetails(instanceHandle); }
37,516
package org.apache.lens.api.scheduler; <BUG>import org.apache.lens.api.error.InvalidStateTransitionException; public enum SchedulerJobState implements StateTransitioner<SchedulerJobState, SchedulerJobEvent> {</BUG> NEW { @Override public SchedulerJobState nextTransition(SchedulerJobEvent event) throws InvalidStateTrans...
import javax.xml.bind.annotation.*; @XmlRootElement public enum SchedulerJobState implements StateTransitioner<SchedulerJobState, SchedulerJobEvent> {
37,517
public interface SchedulerService extends LensService, SessionValidator { String NAME = "scheduler"; SchedulerJobHandle submitJob(LensSessionHandle sessionHandle, XJob job) throws LensException; boolean scheduleJob(LensSessionHandle sessionHandle, SchedulerJobHandle jobHandle) throws LensException; SchedulerJobHandle s...
XJob getJobDefinition(SchedulerJobHandle jobHandle) throws LensException; SchedulerJobInfo getJobDetails(SchedulerJobHandle jobHandle) throws LensException; boolean updateJob(LensSessionHandle sessionHandle, SchedulerJobHandle jobHandle, XJob newJobDefinition)
37,518
throws LensException; boolean expireJob(LensSessionHandle sessionHandle, SchedulerJobHandle jobHandle) throws LensException; boolean suspendJob(LensSessionHandle sessionHandle, SchedulerJobHandle jobHandle) throws LensException; boolean resumeJob(LensSessionHandle sessionHandle, SchedulerJobHandle jobHandle) throws Len...
Collection<SchedulerJobStats> getAllJobStats(String state, String user, SchedulerJobStats getJobStats(SchedulerJobHandle handle, String state, List<SchedulerJobInstanceInfo> getJobInstances(SchedulerJobHandle jobHandle, Long numResults) throws LensException;
37,519
.withMisfireHandlingInstructionIgnoreMisfires(); trigger = TriggerBuilder.newTrigger().withIdentity(jobHandle, ALARM_SERVICE).startAt(start.toDate()) .endAt(end.toDate()).withSchedule(scheduleBuilder).build(); } else { // for cron expression create a cron trigger trigger = TriggerBuilder.newTrigger().withIdentity(jobHa...
.endAt(end.toDate()).withSchedule(CronScheduleBuilder.cronSchedule(frequency.getCronExpression()) .withMisfireHandlingInstructionIgnoreMisfires()).build(); }
37,520
package org.apache.lens.api.scheduler; <BUG>import java.util.List; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class SchedulerJobInstanceInfo {</BUG> private SchedulerJobInstanceHandle id;
import javax.xml.bind.annotation.XmlRootElement; import lombok.NoArgsConstructor; @NoArgsConstructor @XmlRootElement public class SchedulerJobInstanceInfo {
37,521
package org.apache.lens.api.scheduler; <BUG>import org.apache.lens.api.error.InvalidStateTransitionException; public enum SchedulerJobInstanceState</BUG> implements StateTransitioner<SchedulerJobInstanceState, SchedulerJobInstanceEvent> { WAITING { @Override
import javax.xml.bind.annotation.*; @XmlRootElement public enum SchedulerJobInstanceState
37,522
package org.apache.lens.api.scheduler; import lombok.AllArgsConstructor; <BUG>import lombok.Data; @Data @AllArgsConstructor public class SchedulerJobInfo {</BUG> private SchedulerJobHandle id;
import javax.xml.bind.annotation.XmlRootElement; import lombok.NoArgsConstructor; @NoArgsConstructor @XmlRootElement public class SchedulerJobInfo {
37,523
return '?'; } } @Override public String toString() { <BUG>String result = getMatrixLabel() + "\n"; String[] columnLabels = getColumnLabels();</BUG> String[] rowLabels = getRowLabels(); int max = 0; for (String label : rowLabels) {
StringBuilder result = new StringBuilder(getMatrixLabel()).append('\n'); String[] columnLabels = getColumnLabels();
37,524
import org.opennms.features.reporting.model.remoterepository.RemoteRepositoryDefinition; import org.opennms.features.reporting.repository.ReportRepository; import org.opennms.features.reporting.sdo.RemoteReportSDO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; <BUG>import com.sun.jersey.api.client.GenericTyp...
[DELETED]
37,525
import com.sun.jersey.client.apache.config.ApacheHttpClientConfig; import com.sun.jersey.client.apache.config.DefaultApacheHttpClientConfig;</BUG> public class DefaultRemoteRepository implements ReportRepository { private Logger logger = LoggerFactory.getLogger(DefaultRemoteRepository.class); private RemoteRepositoryDe...
import org.opennms.features.reporting.model.remoterepository.RemoteRepositoryDefinition; import org.opennms.features.reporting.repository.ReportRepository; import org.opennms.features.reporting.sdo.RemoteReportSDO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private final String m_authorizationHeader;
37,526
} catch (Exception e) { logger.error("Error requesting engine by id. Error message: '{}' URI was: '{}'", e.getMessage(), m_webResource.getURI()); </BUG> e.printStackTrace(); } <BUG>logger.debug("getEngine for id / result: '{}' URI was: '{}' ", reportId + " / " + result, m_webResource.getURI()); </BUG> } return result; ...
logger.error("Error requesting report service by report id. Error message: '{}' URI was: '{}'", e.getMessage(), target.getUri()); logger.debug("getReportService for id / result: '{}' URI was: '{}' ", reportId + " / " + result, target.getUri());
37,527
EasyMock.expect(m_mockRemoteRepositoryConfigDao.getRepositoryManagementURL("repositoryId")).andReturn("MockedDaoManagementUrl"); EasyMock.expect(m_mockRemoteRepositoryConfigDao.getRepositoryName("repositoryId")).andReturn("MockedDaoRepositoryName"); EasyMock.replay(m_mockRemoteRepositoryConfigDao); m_globalReportReposi...
@Ignore public void addReportRepositoryTest() {
37,528
DESC { @Override public String toString() { return "desc"; } <BUG>}; private static final SortOrder PROTOTYPE = ASC; </BUG> @Override public SortOrder readFrom(StreamInput in) throws IOException {
public static final SortOrder DEFAULT = DESC; private static final SortOrder PROTOTYPE = DEFAULT;
37,529
GeoDistance geoDistance = GeoDistance.DEFAULT; boolean reverse = false; MultiValueMode sortMode = null; NestedInnerQueryParseSupport nestedHelper = null; final boolean indexCreatedBeforeV2_0 = context.indexShard().getIndexSettings().getIndexVersionCreated().before(Version.V_2_0_0); <BUG>boolean coerce = GeoDistanceSort...
boolean coerce = false; boolean ignoreMalformed = false; XContentParser.Token token;
37,530
String currentName = parser.currentName(); while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) { if (token == XContentParser.Token.FIELD_NAME) { currentName = parser.currentName(); } else if (token == XContentParser.Token.START_ARRAY) { <BUG>GeoDistanceSortBuilder.parseGeoPoints(parser, geoPoints); ...
fieldName = currentName;
37,531
if (temp == MultiValueMode.SUM) { throw new IllegalArgumentException("sort_mode [sum] isn't supported for sorting by geo distance"); }</BUG> this.sortMode = sortMode; return this; <BUG>} public String sortMode() { return this.sortMode;</BUG> } public GeoDistanceSortBuilder setNestedFilter(QueryBuilder nestedFilter) {
@Override public GeoDistanceSortBuilder order(SortOrder order) { this.order = order; @Override public SortBuilder missing(Object missing) { public GeoDistanceSortBuilder sortMode(String sortMode) {
37,532
builder.field("unit", unit); builder.field("distance_type", geoDistance.name().toLowerCase(Locale.ROOT)); if (order == SortOrder.DESC) {</BUG> builder.field("reverse", true); <BUG>} else { builder.field("reverse", false);</BUG> } if (sortMode != null) { builder.field("mode", sortMode); }
if (geoDistance != null) { if (order == SortOrder.DESC) {
37,533
return r; } private static boolean partialstmt_0(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "partialstmt_0")) return false; boolean r; <BUG>Marker m = enter_section_(b); r = partialstmt_0_0(b, l + 1); r = r && consumeToken(b, LET); r = r && decls(b, l + 1);</BUG> exit_section_(b, m, null, r);
private static boolean aexp_0(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "aexp_0")) return false; r = consumeToken(b, PARENSPLICE); r = r && exp(b, l + 1); r = r && i(b, l + 1); r = r && consumeToken(b, RPAREN);
37,534
import org.gedcomx.common.ResourceReference; import org.gedcomx.common.URI;</BUG> import org.gedcomx.conclusion.Relationship; import org.gedcomx.conversion.GedcomxConversionResult; <BUG>import org.gedcomx.contributor.Address; import org.gedcomx.contributor.Agent;</BUG> import org.gedcomx.source.CitationField; import or...
import org.gedcomx.common.TextValue; import org.gedcomx.common.URI;
37,535
try { boolean sourceDescriptionHasData = false; boolean sourceReferenceHasData = false; SourceDescription gedxSourceDescription = new SourceDescription(); org.gedcomx.source.SourceCitation citation = new org.gedcomx.source.SourceCitation(); <BUG>citation.setCitationTemplate(new ResourceReference(URI.create("http://gedc...
citation.setCitationTemplate(new ResourceReference(URI.create("gedcom5:citation-template")));
37,536
citation.setFields(new ArrayList<CitationField>()); citation.setValue(""); if (dqSource.getRef() != null) { gedxSourceDescription.setId(dqSource.getRef() + "-" + Long.toHexString(SequentialIdentifierGenerator.getNextId())); SourceReference componentOf = new SourceReference(); <BUG>componentOf.setSourceDescriptionURI(UR...
componentOf.setDescriptionRef(URI.create(CommonMapper.getSourceDescriptionReference(dqSource.getRef())));
37,537
citation.getFields().add(field); citation.setValue(citation.getValue() + (citation.getValue().length() > 0 ? ", " + dqSource.getDate() : dqSource.getDate())); } if (dqSource.getPage() != null) { CitationField field = new CitationField(); <BUG>field.setName(URI.create("http://gedcomx.org/gedcom5-conversion-v1-SOUR-mappi...
field.setName(URI.create("gedcom5:citation-template/page")); field.setValue(dqSource.getPage());
37,538
if (dqSource.getText() != null) { logger.warn(ConversionContext.getContext(), "GEDCOM X does not currently support text extracted from a source."); } ConfidenceLevel gedxConfidenceLevel = toConfidenceLevel(dqSource.getQuality()); if (gedxConfidenceLevel != null) { <BUG>Attribution attribution = new Attribution(); attri...
[DELETED]
37,539
int cntMedia = dqSource.getMedia().size() + dqSource.getMediaRefs().size(); if (cntMedia > 0) { logger.warn(ConversionContext.getContext(), "Did not process {} media items or references to media items.", cntMedia); } if (sourceDescriptionHasData) { <BUG>gedxSourceDescription.setCitation(citation); result.addSourceDesc...
gedxSourceDescription.setCitations(Arrays.asList(citation)); result.addSourceDescription(gedxSourceDescription); sourceReferenceHasData = true;
37,540
relationship.setPerson2(toReference(personId2)); return relationship; } public static ResourceReference toReference(String gedxPersonId) { ResourceReference reference = new ResourceReference(); <BUG>reference.setResource( new URI(getPersonEntryName(gedxPersonId))); </BUG> return reference; } public static boolean inCan...
reference.setResource( new URI(getPersonReference(gedxPersonId)));
37,541
final Pattern pattern = Pattern.compile("^\\+[\\d \\.\\(\\)\\-/]+"); return pattern.matcher(telephoneNumber).matches(); } public static void populateAgent(Agent agent, String id, String name, org.folg.gedcom.model.Address address, String phone, String fax, String email, String www) { agent.setId(id); <BUG>agent.setName...
agent.setNames(Arrays.asList(new TextValue(name))); if(address != null) {
37,542
package com.intellij.openapi.vcs.actions; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.colors.ColorKey; import com.intellij.openapi.util.Couple; <BUG>import com.intellij.openapi.vcs.annotate.*; import com.intellij.util.Consumer;</BUG> import java.awt.*; import java.util.Map; class Merge...
import com.intellij.openapi.vcs.history.VcsRevisionNumber; import com.intellij.util.Consumer;
37,543
private boolean myTurnedOn; MergeSourceAvailableMarkerGutter(FileAnnotation annotation, Editor editor, LineAnnotationAspect aspect, TextAnnotationPresentation highlighting, <BUG>Couple<Map<String, Color>> colorScheme) { </BUG> super(annotation, editor, aspect, highlighting, colorScheme); } @Override
Couple<Map<VcsRevisionNumber, Color>> colorScheme) {
37,544
package com.intellij.openapi.vcs.actions; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.util.Couple; <BUG>import com.intellij.openapi.vcs.annotate.FileAnnotation; import java.awt.*;</BUG> import java.util.Map; public class ExtraFieldGutter exte...
import com.intellij.openapi.vcs.history.VcsRevisionNumber; import java.awt.*;
37,545
public class ExtraFieldGutter extends AnnotationFieldGutter { private final AnnotateActionGroup myActionGroup; public ExtraFieldGutter(FileAnnotation fileAnnotation, Editor editor, AnnotationPresentation presentation, <BUG>Couple<Map<String, Color>> bgColorMap, AnnotateActionGroup actionGroup) { </BUG> super(fileAnnot...
Couple<Map<VcsRevisionNumber, Color>> bgColorMap, AnnotateActionGroup actionGroup) {
37,546
import com.intellij.openapi.vcs.history.VcsRevisionNumber; import org.jetbrains.annotations.NotNull; import org.zmlx.hg4idea.util.HgUtil; import java.util.Collections; import java.util.List; <BUG>public class HgRevisionNumber implements VcsRevisionNumber { @NotNull private final String revision;</BUG> @NotNull private ...
private static final int SHORT_HASH_SIZE = 12; @NotNull private final String revision;
37,547
import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.vcs.*; import com.intellij.openapi.vcs.annotate.*; import com.intellij.openapi.vcs.changes.BackgroundFromStartOption; import com.intellij.openapi.vcs.changes.VcsAnnotationLocalChangesListener; <BUG>import com.intellij.openapi.vcs.history.Vc...
import com.intellij.openapi.vcs.history.VcsRevisionNumber; import com.intellij.openapi.vcs.impl.BackgroundableActionEnabledHandler;
37,548
additionalActions.add(new ShowDiffFromAnnotation(getUpToDateLineNumber, fileAnnotation, vcs, file)); } additionalActions.add(new CopyRevisionNumberFromAnnotateAction(getUpToDateLineNumber, fileAnnotation)); final AnnotationPresentation presentation = new AnnotationPresentation(fileAnnotation, switcher, editorGutter, <B...
final Couple<Map<VcsRevisionNumber, Color>> bgColorMap = final Map<String, Integer> historyIds = Registry.is("vcs.show.history.numbers") ? computeLineNumbers(fileAnnotation) : null;
37,549
class HighlightedAdditionalColumn extends AnnotationFieldGutter { HighlightedAdditionalColumn(FileAnnotation annotation, Editor editor, LineAnnotationAspect aspect, TextAnnotationPresentation presentation, <BUG>Couple<Map<String, Color>> colorScheme) { </BUG> super(annotation, editor, aspect, presentation, colorScheme)...
Couple<Map<VcsRevisionNumber, Color>> colorScheme) {
37,550
protected final FileAnnotation myAnnotation; private final Editor myEditor; protected final LineAnnotationAspect myAspect; private final TextAnnotationPresentation myPresentation; private final boolean myIsGutterAction; <BUG>private Couple<Map<String, Color>> myColorScheme; </BUG> AnnotationFieldGutter(FileAnnotation a...
private Couple<Map<VcsRevisionNumber, Color>> myColorScheme;
37,551
</BUG> AnnotationFieldGutter(FileAnnotation annotation, Editor editor, LineAnnotationAspect aspect, final TextAnnotationPresentation presentation, <BUG>Couple<Map<String, Color>> colorScheme) { </BUG> myAnnotation = annotation; myEditor = editor; myAspect = aspect;
protected final FileAnnotation myAnnotation; private final Editor myEditor; protected final LineAnnotationAspect myAspect; private final TextAnnotationPresentation myPresentation; private final boolean myIsGutterAction; private Couple<Map<VcsRevisionNumber, Color>> myColorScheme; Couple<Map<VcsRevisionNumber, Color>> c...
37,552
class HistoryIdColumn extends AnnotationFieldGutter { private final Map<String, Integer> myHistoryIds; HistoryIdColumn(FileAnnotation annotation, final Editor editor, final TextAnnotationPresentation presentation, <BUG>Couple<Map<String, Color>> colorScheme, </BUG> Map<String, Integer> ids) { super(annotation, editor, ...
Couple<Map<VcsRevisionNumber, Color>> colorScheme,
37,553
import com.intellij.openapi.util.Couple; import com.intellij.openapi.vcs.VcsBundle; import com.intellij.openapi.vcs.annotate.AnnotationSource; import com.intellij.openapi.vcs.annotate.FileAnnotation; import com.intellij.openapi.vcs.annotate.LineAnnotationAspect; <BUG>import com.intellij.openapi.vcs.annotate.TextAnnotat...
import com.intellij.openapi.vcs.history.VcsRevisionNumber; import com.intellij.util.Consumer;
37,554
private boolean myTurnedOn; CurrentRevisionAnnotationFieldGutter(FileAnnotation annotation, Editor editor, LineAnnotationAspect aspect, TextAnnotationPresentation highlighting, <BUG>Couple<Map<String, Color>> colorScheme) { </BUG> super(annotation, editor, aspect, highlighting, colorScheme); } @Override
Couple<Map<VcsRevisionNumber, Color>> colorScheme) {
37,555
assertTrue(state[0].hasChildNode("bar")); } @Test public void crossClusterCheckpointNewClusterNode() throws Exception { DocumentStore store = new MemoryDocumentStore(); <BUG>DocumentNodeStore ns1 = builderProvider.newBuilder() </BUG> .setDocumentStore(store).setAsyncDelay(0).getNodeStore(); NodeBuilder b1 = ns1.getRoot...
DocumentNodeStore ns1 = builderProvider.newBuilder().setClusterId(1)
37,556
String checkpoint = ns1.checkpoint(Long.MAX_VALUE); b1 = ns1.getRoot().builder(); b1.child("bar"); ns1.merge(b1, EmptyHook.INSTANCE, CommitInfo.EMPTY); ns1.runBackgroundOperations(); <BUG>DocumentNodeStore ns2 = builderProvider.newBuilder() </BUG> .setDocumentStore(store).setAsyncDelay(0).getNodeStore(); NodeBuilder b2...
DocumentNodeStore ns2 = builderProvider.newBuilder().setClusterId(2)
37,557
assertFalse(root.hasChildNode("baz")); } @Test public void crossClusterReadOldCheckpoint() throws Exception { DocumentStore store = new MemoryDocumentStore(); <BUG>DocumentNodeStore ns1 = builderProvider.newBuilder() </BUG> .setDocumentStore(store).setAsyncDelay(0).getNodeStore(); NodeBuilder b1 = ns1.getRoot().builder...
DocumentNodeStore ns1 = builderProvider.newBuilder().setClusterId(1)
37,558
long expires = Long.MAX_VALUE; String data = "{\"expires\":\"" + expires + "\"}"; UpdateOp update = new UpdateOp("checkpoint", false); update.setMapEntry("data", headRev, data); store.createOrUpdate(Collection.SETTINGS, update); <BUG>DocumentNodeStore ns2 = builderProvider.newBuilder() </BUG> .setDocumentStore(store).s...
DocumentNodeStore ns2 = builderProvider.newBuilder().setClusterId(2)
37,559
package eu.optique.api.mapping; import java.util.List; <BUG>public interface PredicateObjectMap extends ManageResource, SerializeR2RML { </BUG> public void addPredicateMap(PredicateMap pm); public void addObjectMap(ObjectMap om); public void addRefObjectMap(RefObjectMap rom);
public interface PredicateObjectMap extends R2RMLClass, SerializeR2RML {
37,560
package eu.optique.api.mapping; import java.util.List; <BUG>public interface RefObjectMap extends SerializeR2RML, ManageResource { </BUG> public void setParentMap(TriplesMap tm); public void setParentLogicalTable(LogicalTable lt); public void setChildLogicalTable(LogicalTable lt);
public interface RefObjectMap extends SerializeR2RML, R2RMLClass {
37,561
res = (BlankNodeOrIRI) r; </BUG> } @Override <BUG>public BlankNodeOrIRI getResource(){ </BUG> return res; } @Override public int hashCode() {
stmtSet.add(lc.getRDF().createTriple(res, lc.getRDF().createIRI(R2RMLVocabulary.PROP_PARENT), lc.getRDF().createLiteral(parent))); return stmtSet; public void setNode(BlankNodeOrIRI node) { res = (BlankNodeOrIRI) node; public BlankNodeOrIRI getNode(){
37,562
package eu.optique.api.mapping.impl; import eu.optique.api.mapping.LibConfiguration; import eu.optique.api.mapping.LogicalTable; import eu.optique.api.mapping.SerializeR2RML; import org.apache.commons.rdf.api.BlankNodeOrIRI; <BUG>import org.apache.commons.rdf.api.RDFTerm; public abstract class LogicalTableImpl implemen...
public abstract class LogicalTableImpl extends R2RMLClassImpl implements LogicalTable, SerializeR2RML {
37,563
package rdf4jTest; import java.util.Set; import eu.optique.api.mapping.impl.RDF4JR2RMLMappingManager; <BUG>import eu.optique.api.mapping.impl.RDF4JR2RMLMappingManagerFactory; import org.apache.commons.rdf.api.Triple; import org.apache.commons.rdf.rdf4j.RDF4J; import org.junit.Assert;</BUG> import org.junit.Test;
import org.apache.commons.rdf.api.BlankNodeOrIRI; import org.eclipse.rdf4j.model.IRI; import org.junit.Assert;
37,564
@Override public String toString() { return "ObjectMapImpl [langTag=" + langTag + ", dataType=" + dataType + ", type=" + type + ", termtype=" + termtype + ", template=" + template + ", constVal=" + constVal + ", columnName=" <BUG>+ columnName + ", inverseExp=" + inverseExp + ", res=" + res </BUG> + "]"; } }
public void removeLanguageTag() { langTag = null;
37,565
package eu.optique.api.mapping; <BUG>public interface Join extends SerializeR2RML, ManageResource { </BUG> public void setChild(String columnName); public void setParent(String columnName); public String getChild();
public interface Join extends SerializeR2RML, R2RMLClass {
37,566
} @Override public Set<Triple> serialize() { Set<Triple> stmtSet = new HashSet<>(); stmtSet.addAll(super.serialize()); <BUG>stmtSet.add(lc.getRDF().createTriple(res, lc.getRDF().createIRI("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), lc.getRDF().createIRI(R2RMLVocabulary.TYPE_GRAPH_MAP))); </BUG> return stmtSet; ...
public GraphMapImpl(LibConfiguration lc, TermMapType termMapType, String columnOrConst) { super(lc, termMapType, columnOrConst); stmtSet.add(lc.getRDF().createTriple(getNode(), lc.getRDF().createIRI("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), lc.getRDF().createIRI(R2RMLVocabulary.TYPE_GRAPH_MAP)));
37,567
package eu.optique.api.mapping; import java.util.Collection; import java.util.List; <BUG>public interface TriplesMap extends SerializeR2RML, ManageResource { </BUG> public void setLogicalTable(LogicalTable lt); public void setSubjectMap(SubjectMap sm); public void addPredicateObjectMap(PredicateObjectMap pom);
public interface TriplesMap extends SerializeR2RML, R2RMLClass {
37,568
mvLeftX = mv[0]; mvLeftY = mv[1]; CAVLCWriter.writeSE(out, mv[0] - mvpx); // mvdx CAVLCWriter.writeSE(out, mv[1] - mvpy); // mvdy Picture8Bit mbRef = Picture8Bit.create(16, 16, sps.chroma_format_idc); <BUG>Picture mb = Picture.create(16, 16, sps.chroma_format_idc); interpolator.getBlockLuma(ref, mbRef, 0, (mbX << 6) + ...
int[][] mb = new int[][] {new int[256], new int[256 >> (cw + ch)], new int[256 >> (cw + ch)]}; interpolator.getBlockLuma(ref, mbRef, 0, (mbX << 6) + mv[0], (mbY << 6) + mv[1], 16, 16);
37,569
public void transcode(Cmd cmd) throws IOException { FileChannelWrapper sink = null; try { sink = NIOUtils.writableChannel(tildeExpand(cmd.getArg(1))); VP8Encoder encoder = VP8Encoder.createVP8Encoder(10); // qp <BUG>RgbToYuv420p transform = new RgbToYuv420p(0, 0); MKVMuxer muxer = new MKVMuxer();</BUG> MKVMuxerTrack vi...
Transform8Bit transform = new RgbToYuv420j8Bit(); MKVMuxer muxer = new MKVMuxer();
37,570
transform.transform(AWTUtil.fromBufferedImageRGB(rgb), yuv); </BUG> ByteBuffer buf = ByteBuffer.allocate(rgb.getWidth() * rgb.getHeight() * 3); <BUG>ByteBuffer ff = encoder.encodeFrame(yuv, buf); </BUG> videoTrack.addSampleEntry(ff, i - 1); } if (i == 1) { System.out.println("Image sequence not found");
if (!nextImg.exists()) continue; BufferedImage rgb = ImageIO.read(nextImg); if (videoTrack == null) videoTrack = muxer.createVideoTrack(new Size(rgb.getWidth(), rgb.getHeight()), "V_VP8"); Picture8Bit yuv = Picture8Bit.create(rgb.getWidth(), rgb.getHeight(), ColorSpace.YUV420); transform.transform(AWTUtil.fromBufferedI...
37,571
SeekableByteChannel source = null; try { sink = writableChannel(tildeExpand(cmd.getArg(1))); source = readableChannel(tildeExpand(cmd.getArg(0))); MP4Demuxer demux = new MP4Demuxer(source); <BUG>Transform transform = new Yuv422pToYuv420p(0, 0); </BUG> VP8Encoder encoder = VP8Encoder.createVP8Encoder(10); // qp IVFMuxer...
Transform8Bit transform = new Yuv422pToYuv420p8Bit();
37,572
</BUG> VP8Encoder encoder = VP8Encoder.createVP8Encoder(10); // qp IVFMuxer muxer = null; AbstractMP4DemuxerTrack inTrack = demux.getVideoTrack(); VideoSampleEntry ine = (VideoSampleEntry) inTrack.getSampleEntries()[0]; <BUG>Picture target1 = Picture.create(1920, 1088, ColorSpace.YUV422); Picture target2 = null; </BUG...
SeekableByteChannel source = null; try { sink = writableChannel(tildeExpand(cmd.getArg(1))); source = readableChannel(tildeExpand(cmd.getArg(0))); MP4Demuxer demux = new MP4Demuxer(source); Transform8Bit transform = new Yuv422pToYuv420p8Bit(); Picture8Bit target1 = Picture8Bit.create(1920, 1088, ColorSpace.YUV422); Pic...
37,573
SeekableByteChannel source = null; try { sink = writableChannel(tildeExpand(cmd.getArg(1))); source = readableChannel(tildeExpand(cmd.getArg(0))); MP4Demuxer demux = new MP4Demuxer(source); <BUG>Transform transform = new Yuv422pToYuv420p(0, 0); </BUG> VP8Encoder encoder = VP8Encoder.createVP8Encoder(10); // qp MKVMuxer...
Transform8Bit transform = new Yuv422pToYuv420p8Bit();
37,574
VP8Encoder encoder = VP8Encoder.createVP8Encoder(10); // qp MKVMuxer muxer = new MKVMuxer(); MKVMuxerTrack videoTrack = null; AbstractMP4DemuxerTrack inTrack = demux.getVideoTrack(); VideoSampleEntry ine = (VideoSampleEntry) inTrack.getSampleEntries()[0]; <BUG>Picture target1 = Picture.create(1920, 1088, ColorSpace.YUV...
Picture8Bit target1 = Picture8Bit.create(1920, 1088, ColorSpace.YUV422); Picture8Bit target2 = null;
37,575
</BUG> if (bi == null) bi = new BufferedImage(pic.getWidth(), pic.getHeight(), BufferedImage.TYPE_3BYTE_BGR); if (rgb == null) <BUG>rgb = Picture.create(pic.getWidth(), pic.getHeight(), RGB); transform.transform(pic, rgb); AWTUtil.toBufferedImage(rgb, bi); </BUG> ImageIO.write(bi, "png", new File(format(cmd.getArg(1),...
decoder.decode(inFrame.getData()); } catch (AssertionError ae) { ae.printStackTrace(System.err); continue; } Picture8Bit pic = decoder.getPicture8Bit(); rgb = Picture8Bit.create(pic.getWidth(), pic.getHeight(), RGB); rgbToBgr.transform(rgb, rgb); AWTUtil.toBufferedImage8Bit(rgb, bi);
37,576
FileChannelWrapper sink = null; try { sink = new FileChannelWrapper(fos.getChannel()); MKVMuxer muxer = new MKVMuxer(); H264Encoder encoder = H264Encoder.createH264Encoder(); <BUG>RgbToYuv420p transform = new RgbToYuv420p(0, 0); </BUG> MKVMuxerTrack videoTrack = null; int i; for (i = 1;; i++) {
RgbToYuv420p8Bit transform = new RgbToYuv420p8Bit();
37,577
transform.transform(AWTUtil.fromBufferedImageRGB(rgb), yuv); </BUG> ByteBuffer buf = ByteBuffer.allocate(rgb.getWidth() * rgb.getHeight() * 3); <BUG>ByteBuffer ff = encoder.encodeFrame(yuv, buf); </BUG> videoTrack.addSampleEntry(ff, i); } if (i == 1) { System.out.println("Image sequence not found");
BufferedImage rgb = ImageIO.read(nextImg); if (videoTrack == null) { videoTrack = muxer.createVideoTrack(new Size(rgb.getWidth(), rgb.getHeight()), "V_MPEG4/ISO/AVC"); Picture8Bit yuv = Picture8Bit.create(rgb.getWidth(), rgb.getHeight(), ColorSpace.YUV420); transform.transform(AWTUtil.fromBufferedImageRGB8Bit(rgb), yuv...
37,578
FileInputStream inputStream = new FileInputStream(file); LinkedList<Packet> presentationStack = new LinkedList<Packet>(); try { MKVDemuxer demux = MKVDemuxer.getDemuxer(new FileChannelWrapper(inputStream.getChannel())); H264Decoder decoder = new H264Decoder(); <BUG>Transform transform = new Yuv420pToRgb(0, 0); Demuxer...
Transform8Bit transform = new Yuv420pToRgb8Bit(); RgbToBgr8Bit rgbToBgr = new RgbToBgr8Bit(); Picture8Bit rgb = Picture8Bit.create(demux.getPictureWidth(), demux.getPictureHeight(), ColorSpace.RGB);
37,579
} else gopSize++; if (bi == null) bi = new BufferedImage(pic.getWidth(), pic.getHeight(), BufferedImage.TYPE_3BYTE_BGR); if (rgb == null) <BUG>rgb = Picture.create(pic.getWidth(), pic.getHeight(), RGB); transform.transform(pic.toPicture(8), rgb); AWTUtil.toBufferedImage(rgb, bi); </BUG> int framePresentationIndex = (p...
rgb = Picture8Bit.create(pic.getWidth(), pic.getHeight(), RGB); transform.transform(pic, rgb); rgbToBgr.transform(rgb, rgb); AWTUtil.toBufferedImage8Bit(rgb, bi);
37,580
H264Encoder encoder = new H264Encoder(rc); encoder.setKeyInterval(25); AbstractMP4DemuxerTrack inTrack = demux.getVideoTrack(); FramesMP4MuxerTrack outTrack = muxer.addTrack(TrackType.VIDEO, (int) inTrack.getTimescale()); VideoSampleEntry ine = (VideoSampleEntry) inTrack.getSampleEntries()[0]; <BUG>Picture target1 = Pi...
Picture8Bit target1 = Picture8Bit.create(1920, 1088, ColorSpace.YUV422); Picture8Bit target2 = null;
37,581
FileOutputStream fos = null; try { fos = new FileOutputStream(new File(cmd.getArg(1))); sink = fos.getChannel(); H264Encoder encoder = H264Encoder.createH264Encoder(); <BUG>RgbToYuv420p transform = new RgbToYuv420p(0, 0); </BUG> int i; for (i = 0; i < cmd.getIntegerFlagD("maxFrames", Integer.MAX_VALUE); i++) { File nex...
RgbToYuv420p8Bit transform = new RgbToYuv420p8Bit();
37,582
transform.transform(AWTUtil.fromBufferedImageRGB(rgb), yuv); </BUG> ByteBuffer buf = ByteBuffer.allocate(rgb.getWidth() * rgb.getHeight() * 3); <BUG>ByteBuffer ff = encoder.encodeFrame(yuv, buf); </BUG> sink.write(ff); } if (i == 1) { System.out.println("Image sequence not found");
for (i = 0; i < cmd.getIntegerFlagD("maxFrames", Integer.MAX_VALUE); i++) { File nextImg = new File(String.format(cmd.getArg(0), i)); if (!nextImg.exists()) break; BufferedImage rgb = ImageIO.read(nextImg); Picture8Bit yuv = Picture8Bit.create(rgb.getWidth(), rgb.getHeight(), encoder.getSupportedColorSpaces()[0]); tran...
37,583
FramesMP4DemuxerTrack videoTrack = (FramesMP4DemuxerTrack) rawDemuxer.getVideoTrack(); if (videoTrack == null) { System.out.println("Video track not found"); return; } <BUG>Yuv422pToRgb transform = new Yuv422pToRgb(0, 0); ProresDecoder decoder;</BUG> Integer downscale = cmd.getIntegerFlag(FLAG_DOWNSCALE); if (downscal...
Yuv422pToRgb8Bit transform = new Yuv422pToRgb8Bit(); RgbToBgr8Bit rgbToBgr = new RgbToBgr8Bit(); ProresDecoder decoder;
37,584
</BUG> int i = 0; Packet pkt; while ((pkt = videoTrack.nextFrame()) != null) { <BUG>Picture buf = Picture.create(1920, 1088, ColorSpace.YUV420); Picture pic = decoder.decodeFrame(pkt.getData(), buf.getData()); </BUG> if (bi == null) bi = new BufferedImage(pic.getWidth(), pic.getHeight(), BufferedImage.TYPE_3BYTE_BGR);...
decoder = new ProresToThumb(); } else { throw new IllegalArgumentException("Unsupported downscale factor: " + downscale + "."); } BufferedImage bi = null; Picture8Bit rgb = null; Picture8Bit buf = Picture8Bit.create(1920, 1088, ColorSpace.YUV420); Picture8Bit pic = decoder.decodeFrame8Bit(pkt.getData(), buf.getData());...
37,585
SeekableByteChannel sink = null; try { sink = writableChannel(new File(cmd.getArg(1))); MP4Muxer muxer = MP4Muxer.createMP4Muxer(sink, Brand.MOV); ProresEncoder encoder = new ProresEncoder(profile, cmd.getBooleanFlagD(FLAG_INTERLACED, false)); <BUG>RgbToYuv422p transform = new RgbToYuv422p(0, 0); </BUG> FramesMP4MuxerT...
RgbToYuv422p8Bit transform = new RgbToYuv422p8Bit();
37,586
transform.transform(AWTUtil.fromBufferedImageRGB(rgb), yuv); </BUG> ByteBuffer buf = ByteBuffer.allocate(rgb.getWidth() * rgb.getHeight() * 3); <BUG>encoder.encodeFrame(yuv, buf); </BUG> videoTrack.addFrame( MP4Packet.createMP4Packet(buf, i * 1001, 24000, 1001, i, true, null, 0, i * 1001, 0)); } if (i == 1) {
if (videoTrack == null) { videoTrack = muxer.addVideoTrack(profile.fourcc, new Size(rgb.getWidth(), rgb.getHeight()), APPLE_PRO_RES_422, 24000); videoTrack.setTgtChunkDuration(HALF, SEC); Picture8Bit yuv = Picture8Bit.create(rgb.getWidth(), rgb.getHeight(), ColorSpace.YUV422); transform.transform(AWTUtil.fromBufferedIm...
37,587
import static org.jcodec.codecs.vp8.VP8Util.getDefaultCoefProbs; import static org.jcodec.codecs.vp8.VP8Util.getMacroblockCount; import static org.jcodec.codecs.vp8.VP8Util.keyFrameYModeProb; import static org.jcodec.codecs.vp8.VP8Util.keyFrameYModeTree; import static org.jcodec.codecs.vp8.VP8Util.vp8CoefUpdateProbs; <...
[DELETED]
37,588
import org.jcodec.codecs.vp8.Macroblock.Subblock; import org.jcodec.codecs.vp8.VP8Util.QuantizationParams; import org.jcodec.codecs.vp8.VP8Util.SubblockConstants; import org.jcodec.common.Assert; import org.jcodec.common.model.ColorSpace; <BUG>import org.jcodec.common.model.Picture; public class VP8Decoder {</BUG> pri...
import org.jcodec.common.model.Picture8Bit; import java.io.IOException; import java.nio.ByteBuffer; public class VP8Decoder {
37,589
int y = (mbRow << 4) + (lumaRow << 2) + lumaPRow; int x = (mbCol << 4) + (lumaCol << 2) + lumaPCol; if (x >= strideLuma || y >= luma.length / strideLuma) continue; int yy = mb.ySubblocks[lumaRow][lumaCol].val[lumaPRow * 4 + lumaPCol]; <BUG>luma[strideLuma * y + x] = yy; </BUG> } for (int chromaRow = 0; chromaRow < 2; c...
luma[strideLuma * y + x] = (byte)(yy - 128);
37,590
int x = (mbCol << 3) + (chromaCol << 2) + chromaPCol; if (x >= strideChroma || y >= cb.length / strideChroma) continue; int u = mb.uSubblocks[chromaRow][chromaCol].val[chromaPRow * 4 + chromaPCol]; int v = mb.vSubblocks[chromaRow][chromaCol].val[chromaPRow * 4 + chromaPCol]; <BUG>cb[strideChroma * y + x] = u; cr[strid...
cb[strideChroma * y + x] = (byte)(u - 128); cr[strideChroma * y + x] = (byte)(v - 128);
37,591
package org.jcodec.codecs.vpx; import static java.lang.System.arraycopy; import static org.jcodec.common.tools.MathUtil.clip; <BUG>import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Arrays;</BUG> import org.jcodec.codecs.common.biari.VPxBooleanEncoder; import org.jcodec.common.ArrayUtil;
[DELETED]
37,592
return new VP8Encoder(new NopRateControl(qp)); } public VP8Encoder(RateControl rc) { this.rc = rc; this.tmp = new int[16]; <BUG>} public ByteBuffer encodeFrame(Picture pic, ByteBuffer _buf) { </BUG> ByteBuffer out = _buf.duplicate(); int mbWidth = ((pic.getWidth() + 15) >> 4);
@Override public ByteBuffer encodeFrame8Bit(Picture8Bit pic, ByteBuffer _buf) {
37,593
int[] segmentQps = rc.getSegmentQps(); VPxBooleanEncoder boolEnc = new VPxBooleanEncoder(dataBuffer); int[] segmentMap = new int[mbWidth * mbHeight]; for (int mbY = 0, mbAddr = 0; mbY < mbHeight; mbY++) { <BUG>initValue(leftRow, 129); </BUG> for (int mbX = 0; mbX < mbWidth; mbX++, mbAddr++) { int before = boolEnc.posit...
initValue(leftRow, (byte)1);
37,594
out.put((byte) 0x01); out.put((byte) 0x2a); out.putShort((short) width); out.putShort((short) height); } <BUG>private void collectPredictors(Picture outMB, int mbX) { </BUG> arraycopy(outMB.getPlaneData(0), 240, topLine[0], mbX << 4, 16); arraycopy(outMB.getPlaneData(1), 56, topLine[1], mbX << 3, 8); arraycopy(outMB.ge...
private void collectPredictors(Picture8Bit outMB, int mbX) {
37,595
arraycopy(outMB.getPlaneData(2), 56, topLine[2], mbX << 3, 8); copyCol(outMB.getPlaneData(0), 15, 16, leftRow[0]); copyCol(outMB.getPlaneData(1), 7, 8, leftRow[1]); copyCol(outMB.getPlaneData(2), 7, 8, leftRow[2]); } <BUG>private void copyCol(int[] planeData, int off, int stride, int[] out) { </BUG> for (int i = 0; i <...
private void copyCol(byte[] planeData, int off, int stride, byte[] out) {
37,596
for (int i = 0; i < out.length; i++) { out[i] = planeData[off]; off += stride; } } <BUG>private void luma(Picture pic, int mbX, int mbY, VPxBooleanEncoder out, int qp, Picture outMB) { </BUG> int x = mbX << 4; int y = mbY << 4; int[][] ac = transform(pic, 0, qp, x, y);
private void luma(Picture8Bit pic, int mbX, int mbY, VPxBooleanEncoder out, int qp, Picture8Bit outMB) {
37,597
private int[] zigzag(int[] zz, int[] tmp2) { for (int i = 0; i < 16; i++) tmp2[i] = zz[VPXConst.zigzag[i]]; return tmp2; } <BUG>private void chroma(Picture pic, int mbX, int mbY, VPxBooleanEncoder boolEnc, int qp, Picture outMB) { </BUG> int x = mbX << 3; int y = mbY << 3; int chromaPred1 = chromaPredBlk(1, x, y);
private void chroma(Picture8Bit pic, int mbX, int mbY, VPxBooleanEncoder boolEnc, int qp, Picture8Bit outMB) {
37,598
restorePlaneChroma(ac1, qp); putChroma(outMB.getData()[1], 1, x, y, ac1, chromaPred1); restorePlaneChroma(ac2, qp); putChroma(outMB.getData()[2], 2, x, y, ac2, chromaPred2); } <BUG>private int[][] transformChroma(Picture pic, int comp, int qp, int x, int y, Picture outMB, int chromaPred) { </BUG> int[][] ac = new int[4...
private int[][] transformChroma(Picture8Bit pic, int comp, int qp, int x, int y, Picture8Bit outMB, int chromaPred) {
37,599
+ blkOffY, coeff, dcc); VPXDCT.fdct4x4(coeff); } return ac; } <BUG>private final void takeSubtract(int[] planeData, int planeWidth, int planeHeight, int x, int y, int[] coeff, int dc) { </BUG> if (x + 4 < planeWidth && y + 4 < planeHeight) takeSubtractSafe(planeData, planeWidth, planeHeight, x, y, coeff, dc); else
private final void takeSubtract(byte[] planeData, int planeWidth, int planeHeight, int x, int y, int[] coeff, int dc) {
37,600
if (x + 4 < planeWidth && y + 4 < planeHeight) takeSubtractSafe(planeData, planeWidth, planeHeight, x, y, coeff, dc); else takeSubtractUnsafe(planeData, planeWidth, planeHeight, x, y, coeff, dc); } <BUG>private final void takeSubtractSafe(int[] planeData, int planeWidth, int planeHeight, int x, int y, int[] coeff, </BU...
private final void takeSubtractSafe(byte[] planeData, int planeWidth, int planeHeight, int x, int y, int[] coeff,