summaryrefslogtreecommitdiffstats
path: root/k9vamps/k9vamps.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:54 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:54 -0600
commitb8a4f26c42f6d41e8251b60357f1a6990c1e8ad8 (patch)
tree9beca7fe1a592f5f49be1e0bb4d03f0dfc1829c7 /k9vamps/k9vamps.cpp
parent23c5272c1c49acf0906f7c97a524333705f7be46 (diff)
downloadk9copy-b8a4f26c42f6d41e8251b60357f1a6990c1e8ad8.tar.gz
k9copy-b8a4f26c42f6d41e8251b60357f1a6990c1e8ad8.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'k9vamps/k9vamps.cpp')
-rwxr-xr-xk9vamps/k9vamps.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/k9vamps/k9vamps.cpp b/k9vamps/k9vamps.cpp
index f5e537a..4d41146 100755
--- a/k9vamps/k9vamps.cpp
+++ b/k9vamps/k9vamps.cpp
@@ -185,7 +185,7 @@ void k9vamps::run () {
vobuf = (uchar*) malloc (vbuf_size);
if (vibuf == NULL || vobuf == NULL)
- fatal (TQString("Allocation of video buffers failed: %1").tqarg(strerror (errno)));
+ fatal (TQString("Allocation of video buffers failed: %1").arg(strerror (errno)));
// actually do vaporization
@@ -357,18 +357,18 @@ int k9vamps::check_video_packet (uchar *ptr) {
vid_packet_start_code |= (uint32_t) (ptr [3]);
if (vid_packet_start_code != 0x000001e0)
- fatal(TQString ("Bad video packet start code at %1: %2").tqarg(rtell(ptr)).tqarg(vid_packet_start_code,0,16));
+ fatal(TQString ("Bad video packet start code at %1: %2").arg(rtell(ptr)).arg(vid_packet_start_code,0,16));
vid_packet_length = ptr [4] << 8;
vid_packet_length |= ptr [5];
vid_packet_length += 6;
if ((ptr [6] & 0xc0) != 0x80)
- fatal (TQString("Not an MPEG2 video packet at %1").tqarg(rtell (ptr)));
+ fatal (TQString("Not an MPEG2 video packet at %1").arg(rtell (ptr)));
if (ptr [7]) {
if ((ptr [7] & 0xc0) != 0xc0)
- qDebug (TQString("First video packet in sequence starting at %1 misses PTS or DTS, flags=%2").tqarg(rtell (ptr)).tqarg(ptr [7]));
+ qDebug (TQString("First video packet in sequence starting at %1 misses PTS or DTS, flags=%2").arg(rtell (ptr)).arg(ptr [7]));
else {
sequence_header_code = (uint32_t) (ptr [6 + 3 + ptr [8] + 0]) << 24;
sequence_header_code |= (uint32_t) (ptr [6 + 3 + ptr [8] + 1]) << 16;
@@ -399,7 +399,7 @@ int k9vamps::check_video_packet (uchar *ptr) {
pad_packet_start_code |= (uint32_t) (ptr [3]);
if (pad_packet_start_code != 0x000001be)
- qDebug (TQString("Bad padding packet start code at %1: %2").tqarg(rtell (ptr + vid_packet_length)).tqarg(pad_packet_start_code));
+ qDebug (TQString("Bad padding packet start code at %1: %2").arg(rtell (ptr + vid_packet_length)).arg(pad_packet_start_code));
else {
pad_packet_length = ptr [4] << 8;
pad_packet_length |= ptr [5];
@@ -409,7 +409,7 @@ int k9vamps::check_video_packet (uchar *ptr) {
// length of video packet plus padding packet must always match sector size
if (14 + vid_packet_length + pad_packet_length != SECT_SIZE)
- qDebug (TQString("Bad video packet length at %1: %2").tqarg(rtell (ptr)).tqarg(vid_packet_length));
+ qDebug (TQString("Bad video packet length at %1: %2").arg(rtell (ptr)).arg(vid_packet_length));
return rc;
}
@@ -636,7 +636,7 @@ void k9vamps::vap_leader () {
data_length |= ptr [5];
if (14 + data_length != SECT_SIZE - 6)
- fatal (TQString("Bad padding packet length at %1: %2").tqarg(rtell (ptr)).tqarg(data_length));
+ fatal (TQString("Bad padding packet length at %1: %2").arg(rtell (ptr)).arg(data_length));
//JMP:à vérifier
skip (SECT_SIZE);
@@ -681,7 +681,7 @@ void k9vamps::vap_trailer (int length) {
data_length |= ptr [5];
if (14 + data_length != SECT_SIZE - 6)
- fatal (TQString("Bad padding packet length at %1: %2").tqarg(rtell (ptr)).tqarg(data_length));
+ fatal (TQString("Bad padding packet length at %1: %2").arg(rtell (ptr)).arg(data_length));
skip (SECT_SIZE);
} else {
copy (SECT_SIZE);
@@ -802,7 +802,7 @@ int k9vamps::vap_phase1 (void) {
data_length |= ptr [5];
if (14 + data_length != SECT_SIZE - 6)
- fatal (TQString("Bad padding packet length at %1: %2").tqarg(rtell (ptr)).tqarg(data_length));
+ fatal (TQString("Bad padding packet length at %1: %2").arg(rtell (ptr)).arg(data_length));
break;
@@ -938,7 +938,7 @@ void k9vamps::vap_phase2 (int seq_length) {
data_length |= ptr [5];
if (14 + data_length != SECT_SIZE - 6)
- fatal (TQString("Bad padding packet length at %1: %2").tqarg(rtell (ptr)).tqarg(data_length));
+ fatal (TQString("Bad padding packet length at %1: %2").arg(rtell (ptr)).arg(data_length));
//JMP: à vérifier
skip (SECT_SIZE);
break;