MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / GetColorRGBA

Method GetColorRGBA

src/Color.cpp:58–66  ·  view source on GitHub ↗

Get RGBA values for a specific frame as an integer vector

Source from the content-addressed store, hash-verified

56
57// Get RGBA values for a specific frame as an integer vector
58std::vector<int> Color::GetColorRGBA(int64_t frame_number) {
59 std::vector<int> rgba;
60 rgba.push_back(red.GetInt(frame_number));
61 rgba.push_back(green.GetInt(frame_number));
62 rgba.push_back(blue.GetInt(frame_number));
63 rgba.push_back(alpha.GetInt(frame_number));
64
65 return rgba;
66}
67
68// Get the distance between 2 RGB pairs (alpha is ignored)
69long Color::GetDistance(long R1, long G1, long B1, long R2, long G2, long B2)

Callers 2

GetFrameMethod · 0.80
GetFrameMethod · 0.80

Calls 1

GetIntMethod · 0.80

Tested by

no test coverage detected