Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for disposal (0.27 sec)

  1. src/image/gif/writer_test.go

    	}
    
    	g1 := &GIF{
    		Image:    images,
    		Delay:    make([]int, len(images)),
    		Disposal: make([]byte, 1),
    	}
    	for i := range g1.Disposal {
    		g1.Disposal[i] = DisposalNone
    	}
    	if err := EncodeAll(io.Discard, g1); err == nil {
    		t.Error("expected error from mismatched disposal and image slice lengths")
    	}
    }
    
    func TestEncodeZeroGIF(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/image/gif/writer.go

    	}
    
    	e := encoder{g: *g}
    	// The GIF.Disposal, GIF.Config and GIF.BackgroundIndex fields were added
    	// in Go 1.5. Valid Go 1.4 code, such as when the Disposal field is omitted
    	// in a GIF struct literal, should still produce valid GIFs.
    	if e.g.Disposal != nil && len(e.g.Image) != len(e.g.Disposal) {
    		return errors.New("gif: mismatched image and disposal lengths")
    	}
    	if e.g.Config == (image.Config{}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. src/image/gif/reader.go

    	// Otherwise, the animation is looped LoopCount+1 times.
    	LoopCount int
    	// Disposal is the successive disposal methods, one per frame. For
    	// backwards compatibility, a nil Disposal is valid to pass to EncodeAll,
    	// and implies that each frame's disposal method is 0 (no disposal
    	// specified).
    	Disposal []byte
    	// Config is the global color table (palette), width and height. A nil or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. src/image/gif/reader_test.go

    	const frames = 3000
    	img := image.NewPaletted(image.Rectangle{Max: image.Point{1, 1}}, palette.WebSafe)
    	hugeGIF := &GIF{
    		Image:    make([]*image.Paletted, frames),
    		Delay:    make([]int, frames),
    		Disposal: make([]byte, frames),
    	}
    	for i := 0; i < frames; i++ {
    		hugeGIF.Image[i] = img
    		hugeGIF.Delay[i] = 60
    	}
    	buf := new(bytes.Buffer)
    	if err := EncodeAll(buf, hugeGIF); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt

            Disposer.newDisposable().let { disposable ->
                ParsedKotlinFiles(disposable.parseKotlinFiles(sourceRoots, compilationClasspath), disposable)
            }
    
        private
        fun <T : Any?> withParsedKotlinSource(sourceRoots: List<File>, block: (List<KtFile>) -> T) =
            Disposer.newDisposable().use {
                parseKotlinFiles(sourceRoots, emptyList()).let(block)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/misc/Disposable.java

     * <p>
     * S2コンテナの終了時に破棄しなければならないリソースがある場合は、 このインタフェースを実装したクラスを作成し、
     * {@link DisposableUtil}に登録します。
     * </p>
     *
     * @author koichik
     */
    public interface Disposable {
    
        /**
         * このオブジェクトが保持しているリソースを破棄します。
         *
         */
        void dispose();
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-barebone/tests/org/jetbrains/kotlin/analysis/api/impl/barebone/test/AbstractCompilerBasedTest.kt

        private var _disposable: Disposable? = null
        protected val disposable: Disposable get() = _disposable!!
    
        @BeforeEach
        fun initDisposable(testInfo: TestInfo) {
            _disposable = Disposer.newDisposable("disposable for ${testInfo.displayName}")
        }
    
        @AfterEach
        fun disposeDisposable() {
            _disposable?.let { Disposer.dispose(it) }
            _disposable = null
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Oct 24 10:30:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolve/extensions/KtResolveExtension.kt

     * creation of an analysis session, and disposed after the analysis session has been invalidated.
     *
     * [KaResolveExtension] implements the [Disposable] interface. The resolve extension can then act as a parent disposable, e.g. for a message
     * bus connection.
     *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/DisposableUtil.java

            assertArgumentNotNull("disposable", disposable);
            disposables.addFirst(disposable);
        }
    
        /**
         * 破棄可能なリソースを登録解除します。
         *
         * @param disposable
         *            破棄可能なリソース。{@literal null}であってはいけません
         */
        public static synchronized void remove(final Disposable disposable) {
            assertArgumentNotNull("disposable", disposable);
            disposables.remove(disposable);
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/KotlinCompiler.kt

    import org.jetbrains.kotlin.codegen.CompilationException
    import org.jetbrains.kotlin.com.intellij.openapi.Disposable
    import org.jetbrains.kotlin.com.intellij.openapi.project.Project
    import org.jetbrains.kotlin.com.intellij.openapi.util.Disposer.dispose
    import org.jetbrains.kotlin.com.intellij.openapi.util.Disposer.newDisposable
    import org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi
    import org.jetbrains.kotlin.config.AnalysisFlags
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 31 08:46:17 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top