Skip to content

Commit

Permalink
Add equality operators to AudioFrameWithData and DemixingInforParamData.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 632186079
  • Loading branch information
Googler authored and jwcullen committed May 14, 2024
1 parent 93282c0 commit d3d998d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iamf/cli/audio_frame_with_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
namespace iamf_tools {

struct AudioFrameWithData {
friend bool operator==(const AudioFrameWithData& lhs,
const AudioFrameWithData& rhs) = default;
AudioFrameObu obu;
int32_t start_timestamp; // Start time of this frame. Measured in ticks from
// the Global Timing Module.
Expand Down
2 changes: 2 additions & 0 deletions iamf/obu/demixing_info_param_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
namespace iamf_tools {

struct DownMixingParams {
friend bool operator==(const DownMixingParams& lhs,
const DownMixingParams& rhs) = default;
double alpha;
double beta;
double gamma;
Expand Down

0 comments on commit d3d998d

Please sign in to comment.