Skip to content

Commit

Permalink
Merge pull request #54 from blackbird-hank/add-color-transfer-and-col…
Browse files Browse the repository at this point in the history
…or-primaries

Added reading of color_transfer & color_primaries props
  • Loading branch information
vansante authored Dec 11, 2024
2 parents 03ee62f + 4dbdcc4 commit c953b99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion probedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ type Stream struct {
Level int `json:"level,omitempty"`
ColorRange string `json:"color_range,omitempty"`
ColorSpace string `json:"color_space,omitempty"`
ColorTransfer string `json:"color_transfer,omitempty"`
ColorPrimaries string `json:"color_primaries,omitempty"`
SampleFmt string `json:"sample_fmt,omitempty"`
SampleRate string `json:"sample_rate,omitempty"`
Channels int `json:"channels,omitempty"`
Expand Down Expand Up @@ -122,7 +124,7 @@ func (c *Chapter) EndTime() time.Duration {
return time.Duration(c.EndTimeSeconds * float64(time.Second))
}

// Name returns the value of the "title" tag of the chapter
// Title returns the value of the "title" tag of the chapter
func (c *Chapter) Title() string {
title, _ := c.TagList.GetString("title")
return title
Expand Down

0 comments on commit c953b99

Please sign in to comment.