Merged in fix-package-import-mod (pull request #215)

codec/h264: Fix package, import paths and remove go module stuff

Approved-by: kortschak <dan@kortschak.io>
This commit is contained in:
Saxon Milton 2019-07-19 10:48:14 +00:00
commit 269b607606
25 changed files with 28 additions and 40 deletions

View File

@ -1,8 +0,0 @@
module github.com/ausocean/h264decode
go 1.12
require (
github.com/icza/bitio v0.0.0-20180221120200-b25b30b42508
github.com/pkg/errors v0.8.1
)

View File

@ -1,4 +0,0 @@
github.com/icza/bitio v0.0.0-20180221120200-b25b30b42508 h1:2LdkN1icT8cEFyB95fUbPE0TmQL9ZOjUv9MNJ1kg3XE=
github.com/icza/bitio v0.0.0-20180221120200-b25b30b42508/go.mod h1:1+iKpsBoI5fsqBTrjxjM81vidVQcxXCmDrM9vc6EU2w=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

View File

@ -1,7 +1,7 @@
package h264 package h264dec
import ( import (
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -1,4 +1,4 @@
package h264 package h264dec
import "testing" import "testing"

View File

@ -1,4 +1,4 @@
package h264 package h264dec
// NALU types, as defined in table 7-1 in specifications. // NALU types, as defined in table 7-1 in specifications.
const ( const (

View File

@ -1,4 +1,4 @@
package h264 package h264dec
import ( import (
"errors" "errors"

View File

@ -8,7 +8,7 @@ DESCRIPTION
AUTHORS AUTHORS
Saxon Nelson-Milton <saxon@ausocean.org>, The Australian Ocean Laboratory (AusOcean) Saxon Nelson-Milton <saxon@ausocean.org>, The Australian Ocean Laboratory (AusOcean)
*/ */
package h264 package h264dec
import ( import (
"testing" "testing"

View File

@ -1,4 +1,4 @@
package h264 package h264dec
type MN struct { type MN struct {
M, N int M, N int

View File

@ -1,7 +1,7 @@
package h264 package h264dec
import ( import (
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -11,12 +11,12 @@ AUTHORS
mrmod <mcmoranbjr@gmail.com> mrmod <mcmoranbjr@gmail.com>
*/ */
package h264 package h264dec
import ( import (
"math" "math"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -9,13 +9,13 @@ AUTHOR
Saxon Nelson-Milton <saxon@ausocean.org>, The Australian Ocean Laboratory (AusOcean) Saxon Nelson-Milton <saxon@ausocean.org>, The Australian Ocean Laboratory (AusOcean)
*/ */
package h264 package h264dec
import ( import (
"bytes" "bytes"
"testing" "testing"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
) )
// TestReadUe checks that readUe correctly parses an Exp-Golomb-coded element // TestReadUe checks that readUe correctly parses an Exp-Golomb-coded element

View File

@ -1,9 +1,9 @@
package h264 package h264dec
import ( import (
"math" "math"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -1,4 +1,4 @@
package h264 package h264dec
import "errors" import "errors"

View File

@ -1,9 +1,9 @@
package h264 package h264dec
import ( import (
"fmt" "fmt"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
) )
const ( const (

View File

@ -1,11 +1,11 @@
package h264 package h264dec
import ( import (
"fmt" "fmt"
"io" "io"
"os" "os"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -1,4 +1,4 @@
package h264 package h264dec
import ( import (
// "github.com/nareix/joy4/av" // "github.com/nareix/joy4/av"
@ -10,7 +10,7 @@ import (
"os" "os"
"os/signal" "os/signal"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
) )
// InitialNALU indicates the start of a h264 packet // InitialNALU indicates the start of a h264 packet

View File

@ -1,11 +1,11 @@
package h264 package h264dec
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"math" "math"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -1,4 +1,4 @@
package h264 package h264dec
import "testing" import "testing"

View File

@ -1,11 +1,11 @@
package h264 package h264dec
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"strings" "strings"
"github.com/ausocean/h264decode/h264/bits" "bitbucket.org/ausocean/av/codec/h264/h264dec/bits"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@ -1,4 +1,4 @@
package h264 package h264dec
type StateTransx struct { type StateTransx struct {
TransIdxLPS, TransIdxMPS int TransIdxLPS, TransIdxMPS int