mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
Fix some typos found by codespell
See: https://github.com/raspberrypi/userland/pull/299
This commit is contained in:
@@ -2014,7 +2014,7 @@ static VC_CONTAINER_STATUS_T asf_reader_seek( VC_CONTAINER_T *p_ctx, int64_t *p_
|
||||
LOG_DEBUG(p_ctx, "asf_reader_seek");
|
||||
|
||||
/* Prefer the top-level index to the simple index - it has byte offsets not packet offsets,
|
||||
* and is likely to have seperate tables for every track */
|
||||
* and is likely to have separate tables for every track */
|
||||
if (module->top_level_index.block_count)
|
||||
{
|
||||
status = seek_by_top_level_index(p_ctx, p_time, mode, flags);
|
||||
|
||||
@@ -390,7 +390,7 @@ typedef struct VC_CONTAINER_T
|
||||
unsigned int tracks_num; /**< Number of tracks available */
|
||||
/** Pointer to an array of pointers to track elements.
|
||||
* The reasoning for using a pointer to pointers here is to allow us to extend
|
||||
* VC_CONTAINER_TRACK_T without loosing binary backward compatibility. */
|
||||
* VC_CONTAINER_TRACK_T without losing binary backward compatibility. */
|
||||
VC_CONTAINER_TRACK_T **tracks;
|
||||
|
||||
unsigned int meta_num; /**< Number of metadata elements associated with the container */
|
||||
|
||||
@@ -160,7 +160,7 @@ bool vc_uri_find_query( VC_URI_PARTS_T *p_uri, uint32_t *p_index, const char *na
|
||||
*
|
||||
* \param p_uri The parsed URI.
|
||||
* \param scheme Pointer to the new scheme string, or NULL.
|
||||
* \return True if succesful, false on memory allocation failure. */
|
||||
* \return True if successful, false on memory allocation failure. */
|
||||
bool vc_uri_set_scheme( VC_URI_PARTS_T *p_uri, const char *scheme );
|
||||
|
||||
/** Sets the userinfo of the URI.
|
||||
@@ -170,7 +170,7 @@ bool vc_uri_set_scheme( VC_URI_PARTS_T *p_uri, const char *scheme );
|
||||
*
|
||||
* \param p_uri The parsed URI.
|
||||
* \param userinfo Pointer to the new userinfo string, or NULL.
|
||||
* \return True if succesful, false on memory allocation failure. */
|
||||
* \return True if successful, false on memory allocation failure. */
|
||||
bool vc_uri_set_userinfo( VC_URI_PARTS_T *p_uri, const char *userinfo );
|
||||
|
||||
/** Sets the host of the URI.
|
||||
@@ -180,7 +180,7 @@ bool vc_uri_set_userinfo( VC_URI_PARTS_T *p_uri, const char *userinfo );
|
||||
*
|
||||
* \param p_uri The parsed URI.
|
||||
* \param host Pointer to the new host string, or NULL.
|
||||
* \return True if succesful, false on memory allocation failure. */
|
||||
* \return True if successful, false on memory allocation failure. */
|
||||
bool vc_uri_set_host( VC_URI_PARTS_T *p_uri, const char *host );
|
||||
|
||||
/** Sets the port of the URI.
|
||||
@@ -190,7 +190,7 @@ bool vc_uri_set_host( VC_URI_PARTS_T *p_uri, const char *host );
|
||||
*
|
||||
* \param p_uri The parsed URI.
|
||||
* \param port Pointer to the new port string, or NULL.
|
||||
* \return True if succesful, false on memory allocation failure. */
|
||||
* \return True if successful, false on memory allocation failure. */
|
||||
bool vc_uri_set_port( VC_URI_PARTS_T *p_uri, const char *port );
|
||||
|
||||
/** Sets the path of the URI.
|
||||
@@ -200,7 +200,7 @@ bool vc_uri_set_port( VC_URI_PARTS_T *p_uri, const char *port );
|
||||
*
|
||||
* \param p_uri The parsed URI.
|
||||
* \param path Pointer to the new path string, or NULL.
|
||||
* \return True if succesful, false on memory allocation failure. */
|
||||
* \return True if successful, false on memory allocation failure. */
|
||||
bool vc_uri_set_path( VC_URI_PARTS_T *p_uri, const char *path );
|
||||
|
||||
/** Sets the fragment of the URI.
|
||||
@@ -210,7 +210,7 @@ bool vc_uri_set_path( VC_URI_PARTS_T *p_uri, const char *path );
|
||||
*
|
||||
* \param p_uri The parsed URI.
|
||||
* \param fragment Pointer to the new fragment string, or NULL.
|
||||
* \return True if succesful, false on memory allocation failure. */
|
||||
* \return True if successful, false on memory allocation failure. */
|
||||
bool vc_uri_set_fragment( VC_URI_PARTS_T *p_uri, const char *fragment );
|
||||
|
||||
/** Adds an query to the array.
|
||||
|
||||
@@ -116,7 +116,7 @@ VC_CONTAINER_STATUS_T vc_packetizer_push( VC_PACKETIZER_T *context,
|
||||
/** Pop a packet of data from the packetizer.
|
||||
* This allows the client to retrieve consumed data from the packetizer. Packets returned by
|
||||
* the packetizer in this manner can then be released / recycled by the client.
|
||||
* It is possible for the client to retreive non-consumed data by passing the
|
||||
* It is possible for the client to retrieve non-consumed data by passing the
|
||||
* VC_PACKETIZER_FLAG_FORCE_RELEASE_INPUT flag. This will however trigger some internal buffering
|
||||
* inside the packetizer and thus is less efficient.
|
||||
*
|
||||
@@ -124,7 +124,7 @@ VC_CONTAINER_STATUS_T vc_packetizer_push( VC_PACKETIZER_T *context,
|
||||
* \param packet Pointer used to return a consumed packet
|
||||
* \param flags Miscellaneous flags controlling the operation
|
||||
*
|
||||
* \return VC_CONTAINER_SUCCESS if a consumed packet was retreived,
|
||||
* \return VC_CONTAINER_SUCCESS if a consumed packet was retrieved,
|
||||
* VC_CONTAINER_ERROR_INCOMPLETE_DATA if none is available.
|
||||
*/
|
||||
VC_CONTAINER_STATUS_T vc_packetizer_pop( VC_PACKETIZER_T *context,
|
||||
|
||||
@@ -1018,7 +1018,7 @@ private:
|
||||
// not its own PTS. This should mean next time we seek to that PTS we'll get this packet.
|
||||
index_positions[stream].insert(std::make_pair(target_pts, expected_packet->second));
|
||||
|
||||
// Check whether the time on the packet is reasonable - it ought to be close to the time acheived.
|
||||
// Check whether the time on the packet is reasonable - it ought to be close to the time achieved.
|
||||
check_seek_tolerance(packet, actual_pts);
|
||||
|
||||
// Now we've found a packet from this stream we're done with it, so note we don't care about it any more.
|
||||
@@ -1848,7 +1848,7 @@ private:
|
||||
// Check whether a packet is close enough to the PTS supplied. Used after a seek.
|
||||
void check_seek_tolerance(const PACKET_DATA_T& packet, PTS_T actual_pts)
|
||||
{
|
||||
// Check whether the time on the packet is reasonable - it ought to be close to the time acheived.
|
||||
// Check whether the time on the packet is reasonable - it ought to be close to the time achieved.
|
||||
if (packet.info.track == video_stream)
|
||||
{
|
||||
if ((packet.info.pts + configuration.tolerance_video_early) < actual_pts)
|
||||
|
||||
@@ -845,7 +845,7 @@ void *vc_image_pixel_addr_gl(VC_IMAGE_BUF_T *image, int x, int y, int miplevel);
|
||||
int smooth_flag);
|
||||
|
||||
/* RGB565 resize. Pitch must be 32-byte aligned, dimensions need not be.
|
||||
XXX kept YUV and RGB565 version seperate to avoid unnecessary linking.
|
||||
XXX kept YUV and RGB565 version separate to avoid unnecessary linking.
|
||||
However if we're going down the DLL route they ought to be combined. */
|
||||
|
||||
void vc_image_resize_rgb565(VC_IMAGE_BUF_T * dest,
|
||||
|
||||
@@ -508,7 +508,7 @@ VCHPRE_ void VCHPOST_ ilclient_state_transition(COMPONENT_T *list[],
|
||||
* given component. This function sends the disable port message to
|
||||
* the component and waits for the component to signal that this has
|
||||
* taken place. If the port is already disabled, this is treated as a
|
||||
* sucess.
|
||||
* success.
|
||||
*
|
||||
* @param comp The component containing the port to disable.
|
||||
*
|
||||
@@ -526,7 +526,7 @@ VCHPRE_ void VCHPOST_ ilclient_disable_port(COMPONENT_T *comp,
|
||||
* given component. This function sends the enable port message to
|
||||
* the component and waits for the component to signal that this has
|
||||
* taken place. If the port is already disabled, this is treated as a
|
||||
* sucess.
|
||||
* success.
|
||||
*
|
||||
* @param comp The component containing the port to enable.
|
||||
*
|
||||
|
||||
@@ -1735,7 +1735,7 @@ UML_LOOK = NO
|
||||
# the class node. If there are many fields or methods and many nodes the
|
||||
# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
|
||||
# threshold limits the number of items for each type to make the size more
|
||||
# managable. Set this to 0 for no limit. Note that the threshold may be
|
||||
# manageable. Set this to 0 for no limit. Note that the threshold may be
|
||||
# exceeded by 50% before the limit is enforced.
|
||||
|
||||
UML_LIMIT_NUM_FIELDS = 10
|
||||
|
||||
@@ -838,7 +838,7 @@ void raspicamcontrol_dump_parameters(const RASPICAM_CAMERA_PARAMETERS *params)
|
||||
* ALso displays a fault if code is not success
|
||||
*
|
||||
* @param status The error code to convert
|
||||
* @return 0 if status is sucess, 1 otherwise
|
||||
* @return 0 if status is success, 1 otherwise
|
||||
*/
|
||||
int mmal_status_to_int(MMAL_STATUS_T status)
|
||||
{
|
||||
|
||||
@@ -392,7 +392,7 @@ static void dump_status(RASPISTILL_STATE *state)
|
||||
static int parse_cmdline(int argc, const char **argv, RASPISTILL_STATE *state)
|
||||
{
|
||||
// Parse the command line arguments.
|
||||
// We are looking for --<something> or -<abreviation of something>
|
||||
// We are looking for --<something> or -<abbreviation of something>
|
||||
|
||||
int valid = 1;
|
||||
int i;
|
||||
@@ -879,7 +879,7 @@ static void encoder_buffer_callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buf
|
||||
/**
|
||||
* Create the camera component, set up its ports
|
||||
*
|
||||
* @param state Pointer to state control struct. camera_component member set to the created camera_component if successfull.
|
||||
* @param state Pointer to state control struct. camera_component member set to the created camera_component if successful.
|
||||
*
|
||||
* @return MMAL_SUCCESS if all OK, something else otherwise
|
||||
*
|
||||
@@ -1041,7 +1041,7 @@ static MMAL_STATUS_T create_camera_component(RASPISTILL_STATE *state)
|
||||
goto error;
|
||||
}
|
||||
|
||||
// Set the same format on the video port (which we dont use here)
|
||||
// Set the same format on the video port (which we don't use here)
|
||||
mmal_format_full_copy(video_port->format, format);
|
||||
status = mmal_port_format_commit(video_port);
|
||||
|
||||
@@ -1145,7 +1145,7 @@ static void destroy_camera_component(RASPISTILL_STATE *state)
|
||||
/**
|
||||
* Create the encoder component, set up its ports
|
||||
*
|
||||
* @param state Pointer to state control struct. encoder_component member set to the created camera_component if successfull.
|
||||
* @param state Pointer to state control struct. encoder_component member set to the created camera_component if successful.
|
||||
*
|
||||
* @return a MMAL_STATUS, MMAL_SUCCESS if all OK, something else otherwise
|
||||
*/
|
||||
|
||||
@@ -286,7 +286,7 @@ static void dump_status(RASPISTILLYUV_STATE *state)
|
||||
static int parse_cmdline(int argc, const char **argv, RASPISTILLYUV_STATE *state)
|
||||
{
|
||||
// Parse the command line arguments.
|
||||
// We are looking for --<something> or -<abreviation of something>
|
||||
// We are looking for --<something> or -<abbreviation of something>
|
||||
|
||||
int valid = 1; // set 0 if we have a bad parameter
|
||||
int i;
|
||||
@@ -760,7 +760,7 @@ static MMAL_STATUS_T create_camera_component(RASPISTILLYUV_STATE *state)
|
||||
goto error;
|
||||
}
|
||||
|
||||
// Set the same format on the video port (which we dont use here)
|
||||
// Set the same format on the video port (which we don't use here)
|
||||
mmal_format_full_copy(video_port->format, format);
|
||||
status = mmal_port_format_commit(video_port);
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ static void dump_status(RASPIVIDYUV_STATE *state)
|
||||
static int parse_cmdline(int argc, const char **argv, RASPIVIDYUV_STATE *state)
|
||||
{
|
||||
// Parse the command line arguments.
|
||||
// We are looking for --<something> or -<abreviation of something>
|
||||
// We are looking for --<something> or -<abbreviation of something>
|
||||
|
||||
int valid = 1;
|
||||
int i;
|
||||
@@ -392,7 +392,7 @@ static int parse_cmdline(int argc, const char **argv, RASPIVIDYUV_STATE *state)
|
||||
{
|
||||
if (sscanf(argv[i + 1], "%u", &state->timeout) == 1)
|
||||
{
|
||||
// Ensure that if previously selected a waitMethod we dont overwrite it
|
||||
// Ensure that if previously selected a waitMethod we don't overwrite it
|
||||
if (state->timeout == 0 && state->waitMethod == WAIT_METHOD_NONE)
|
||||
state->waitMethod = WAIT_METHOD_FOREVER;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
/* VideoCore Shared Memory - user interface library.
|
||||
**
|
||||
** This library provides all the necessary abstraction for any application to
|
||||
** make use of the shared memory service which is distributed accross a kernel
|
||||
** make use of the shared memory service which is distributed across a kernel
|
||||
** driver and a videocore service.
|
||||
**
|
||||
** It is an application design decision to choose or not to use this service.
|
||||
|
||||
@@ -172,7 +172,7 @@ uint32_t khrn_hashlittle( const void *key, int length, uint32_t initval)
|
||||
* rest of the string. Every machine with memory protection I've seen
|
||||
* does it on word boundaries, so is OK with this. But VALGRIND will
|
||||
* still catch it and complain. The masking trick does make the hash
|
||||
* noticably faster for short strings (like English words).
|
||||
* noticeably faster for short strings (like English words).
|
||||
*/
|
||||
#ifndef VALGRIND
|
||||
|
||||
|
||||
@@ -506,7 +506,7 @@ static void dump_ancestors(Window w)
|
||||
Window grandparent,parent = w, child = 0;
|
||||
unsigned int rlayer = ~0;
|
||||
bool bidirectional;
|
||||
vcos_log_trace("walking back up heirarchy");
|
||||
vcos_log_trace("walking back up hierarchy");
|
||||
while(parent)
|
||||
{
|
||||
bidirectional = false;
|
||||
@@ -584,7 +584,7 @@ uint32_t khrn_platform_get_window_position(EGLNativeWindowType win)
|
||||
{
|
||||
vcos_log_error("EGL window isn't child of root", i);
|
||||
|
||||
//to try and find out where this window has gone, let us walk back up the heirarchy
|
||||
//to try and find out where this window has gone, let us walk back up the hierarchy
|
||||
dump_ancestors(w);
|
||||
return ~0;
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ bool egl_config_check_attribs(const EGLint *attrib_list, bool *use_red, bool *us
|
||||
this is the sum of EGL RED SIZE, EGL GREEN SIZE, EGL BLUE SIZE,
|
||||
and EGL ALPHA SIZE; for a luminance color buffer, the sum of
|
||||
EGL LUMINANCE SIZE and EGL ALPHA SIZE) [3]. If the requested number
|
||||
of bits in attrib list for a particular color component is 0 or EGL DONT CARE,
|
||||
of bits in attrib list for a particular color component is 0 or EGL_DONT_CARE,
|
||||
then the number of bits for that component is not considered.
|
||||
4. Smaller EGL BUFFER SIZE.
|
||||
5. Smaller EGL SAMPLE BUFFERS.
|
||||
|
||||
@@ -282,8 +282,8 @@ unrecognized or out of range.
|
||||
All attribute names in attrib list are immediately followed by the corresponding
|
||||
desired value. The list is terminated with EGL NONE. If an attribute is not specified
|
||||
in attrib list, then the default value (listed in Table 3.4) is used (it is said to be
|
||||
specified implicitly). If EGL DONT CARE is specified as an attribute value, then the
|
||||
attribute will not be checked. EGL DONT CARE may be specified for all attributes
|
||||
specified implicitly). If EGL_DONT_CARE is specified as an attribute value, then the
|
||||
attribute will not be checked. EGL_DONT_CARE may be specified for all attributes
|
||||
except EGL LEVEL. If attrib list is NULL or empty (first attribute is EGL NONE),
|
||||
then selection and sorting of EGLConfigs is done according to the default criteria
|
||||
in Tables 3.4 and 3.1, as described below under Selection and Sorting.
|
||||
|
||||
@@ -166,7 +166,7 @@ const char *mmalomx_error_to_string(OMX_ERRORTYPE error)
|
||||
"OMX_ErrorFormatNotDetected", "OMX_ErrorContentPipeOpenFailed",
|
||||
"OMX_ErrorContentPipeCreationFailed", "OMX_ErrorSeperateTablesUsed",
|
||||
"OMX_ErrorTunnelingUnsupported",
|
||||
"OMX_Error unkown"
|
||||
"OMX_Error unknown"
|
||||
};
|
||||
|
||||
if(error == OMX_ErrorNone) return "OMX_ErrorNone";
|
||||
|
||||
@@ -116,7 +116,7 @@ MMAL_STATUS_T mmalomx_param_mapping_generic(MMALOMX_PARAM_MAPPING_DIRECTION dir,
|
||||
if (((uint8_t *)omx_param) + omx_header->nSize !=
|
||||
omx_data + size)
|
||||
{
|
||||
VCOS_ALERT("mmalomx_param_mapping_generic: mismatch between mmal and omx paramters for (%u)",
|
||||
VCOS_ALERT("mmalomx_param_mapping_generic: mismatch between mmal and omx parameters for (%u)",
|
||||
(unsigned int)mmal_param->id);
|
||||
return MMAL_EINVAL;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ static void vcos_generic_blockpool_subpool_init(
|
||||
subpool->owner = pool;
|
||||
|
||||
/* Initialise to a predictable bit pattern unless the pool is so big
|
||||
* that the delay would be noticable. */
|
||||
* that the delay would be noticeable. */
|
||||
if (pool_size < VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE)
|
||||
memset(subpool->mem, 0xBC, pool_size); /* For debugging */
|
||||
|
||||
|
||||
@@ -466,7 +466,7 @@ static int32_t cecservice_wait_for_bulk_receive(void *buffer, uint32_t max_lengt
|
||||
*
|
||||
* Arguments: command, parameter buffer, parameter legnth, has reply? (non-zero means yes)
|
||||
*
|
||||
* Description: send a command and optionally wait for its single value reponse (TV_GENERAL_RESP_T)
|
||||
* Description: send a command and optionally wait for its single value response (TV_GENERAL_RESP_T)
|
||||
*
|
||||
* Returns: < 0 if there is VCHI error, if tranmission is successful, value
|
||||
* returned is the response from CEC server (which will be VC_CEC_ERROR_T (>= 0))
|
||||
@@ -512,7 +512,7 @@ static int32_t cecservice_send_command( uint32_t command, const void *buffer, u
|
||||
*
|
||||
* Arguments: command, parameter buffer, parameter legnth, reply buffer, buffer length
|
||||
*
|
||||
* Description: send a command and wait for its non-single value reponse (in a buffer)
|
||||
* Description: send a command and wait for its non-single value response (in a buffer)
|
||||
*
|
||||
* Returns: error code, host app is responsible to do endian translation
|
||||
*
|
||||
|
||||
@@ -1181,7 +1181,7 @@ static int32_t dispmanx_wait_for_reply(void *response, uint32_t max_length) {
|
||||
*
|
||||
* Arguments: command, parameter buffer, parameter legnth
|
||||
*
|
||||
* Description: send a command and wait for its reponse (int)
|
||||
* Description: send a command and wait for its response (int)
|
||||
*
|
||||
* Returns: response
|
||||
*
|
||||
@@ -1217,7 +1217,7 @@ int32_t vc_dispmanx_send_command (uint32_t command, void *buffer,
|
||||
*
|
||||
* Arguments: command, parameter buffer, parameter legnth, reply buffer, buffer length
|
||||
*
|
||||
* Description: send a command and wait for its reponse (in a buffer)
|
||||
* Description: send a command and wait for its response (in a buffer)
|
||||
*
|
||||
* Returns: error code
|
||||
*
|
||||
|
||||
@@ -1258,7 +1258,7 @@ FUNCTION
|
||||
Send a vc_FILESYS_RESET command. This will return immediately.
|
||||
|
||||
RETURNS
|
||||
Succesful completion: FILESERV_RESP_OK
|
||||
Successful completion: FILESERV_RESP_OK
|
||||
Otherwise: -
|
||||
******************************************************************************/
|
||||
|
||||
@@ -1743,7 +1743,7 @@ SYNOPSIS
|
||||
int vc_filesys_errno(void)
|
||||
|
||||
FUNCTION
|
||||
Returns the error code of the last file system error that occured.
|
||||
Returns the error code of the last file system error that occurred.
|
||||
|
||||
RETURNS
|
||||
Error code
|
||||
|
||||
@@ -835,7 +835,7 @@ extern void mem_unretain(
|
||||
MEM_HANDLE_T handle);
|
||||
|
||||
/*
|
||||
A version of mem_lock which adds an indication that an aggresive compaction
|
||||
A version of mem_lock which adds an indication that an aggressive compaction
|
||||
should not wait for the block to be unlocked.
|
||||
*/
|
||||
|
||||
@@ -843,7 +843,7 @@ extern void *mem_lock_perma(
|
||||
MEM_HANDLE_T handle);
|
||||
|
||||
/*
|
||||
A version of mem_unlock which removes an indication that an aggresive
|
||||
A version of mem_unlock which removes an indication that an aggressive
|
||||
compaction should not wait for the block to be unlocked.
|
||||
*/
|
||||
|
||||
@@ -1051,7 +1051,7 @@ extern int mem_register_callback(mem_callback_func_t func, uintptr_t context);
|
||||
/* Defines the threshold in bytes at which the
|
||||
* MEM_CALLBACK_REASON_LOW_MEMORY will be invoked.
|
||||
*/
|
||||
extern void mem_set_low_mem_threshold(uint32_t theshold);
|
||||
extern void mem_set_low_mem_threshold(uint32_t threshold);
|
||||
|
||||
extern void mem_unregister_callback(mem_callback_func_t func, uintptr_t context);
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ typedef struct opaque_rtos_latch_t* RTOS_LATCH_T;
|
||||
// rtos_latch_unlocked() is a better test of lockedness.
|
||||
|
||||
// Don't call these functions, use the rtos_latch_get etc macros.
|
||||
//Routine to get the latch. Will suspend / busy wait dependant on the rtos implementation
|
||||
//Routine to get the latch. Will suspend / busy wait dependent on the rtos implementation
|
||||
extern void rtos_latch_get_real( RTOS_LATCH_T *latch );
|
||||
//Routine to put the latch.
|
||||
extern void rtos_latch_put_real( RTOS_LATCH_T *latch );
|
||||
|
||||
Reference in New Issue
Block a user