MythTV master
Namespaces | Functions
bytereader.h File Reference

This is in libmythtv because that is where the parsers, which are its main users, are. More...

#include <cstdint>
#include "mythtvexp.h"
Include dependency graph for bytereader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ByteReader
 These functions are rewritten copies from FFmpeg's libavcodec, where find_start_code() is prefixed with avpriv_ .
 

Functions

bool ByteReader::start_code_is_valid (uint32_t start_code)
 Test whether a start code found by find_start_code() is valid. More...
 
MTV_PUBLIC const uint8_t * ByteReader::find_start_code (const uint8_t *p, const uint8_t *end, uint32_t *start_code)
 Find the first start code in the buffer p. More...
 
MTV_PUBLIC const uint8_t * ByteReader::find_start_code_truncated (const uint8_t *p, const uint8_t *end, uint32_t *start_code)
 By preserving the start_code value between subsequent calls, the caller can detect start codes across buffer boundaries. More...
 
uint32_t ByteReader::readBigEndianU32 (const uint8_t *x)
 
uint32_t ByteReader::readBigEndianU24 (const uint8_t *x)
 

Detailed Description

This is in libmythtv because that is where the parsers, which are its main users, are.

Definition in file bytereader.h.