Lines Matching refs:obj
26 MixParams *mix_videoconfigparamsdec_dup(const MixParams * obj);
28 static void mix_videoconfigparamsdec_finalize(MixParams * obj);
82 void mix_videoconfigparamsdec_finalize(MixParams * obj) { in mix_videoconfigparamsdec_finalize() argument
85 MixVideoConfigParamsDec *self = MIX_VIDEOCONFIGPARAMSDEC(obj); in mix_videoconfigparamsdec_finalize()
103 root_class->finalize(obj); in mix_videoconfigparamsdec_finalize()
120 mix_videoconfigparamsdec_dup(const MixParams * obj) { in mix_videoconfigparamsdec_dup() argument
123 if (MIX_IS_VIDEOCONFIGPARAMSDEC(obj)) { in mix_videoconfigparamsdec_dup()
125 if (mix_videoconfigparamsdec_copy(MIX_PARAMS(duplicate), MIX_PARAMS(obj))) { in mix_videoconfigparamsdec_dup()
317 #define MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT(obj) \ argument
318 if(!obj) return MIX_RESULT_NULL_PTR; \
319 if(!MIX_IS_VIDEOCONFIGPARAMSDEC(obj)) return MIX_RESULT_FAIL; \
321 #define MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT(obj, prop) \ argument
322 if(!obj || !prop) return MIX_RESULT_NULL_PTR; \
323 if(!MIX_IS_VIDEOCONFIGPARAMSDEC(obj)) return MIX_RESULT_FAIL; \
325 #define MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT_PAIR(obj, prop, prop2) \ argument
326 if(!obj || !prop || !prop2 ) return MIX_RESULT_NULL_PTR; \
327 if(!MIX_IS_VIDEOCONFIGPARAMSDEC(obj)) return MIX_RESULT_FAIL; \
332 MixVideoConfigParamsDec * obj, MixFrameOrderMode frame_order_mode) { in mix_videoconfigparamsdec_set_frame_order_mode() argument
333 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_frame_order_mode()
334 obj->frame_order_mode = frame_order_mode; in mix_videoconfigparamsdec_set_frame_order_mode()
339 MixVideoConfigParamsDec * obj, MixFrameOrderMode * frame_order_mode) { in mix_videoconfigparamsdec_get_frame_order_mode() argument
340 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT (obj, frame_order_mode); in mix_videoconfigparamsdec_get_frame_order_mode()
341 *frame_order_mode = obj->frame_order_mode; in mix_videoconfigparamsdec_get_frame_order_mode()
345 MIX_RESULT mix_videoconfigparamsdec_set_header(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_set_header() argument
348 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_header()
355 obj->header.data = g_memdup(header->data, header->buffer_size); in mix_videoconfigparamsdec_set_header()
356 if (!obj->header.data) { in mix_videoconfigparamsdec_set_header()
359 obj->header.buffer_size = header->buffer_size; in mix_videoconfigparamsdec_set_header()
360 obj->header.data_size = header->data_size; in mix_videoconfigparamsdec_set_header()
365 MIX_RESULT mix_videoconfigparamsdec_get_header(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_get_header() argument
368 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT (obj, header); in mix_videoconfigparamsdec_get_header()
370 if (obj->header.data && obj->header.buffer_size) { in mix_videoconfigparamsdec_get_header()
378 (*header)->data = g_memdup(obj->header.data, obj->header.buffer_size); in mix_videoconfigparamsdec_get_header()
379 (*header)->buffer_size = obj->header.buffer_size; in mix_videoconfigparamsdec_get_header()
380 (*header)->data_size = obj->header.data_size; in mix_videoconfigparamsdec_get_header()
389 MIX_RESULT mix_videoconfigparamsdec_set_mime_type(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_set_mime_type() argument
392 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_mime_type()
398 if (obj->mime_type) { in mix_videoconfigparamsdec_set_mime_type()
399 if (obj->mime_type->str) in mix_videoconfigparamsdec_set_mime_type()
400 g_string_free(obj->mime_type, TRUE); in mix_videoconfigparamsdec_set_mime_type()
402 g_string_free(obj->mime_type, FALSE); in mix_videoconfigparamsdec_set_mime_type()
405 obj->mime_type = g_string_new(mime_type); in mix_videoconfigparamsdec_set_mime_type()
406 if (!obj->mime_type) { in mix_videoconfigparamsdec_set_mime_type()
413 MIX_RESULT mix_videoconfigparamsdec_get_mime_type(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_get_mime_type() argument
415 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT (obj, mime_type); in mix_videoconfigparamsdec_get_mime_type()
417 if (!obj->mime_type) { in mix_videoconfigparamsdec_get_mime_type()
421 *mime_type = g_strdup(obj->mime_type->str); in mix_videoconfigparamsdec_get_mime_type()
429 MIX_RESULT mix_videoconfigparamsdec_set_frame_rate(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_set_frame_rate() argument
431 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_frame_rate()
432 obj->frame_rate_num = frame_rate_num; in mix_videoconfigparamsdec_set_frame_rate()
433 obj->frame_rate_denom = frame_rate_denom; in mix_videoconfigparamsdec_set_frame_rate()
437 MIX_RESULT mix_videoconfigparamsdec_get_frame_rate(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_get_frame_rate() argument
439 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT_PAIR (obj, frame_rate_num, frame_rate_denom); in mix_videoconfigparamsdec_get_frame_rate()
440 *frame_rate_num = obj->frame_rate_num; in mix_videoconfigparamsdec_get_frame_rate()
441 *frame_rate_denom = obj->frame_rate_denom; in mix_videoconfigparamsdec_get_frame_rate()
445 MIX_RESULT mix_videoconfigparamsdec_set_picture_res(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_set_picture_res() argument
447 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_picture_res()
448 obj->picture_width = picture_width; in mix_videoconfigparamsdec_set_picture_res()
449 obj->picture_height = picture_height; in mix_videoconfigparamsdec_set_picture_res()
453 MIX_RESULT mix_videoconfigparamsdec_get_picture_res(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_get_picture_res() argument
455 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT_PAIR (obj, picture_width, picture_height); in mix_videoconfigparamsdec_get_picture_res()
456 *picture_width = obj->picture_width; in mix_videoconfigparamsdec_get_picture_res()
457 *picture_height = obj->picture_height; in mix_videoconfigparamsdec_get_picture_res()
461 MIX_RESULT mix_videoconfigparamsdec_set_raw_format(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_set_raw_format() argument
463 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_raw_format()
466 obj->raw_format = raw_format; in mix_videoconfigparamsdec_set_raw_format()
470 MIX_RESULT mix_videoconfigparamsdec_get_raw_format(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_get_raw_format() argument
472 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT (obj, raw_format); in mix_videoconfigparamsdec_get_raw_format()
473 *raw_format = obj->raw_format; in mix_videoconfigparamsdec_get_raw_format()
477 MIX_RESULT mix_videoconfigparamsdec_set_rate_control(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_set_rate_control() argument
479 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_rate_control()
482 obj->rate_control = rate_control; in mix_videoconfigparamsdec_set_rate_control()
486 MIX_RESULT mix_videoconfigparamsdec_get_rate_control(MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_get_rate_control() argument
488 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT (obj, rate_control); in mix_videoconfigparamsdec_get_rate_control()
489 *rate_control = obj->rate_control; in mix_videoconfigparamsdec_get_rate_control()
494 MixVideoConfigParamsDec * obj, guint bufpoolsize) { in mix_videoconfigparamsdec_set_buffer_pool_size() argument
496 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_buffer_pool_size()
498 obj->mixbuffer_pool_size = bufpoolsize; in mix_videoconfigparamsdec_set_buffer_pool_size()
504 MixVideoConfigParamsDec * obj, guint *bufpoolsize) { in mix_videoconfigparamsdec_get_buffer_pool_size() argument
506 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT (obj, bufpoolsize); in mix_videoconfigparamsdec_get_buffer_pool_size()
507 *bufpoolsize = obj->mixbuffer_pool_size; in mix_videoconfigparamsdec_get_buffer_pool_size()
512 MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_set_extra_surface_allocation() argument
515 MIX_VIDEOCONFIGPARAMSDEC_SETTER_CHECK_INPUT (obj); in mix_videoconfigparamsdec_set_extra_surface_allocation()
517 obj->extra_surface_allocation = extra_surface_allocation; in mix_videoconfigparamsdec_set_extra_surface_allocation()
523 MixVideoConfigParamsDec * obj, in mix_videoconfigparamsdec_get_extra_surface_allocation() argument
526 MIX_VIDEOCONFIGPARAMSDEC_GETTER_CHECK_INPUT (obj, extra_surface_allocation); in mix_videoconfigparamsdec_get_extra_surface_allocation()
527 *extra_surface_allocation = obj->extra_surface_allocation; in mix_videoconfigparamsdec_get_extra_surface_allocation()