MythTV
master
|
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <algorithm>
#include <cmath>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <linux/videodev2.h>
#include "captions/vbilut.h"
#include "vbi.h"
#include "vt.h"
Go to the source code of this file.
Macros | |
#define | BTTV_VBISIZE _IOR('v' , BASE_VIDIOCPRIVATE+8, int) |
Functions | |
static void | error (const char *str,...) |
static int | chk_parity (uint8_t *p, int n) |
static void | out_of_sync (struct vbi *vbi) |
static void | vbi_send (struct vbi *vbi, int type, int i1, int i2, int i3, void *p1) |
static void | vbi_send_page (struct vbi *vbi, struct raw_page *rvtp, int page) |
static void | pll_add (struct vbi *vbi, int n, int err) |
void | vbi_pll_reset (struct vbi *vbi, int fine_tune) |
static int | vt_line (struct vbi *vbi, unsigned char *p) |
static int | vbi_line (struct vbi *vbi, const unsigned char *p) |
void | vbi_handler (struct vbi *vbi, [[maybe_unused]] int fd) |
int | vbi_add_handler (struct vbi *vbi, vbic_handler handler, void *data) |
void | vbi_del_handler (struct vbi *vbi, vbic_handler handler, void *data) |
static int | set_decode_parms (struct vbi *vbi, struct v4l2_vbi_format *p) |
static int | setup_dev ([[maybe_unused]] struct vbi *vbi) |
struct vbi * | vbi_open (const char *vbi_dev_name, [[maybe_unused]] struct cache *ca, int fine_tune, int big_buf) |
void | vbi_close (struct vbi *vbi) |
struct vt_page * | vbi_query_page ([[maybe_unused]] struct vbi *vbi, [[maybe_unused]] int pgno, [[maybe_unused]] int subno) |
void | vbi_reset (struct vbi *vbi) |
Variables | |
static constexpr int | FAC = { 1<<16 } |
static unsigned char * | rawbuf = nullptr |
static int | rawbuf_size |
static constexpr int8_t | PLL_SAMPLES { 4 } |
static constexpr int8_t | PLL_ERROR { 4 } |
|
static |
Definition at line 37 of file vbi.cpp.
Referenced by MythVTBSurfaceInterop::Acquire(), MHIText::AddText(), HistogramAnalyzer::analyzeFrame(), TemplateMatcher::analyzeFrame(), TemplateFinder::analyzeFrame(), AudioConvertInternal::AudioConvertInternal(), avcodec_encode_audio(), nv_python_libs.common.common_api.Common::callCommandLine(), MythContextPrivate::ChooseBackend(), MythTerminal::Create(), ChannelScannerGUIScanPane::Create(), StandardSettingDialog::Create(), MythCodecContext::CreateDevice(), MHIBitmap::CreateFromMPEG(), MythInputDeviceHandler::customEvent(), MusicPlayer::customEvent(), AudioOutputUtil::DecodeAudio(), MHIDLA::DrawLineSub(), AudioOutputDigitalEncoder::Encode(), TemplateMatcher::finished(), ExternIO::Fork(), hardwareprofile.distros.mythtv_data.uuiddb._UuidDb::get_pub_uuid(), CardUtil::GetASIBufferSize(), CardUtil::GetASIDeviceNumber(), CardUtil::GetASIMode(), CardUtil::GetASINumBuffers(), MHIText::GetBounds(), MythAVFormatWriter::GetCodecTimeBase(), PGMConverter::getImage(), ChannelScannerCLI::HandleEvent(), ChannelScannerGUI::HandleEvent(), MythHTTPService::HTTPRequest(), GalleryThumbView::Import(), ChannelScannerCLI::InformUser(), ChannelScannerGUI::InformUser(), ChannelScannerWeb::InformUser(), AudioOutputDXPrivate::InitDirectSound(), MythHTTPS::InitSSLSocket(), XmlConfiguration::Load(), MythVideoProfile::LoadDB(), RecExtEspnDataSource::loadPage(), RecExtMlbDataSource::loadPage(), hardwareprofile.deleteProfile::main(), hardwareprofile.getLink::main(), hardwareprofile.sendProfile::main_request_new_public_uuid(), MHIContext::MHIContext(), MythVideoProfile::MythVideoProfile(), ASIStreamHandler::Open(), MythRAOPConnection::OpenAudioDevice(), AvFormatDecoder::OpenAVCodec(), AvFormatDecoder::OpenFile(), PaneError::PaneError(), pgm_read(), pgm_write(), hardwareprofile.sendProfile::present_and_require_confirmation(), ASIConfigurationGroup::probeCard(), MythUDPListener::Process(), UPNPSubscription::ProcessRequest(), AvFormatDecoder::ProcessVideoPacket(), MythContextPrivate::PromptForDatabaseParams(), RemoteFile::Read(), anonymous_namespace{HistogramAnalyzer.cpp}::readData(), anonymous_namespace{TemplateMatcher.cpp}::readMatches(), MetadataDownload::readNFO(), MythControls::ResolveConflict(), FillData::Run(), IPTVStreamHandler::run(), ScanMonitor::ScanErrored(), hardwareprofile.sendProfile::send_profile(), SendAppleEventToSystemProcess(), ZMServer::sendError(), SendMessage(), set_decode_parms(), CardUtil::SetASIMode(), OSD::SetRegions(), setup_dev(), setupTVs(), ShowNotification(), NetStream::slotFinished(), BackendSelection::TryDBfromURL(), HDHRStreamHandler::TunerGet(), HDHRStreamHandler::TunerSet(), TVRec::TuningFrequency(), MythContextPrivate::UPnPconnect(), vbi_open(), RemoteFile::Write(), MythAVFormatWriter::WriteAudioFrame(), NuppelVideoRecorder::WriteVideo(), and MythAVFormatWriter::WriteVideoFrame().
|
static |
|
static |
Definition at line 64 of file vbi.cpp.
Referenced by vbi_handler(), and vbi_open().
|
static |
Definition at line 77 of file vbi.cpp.
Referenced by vbi_query_page(), vbi_reset(), vbi_send_page(), and vt_line().
|
static |
Definition at line 123 of file vbi.cpp.
Referenced by vbi_line(), and vt_line().
void vbi_pll_reset | ( | struct vbi * | vbi, |
int | fine_tune | ||
) |
Definition at line 159 of file vbi.cpp.
Referenced by vbi_open().
|
static |
Definition at line 181 of file vbi.cpp.
Referenced by vbi_line().
|
static |
Definition at line 332 of file vbi.cpp.
Referenced by vbi_handler().
void vbi_handler | ( | struct vbi * | vbi, |
[[maybe_unused] ] int | fd | ||
) |
Definition at line 414 of file vbi.cpp.
Referenced by V4LRecorder::RunVBIDevice().
int vbi_add_handler | ( | struct vbi * | vbi, |
vbic_handler | handler, | ||
void * | data | ||
) |
Definition at line 455 of file vbi.cpp.
Referenced by V4LRecorder::OpenVBIDevice().
void vbi_del_handler | ( | struct vbi * | vbi, |
vbic_handler | handler, | ||
void * | data | ||
) |
Definition at line 471 of file vbi.cpp.
Referenced by V4LRecorder::CloseVBIDevice().
|
static |
Definition at line 490 of file vbi.cpp.
Referenced by setup_dev().
|
static |
Definition at line 544 of file vbi.cpp.
Referenced by vbi_open().
struct vbi* vbi_open | ( | const char * | vbi_dev_name, |
[[maybe_unused] ] struct cache * | ca, | ||
int | fine_tune, | ||
int | big_buf | ||
) |
Definition at line 588 of file vbi.cpp.
Referenced by V4LRecorder::OpenVBIDevice().
void vbi_close | ( | struct vbi * | vbi | ) |
Definition at line 642 of file vbi.cpp.
Referenced by V4LRecorder::CloseVBIDevice().
void vbi_reset | ( | struct vbi * | vbi | ) |
Definition at line 676 of file vbi.cpp.
Referenced by vbi_handler().
|
staticconstexpr |
Definition at line 25 of file vbi.cpp.
Referenced by set_decode_parms(), and vbi_line().
|
static |
Definition at line 27 of file vbi.cpp.
Referenced by setup_dev(), and vbi_handler().
|
static |
Definition at line 29 of file vbi.cpp.
Referenced by setup_dev().
|
staticconstexpr |