MCPcopy Create free account
hub / github.com/Tencent/libpag / GetFeatures

Function GetFeatures

src/codec/utils/WebpDecoder.cpp:515–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515static VP8StatusCode GetFeatures(const uint8_t* const data, size_t data_size,
516 WebPBitstreamFeatures* const features) {
517 if (features == nullptr || data == nullptr) {
518 return VP8_STATUS_INVALID_PARAM;
519 }
520 DefaultFeatures(features);
521
522 // Only parse enough of the data to retrieve the features.
523 return ParseHeadersInternal(data, data_size, &features->width, &features->height,
524 &features->has_alpha, &features->has_animation, &features->format,
525 nullptr);
526}
527
528int WebPGetInfo(const uint8_t* data, size_t data_size, int* width, int* height) {
529 WebPBitstreamFeatures features = {};

Callers 1

WebPGetInfoFunction · 0.85

Calls 2

DefaultFeaturesFunction · 0.85
ParseHeadersInternalFunction · 0.85

Tested by

no test coverage detected