|
Shaka Packager SDK
|
#include <h265_parser.h>
Public Types | |
| enum | Result { kOk , kInvalidStream , kUnsupportedStream , kEOStream } |
Public Member Functions | |
| Result | ParseSliceHeader (const Nalu &nalu, H265SliceHeader *slice_header) |
| Result | ParsePps (const Nalu &nalu, int *pps_id) |
| Result | ParseSps (const Nalu &nalu, int *sps_id) |
| const H265Pps * | GetPps (int pps_id) |
| const H265Sps * | GetSps (int sps_id) |
A class to parse H.265 streams. This is incomplete and skips many pieces. This will mostly parse PPS and SPS elements as well as fully parse a slice header.
Definition at line 293 of file h265_parser.h.
| enum shaka::media::H265Parser::Result |
Definition at line 295 of file h265_parser.h.
| shaka::media::H265Parser::H265Parser | ( | ) |
Definition at line 199 of file h265_parser.cc.
| shaka::media::H265Parser::~H265Parser | ( | ) |
Definition at line 200 of file h265_parser.cc.
| const H265Pps * shaka::media::H265Parser::GetPps | ( | int | pps_id | ) |
Definition at line 645 of file h265_parser.cc.
| const H265Sps * shaka::media::H265Parser::GetSps | ( | int | sps_id | ) |
Definition at line 649 of file h265_parser.cc.
| H265Parser::Result shaka::media::H265Parser::ParsePps | ( | const Nalu & | nalu, |
| int * | pps_id | ||
| ) |
Parses a PPS element. This object is owned and managed by this class. The unique ID of the parsed PPS is stored in |*pps_id| if kOk is returned.
Definition at line 420 of file h265_parser.cc.
| H265Parser::Result shaka::media::H265Parser::ParseSliceHeader | ( | const Nalu & | nalu, |
| H265SliceHeader * | slice_header | ||
| ) |
Parses a video slice header. If this returns kOk, then |*slice_header| will contain the parsed header; if it returns something else, the contents of |*slice_header| are undefined.
Definition at line 202 of file h265_parser.cc.
| H265Parser::Result shaka::media::H265Parser::ParseSps | ( | const Nalu & | nalu, |
| int * | sps_id | ||
| ) |
Parses a SPS element. This object is owned and managed by this class. The unique ID of the parsed SPS is stored in |*sps_id| if kOk is returned.
Definition at line 528 of file h265_parser.cc.