LEFT | RIGHT |
1 // Copyright 2011 The vp8-go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Package vp8 implements a vp8 image and video decoder. | 5 // Package vp8 implements a vp8 image and video decoder. |
6 // | 6 // |
7 // The VP8 specification is at: | 7 // The VP8 specification is at: |
8 // http://datatracker.ietf.org/doc/rfc6386/ | 8 // http://datatracker.ietf.org/doc/rfc6386/ |
9 package vp8 | 9 package vp8 |
10 | 10 |
11 // This file implements the top-level decoding algorithm. | 11 // This file implements the top-level decoding algorithm. |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 if d.fp.unexpectedEOF { | 347 if d.fp.unexpectedEOF { |
348 return nil, io.ErrUnexpectedEOF | 348 return nil, io.ErrUnexpectedEOF |
349 } | 349 } |
350 for i := 0; i < d.nOP; i++ { | 350 for i := 0; i < d.nOP; i++ { |
351 if d.op[i].unexpectedEOF { | 351 if d.op[i].unexpectedEOF { |
352 return nil, io.ErrUnexpectedEOF | 352 return nil, io.ErrUnexpectedEOF |
353 } | 353 } |
354 } | 354 } |
355 return d.img, nil | 355 return d.img, nil |
356 } | 356 } |
LEFT | RIGHT |