mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Add parser for OBU packets
This commit is contained in:
@@ -20,6 +20,8 @@ extern "C" {
|
||||
};
|
||||
#endif
|
||||
|
||||
#include "obu_parser.h"
|
||||
|
||||
#define SAVE_NV12_STREAM 0
|
||||
#define SAVE_H264_STREAM 1
|
||||
|
||||
@@ -340,6 +342,13 @@ int AomAv1Encoder::Encode(
|
||||
SET_ENCODER_PARAM_OR_RETURN_ERROR(AOME_GET_LAST_QUANTIZER, &qp);
|
||||
LOG_INFO("Encoded frame qp = {}", qp);
|
||||
|
||||
std::vector<Obu> obus = ParseObus(encoded_frame_, encoded_frame_size_);
|
||||
// LOG_ERROR("Obu size = [{}]", obus.size());
|
||||
// for (int i = 0; i < obus.size(); i++) {
|
||||
// LOG_ERROR("Obu size = {} [{} {}]", i, obus[i].size_,
|
||||
// obus[i].payload_size_);
|
||||
// }
|
||||
|
||||
// int consumed_size = 0;
|
||||
// int offset = 0;
|
||||
// int unit = 0;
|
||||
|
||||
Reference in New Issue
Block a user