ISO/IEC 14496-3, 1.6.2.1 AudioSpecificConfig
AudioSpecificConfig() {
audioObjectType = GetAudioObjectType();
samplingFrequencyIndex; // 4 bslbf
if (samplingFrequencyIndex == 0xf) {
samplingFrequency; // 24 uimsbf
}
#include <cassert> | |
#include <stop_token> | |
#include <utility> | |
#include <print> | |
// https://github.com/NVIDIA/stdexec/ | |
#include <stdexec/execution.hpp> | |
namespace exec = stdexec; | |
namespace std { | |
using exec::get_stop_token, exec::sync_wait; | |
} |
#include <coroutine> | |
#include <print> | |
// https://github.com/NVIDIA/stdexec/ | |
#include <stdexec/execution.hpp> | |
namespace ex = stdexec; | |
template<typename T> | |
class Lazy { | |
public: |
Y = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
BT.601 | BT.709 | BT.2020 | |
---|---|---|---|
a | 0.299 | 0.2126 | 0.2627 |
b | 0.587 | 0.7152 | 0.6780 |
#include <condition_variable> | |
#include <mutex> | |
#include <thread> | |
class fair_mutex { | |
std::mutex mtx_; | |
std::condition_variable cv_; | |
unsigned int next_, curr_; | |
public: |
#!/usr/bin/env python3 | |
import sys | |
import struct | |
if len(sys.argv) < 2: | |
print("Usage: aac_parer.py <target.aac>") | |
exit() | |
aacfile = open(sys.argv[1], 'rb') | |
frame_no = 1 |
/* | |
* C11 <threads.h> emulation library | |
* | |
* (C) Copyright yohhoy 2012. | |
* Distributed under the Boost Software License, Version 1.0. | |
* (See copy at http://www.boost.org/LICENSE_1_0.txt) | |
*/ | |
#ifndef EMULATED_THREADS_H_INCLUDED_ | |
#define EMULATED_THREADS_H_INCLUDED_ |
/* | |
* Read video frame with FFmpeg and convert to OpenCV image | |
* | |
* Copyright (c) 2016 yohhoy | |
*/ | |
#include <iostream> | |
#include <vector> | |
// FFmpeg | |
extern "C" { | |
#include <libavformat/avformat.h> |
https://www.ffmpeg.org/doxygen/trunk/dump_8c_source.html#l00454
st->avg_frame_rate
st->r_frame_rate
st->time_base
st->codec->time_base
Average framerate.
avformat_find_stream_info()
.avformat_write_header()
.#include <cassert> | |
#include <array> | |
#include <span> | |
#include <type_traits> | |
#if 0 | |
#include <mdspan> | |
#else | |
#include <https://raw.githubusercontent.com/kokkos/mdspan/single-header/mdspan.hpp> | |
#endif | |
using namespace std; |