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

Method setClearValues

YUViewLib/src/ffmpeg/AVCodecParametersWrapper.cpp:230–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void AVCodecParametersWrapper::setClearValues()
231{
232 if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 ||
233 this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60)
234 {
235 auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param);
236 p->codec_type = AVMEDIA_TYPE_UNKNOWN;
237 p->codec_id = AV_CODEC_ID_NONE;
238 p->codec_tag = 0;
239 p->extradata = nullptr;
240 p->extradata_size = 0;
241 p->format = 0;
242 p->bit_rate = 0;
243 p->bits_per_coded_sample = 0;
244 p->bits_per_raw_sample = 0;
245 p->profile = 0;
246 p->level = 0;
247 p->width = 0;
248 p->height = 0;
249 {
250 AVRational ratio;
251 ratio.num = 1;
252 ratio.den = 1;
253 p->sample_aspect_ratio = ratio;
254 }
255 p->field_order = AV_FIELD_UNKNOWN;
256 p->color_range = AVCOL_RANGE_UNSPECIFIED;
257 p->color_primaries = AVCOL_PRI_UNSPECIFIED;
258 p->color_trc = AVCOL_TRC_UNSPECIFIED;
259 p->color_space = AVCOL_SPC_UNSPECIFIED;
260 p->chroma_location = AVCHROMA_LOC_UNSPECIFIED;
261 p->video_delay = 0;
262 }
263 this->update();
264}
265
266void AVCodecParametersWrapper::setAVMediaType(AVMediaType type)
267{

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected