Skip to content

Commit

Permalink
provide constructor for use with emplace_back
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 22, 2024
1 parent 74bcca1 commit 88f5373
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libheif/color-conversion/colorconversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "pixelimage.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>


Expand Down Expand Up @@ -62,6 +63,8 @@ enum SpeedCosts

struct ColorStateWithCost
{
ColorStateWithCost(ColorState c, int s) : color_state(std::move(c)), speed_costs(s) {}

ColorState color_state;

int speed_costs;
Expand Down

0 comments on commit 88f5373

Please sign in to comment.