Difference between revisions of "Truxton media set size"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Sets the size of the original media, in bytes, before processing. | Sets the size of the original media, in bytes, before processing. | ||
| − | This corresponds to the <code>Size</code> column of the <code>Media</code> table. | + | This corresponds to the <code>[Size]</code> column of the <code><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></code> table. |
=Syntax= | =Syntax= | ||
Latest revision as of 07:45, 3 February 2024
Sets the size of the original media, in bytes, before processing.
This corresponds to the [Size] column of the [Media] table.
Syntax
void truxton_media_set_size( uint64_t media_handle, uint64_t byte_count );
Parameters
media_handle
The handle created by the truxton_media_create or truxton_media_open_id call.
byte_count
The number of bytes in the original media.
Sample
void set_GB( uint64_t media_handle, double gigabytes )
{
uint64_t byte_count = gigabytes * 1073741824;
truxton_media_set_size( media_handle, byte_count );
}