MCPcopy Create free account
hub / github.com/IENT/YUView / getInfoText

Method getInfoText

YUViewLib/src/ffmpeg/AVCodecParametersWrapper.cpp:121–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121QStringPairList AVCodecParametersWrapper::getInfoText()
122{
123 QStringPairList info;
124
125 if (this->param == nullptr)
126 {
127 info.append(QStringPair("Codec parameters are nullptr", ""));
128 return info;
129 }
130 this->update();
131
132 info.append({"Codec Tag", QString::number(this->codec_tag)});
133 info.append({"Format", QString::number(this->format)});
134 info.append({"Bitrate", QString::number(this->bit_rate)});
135 info.append({"Bits per coded sample", QString::number(this->bits_per_coded_sample)});
136 info.append({"Bits per Raw sample", QString::number(this->bits_per_raw_sample)});
137 info.append({"Profile", QString::number(this->profile)});
138 info.append({"Level", QString::number(this->level)});
139 info.append({"Width/Height", QString("%1/%2").arg(this->width).arg(this->height)});
140 info.append(
141 {"Sample aspect ratio",
142 QString("%1:%2").arg(this->sample_aspect_ratio.num).arg(this->sample_aspect_ratio.den)});
143 auto fieldOrders = QStringList() << "Unknown"
144 << "Progressive"
145 << "Top coded_first, top displayed first"
146 << "Bottom coded first, bottom displayed first"
147 << "Top coded first, bottom displayed first"
148 << "Bottom coded first, top displayed first";
149 info.append(
150 {"Field Order",
151 fieldOrders.at(functions::clip(int(this->codec_type), 0, int(fieldOrders.count())))});
152 auto colorRanges = QStringList() << "Unspecified"
153 << "The normal 219*2^(n-8) MPEG YUV ranges"
154 << "The normal 2^n-1 JPEG YUV ranges"
155 << "Not part of ABI";
156 info.append(
157 {"Color Range",
158 colorRanges.at(functions::clip(int(this->color_range), 0, int(colorRanges.count())))});
159 auto colorPrimaries =
160 QStringList()
161 << "Reserved"
162 << "BT709 / ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B"
163 << "Unspecified"
164 << "Reserved"
165 << "BT470M / FCC Title 47 Code of Federal Regulations 73.682 (a)(20)"
166 << "BT470BG / ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM"
167 << "SMPTE170M / also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC"
168 << "SMPTE240M"
169 << "FILM - colour filters using Illuminant C"
170 << "ITU-R BT2020"
171 << "SMPTE ST 428-1 (CIE 1931 XYZ)"
172 << "SMPTE ST 431-2 (2011)"
173 << "SMPTE ST 432-1 D65 (2010)"
174 << "Not part of ABI";
175 info.append(QStringPair("Color Primaries", colorPrimaries.at((int)this->color_primaries)));
176 auto colorTransfers =
177 QStringList()
178 << "Reserved"

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
clipFunction · 0.85
appendMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected