| 513 | } |
| 514 | |
| 515 | static 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 | |
| 528 | int WebPGetInfo(const uint8_t* data, size_t data_size, int* width, int* height) { |
| 529 | WebPBitstreamFeatures features = {}; |
no test coverage detected