#include <vp8_parser.h>
|
static bool | IsKeyframe (const uint8_t *data, size_t data_size) |
|
Class to parse a vp8 bit stream. Implemented according to https://tools.ietf.org/html/rfc6386.
Definition at line 21 of file vp8_parser.h.
bool shaka::media::VP8Parser::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 179 of file vp8_parser.cc.
bool shaka::media::VP8Parser::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 100 of file vp8_parser.cc.
The documentation for this class was generated from the following files: