Class to parse a vp9 bit stream.
More...
#include <vp9_parser.h>
|
| static bool | IsKeyframe (const uint8_t *data, size_t data_size) |
| |
Class to parse a vp9 bit stream.
Definition at line 20 of file vp9_parser.h.
◆ VP9Parser()
| shaka::media::VP9Parser::VP9Parser |
( |
| ) |
|
◆ ~VP9Parser()
| shaka::media::VP9Parser::~VP9Parser |
( |
| ) |
|
|
override |
◆ IsKeyframe()
| bool shaka::media::VP9Parser::IsKeyframe |
( |
const uint8_t * |
data, |
|
|
size_t |
data_size |
|
) |
| |
|
static |
A convenient utility function to check whether the frame is a keyframe. Note that this function does not do a full parse of the frame header, so should be more efficient than Parse().
- Parameters
-
| data_size | Size of the sample in bytes. |
- Returns
- true if it is, false if it is not or if there is parsing error.
Definition at line 576 of file vp9_parser.cc.
◆ Parse()
| bool shaka::media::VP9Parser::Parse |
( |
const uint8_t * |
data, |
|
|
size_t |
data_size, |
|
|
std::vector< VPxFrameInfo > * |
vpx_frames |
|
) |
| |
|
overridevirtual |
Parse data with size data_size.
- Parameters
-
| data_size | Size of the sample in bytes. Note that it should be a full sample. |
| [out] | vpx_frames | points to the list of VPx frames for the current sample on success. Cannot be NULL. |
- Returns
- true on success, false otherwise.
Implements shaka::media::VPxParser.
Definition at line 459 of file vp9_parser.cc.
The documentation for this class was generated from the following files: