Lines Matching refs:obj
28 MixParams *mix_videoconfigparamsenc_dup(const MixParams * obj);
30 static void mix_videoconfigparamsenc_finalize(MixParams * obj);
92 void mix_videoconfigparamsenc_finalize(MixParams * obj) { in mix_videoconfigparamsenc_finalize() argument
95 MixVideoConfigParamsEnc *self = MIX_VIDEOCONFIGPARAMSENC(obj); in mix_videoconfigparamsenc_finalize()
108 parent_class->finalize(obj); in mix_videoconfigparamsenc_finalize()
125 mix_videoconfigparamsenc_dup(const MixParams * obj) { in mix_videoconfigparamsenc_dup() argument
130 if (MIX_IS_VIDEOCONFIGPARAMSENC(obj)) { in mix_videoconfigparamsenc_dup()
132 if (mix_videoconfigparamsenc_copy(MIX_PARAMS(duplicate), MIX_PARAMS(obj))) { in mix_videoconfigparamsenc_dup()
352 #define MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT(obj) \ argument
353 if(!obj) return MIX_RESULT_NULL_PTR; \
354 if(!MIX_IS_VIDEOCONFIGPARAMSENC(obj)) return MIX_RESULT_FAIL; \
356 #define MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT(obj, prop) \ argument
357 if(!obj || !prop) return MIX_RESULT_NULL_PTR; \
358 if(!MIX_IS_VIDEOCONFIGPARAMSENC(obj)) return MIX_RESULT_FAIL; \
360 #define MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT_PAIR(obj, prop, prop2) \ argument
361 if(!obj || !prop || !prop2 ) return MIX_RESULT_NULL_PTR; \
362 if(!MIX_IS_VIDEOCONFIGPARAMSENC(obj)) return MIX_RESULT_FAIL; \
367 MIX_RESULT mix_videoconfigparamsenc_set_mime_type(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_mime_type() argument
370 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_mime_type()
379 if (obj->mime_type) { in mix_videoconfigparamsenc_set_mime_type()
380 if (obj->mime_type->str) in mix_videoconfigparamsenc_set_mime_type()
381 g_string_free(obj->mime_type, TRUE); in mix_videoconfigparamsenc_set_mime_type()
383 g_string_free(obj->mime_type, FALSE); in mix_videoconfigparamsenc_set_mime_type()
390 obj->mime_type = g_string_new(mime_type); in mix_videoconfigparamsenc_set_mime_type()
391 if (!obj->mime_type) { in mix_videoconfigparamsenc_set_mime_type()
397 mime_type, obj->mime_type->str); in mix_videoconfigparamsenc_set_mime_type()
402 MIX_RESULT mix_videoconfigparamsenc_get_mime_type(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_mime_type() argument
404 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, mime_type); in mix_videoconfigparamsenc_get_mime_type()
406 if (!obj->mime_type) { in mix_videoconfigparamsenc_get_mime_type()
410 *mime_type = g_strdup(obj->mime_type->str); in mix_videoconfigparamsenc_get_mime_type()
418 MIX_RESULT mix_videoconfigparamsenc_set_frame_rate(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_frame_rate() argument
420 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_frame_rate()
421 obj->frame_rate_num = frame_rate_num; in mix_videoconfigparamsenc_set_frame_rate()
422 obj->frame_rate_denom = frame_rate_denom; in mix_videoconfigparamsenc_set_frame_rate()
426 MIX_RESULT mix_videoconfigparamsenc_get_frame_rate(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_frame_rate() argument
428 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT_PAIR (obj, frame_rate_num, frame_rate_denom); in mix_videoconfigparamsenc_get_frame_rate()
429 *frame_rate_num = obj->frame_rate_num; in mix_videoconfigparamsenc_get_frame_rate()
430 *frame_rate_denom = obj->frame_rate_denom; in mix_videoconfigparamsenc_get_frame_rate()
434 MIX_RESULT mix_videoconfigparamsenc_set_picture_res(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_picture_res() argument
436 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_picture_res()
437 obj->picture_width = picture_width; in mix_videoconfigparamsenc_set_picture_res()
438 obj->picture_height = picture_height; in mix_videoconfigparamsenc_set_picture_res()
442 MIX_RESULT mix_videoconfigparamsenc_get_picture_res(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_picture_res() argument
444 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT_PAIR (obj, picture_width, picture_height); in mix_videoconfigparamsenc_get_picture_res()
445 *picture_width = obj->picture_width; in mix_videoconfigparamsenc_get_picture_res()
446 *picture_height = obj->picture_height; in mix_videoconfigparamsenc_get_picture_res()
450 MIX_RESULT mix_videoconfigparamsenc_set_encode_format(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_encode_format() argument
452 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_encode_format()
453 obj->encode_format = encode_format; in mix_videoconfigparamsenc_set_encode_format()
457 MIX_RESULT mix_videoconfigparamsenc_get_encode_format (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_encode_format() argument
459 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, encode_format); in mix_videoconfigparamsenc_get_encode_format()
460 *encode_format = obj->encode_format; in mix_videoconfigparamsenc_get_encode_format()
464 MIX_RESULT mix_videoconfigparamsenc_set_bit_rate (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_bit_rate() argument
466 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_bit_rate()
467 obj->bitrate= bitrate; in mix_videoconfigparamsenc_set_bit_rate()
472 MIX_RESULT mix_videoconfigparamsenc_get_bit_rate (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_bit_rate() argument
474 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, bitrate); in mix_videoconfigparamsenc_get_bit_rate()
475 *bitrate = obj->bitrate; in mix_videoconfigparamsenc_get_bit_rate()
479 MIX_RESULT mix_videoconfigparamsenc_set_init_qp (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_init_qp() argument
481 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_init_qp()
482 obj->initial_qp = initial_qp; in mix_videoconfigparamsenc_set_init_qp()
486 MIX_RESULT mix_videoconfigparamsenc_get_init_qp (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_init_qp() argument
488 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, initial_qp); in mix_videoconfigparamsenc_get_init_qp()
489 *initial_qp = obj->initial_qp; in mix_videoconfigparamsenc_get_init_qp()
494 MIX_RESULT mix_videoconfigparamsenc_set_min_qp (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_min_qp() argument
496 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_min_qp()
497 obj->min_qp = min_qp; in mix_videoconfigparamsenc_set_min_qp()
501 MIX_RESULT mix_videoconfigparamsenc_get_min_qp(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_min_qp() argument
503 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, min_qp); in mix_videoconfigparamsenc_get_min_qp()
504 *min_qp = obj->min_qp; in mix_videoconfigparamsenc_get_min_qp()
509 MIX_RESULT mix_videoconfigparamsenc_set_intra_period (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_intra_period() argument
511 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_intra_period()
512 obj->intra_period = intra_period; in mix_videoconfigparamsenc_set_intra_period()
517 MIX_RESULT mix_videoconfigparamsenc_get_intra_period (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_intra_period() argument
519 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, intra_period); in mix_videoconfigparamsenc_get_intra_period()
520 *intra_period = obj->intra_period; in mix_videoconfigparamsenc_get_intra_period()
526 MixVideoConfigParamsEnc * obj, guint bufpoolsize) { in mix_videoconfigparamsenc_set_buffer_pool_size() argument
528 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_buffer_pool_size()
530 obj->mixbuffer_pool_size = bufpoolsize; in mix_videoconfigparamsenc_set_buffer_pool_size()
536 MixVideoConfigParamsEnc * obj, guint *bufpoolsize) { in mix_videoconfigparamsenc_get_buffer_pool_size() argument
538 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, bufpoolsize); in mix_videoconfigparamsenc_get_buffer_pool_size()
539 *bufpoolsize = obj->mixbuffer_pool_size; in mix_videoconfigparamsenc_get_buffer_pool_size()
544 MixVideoConfigParamsEnc * obj, gboolean share_buf_mod) { in mix_videoconfigparamsenc_set_share_buf_mode() argument
545 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_share_buf_mode()
547 obj->share_buf_mode = share_buf_mod; in mix_videoconfigparamsenc_set_share_buf_mode()
551 MIX_RESULT mix_videoconfigparamsenc_get_share_buf_mode(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_share_buf_mode() argument
553 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, share_buf_mod); in mix_videoconfigparamsenc_get_share_buf_mode()
555 *share_buf_mod = obj->share_buf_mode; in mix_videoconfigparamsenc_get_share_buf_mode()
559 MIX_RESULT mix_videoconfigparamsenc_set_ci_frame_info(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_ci_frame_info() argument
561 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_ci_frame_info()
565 obj->ci_frame_id = NULL; in mix_videoconfigparamsenc_set_ci_frame_info()
566 obj->ci_frame_num = 0; in mix_videoconfigparamsenc_set_ci_frame_info()
570 if (obj->ci_frame_id) in mix_videoconfigparamsenc_set_ci_frame_info()
571 g_free (obj->ci_frame_id); in mix_videoconfigparamsenc_set_ci_frame_info()
574 obj->ci_frame_num = ci_frame_num; in mix_videoconfigparamsenc_set_ci_frame_info()
576 obj->ci_frame_id = g_malloc (ci_frame_num * sizeof (gulong)); in mix_videoconfigparamsenc_set_ci_frame_info()
577 if (!(obj->ci_frame_id)) { in mix_videoconfigparamsenc_set_ci_frame_info()
581 memcpy (obj->ci_frame_id, ci_frame_id, size); in mix_videoconfigparamsenc_set_ci_frame_info()
586 MIX_RESULT mix_videoconfigparamsenc_get_ci_frame_info (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_ci_frame_info() argument
588 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT_PAIR (obj, ci_frame_id, ci_frame_num); in mix_videoconfigparamsenc_get_ci_frame_info()
590 *ci_frame_num = obj->ci_frame_num; in mix_videoconfigparamsenc_get_ci_frame_info()
592 if (!obj->ci_frame_id) { in mix_videoconfigparamsenc_get_ci_frame_info()
597 if (obj->ci_frame_num) { in mix_videoconfigparamsenc_get_ci_frame_info()
598 *ci_frame_id = g_malloc (obj->ci_frame_num * sizeof (gulong)); in mix_videoconfigparamsenc_get_ci_frame_info()
604 memcpy (*ci_frame_id, obj->ci_frame_id, obj->ci_frame_num * sizeof (gulong)); in mix_videoconfigparamsenc_get_ci_frame_info()
614 MIX_RESULT mix_videoconfigparamsenc_set_drawable (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_drawable() argument
617 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_drawable()
618 obj->draw = draw; in mix_videoconfigparamsenc_set_drawable()
623 MIX_RESULT mix_videoconfigparamsenc_get_drawable (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_drawable() argument
626 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, draw); in mix_videoconfigparamsenc_get_drawable()
627 *draw = obj->draw; in mix_videoconfigparamsenc_get_drawable()
632 MixVideoConfigParamsEnc * obj, gboolean need_display) { in mix_videoconfigparamsenc_set_need_display() argument
633 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_need_display()
635 obj->need_display = need_display; in mix_videoconfigparamsenc_set_need_display()
639 MIX_RESULT mix_videoconfigparamsenc_get_need_display(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_need_display() argument
641 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, need_display); in mix_videoconfigparamsenc_get_need_display()
643 *need_display = obj->need_display; in mix_videoconfigparamsenc_get_need_display()
647 MIX_RESULT mix_videoconfigparamsenc_set_rate_control(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_rate_control() argument
649 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_rate_control()
650 obj->rate_control = rate_control; in mix_videoconfigparamsenc_set_rate_control()
654 MIX_RESULT mix_videoconfigparamsenc_get_rate_control(MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_rate_control() argument
656 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, rate_control); in mix_videoconfigparamsenc_get_rate_control()
657 *rate_control = obj->rate_control; in mix_videoconfigparamsenc_get_rate_control()
661 MIX_RESULT mix_videoconfigparamsenc_set_raw_format (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_raw_format() argument
663 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_raw_format()
664 obj->raw_format = raw_format; in mix_videoconfigparamsenc_set_raw_format()
668 MIX_RESULT mix_videoconfigparamsenc_get_raw_format (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_raw_format() argument
670 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, raw_format); in mix_videoconfigparamsenc_get_raw_format()
671 *raw_format = obj->raw_format; in mix_videoconfigparamsenc_get_raw_format()
675 MIX_RESULT mix_videoconfigparamsenc_set_profile (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_set_profile() argument
677 MIX_VIDEOCONFIGPARAMSENC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsenc_set_profile()
678 obj->profile = profile; in mix_videoconfigparamsenc_set_profile()
682 MIX_RESULT mix_videoconfigparamsenc_get_profile (MixVideoConfigParamsEnc * obj, in mix_videoconfigparamsenc_get_profile() argument
684 MIX_VIDEOCONFIGPARAMSENC_GETTER_CHECK_INPUT (obj, profile); in mix_videoconfigparamsenc_get_profile()
685 *profile = obj->profile; in mix_videoconfigparamsenc_get_profile()