/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/ |
D | gstvp8parser.c | 280 calc_partition_sizes (GstVp8FrameHdr * frame_hdr, const guint8 * data, in calc_partition_sizes() argument 283 const guint num_partitions = 1 << frame_hdr->log2_nbr_of_dct_partitions; in calc_partition_sizes() 284 guint i, ofs, part_size, part_size_ofs = frame_hdr->first_part_size; in calc_partition_sizes() 299 frame_hdr->partition_size[i] = part_size; in calc_partition_sizes() 307 frame_hdr->partition_size[i] = size - ofs; in calc_partition_sizes() 309 while (++i < G_N_ELEMENTS (frame_hdr->partition_size)) in calc_partition_sizes() 310 frame_hdr->partition_size[i] = 0; in calc_partition_sizes() 317 GstVp8FrameHdr * frame_hdr) in parse_uncompressed_data_chunk() argument 327 frame_hdr->key_frame = !(frame_tag & 0x01); in parse_uncompressed_data_chunk() 328 frame_hdr->version = (frame_tag >> 1) & 0x07; in parse_uncompressed_data_chunk() [all …]
|
D | gstvp9parser.c | 114 GstBitReader * const br, GstVp9FrameHdr * frame_hdr) in parse_bitdepth_colorspace_sampling() argument 116 if (frame_hdr->profile > GST_VP9_PROFILE_1) in parse_bitdepth_colorspace_sampling() 126 if (frame_hdr->profile == GST_VP9_PROFILE_1 in parse_bitdepth_colorspace_sampling() 127 || frame_hdr->profile == GST_VP9_PROFILE_3) { in parse_bitdepth_colorspace_sampling() 148 if (frame_hdr->profile == GST_VP9_PROFILE_1 in parse_bitdepth_colorspace_sampling() 149 || frame_hdr->profile == GST_VP9_PROFILE_3) { in parse_bitdepth_colorspace_sampling() 186 parse_display_frame_size (GstBitReader * br, GstVp9FrameHdr * frame_hdr) in parse_display_frame_size() argument 188 frame_hdr->display_size_enabled = gst_vp9_read_bit (br); in parse_display_frame_size() 189 if (frame_hdr->display_size_enabled) in parse_display_frame_size() 190 parse_frame_size (br, &frame_hdr->display_width, in parse_display_frame_size() [all …]
|
D | gstjpegparser.c | 289 GstJpegFrameHdr * frame_hdr) in gst_jpeg_segment_parse_frame_header() argument 296 g_return_val_if_fail (frame_hdr != NULL, FALSE); in gst_jpeg_segment_parse_frame_header() 304 U_READ_UINT8 (&br, frame_hdr->sample_precision); in gst_jpeg_segment_parse_frame_header() 305 U_READ_UINT16 (&br, frame_hdr->height); in gst_jpeg_segment_parse_frame_header() 306 U_READ_UINT16 (&br, frame_hdr->width); in gst_jpeg_segment_parse_frame_header() 307 U_READ_UINT8 (&br, frame_hdr->num_components); in gst_jpeg_segment_parse_frame_header() 309 if (frame_hdr->num_components > GST_JPEG_MAX_SCAN_COMPONENTS) in gst_jpeg_segment_parse_frame_header() 312 if (gst_byte_reader_get_remaining (&br) < 3 * frame_hdr->num_components) in gst_jpeg_segment_parse_frame_header() 315 for (i = 0; i < frame_hdr->num_components; i++) { in gst_jpeg_segment_parse_frame_header() 316 U_READ_UINT8 (&br, frame_hdr->components[i].identifier); in gst_jpeg_segment_parse_frame_header() [all …]
|
/third_party/gstreamer/gstplugins_bad/tests/check/libs/ |
D | vp8parser.c | 138 GstVp8FrameHdr frame_hdr; in GST_START_TEST() local 143 memset (&frame_hdr, 0, sizeof (frame_hdr)); in GST_START_TEST() 144 assert_equals_int (gst_vp8_parser_parse_frame_header (&parser, &frame_hdr, in GST_START_TEST() 147 assert_equals_int (frame_hdr.key_frame, 1); in GST_START_TEST() 149 assert_equals_int (frame_hdr.first_part_size, 234); in GST_START_TEST() 150 assert_equals_int (frame_hdr.width, 176); in GST_START_TEST() 151 assert_equals_int (frame_hdr.height, 144); in GST_START_TEST() 166 assert_equals_int (frame_hdr.quant_indices.y_ac_qi, 4); in GST_START_TEST() 167 assert_equals_int (frame_hdr.mb_no_skip_coeff, 1); in GST_START_TEST() 169 assert_equals_int (frame_hdr.rd_range, 0xe8); in GST_START_TEST() [all …]
|
/third_party/gstreamer/gstplugins_bad/tests/examples/codecparsers/ |
D | parse-vp8.c | 252 print_frame_header (GstVp8FrameHdr * frame_hdr) in print_frame_header() argument 254 g_print (" %-32s : %d\n", "key_frame", frame_hdr->key_frame); in print_frame_header() 255 g_print (" %-32s : %d\n", "version", frame_hdr->version); in print_frame_header() 256 g_print (" %-32s : %d\n", "show_frame", frame_hdr->show_frame); in print_frame_header() 257 g_print (" %-32s : %d\n", "first_part_size", frame_hdr->first_part_size); in print_frame_header() 258 if (frame_hdr->key_frame) { in print_frame_header() 259 g_print (" %-32s : %d\n", "width", frame_hdr->width); in print_frame_header() 260 g_print (" %-32s : %d\n", "height", frame_hdr->height); in print_frame_header() 261 g_print (" %-32s : %d\n", "horizontal_scale", frame_hdr->horiz_scale_code); in print_frame_header() 262 g_print (" %-32s : %d\n", "vertical_scale", frame_hdr->vert_scale_code); in print_frame_header() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11av1dec.cpp | 787 const GstAV1FrameHeaderOBU *frame_hdr = &picture->frame_hdr; in gst_d3d11_av1_dec_start_picture() local 802 pic_params->width = frame_hdr->frame_width; in gst_d3d11_av1_dec_start_picture() 803 pic_params->height = frame_hdr->frame_height; in gst_d3d11_av1_dec_start_picture() 809 pic_params->superres_denom = frame_hdr->superres_denom; in gst_d3d11_av1_dec_start_picture() 814 pic_params->tiles.cols = frame_hdr->tile_info.tile_cols; in gst_d3d11_av1_dec_start_picture() 815 pic_params->tiles.rows = frame_hdr->tile_info.tile_rows; in gst_d3d11_av1_dec_start_picture() 817 frame_hdr->tile_info.context_update_tile_id; in gst_d3d11_av1_dec_start_picture() 821 frame_hdr->tile_info.width_in_sbs_minus_1[i] + 1; in gst_d3d11_av1_dec_start_picture() 826 frame_hdr->tile_info.height_in_sbs_minus_1[i] + 1; in gst_d3d11_av1_dec_start_picture() 834 pic_params->coding.warped_motion = frame_hdr->allow_warped_motion; in gst_d3d11_av1_dec_start_picture() [all …]
|
D | gstd3d11vp9dec.cpp | 146 const GstVp9FrameHeader * frame_hdr); 364 const GstVp9FrameHeader * frame_hdr) in gst_d3d11_vp9_dec_new_sequence() argument 373 if (frame_hdr->profile == GST_VP9_PROFILE_0) in gst_d3d11_vp9_dec_new_sequence() 375 else if (frame_hdr->profile == GST_VP9_PROFILE_2) in gst_d3d11_vp9_dec_new_sequence() 379 GST_ERROR_OBJECT (self, "Could not support profile %d", frame_hdr->profile); in gst_d3d11_vp9_dec_new_sequence() 384 out_format, frame_hdr->width, frame_hdr->height); in gst_d3d11_vp9_dec_new_sequence() 387 decoder->input_state, &info, (gint) frame_hdr->width, in gst_d3d11_vp9_dec_new_sequence() 388 (gint) frame_hdr->height, NUM_OUTPUT_VIEW)) { in gst_d3d11_vp9_dec_new_sequence() 446 new_picture->frame_hdr = picture->frame_hdr; in gst_d3d11_vp9_dec_duplicate_picture() 498 const GstVp9FrameHeader *frame_hdr = &picture->frame_hdr; in gst_d3d11_vp9_dec_copy_frame_params() local [all …]
|
D | gstd3d11vp8dec.cpp | 114 const GstVp8FrameHdr * frame_hdr); 316 const GstVp8FrameHdr * frame_hdr) in gst_d3d11_vp8_dec_new_sequence() argument 326 inner->width = frame_hdr->width; in gst_d3d11_vp8_dec_new_sequence() 327 inner->height = frame_hdr->height; in gst_d3d11_vp8_dec_new_sequence() 413 const GstVp8FrameHdr *frame_hdr = &picture->frame_hdr; in gst_d3d11_vp8_dec_copy_frame_params() local 417 params->frame_type = !frame_hdr->key_frame; in gst_d3d11_vp8_dec_copy_frame_params() 418 params->version = frame_hdr->version; in gst_d3d11_vp8_dec_copy_frame_params() 419 params->show_frame = frame_hdr->show_frame; in gst_d3d11_vp8_dec_copy_frame_params() 420 params->clamp_type = frame_hdr->clamping_type; in gst_d3d11_vp8_dec_copy_frame_params() 422 params->filter_type = frame_hdr->filter_type; in gst_d3d11_vp8_dec_copy_frame_params() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/va/ |
D | gstvavp8dec.c | 133 _get_profile (GstVaVp8Dec * self, const GstVp8FrameHdr * frame_hdr) in _get_profile() argument 136 if (frame_hdr->version > 3) { in _get_profile() 137 GST_ERROR_OBJECT (self, "Unsupported vp8 version: %d", frame_hdr->version); in _get_profile() 146 const GstVp8FrameHdr * frame_hdr) in gst_va_vp8_dec_new_sequence() argument 156 profile = _get_profile (self, frame_hdr); in gst_va_vp8_dec_new_sequence() 170 rt_format, frame_hdr->width, frame_hdr->height)) { in gst_va_vp8_dec_new_sequence() 172 base->width = frame_hdr->width; in gst_va_vp8_dec_new_sequence() 173 base->height = frame_hdr->height; in gst_va_vp8_dec_new_sequence() 229 GstVp8FrameHdr const *frame_hdr = &picture->frame_hdr; in _fill_quant_matrix() local 241 qi_base += frame_hdr->quant_indices.y_ac_qi; in _fill_quant_matrix() [all …]
|
D | gstvavp9dec.c | 148 const GstVp9FrameHeader * frame_hdr) in gst_va_vp9_new_sequence() argument 156 profile = _get_profile (self, frame_hdr->profile); in gst_va_vp9_new_sequence() 166 rt_format = _get_rtformat (self, frame_hdr->profile, frame_hdr->bit_depth, in gst_va_vp9_new_sequence() 167 frame_hdr->subsampling_x, frame_hdr->subsampling_y); in gst_va_vp9_new_sequence() 172 rt_format, frame_hdr->width, frame_hdr->height)) { in gst_va_vp9_new_sequence() 174 base->width = frame_hdr->width; in gst_va_vp9_new_sequence() 175 base->height = frame_hdr->height; in gst_va_vp9_new_sequence() 191 const GstVp9FrameHeader *frame_hdr = &picture->frame_hdr; in _check_resolution_change() local 193 if ((base->width != frame_hdr->width) || base->height != frame_hdr->height) { in _check_resolution_change() 194 base->width = frame_hdr->width; in _check_resolution_change() [all …]
|
D | gstvaav1dec.c | 297 GstAV1FrameHeaderOBU *frame_hdr = &picture->frame_hdr; in gst_va_av1_dec_new_picture() local 299 if (frame_hdr->upscaled_width != base->width in gst_va_av1_dec_new_picture() 300 || frame_hdr->frame_height != base->height) { in gst_va_av1_dec_new_picture() 301 base->width = frame_hdr->upscaled_width; in gst_va_av1_dec_new_picture() 302 base->height = frame_hdr->frame_height; in gst_va_av1_dec_new_picture() 581 GstAV1FrameHeaderOBU *frame_header = &picture->frame_hdr; in gst_va_av1_dec_start_picture() 843 g_assert (picture->frame_hdr.show_frame || in gst_va_av1_dec_output_picture() 844 picture->frame_hdr.show_existing_frame); in gst_va_av1_dec_output_picture() 856 if (picture->frame_hdr.show_existing_frame) { in gst_va_av1_dec_output_picture()
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecs/ |
D | gstvp9decoder.c | 185 const GstVp9FrameHeader * frame_hdr) in gst_vp9_decoder_is_format_change() argument 189 if (priv->frame_width != frame_hdr->width in gst_vp9_decoder_is_format_change() 190 || priv->frame_height != frame_hdr->height) { in gst_vp9_decoder_is_format_change() 191 GST_INFO_OBJECT (self, "frame resolution changed %dx%d", frame_hdr->width, in gst_vp9_decoder_is_format_change() 192 frame_hdr->height); in gst_vp9_decoder_is_format_change() 196 if (priv->render_width != frame_hdr->render_width in gst_vp9_decoder_is_format_change() 197 || priv->render_height != frame_hdr->render_height) { in gst_vp9_decoder_is_format_change() 199 frame_hdr->render_width, frame_hdr->render_height); in gst_vp9_decoder_is_format_change() 203 if (priv->profile != frame_hdr->profile) { in gst_vp9_decoder_is_format_change() 204 GST_INFO_OBJECT (self, "profile changed %d", frame_hdr->profile); in gst_vp9_decoder_is_format_change() [all …]
|
D | gstvp8decoder.c | 154 const GstVp8FrameHdr * frame_hdr) in gst_vp8_decoder_check_codec_change() argument 160 if (priv->width != frame_hdr->width || priv->height != frame_hdr->height) { in gst_vp8_decoder_check_codec_change() 161 GST_INFO_OBJECT (self, "resolution changed %dx%d", frame_hdr->width, in gst_vp8_decoder_check_codec_change() 162 frame_hdr->height); in gst_vp8_decoder_check_codec_change() 163 priv->width = frame_hdr->width; in gst_vp8_decoder_check_codec_change() 164 priv->height = frame_hdr->height; in gst_vp8_decoder_check_codec_change() 188 ret = klass->new_sequence (self, frame_hdr); in gst_vp8_decoder_check_codec_change() 223 GstVp8FrameHdr *frame_hdr = &picture->frame_hdr; in gst_vp8_decoder_update_reference() local 225 if (frame_hdr->key_frame) { in gst_vp8_decoder_update_reference() 233 if (frame_hdr->refresh_alternate_frame) { in gst_vp8_decoder_update_reference() [all …]
|
D | gstav1decoder.c | 322 if (picture->frame_hdr.show_existing_frame) { in gst_av1_decoder_decode_tile_group() 367 &ref_picture->frame_hdr) != GST_AV1_PARSER_OK) { in gst_av1_decoder_decode_frame_header() 382 picture->frame_hdr = *frame_header; in gst_av1_decoder_decode_frame_header() 383 picture->frame_hdr.render_width = ref_picture->frame_hdr.render_width; in gst_av1_decoder_decode_frame_header() 384 picture->frame_hdr.render_height = ref_picture->frame_hdr.render_height; in gst_av1_decoder_decode_frame_header() 388 picture->frame_hdr = *frame_header; in gst_av1_decoder_decode_frame_header() 538 fh = &picture->frame_hdr; in gst_av1_decoder_update_state() 603 if (!priv->current_picture->frame_hdr.show_existing_frame) { in gst_av1_decoder_handle_frame() 619 if (priv->current_picture->frame_hdr.show_frame || in gst_av1_decoder_handle_frame() 620 priv->current_picture->frame_hdr.show_existing_frame) { in gst_av1_decoder_handle_frame()
|
D | gstvp9picture.c | 170 if (picture->frame_hdr.frame_type == GST_VP9_KEY_FRAME) { in gst_vp9_dpb_add() 174 refresh_frame_flags = picture->frame_hdr.refresh_frame_flags; in gst_vp9_dpb_add()
|
D | gstvp8picture.h | 43 GstVp8FrameHdr frame_hdr; member
|
D | gstvp9picture.h | 43 GstVp9FrameHeader frame_hdr; member
|
D | gstvp8decoder.h | 92 const GstVp8FrameHdr * frame_hdr);
|
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstnvvp9dec.c | 77 const GstVp9FrameHeader * frame_hdr); 244 const GstVp9FrameHeader * frame_hdr) in gst_nv_vp9_dec_new_sequence() argument 252 self->width = frame_hdr->width; in gst_nv_vp9_dec_new_sequence() 253 self->height = frame_hdr->height; in gst_nv_vp9_dec_new_sequence() 254 self->profile = frame_hdr->profile; in gst_nv_vp9_dec_new_sequence() 259 if (frame_hdr->bit_depth == 10) { in gst_nv_vp9_dec_new_sequence() 274 frame_hdr->bit_depth, in gst_nv_vp9_dec_new_sequence() 288 self->params.CodecSpecific.vp9.colorSpace = frame_hdr->color_space; in gst_nv_vp9_dec_new_sequence() 345 new_picture->frame_hdr = picture->frame_hdr; in gst_nv_vp9_dec_duplicate_picture() 359 const GstVp9FrameHeader *frame_hdr = &picture->frame_hdr; in gst_nv_vp9_dec_decode_picture() local [all …]
|
D | gstnvvp8dec.c | 76 const GstVp8FrameHdr * frame_hdr); 234 const GstVp8FrameHdr * frame_hdr) in gst_nv_vp8_dec_new_sequence() argument 241 if (self->width != frame_hdr->width || self->height != frame_hdr->height) { in gst_nv_vp8_dec_new_sequence() 244 self->width, self->height, frame_hdr->width, frame_hdr->height); in gst_nv_vp8_dec_new_sequence() 247 self->width = frame_hdr->width; in gst_nv_vp8_dec_new_sequence() 248 self->height = frame_hdr->height; in gst_nv_vp8_dec_new_sequence() 325 GstVp8FrameHdr *frame_hdr = &picture->frame_hdr; in gst_nv_vp8_dec_decode_picture() local 346 frame_hdr->first_part_size; in gst_nv_vp8_dec_decode_picture() 391 frame_hdr->key_frame ? 0 : 1; in gst_nv_vp8_dec_decode_picture() 392 self->params.CodecSpecific.vp8.vp8_frame_tag.version = frame_hdr->version; in gst_nv_vp8_dec_decode_picture() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/ |
D | gstv4l2codecvp8dec.c | 359 *entropy, const GstVp8FrameHdr * frame_hdr) in gst_v4l2_codec_vp8_dec_fill_entropy() argument 361 memcpy (entropy->coeff_probs, frame_hdr->token_probs.prob, in gst_v4l2_codec_vp8_dec_fill_entropy() 362 sizeof (frame_hdr->token_probs.prob)); in gst_v4l2_codec_vp8_dec_fill_entropy() 363 memcpy (entropy->y_mode_probs, frame_hdr->mode_probs.y_prob, in gst_v4l2_codec_vp8_dec_fill_entropy() 364 sizeof (frame_hdr->mode_probs.y_prob)); in gst_v4l2_codec_vp8_dec_fill_entropy() 365 memcpy (entropy->uv_mode_probs, frame_hdr->mode_probs.uv_prob, in gst_v4l2_codec_vp8_dec_fill_entropy() 366 sizeof (frame_hdr->mode_probs.uv_prob)); in gst_v4l2_codec_vp8_dec_fill_entropy() 367 memcpy (entropy->mv_probs, frame_hdr->mv_probs.prob, in gst_v4l2_codec_vp8_dec_fill_entropy() 368 sizeof (frame_hdr->mv_probs.prob)); in gst_v4l2_codec_vp8_dec_fill_entropy() 373 const GstVp8FrameHdr * frame_hdr) in gst_v4l2_codec_vp8_dec_fill_frame_header() argument [all …]
|
D | gstv4l2codecvp9dec.c | 579 const GstVp9FrameHeader * frame_hdr) in gst_v4l2_codec_vp9_dec_new_sequence() argument 588 if (self->width != frame_hdr->width || self->height != frame_hdr->height) { in gst_v4l2_codec_vp9_dec_new_sequence() 589 self->width = frame_hdr->width; in gst_v4l2_codec_vp9_dec_new_sequence() 590 self->height = frame_hdr->height; in gst_v4l2_codec_vp9_dec_new_sequence() 596 if (self->subsampling_x != frame_hdr->subsampling_x || in gst_v4l2_codec_vp9_dec_new_sequence() 597 self->subsampling_y != frame_hdr->subsampling_y) { in gst_v4l2_codec_vp9_dec_new_sequence() 601 frame_hdr->subsampling_x, frame_hdr->subsampling_y); in gst_v4l2_codec_vp9_dec_new_sequence() 602 self->subsampling_x = frame_hdr->subsampling_x; in gst_v4l2_codec_vp9_dec_new_sequence() 603 self->subsampling_y = frame_hdr->subsampling_y; in gst_v4l2_codec_vp9_dec_new_sequence() 607 if (frame_hdr->color_space != GST_VP9_CS_UNKNOWN && in gst_v4l2_codec_vp9_dec_new_sequence() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | libdav1d.c | 290 frame->height * (int64_t)p->frame_hdr->render_width, in libdav1d_receive_frame() 291 frame->width * (int64_t)p->frame_hdr->render_height, in libdav1d_receive_frame() 339 frame->key_frame = p->frame_hdr->frame_type == DAV1D_FRAME_TYPE_KEY; in libdav1d_receive_frame() 341 switch (p->frame_hdr->frame_type) { in libdav1d_receive_frame() 414 if (p->frame_hdr->film_grain.present && (!dav1d->apply_grain || in libdav1d_receive_frame() 423 fgp->seed = p->frame_hdr->film_grain.data.seed; in libdav1d_receive_frame() 424 fgp->codec.aom.num_y_points = p->frame_hdr->film_grain.data.num_y_points; in libdav1d_receive_frame() 425 … fgp->codec.aom.chroma_scaling_from_luma = p->frame_hdr->film_grain.data.chroma_scaling_from_luma; in libdav1d_receive_frame() 426 fgp->codec.aom.scaling_shift = p->frame_hdr->film_grain.data.scaling_shift; in libdav1d_receive_frame() 427 fgp->codec.aom.ar_coeff_lag = p->frame_hdr->film_grain.data.ar_coeff_lag; in libdav1d_receive_frame() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/ |
D | gstvp9parse.c | 92 GstBaseParseFrame * frame, GstVp9FrameHdr * frame_hdr); 343 gst_vp9_parse_process_frame (GstVp9Parse * self, GstVp9FrameHdr * frame_hdr) in gst_vp9_parse_process_frame() argument 349 if (frame_hdr->frame_type != GST_VP9_KEY_FRAME || in gst_vp9_parse_process_frame() 350 frame_hdr->show_existing_frame) { in gst_vp9_parse_process_frame() 356 width = frame_hdr->width; in gst_vp9_parse_process_frame() 357 height = frame_hdr->height; in gst_vp9_parse_process_frame() 358 if (frame_hdr->display_size_enabled && in gst_vp9_parse_process_frame() 359 frame_hdr->display_width > 0 && frame_hdr->display_height) { in gst_vp9_parse_process_frame() 360 width = frame_hdr->display_width; in gst_vp9_parse_process_frame() 361 height = frame_hdr->display_height; in gst_vp9_parse_process_frame() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/jpegformat/ |
D | gstjifmux.c | 371 GList *node, *file_hdr = NULL, *frame_hdr = NULL, *scan_hdr = NULL; in gst_jif_mux_mangle_markers() local 463 if (!frame_hdr) in gst_jif_mux_mangle_markers() 464 frame_hdr = node; in gst_jif_mux_mangle_markers() 615 self->markers = g_list_insert_before (self->markers, frame_hdr, m); in gst_jif_mux_mangle_markers()
|